/* ============================================================
   sections.css — component & section styles for index.html
   Loaded after styles.css
   ============================================================ */

/* ---------- HEADER ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s var(--ease);
}
.hdr__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; position: relative; padding-block: 16px; }
.hdr--scrolled { background: rgba(250,248,245,.82); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.brand { flex: 0 0 auto; }
.brand__txt { text-align: left; }
.hdr--scrolled .brand__name { color: var(--ink); }

.hdr__nav { display: flex; gap: 28px; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.hdr__nav a { font-size: 15px; font-weight: 500; color: var(--ink); opacity: .82; transition: opacity .2s, color .2s; position: relative; }
.hdr__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: center; transition: transform .35s var(--ease-out); }
.hdr__nav a:hover { opacity: 1; color: var(--brand-primary); }
.hdr__nav a:hover::after { transform: scaleX(1); }
.hdr__actions { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.hdr__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.hdr__phone svg { width: 16px; height: 16px; color: var(--brand-primary); }
.hdr__phone:hover { color: var(--brand-primary); }

/* Header on top of dark hero (before scroll) */
.hdr:not(.hdr--scrolled) .brand__name,
.hdr:not(.hdr--scrolled) .hdr__nav a,
.hdr:not(.hdr--scrolled) .hdr__phone { color: #fff; }
.hdr:not(.hdr--scrolled) .brand__sub { color: rgba(255,255,255,.6); }
.hdr:not(.hdr--scrolled) .hdr__phone svg { color: #fff; }

.hdr__burger {
  display: none; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  margin-left: auto;
  border-radius: 10px;
  transition: background .2s var(--ease);
}
.hdr__burger:hover { background: rgba(0,0,0,.04); }
.hdr--open .hdr__burger:hover, .hdr:not(.hdr--scrolled) .hdr__burger:hover { background: rgba(255,255,255,.06); }
.hdr__burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease), background .3s var(--ease); }
.hdr:not(.hdr--scrolled):not(.hdr--open) .hdr__burger span { background: #fff; }
.hdr--open .hdr__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hdr--open .hdr__burger span:nth-child(2) { opacity: 0; }
.hdr--open .hdr__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.hdr__mobile { display: none; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; color: #fff; overflow: hidden; background: var(--ink-deep); }
.hero__video, .hero__ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__ph { z-index: 0;
  background:
    radial-gradient(60% 80% at 92% 18%, rgba(228,6,6,.55) 0%, transparent 60%),
    radial-gradient(80% 60% at 8% 92%, rgba(150,3,3,.5) 0%, transparent 60%),
    radial-gradient(120% 80% at 50% 10%, rgba(228,6,6,.10) 0%, transparent 55%),
    linear-gradient(165deg, #171717 0%, #0A0A0A 55%, #141414 100%);
}
.hero__ph::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 80% at 50% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 40%, #000 0%, transparent 75%);
}
.hero__ph .ph__tag { display: none; }
.hero__ph .todo-chip { top: 16px; right: 16px; left: auto; }
.hero__video { z-index: 1; }
.hero__video[src=""], .hero__video:not([src]) { display: none; } /* show placeholder until real footage */
/* Vimeo (or other) background video iframe — covers the hero, sits below the overlay */
.hero__video-wrap { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none;
  opacity: 0; transition: opacity 1.4s var(--ease-out); }
.hero__video-wrap.is-loaded { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero__video-wrap { transition: none; } }
.hero__video-wrap iframe {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100vw; height: 56.25vw;          /* 16:9 video — scale to cover with no letterbox */
  min-width: 177.78vh; min-height: 100vh;
  border: 0;
}
.hero__overlay { position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(90deg, rgba(0,0,0,.66) 0%, rgba(0,0,0,.34) 40%, rgba(0,0,0,.05) 70%, transparent 88%),
    linear-gradient(180deg, rgba(0,0,0,.34) 0%, transparent 16%, transparent 52%, rgba(8,8,8,.82) 100%),
    radial-gradient(100% 70% at 12% 28%, rgba(228,6,6,.16) 0%, transparent 55%); }
/* hero is a flex column: content grows & centers, stat bar sits in normal flow at the bottom (no overlap) */
.hero__content { position: relative; z-index: 3; flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; text-align: left;
  padding-top: 120px; padding-bottom: 56px; }
.hero__title { margin-top: 22px; max-width: 16ch; text-shadow: 0 2px 30px rgba(0,0,0,.45); }
.hero__sub { margin-top: 22px; max-width: 48ch; color: #fff; text-shadow: 0 1px 16px rgba(0,0,0,.5); }
/* Hero eyebrow + ghost button are over video — keep them white for legibility */
.hero .eyebrow { color: #fff; text-shadow: 0 1px 14px rgba(0,0,0,.5); }
.hero .btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.hero .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; background: rgba(255,255,255,.10); }
.hero__cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero__trust {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 28px;
  font-size: 13.5px; color: #fff; text-shadow: 0 1px 14px rgba(0,0,0,.5);
  letter-spacing: .005em;
}
.hero__trust-stars { color: #FF3636; letter-spacing: 3px; font-size: 14px; }

/* Floating MT Group badge in the hero corner — "a team of" lockup */
.hero__mtg {
  position: absolute; z-index: 5;
  top: 104px; right: var(--gutter);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 18px 10px 12px;
  background: linear-gradient(155deg, rgba(255,255,255,.96) 0%, rgba(244,238,230,.92) 100%);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.4);
  backdrop-filter: blur(6px);
  color: #1B1B1B;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.hero__mtg:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0,0,0,.45); }
.hero__mtg img { height: 36px; width: auto; flex: none; display: block; }
.hero__mtg-eyebrow {
  font-family: var(--font-display); font-style: italic;
  font-size: 12px; color: #6B6B6B; letter-spacing: .01em;
}
.hero__mtg-name {
  font-family: var(--font-display); font-weight: 600;
  font-size: 14px; letter-spacing: -.005em; color: #1B1B1B;
  white-space: nowrap;
}

/* The MT Group team callout (about section) */
.mtg-card {
  margin-top: 36px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  background: linear-gradient(160deg, #fff 0%, #F8F2EA 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 26px 22px 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(20,16,8,.08);
}
.mtg-card__rule {
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
}
.mtg-card__mark { height: 64px; width: auto; flex: none; display: block; }
.mtg-card__copy {
  font-size: 14.5px; line-height: 1.55; color: var(--grey-text); margin: 0;
}
.mtg-card__copy strong { color: var(--ink); font-weight: 600; }

.hero__stats { position: relative; z-index: 3; flex: none;
  border-top: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(8,8,8,.0) 0%, rgba(8,8,8,.55) 100%);
  backdrop-filter: blur(10px) saturate(1.1);
}
.hero__stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 8px 26px 0; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.10); padding-left: 32px; }
.stat__num { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3.2vw, 42px); display: block; line-height: 1;
  font-feature-settings: "tnum" 1, "lnum" 1; letter-spacing: -0.024em; color: #fff; }
.stat__num span { font-size: .42em; color: #FF3636; margin-left: 3px; font-weight: 500; letter-spacing: .02em; }
.stat__label { font-size: 11.5px; color: rgba(255,255,255,.58); margin-top: 10px; display: block; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }

/* ---------- ABOUT ---------- */
.about { display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about__media { position: relative; }
.about__photo { aspect-ratio: 4/5; border-radius: 18px; box-shadow: 0 24px 60px rgba(20,16,8,.16); }
.about__photo--portrait { position: relative; overflow: hidden; }
.about__headshot { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.about__photo-ph { display: none; }
.about__photo--empty .about__photo-ph { display: block; }
.about__media::after {
  content: ""; position: absolute; left: -16px; top: -16px; width: 72px; height: 72px;
  border-top: 2px solid var(--brand-primary); border-left: 2px solid var(--brand-primary);
  border-top-left-radius: 18px; opacity: .55; pointer-events: none;
}
.about__badge {
  position: absolute; right: -18px; bottom: 32px;
  background: linear-gradient(155deg, var(--ink-soft), var(--ink));
  color: #fff;
  padding: 16px 22px; border-radius: 14px;
  box-shadow: 0 20px 40px rgba(20,16,8,.28);
  display: flex; flex-direction: column;
  border: 1px solid rgba(255,255,255,.06);
}
.about__badge-num { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: #FF3636; font-weight: 600; }
.about__badge-txt { font-family: var(--font-display); font-size: 19px; margin-top: 4px; font-feature-settings: "tnum" 1; }
.about__list { list-style: none; margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.about__list li { display: flex; align-items: center; gap: 14px; font-weight: 500; color: var(--ink); font-size: 15.5px; }
.about__list svg {
  width: 22px; height: 22px; flex: none; color: var(--brand-primary);
  background: var(--brand-tint); border-radius: 50%; padding: 5px;
}

/* ---------- LOAN PROGRAM FLIP TILES ---------- */
.prog__head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.prog__intro { max-width: 42ch; }
.prog__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.prog__grid .tile { grid-column: span 2; }
/* Inverted pyramid: when the last row has exactly 2 cards, center them in the gaps of the row above */
.prog__grid .tile:nth-last-child(2):nth-child(3n+1) { grid-column: 2 / span 2; }
.prog__grid .tile:nth-last-child(2):nth-child(3n+1) + .tile { grid-column: 4 / span 2; }
.tile { perspective: 1400px; aspect-ratio: 4/3.2; display: block; text-align: left; }
.tile__inner { position: relative; width: 100%; height: 100%; transition: transform .75s var(--ease-out); transform-style: preserve-3d; }
.tile:hover .tile__inner, .tile.is-flipped .tile__inner { transform: rotateY(180deg); }
.tile__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transform: rotateY(0deg); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; border: 1px solid var(--line-light);
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 18px 40px rgba(0,0,0,.28); }
.tile__front { background: linear-gradient(160deg, #242424 0%, #181818 100%); }
.tile__back { background: linear-gradient(155deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  transform: rotateY(180deg); }
.tile__icon {
  width: 44px; height: 44px; flex: none;
  border-radius: 11px;
  display: grid; place-items: center;
  color: #FF3636;
  background: rgba(255,80,80,.08);
  border: 1px solid rgba(255,80,80,.18);
}
.tile__icon svg { width: 22px; height: 22px; }
.tile__name { font-family: var(--font-display); font-weight: 500; font-size: 25px; color: #fff; margin-top: auto; }
.tile__front .tile__name { margin-top: 14px; }
.tile__one { color: rgba(255,255,255,.66); font-size: 14.5px; margin-top: 10px; line-height: 1.5; }
.tile__hint { margin-top: auto; padding-top: 16px; color: #FF3636; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.tile__front { justify-content: flex-start; }
.tile__front .tile__name { margin-top: 6px; }
.tile__front .tile__hint { margin-top: auto; }
.tile__back ul { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.tile__back li { color: rgba(255,255,255,.94); font-size: 14.5px; padding-left: 18px; position: relative; }
.tile__back li::before { content: "→"; position: absolute; left: 0; color: rgba(255,255,255,.7); }
.tile__cta { margin-top: auto; padding-top: 18px; color: #fff; font-weight: 600; font-size: 14.5px; }
.tile__cta:hover { text-decoration: underline; }

/* ---------- WHY ---------- */
.why__head { max-width: 48ch; margin-bottom: 48px; }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.vp {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 26px 32px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.vp::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-primary-soft));
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.vp:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.vp:hover::before { transform: scaleX(1); }
.vp__icon {
  width: 52px; height: 52px; border-radius: 14px; flex: none;
  display: grid; place-items: center;
  color: var(--brand-primary);
  background: var(--brand-tint);
  margin-bottom: 24px;
}
.vp__icon svg { width: 25px; height: 25px; }
.vp__num {
  position: absolute; top: 26px; right: 24px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 15px; color: var(--brand-primary); opacity: .28;
  font-feature-settings: "tnum" 1, "lnum" 1; letter-spacing: .02em;
}
.vp h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -.012em; }
.vp p { color: var(--grey-text); font-size: 14.5px; margin-top: 11px; line-height: 1.6; }

/* ---------- FOUNDATION (slim accent band) ---------- */
.foundation {
  background: linear-gradient(180deg, #1A1A1A 0%, #141414 100%);
  color: var(--paper);
  padding-block: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--brand-primary);
  position: relative;
  overflow: hidden;
}
.foundation::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 80% at 12% 50%, rgba(228,6,6,.22) 0%, transparent 60%);
  z-index: 0;
}
.foundation__inner { display: grid; grid-template-columns: 0.92fr 1fr; gap: clamp(32px, 5vw, 60px); align-items: center; position: relative; z-index: 1; }
.foundation__media { border-radius: 18px; overflow: hidden; aspect-ratio: 5/4;
  box-shadow: 0 22px 55px rgba(0,0,0,.42); border: 1px solid rgba(255,80,80,.20); }
.foundation__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- REVIEWS (infinite marquee) ---------- */
.reviews__marquee { position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); }
.reviews__track { display: flex; gap: 20px; width: max-content; padding-block: 16px; will-change: transform;
  animation: reviewScroll 75s linear infinite; }
.reviews__marquee:hover .reviews__track { animation-play-state: paused; }
.reviews__track .review { width: 350px; flex: none; }
@keyframes reviewScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .reviews__track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
  .reviews__track .review { width: min(350px, 100%); }
}
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.review::before { content: "“"; position: absolute; top: -18px; right: 18px; font-family: var(--font-display);
  font-size: 120px; line-height: 1; color: var(--brand-primary); opacity: .07; pointer-events: none; }
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review__stars { color: var(--brand-primary); letter-spacing: 3px; font-size: 16px; }
.review blockquote { font-family: var(--font-display); font-weight: 400; font-size: 19px; line-height: 1.46;
  margin: 18px 0 22px; color: var(--ink); text-wrap: pretty; }
.review blockquote em { font-family: ui-monospace, monospace; font-size: 11px; font-style: normal; display: block; margin-top: 8px; }
.review figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.review__avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--brand-tint); color: var(--brand-primary);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 13.5px;
  letter-spacing: .02em;
}
.review__who { display: flex; flex-direction: column; }
.review__name { font-weight: 600; font-size: 14.5px; }
.review__meta { font-size: 12.5px; color: var(--grey-accent); margin-top: 2px; }
.reviews__foot { margin-top: 32px; }
.link-underline { color: var(--brand-primary); font-weight: 600; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }

/* ---------- BOOKING + LEAD ---------- */
/* Stacked + centered: heading, then a wide booking embed, then the lead form below.
   The embed is widened to ~780px so Microsoft Bookings switches to its horizontal
   layout (calendar beside time slots) instead of the tall stacked one. */
.booking { display: block; }
.booking__head { max-width: 640px; margin: 0 auto; text-align: center; }
.booking__lead { max-width: 780px; margin: 44px auto 0; }
/* Tall fixed height so the Microsoft Bookings flow (service → date → time → details)
   fits without an internal scrollbar. Cross-origin iframes can't auto-size to content,
   so we give it generous height instead of a square aspect-ratio.
   Styled to match the .leadcard beside it (white, soft shadow, red top accent) so the
   two columns read as a matched pair rather than a bolted-on widget. */
.booking__embed {
  position: relative;
  max-width: 780px; margin: 36px auto 0;
  height: 720px;
  background: #fff;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 20px 50px rgba(20,16,8,.10);
}
.booking__embed iframe { display: block; }
.booking__embed::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 2;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-primary-dark));
}
/* Bottom fade so content visibly trails off — a second "there's more below" cue.
   pointer-events:none keeps the booking flow underneath fully clickable. */
.booking__embed::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 52px; z-index: 1;
  background: linear-gradient(to top, #fff 10%, rgba(255,255,255,0));
  pointer-events: none;
}
/* Hidden on desktop; revealed on phones where the embedded Bookings app won't load. */
.booking__fallback { display: none; }
.booking__fallback-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(228, 6, 6, .10);
  color: var(--brand-primary);
}
.booking__fallback-icon svg { width: 28px; height: 28px; }
.booking__fallback-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(22px, 5.5vw, 26px); line-height: 1.15; letter-spacing: -.014em;
}
.booking__fallback-text {
  max-width: 34ch; color: var(--grey-text); font-size: 15px; line-height: 1.5;
}
.booking__fallback .btn { margin-top: 4px; }
.booking__hint {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  max-width: 780px; margin: 14px auto 0;
  font-size: 13.5px; color: var(--grey-text);
}
.booking__hint svg {
  width: 15px; height: 15px; color: var(--brand-primary); flex: none;
  animation: bookHintBob 1.8s ease-in-out infinite;
}
@keyframes bookHintBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .booking__hint svg { animation: none; } }
.leadcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(28px, 3vw, 40px);
  box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 20px 50px rgba(20,16,8,.10);
  position: relative;
}
.leadcard::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-primary-dark));
  border-radius: 18px 18px 0 0;
}
.leadform { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { font-size: 12px; font-weight: 600; color: var(--ink); letter-spacing: .06em; text-transform: uppercase; }
.field input, .field textarea {
  font-family: inherit; font-size: 15.5px;
  padding: 13px 15px; border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  transition: border .2s, background .2s, box-shadow .2s; resize: vertical;
  min-height: 44px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--grey-accent); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(228,6,6,.10);
}
.field__err { font-size: 12.5px; color: var(--brand-primary); display: none; font-weight: 500; }
.field--err input, .field--err textarea { border-color: var(--brand-primary); background: var(--brand-tint); }
.field--err .field__err { display: block; }
.leadform__senderr { font-size: 13px; color: var(--brand-primary); text-align: center; line-height: 1.45; }
.leadform__senderr[hidden] { display: none; }
.leadform__senderr a { color: inherit; font-weight: 600; text-decoration: underline; }
.leadform__note { font-size: 12px; color: var(--grey-accent); text-align: center; }
.leadform__note .muted { font-family: ui-monospace, monospace; font-size: 11px; }
.leadform__success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 40px 10px; }
.leadform__success[hidden] { display: none; }
.leadform__success svg { width: 48px; height: 48px; color: var(--brand-primary); }
.leadform__success p { font-family: var(--font-display); font-size: 19px; color: var(--ink); }

/* ---------- APPLY BAND ---------- */
.applyband {
  background:
    radial-gradient(80% 120% at 90% 10%, rgba(255,255,255,.10) 0%, transparent 50%),
    radial-gradient(60% 100% at 8% 100%, rgba(0,0,0,.30) 0%, transparent 55%),
    linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  color: #fff;
  padding-block: clamp(54px, 6vw, 76px);
  position: relative;
  overflow: hidden;
}
.applyband__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; position: relative; z-index: 2; }
.applyband .lead { color: rgba(255,255,255,.82); }
.applyband__inner > div { max-width: 56ch; }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink); color: var(--paper); padding-block: 64px 36px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--line-light); }
.brand--footer .brand__name { color: #fff; }
.footer__contact { margin-top: 20px; font-size: 15px; line-height: 1.8; }
.footer__contact a:hover { color: #FF3636; }
.footer__social { display: flex; gap: 12px; margin-top: 18px; }
.footer__social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-light);
  display: grid; place-items: center; color: rgba(255,255,255,.75); transition: .2s; }
.footer__social a:hover { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.footer__social svg { width: 17px; height: 17px; }
.footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer__nav > div { display: flex; flex-direction: column; gap: 11px; }
.footer__h { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-accent); font-weight: 600; margin-bottom: 4px; }
.footer__nav a { font-size: 15px; color: rgba(250,248,245,.78); }
.footer__nav a:hover { color: #fff; }

.footer__compliance { padding-top: 36px; display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: start; }
.footer__logos { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.eho { display: flex; align-items: center; gap: 10px; color: #fff; }
.eho svg { width: 42px; height: 42px; flex: none; }
.eho span { font-size: 11px; line-height: 1.25; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.mm-logo { background: #fff; border-radius: 12px; padding: 14px 22px; display: inline-flex; align-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.28); }
.mm-logo img { height: 38px; width: auto; display: block; }

/* The MT Group footer co-lockup */
.mtg-logo {
  display: inline-flex; align-items: center; gap: 14px;
  background: linear-gradient(155deg, #fff 0%, #F4EEE6 100%);
  border-radius: 12px;
  padding: 10px 18px 10px 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
  color: #1B1B1B;
}
.mtg-logo img { height: 52px; width: auto; display: block; }
.mtg-logo span {
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 600; line-height: 1.2;
  letter-spacing: .01em;
  color: #1B1B1B;
}
.mtg-logo em { font-style: italic; font-weight: 500; color: #6B6B6B; font-size: 11.5px; letter-spacing: 0; }

/* The MT Group footer brand block (above social) */
.footer__mtgroup {
  margin-top: 22px;
  display: flex; gap: 16px; align-items: center;
  padding: 14px 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  max-width: 420px;
}
.footer__mtgroup img { height: 56px; width: auto; flex: none; background: #fff; border-radius: 8px; padding: 6px 8px; }
.footer__mtgroup p { font-size: 13px; line-height: 1.5; color: rgba(250,248,245,.72); margin: 0; }
.footer__legal { font-size: 13px; line-height: 1.7; color: rgba(250,248,245,.62); }
.footer__legal strong { color: rgba(250,248,245,.9); }
.footer__disc { margin-top: 14px; font-size: 12px; color: rgba(250,248,245,.5); }
.disc-flag { display: block; font-family: ui-monospace, monospace; font-size: 11px; color: #ffd23f; margin-bottom: 4px; }
.footer__copy { margin-top: 16px; font-size: 12px; color: var(--grey-accent); }
.footer__copy a:hover { color: #fff; }

/* ---------- RESPONSIVE ---------- */
/* Header collapses to the burger a little early so the centered nav always has room */
@media (max-width: 1080px) {
  .hdr__nav, .hdr__actions { display: none; }
  .hdr__burger { display: flex; }
  .hdr--open .hdr__mobile {
    display: flex; flex-direction: column; gap: 6px;
    padding: 14px var(--gutter) 28px;
    background: var(--paper);
    border-top: 1px solid var(--line);
    animation: hdrMobileIn .35s var(--ease-out);
  }
  .hdr--open { background: var(--paper); box-shadow: 0 12px 28px rgba(0,0,0,.08); }
  .hdr--open .brand__name { color: var(--ink); }
  .hdr__mobile a:not(.btn) {
    font-family: var(--font-display);
    font-size: 22px; font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    transition: color .2s;
  }
  .hdr__mobile a:not(.btn):hover { color: var(--brand-primary); }
  .hdr__mobile .btn { margin-top: 14px; }
  .hdr__mobile .btn + .btn { margin-top: 10px; }
}
@keyframes hdrMobileIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 980px) {
  .about { grid-template-columns: 1fr; }
  /* width:100% is required — margin-inline:auto makes the grid item shrink-to-fit,
     and the photo's only in-flow size comes from aspect-ratio, so without an explicit
     width the media collapses to 0×0 (photo vanishes, badge floats loose). */
  .about__media { width: 100%; max-width: 420px; margin-inline: auto; }
  .about__badge { right: 12px; }
  .prog__head { grid-template-columns: 1fr; gap: 20px; }
  .prog__grid { grid-template-columns: repeat(2, 1fr); }
  .prog__grid .tile { grid-column: auto; }
  .prog__grid .tile:nth-last-child(2):nth-child(3n+1),
  .prog__grid .tile:nth-last-child(2):nth-child(3n+1) + .tile { grid-column: auto; }
  .why__grid { grid-template-columns: 1fr 1fr; }
  .reviews__grid { grid-template-columns: 1fr; max-width: 520px; }
  .footer__top, .footer__compliance { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  /* Headshot source is square (669×669); a 4:5 frame cropped his head/shoulders.
     Use a square frame on phones so the full headshot shows, un-cropped. */
  .about__photo { aspect-ratio: 1 / 1; }
  .about__headshot { object-position: center top; }
  .brand { gap: 10px; }
  .brand__mtg { width: 37px; height: 37px; border-radius: 8px; padding: 1px; }
  .brand__mark { width: 36px; height: 36px; }
  .hero__content { padding-top: 108px; padding-bottom: 36px; }
  .hero__mtg { top: 84px; padding: 8px 14px 8px 10px; gap: 9px; }
  .hero__mtg img { height: 28px; }
  .hero__mtg-eyebrow { font-size: 11px; }
  .hero__mtg-name { font-size: 12.5px; }
  .mtg-card { grid-template-columns: 1fr; padding: 22px; text-align: left; }
  .mtg-card__mark { height: 56px; }
  .footer__mtgroup { max-width: 100%; }
  .hero__title { max-width: 14ch; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1; min-width: 0; padding-inline: 18px; }
  .hero__trust { font-size: 12.5px; gap: 10px; flex-wrap: wrap; }
  .hero__stats-inner { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 10px; }
  .stat:nth-child(odd) { border-left: none; padding-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid rgba(255,255,255,.10); padding-left: 22px; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid rgba(255,255,255,.10); }
  .stat__label { font-size: 10.5px; letter-spacing: .12em; }
  .prog__grid { grid-template-columns: 1fr; gap: 14px; }
  .tile { aspect-ratio: auto; min-height: 220px; }
  .why__grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  /* Phones: the embedded Microsoft Bookings app renders blank here, so swap the
     720px white iframe box for a tap-to-open card that launches it in a new tab. */
  .booking__embed { height: auto; }
  .booking__embed iframe { display: none; }
  .booking__embed::after { display: none; }
  .booking__fallback {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: 14px; padding: 44px 26px;
  }
  .booking__hint { display: none; }
  .foundation__inner { grid-template-columns: 1fr; gap: 20px; }
  .applyband__inner .btn { width: 100%; justify-content: center; }
  .footer__compliance { grid-template-columns: 1fr; gap: 24px; }
  /* Reviews: don't let a card span the full viewport width edge-to-edge */
  .reviews__track .review { width: min(86vw, 340px); }
  .review { padding: 26px 24px; }
  /* Footer legal: keep the long disclosure/license strings from overflowing */
  .footer__disc, .footer__legal { overflow-wrap: anywhere; }
  /* On phones, flip on tap only (hover is unreliable) */
  .tile:hover .tile__inner { transform: none; }
  .tile.is-flipped .tile__inner { transform: rotateY(180deg); }
}
