/* ==================================================================
   Mad Social homepage — layout + components.
   All values route through tokens.css.
   ================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
hr { border: 0; border-top: 1px solid var(--line); }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 21px; }
.center { text-align: center; }

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

/* ---------- type ---------- */
.serif { font-family: var(--serif); font-weight: 400; }
.serif-b { font-family: var(--serif); font-weight: 700; }
.b { color: var(--accent); font-style: italic; }

/* all display headings render bold */
h1.serif, .h-mission, .h-section, .h-team,
.svc-main h3, .team-col h3, .tm-quote, .closing-card h2,
.ss-copy h3, .svc-rail h4 { font-weight: 700; }

h1.serif { font-size: 53px; line-height: 1.02; letter-spacing: -.01em; margin: 0 0 25px; }
.h-mission { font-size: 42px; line-height: 1.05; margin: 0 0 21px; }
.h-section { font-size: 44px; line-height: 1.05; letter-spacing: -.01em; text-align: center; margin: 0 0 21px; }
.h-team { font-size: 37px; line-height: 1.06; margin: 0 0 21px; }

.section-sub {
  font-size: 16px; line-height: 1.6; color: var(--ink);
  text-align: center; max-width: 774px; margin: 0 auto 42px;
}

/* ---------- card shadows + hover lift ---------- */
.card, .svc-card, .closing-card {
  box-shadow: 0 6px 21px rgba(47, 64, 80, .06), 0 2px 6px rgba(47, 64, 80, .04);
}
.faq-item, .tm-phone {
  box-shadow: 0 4px 14px rgba(47, 64, 80, .06), 0 1px 4px rgba(47, 64, 80, .04);
  transition: transform .25s ease, box-shadow .25s ease;
}
.faq-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(47, 64, 80, .12), 0 4px 12px rgba(47, 64, 80, .06);
}

/* ---------- placeholders (assets pass fills these) ---------- */
.ph {
  background: var(--card-soft);
  border: 1.6px dashed var(--dash);
  border-radius: var(--r-inner);
  display: grid; place-items: center;
  color: var(--body); font-size: 13px; font-weight: 500;
  text-align: center; padding: 12px; line-height: 1.4;
}
.ph-hero { aspect-ratio: 5 / 4; max-width: 458px; margin: 0 auto; width: 100%; }
.hero-photo { width: 100%; height: auto; max-width: 458px; margin: 0 auto; border-radius: var(--r-inner); }
.ph-photo { aspect-ratio: 3 / 4; width: 100%; }

/* ---------- buttons: motion CTA ----------
   Rebuilt in CSS from 21st.dev Shatlyk1011/motion-button (MIT): the gold circle
   grows to fill the pill on hover, the arrow nudges right, the label turns white. */
.btn-motion {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center;
  height: 50px; padding: 0 25px 0 60px;
  border-radius: var(--r-pill);
  background: #fff; color: var(--ink);
  font-family: var(--sans); font-weight: 600; font-size: 13px; line-height: 1; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(47, 64, 80, .10), 0 1px 3px rgba(47, 64, 80, .06);
  transition: color .5s ease, box-shadow .18s ease;
}
.bm-circle {
  position: absolute; z-index: -1; left: 4px; top: 4px;
  width: 42px; height: 42px; border-radius: var(--r-pill);
  background: var(--btn);
  transition: width .5s ease, background .18s ease;
}
.bm-icon { position: absolute; left: 14px; top: 14px; width: 22px; height: 22px; color: #fff; transition: transform .5s ease; }
.bm-icon svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-motion:hover, .btn-motion:focus-visible { color: #fff; }
.btn-motion:hover .bm-circle, .btn-motion:focus-visible .bm-circle { width: calc(100% - 8px); background: var(--btn-hover); }
.btn-motion:hover .bm-icon, .btn-motion:focus-visible .bm-icon { transform: translateX(.4rem); }
.btn-motion:focus-visible { outline: 2px solid var(--btn-hover); outline-offset: 3px; }
/* on the navy panels a navy shadow disappears - go darker */
/* navy variant (hero): navy pill, gold orb, white text */
.btn-motion.bm-navy { background: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(47, 64, 80, .22), 0 1px 3px rgba(47, 64, 80, .12); }
.btn-motion.bm-navy:hover .bm-circle, .btn-motion.bm-navy:focus-visible .bm-circle { background: var(--btn); }
.btn-motion.bm-navy:hover, .btn-motion.bm-navy:focus-visible { color: var(--navy-deep); }
.btn-motion.bm-dark { box-shadow: 0 4px 12px rgba(0, 0, 0, .20), 0 1px 3px rgba(0, 0, 0, .12); }
/* header size */
.btn-motion.bm-sm { height: 40px; padding: 0 18px 0 46px; font-size: 12.5px; }
.bm-sm .bm-circle { left: 4px; top: 4px; width: 32px; height: 32px; }
.bm-sm .bm-icon { left: 11px; top: 11px; width: 18px; height: 18px; }
.bm-sm .bm-icon svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) {
  .btn-motion, .bm-circle, .bm-icon { transition: none; }
}
.cta-note { font-size: 12px; color: var(--body); margin: 19px 0 0; }
.closing-card p.closing-note { color: rgba(255, 255, 255, .72); max-width: none; margin: 19px auto 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  height: var(--header-h);
  display: flex; align-items: center;
}
.header-inner { display: flex; align-items: center; gap: 28px; width: 100%; }
.brand-mark { height: 33px; width: auto; }
.brand { font-family: var(--serif); font-size: 23px; letter-spacing: -.01em; color: var(--ink); }
.brand .b { font-style: italic; }
.nav { display: flex; gap: 35px; margin: 0 auto; }
.nav a { font-size: 14px; font-weight: 500; color: var(--ink); }
.nav a:hover { color: var(--btn-hover); }

/* ---------- hero ---------- */
.hero { padding: 42px 0 25px; }
.card { background: var(--card); border-radius: var(--r-card); }
.hero-card {
  display: grid; grid-template-columns: 1fr; align-items: center;
  gap: 28px; padding: 77px 35px;
}
.hero-copy { text-align: center; }
/* heading and sub share one measure; balance keeps the heading on two even lines */
.hero-copy h1 { max-width: 14.5em; margin-inline: auto; text-wrap: balance; }
.hero-kicker {
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 16px;
}
.hero-sub { font-size: 16px; line-height: 1.65; color: #2D3748; margin: 0 auto 30px; max-width: 722px; text-wrap: pretty; }

/* ---------- logo wall ---------- */
.logowall { padding: 49px 0 42px; }
/* logo cloud: white tiles on a warm hairline grid (the 1px gap is the border) */
.logo-cloud {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin: 0 auto; padding: 1px;
  background: var(--line); border-radius: 12px;
}
.logo-tile { display: flex; align-items: center; justify-content: center; height: 109px; padding: 21px; background: var(--card); border-radius: var(--r-tile); }
.logo-tile img { display: block; height: 25px; width: auto; max-width: 100%; object-fit: contain; pointer-events: none; user-select: none; }
.logo-tile img.lw-xs { height: 18px; }
.logo-tile img.lw-sm { height: 21px; }
.logo-tile img.lw-up { height: 30px; }
.logo-tile img.lw-up2 { height: 33px; }
.logo-tile img.lw-md { height: 35px; }
.logo-tile img.lw-lg { height: 46px; }
.logo-tile img.lw-xl { height: 67px; }

/* ---------- marquee mechanics ---------- */
.marquee { overflow: hidden; position: relative; }
.marquee-track {
  display: flex; align-items: center; width: max-content;
  animation: marquee var(--dur, 40s) linear infinite;
}
.marquee[data-reverse] .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- stats ---------- */
.stats { background: var(--band); padding: 84px 0; }
.stats-intro { display: grid; grid-template-columns: minmax(0, 1fr) 370px; justify-content: stretch; gap: clamp(63px, 7vw, 106px); align-items: center; }
.stats-role { font-size: 17px; font-weight: 600; line-height: 1.45; color: var(--ink); margin: 0 0 16px; max-width: 458px; }
.stats-lede { font-size: 15px; line-height: 1.65; color: #2D3748; margin: 0; max-width: 493px; }
.stats-lede + .stats-lede { margin-top: 14px; }
.stats-sign { display: block; width: 132px; height: auto; margin: 21px 0 0; }
.stats-photo { display: block; position: relative; width: 100%; }
.stats-photo .stats-row { position: absolute; left: -63px; top: 50%; transform: translateY(-50%); grid-template-columns: 1fr; gap: 10px; width: 155px; max-width: none; }
.stats-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; display: block; margin: 0 auto; border-radius: var(--r-inner); box-shadow: 0 10px 25px rgba(47, 64, 80, .08), 0 2px 6px rgba(47, 64, 80, .04); }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 493px; }
.stat-pill {
  border: 1.6px dashed var(--dash); border-radius: 18px;
  padding: 14px 12px 12px; text-align: center; background: #fff;
  box-shadow: 0 6px 18px rgba(47, 64, 80, .07), 0 2px 6px rgba(47, 64, 80, .04);
}
.stat-num { font-family: var(--sans); font-weight: 700; font-size: 23px; line-height: 1.1; letter-spacing: -.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat-label { font-family: var(--ui); font-size: 13px; font-weight: 500; letter-spacing: -.02em; color: var(--ink); margin-top: 4px; }

/* ---------- services (tabbed) ---------- */
.services { background: #fff; padding: 49px 0 35px; }
.svc-card {
  display: grid; grid-template-columns: 1fr 264px; gap: 42px;
  background: var(--navy); border-radius: var(--r-card);
  padding: 63px 56px; margin-bottom: 35px;
}
.svc-main h3 { font-size: 31px; line-height: 1.05; margin: 0 0 19px; color: #F3F5F7; }
.svc-main .svc-body { font-size: 14px; line-height: 1.6; color: #C3CEDA; margin: 0 0 25px; max-width: 563px; }
.svc-main hr { margin: 0 0 25px; border-color: rgba(255, 255, 255, .14); }
.svc-features .icon { color: var(--btn); }
.svc-features {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 18px 21px;
}
.svc-features li { display: flex; align-items: center; gap: 12px; font-size: 13.6px; font-weight: 500; color: #F3F5F7; white-space: nowrap; }
.icon { width: 19px; height: 19px; color: var(--accent); flex: none; }

@media (prefers-reduced-motion: no-preference) {
  .svc-panel { animation: panel-in .35s var(--reveal-ease); }
  @keyframes panel-in { from { opacity: 0; transform: translateY(10px); } }
}

.svc-rail {
  align-self: center;
  background: #fff; border: 1.6px dashed #AFBEC9; border-radius: 32px;
  padding: 39px 32px; text-align: center;
}
.svc-rail h4 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 0 0 13px; }
.rail-item {
  display: block; width: 100%; max-width: 229px;
  font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink);
  background: transparent; border: 0; cursor: pointer;
  padding: 12px 21px; margin: 12px auto; border-radius: var(--r-pill);
  transition: background .18s ease, color .18s ease;
}
.rail-item:hover { background: var(--band); }
.rail-item[aria-selected="true"] { background: var(--btn); color: #fff; }

/* ---------- why us ---------- */
.why { background: var(--band); padding: 84px 0; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 39px 42px; margin-top: 8px; }
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-ic {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--card-soft); display: grid; place-items: center;
}
.why-ic .icon { width: 18px; height: 18px; color: var(--ink); }
.why-item h4 { font-family: var(--sans); font-size: 18px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); margin: 0 0 8px; }
.why-item p { font-family: var(--sans); font-size: 13.6px; font-weight: 400; letter-spacing: -.01em; line-height: 1.55; color: var(--ink); opacity: .68; margin: 0; }

/* ---------- team / brand ---------- */
.team { padding: 84px 0; }
.team-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.team-copy p { font-size: 16px; line-height: 1.6; margin: 0 0 26px; max-width: 422px; }
.team-panels { display: grid; grid-template-columns: 1fr .85fr; gap: 0; }
.team-col h3 { font-size: 30px; letter-spacing: -.02em; text-align: center; margin: 0 0 19px; color: var(--ink); }
.team-list { list-style: none; margin: 0; padding: 25px 26px; }
.team-list li { display: flex; align-items: center; gap: 12px; font-family: var(--ui); font-size: 15px; font-weight: 500; letter-spacing: -.01em; color: var(--ink); padding: 13px 0; }
.team-list.grey { background: var(--band); border-radius: 18px 0 18px 18px; }
.team-list.navy { background: var(--navy); border-radius: 0 18px 18px 0; }
.team-list.navy li { color: #fff; }
.team-list.navy .icon { color: var(--cream); }
/* both panels lift off the page; grey sits on top so the navy panel's shadow doesn't fall across the seam */
.team-list { box-shadow: 0 6px 16px rgba(47, 64, 80, .10), 0 1px 4px rgba(47, 64, 80, .06); }
.team-list.grey { position: relative; z-index: 1; }
.team-list .icon { width: 18px; height: 18px; color: var(--ink); }
/* why section: agencies vs Mad Social comparison (reuses team panels) */
/* why section: agencies vs Mad Social comparison */
.cmp {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  background: var(--card); border-radius: var(--r-card);
  box-shadow: 0 21px 53px rgba(47, 64, 80, .10), 0 2px 8px rgba(47, 64, 80, .05);
  margin: 35px 0 0; padding: 0 0 0 49px;
}
.cmp-col h3 { font-size: 25px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); margin: 0; padding: 42px 0 16px; }
.cmp-col ul { list-style: none; margin: 0; padding: 0 0 35px; }
.cmp-col li {
  display: flex; align-items: center; gap: 14px; min-height: 58px;
  font-family: var(--sans); font-size: 15px; letter-spacing: -.01em; line-height: 1.4;
  border-top: 1px solid var(--line); padding: 10px 42px 10px 0;
}
.cmp-col .icon { flex: none; width: 19px; height: 19px; }
.cmp-them h3 { color: rgba(47, 64, 80, .55); }
.cmp-them li { color: rgba(47, 64, 80, .72); font-weight: 400; }
.cmp-them .icon { color: rgba(47, 64, 80, .32); }
.cmp-us {
  background: var(--navy);
  background-image: radial-gradient(ellipse at 100% 0%, rgba(212, 184, 150, .18), transparent 55%);
  border-radius: 28px; padding: 0 0 0 42px; margin: -19px 0 -19px 21px;
  box-shadow: 0 26px 53px rgba(47, 64, 80, .28);
}
.cmp-us h3 { color: #fff; padding-top: 62px; }
.cmp-us ul { padding: 0 42px 55px 0; }
.cmp-us li { color: #fff; font-weight: 500; border-top-color: rgba(255, 255, 255, .14); }
.cmp-us .icon { color: var(--btn); }

/* ---------- performance intro ---------- */
.perf { padding: 35px 0 63px; }

/* ---------- success stories ---------- */
.stories { padding: 28px 0 63px; }
/* the card wraps the copy only; the assets sit beside it, outside the card */
.ss-copy {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 35px 46px;
  box-shadow: 0 6px 21px rgba(47, 64, 80, .06), 0 2px 6px rgba(47, 64, 80, .04);
}
.stories-viewport { position: relative; min-height: 387px; }
.ss-slide {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 60fr 40fr; gap: 49px; align-items: center;
  opacity: 0; transform: translateY(25px); pointer-events: none;
  transition: opacity .45s ease, transform .45s ease;
}
.ss-slide.current { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.ss-copy .ss-client { font-family: var(--serif); font-size: 19px; color: var(--accent); margin: 0 0 19px; }
.ss-logo { height: 25px; width: auto; max-width: 150px; object-fit: contain; margin: 0 0 14px; }
.ss-copy h3 { font-family: var(--serif); font-size: 26px; font-weight: 700; line-height: 1.2; color: var(--ink-2); margin: 0 0 12px; }
.ss-copy > p { font-family: var(--sans); font-size: 14px; line-height: 1.6; color: #2D3748; margin: 0 0 18px; }
/* figures sit in the same dashed boxes as the founder stats */
.ss-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 405px; }

/* ---------- impact gallery ---------- */
.impact { background: #fff; padding: 70px 0 77px; }
.chip-row { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 8px 0 49px; }
.chip { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ui); font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.chip .icon { width: 21px; height: 21px; }
.chip-line { flex: 1; max-width: 132px; border-top: 2px dashed var(--dash); }
.gallery-marquee { height: 634px; }
.gallery-marquee .marquee-track { align-items: flex-start; }
/* full-length emails, tops aligned; the frame cuts them off at the bottom */
.gallery-marquee img {
  width: 176px; height: auto; flex: none;
  border-radius: var(--r-tile); margin: 0 6px; box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

/* ---------- testimonials ---------- */
.testimonials { background: var(--canvas); padding: 77px 0 18px; }
/* testimonial rows: phone mockup + pull quote, sides alternating */
.tm-row {
  display: grid; grid-template-columns: 299px 1fr; gap: 49px; align-items: center;
  margin: 0 auto; padding: 35px 0;
}
/* the media column is wider than the phone so it can sit centred in its own space */
.tm-media { display: flex; justify-content: flex-start; }
.tm-row.flip .tm-media { justify-content: flex-end; }
/* flipped rows swap the track widths too, or the copy lands in the phone column */
.tm-row.flip { grid-template-columns: 1fr 299px; }
.tm-row.flip .tm-media { order: 2; }
.tm-row.flip .tm-copy { order: 1; }

.tm-phone {
  width: 239px; max-width: 100%; aspect-ratio: 372 / 760;
  background: #26333F; border-radius: 33px; padding: 10px;
  box-shadow: 0 21px 42px rgba(47, 64, 80, .26);
}
.tm-screen { position: relative; width: 100%; height: 100%; border-radius: 26px; overflow: hidden; background: #000; }
.tm-play {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; border: 0; background: none; cursor: pointer; display: block;
}
.tm-poster { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.tm-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(38, 51, 63, 0) 40%, rgba(38, 51, 63, .72) 100%); }
.tm-orb {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 58px; border-radius: 50%; background: rgba(250, 249, 246, .94);
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
  transition: transform .2s ease;
}
.tm-orb svg { width: 21px; height: 21px; margin-left: 3px; fill: var(--accent); }
.tm-play:hover .tm-orb { transform: translate(-50%, -50%) scale(1.06); }
.tm-watch {
  position: absolute; left: 0; right: 0; bottom: 23px; text-align: center;
  font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .02em; color: #FAF9F6;
}
.tm-notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 72px; height: 19px; background: #26333F; border-radius: 12px; z-index: 2; pointer-events: none;
}
.tm-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.tm-logo { height: 32px; width: auto; margin-bottom: 25px; }
.tm-quote { font-size: 33px; line-height: 1.06; letter-spacing: -.015em; color: var(--ink-2); margin: 0; }
.tm-copy p { font-size: 15.4px; line-height: 1.6; color: #4E6273; margin: 16px 0 0; max-width: 581px; }
.tm-copy b { font-weight: 600; color: var(--ink-2); }
.tm-by { display: flex; align-items: center; gap: 14px; margin-top: 23px; flex-wrap: wrap; }
.tm-stars { color: var(--accent); font-size: 16px; letter-spacing: .22em; }
.tm-who { font-family: var(--ui); font-size: 14px; color: var(--body); }

/* ---------- FAQ ---------- */
.faq { background: var(--canvas); padding: 35px 0 84px; }
.faq-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 63px; align-items: start; }
.faq-left .h-section { text-align: left; margin-bottom: 39px; }
.faq-cta {
  background: var(--navy); border-radius: 21px; padding: 23px 26px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
}
.faq-cta p { color: #fff; font-size: 16px; font-weight: 500; line-height: 1.4; margin: 0; }
.faq-item {
  background: #fff; border-radius: 12px; margin-bottom: 12px;
  padding: 0 23px;
}
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  font-family: var(--ui); font-size: 15px; font-weight: 500; letter-spacing: -.01em;
  padding: 18px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--navy); position: relative;
  transition: transform .25s ease;
}
.faq-toggle::before, .faq-toggle::after {
  content: ""; position: absolute; background: #fff; border-radius: 1px;
  top: 50%; left: 50%; translate: -50% -50%;
}
.faq-toggle::before { width: 13px; height: 2px; }
.faq-toggle::after { width: 2px; height: 13px; }
.faq-item[open] .faq-toggle { transform: rotate(45deg); }
.faq-body { padding: 0 35px 19px 0; }
.faq-body p { font-family: var(--ui); font-size: 13px; font-weight: 400; letter-spacing: -.01em; line-height: 1.55; color: var(--body); margin: 0 0 10px; }
.faq-body p:last-child { margin-bottom: 0; }

/* ---------- closing poster ---------- */
.closing { padding: 18px 0 56px; }
.closing-card {
  background: var(--navy);
  background-image: radial-gradient(ellipse at 50% -20%, rgba(212, 184, 150, .22), transparent 60%);
  border-radius: var(--r-card); text-align: center;
  padding: 67px 56px;
}
.closing-card h2 { font-size: 44px; line-height: 1.05; color: #fff; margin: 0 0 26px; }
.closing-card .b { color: var(--cream); }
.closing-card p { font-family: var(--sans); font-size: 16px; font-weight: 400; letter-spacing: -.01em; line-height: 1.6; color: rgba(255, 255, 255, .92); max-width: 493px; margin: 0 auto 32px; }
.closing-card { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; text-align: left; }
.closing-card .closing-copy p { margin-left: 0; }
.closing-card p.closing-lead { margin-bottom: 28px; }
.closing-card p.closing-note { margin: 16px 0 0; }
.closing-side { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 24px; padding: 32px 32px 20px; }
.closing-side-title { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--cream); margin: 0 0 18px; }
.closing-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; text-align: left; }
.closing-steps li { counter-increment: step; display: flex; align-items: flex-start; gap: 12px; font-family: var(--sans); font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .92); margin: 0 0 12px; }
.closing-steps li::before { content: counter(step); flex: none; width: 25px; height: 25px; margin-top: -1px; border-radius: 50%; background: var(--cream); color: var(--navy); font-family: var(--ui); font-size: 12px; font-weight: 600; display: grid; place-items: center; }

/* ---------- footer ---------- */
.site-footer { background: #fff; padding: 63px 0 35px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 56px; margin-bottom: 56px; }
.footer-brand .brand { display: inline-block; margin-bottom: 16px; }
.footer-brand p { font-family: var(--ui); font-size: 13px; line-height: 1.6; color: #2D3748; max-width: 334px; margin: 0; }
.footer-col h4 { font-family: var(--ui); font-size: 14px; font-weight: 600; margin: 0 0 16px; }
.footer-col a { display: block; font-family: var(--ui); font-size: 13px; color: #2D3748; padding: 6px 0; }
.footer-col a:hover { color: var(--btn-hover); }
.footer-bar {
  background: var(--navy); border-radius: var(--r-pill);
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 16px 30px; margin-bottom: 25px;
}
.footer-bar p { font-family: var(--ui); font-size: 12px; letter-spacing: -.01em; line-height: 1.5; color: #fff; margin: 0; }
.footer-legal { display: flex; justify-content: space-between; padding-top: 21px; }
.footer-legal p { font-family: var(--ui); font-size: 13px; color: var(--ink); margin: 0; }

/* ---------- reveal animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0; transform: translateY(19px); filter: blur(8px);
    transition: opacity var(--reveal-dur) var(--reveal-ease),
                transform var(--reveal-dur) var(--reveal-ease),
                filter var(--reveal-dur) var(--reveal-ease);
  }
  [data-reveal].in { opacity: 1; transform: none; filter: none; }
  .split-words .w {
    display: inline-block;
    opacity: 0; transform: translateY(.35em); filter: blur(10px);
    transition: opacity .6s var(--reveal-ease),
                transform .6s var(--reveal-ease),
                filter .6s var(--reveal-ease);
    transition-delay: calc(var(--wi) * 45ms);
  }
  .split-words.in .w { opacity: 1; transform: none; filter: none; }
}

/* ==================================================================
   responsive — tablet 810–1199, phone ≤809
   ================================================================== */
@media (max-width: 1199px) {
  h1.serif { font-size: 42px; }
  .h-mission { font-size: 33px; }
  .h-section { font-size: 34px; }
  .h-team { font-size: 30px; }
  .tm-quote { font-size: 28px; }
  .closing-card h2 { font-size: 34px; }
  .hero-card { grid-template-columns: 1fr; padding: 49px 35px; }
  .hero-sub { max-width: 546px; }
  .stats-intro { grid-template-columns: 1fr; }
  .stats-photo { max-width: 422px; }
  .stats-photo .stats-row { position: static; transform: none; grid-template-columns: repeat(3, 1fr); width: auto; margin-top: 14px; }
  .svc-card { grid-template-columns: 1fr; padding: 42px 35px; }
  .svc-rail { max-width: 370px; margin: 0 auto; }
  .team-inner, .faq-inner { grid-template-columns: 1fr; }
  .cmp { padding-left: 32px; }
  .cmp-col li { font-size: 14px; padding-right: 28px; }
  .cmp-us { padding-left: 32px; }
  .ss-copy { padding: 42px 35px; }
  .ss-slide { grid-template-columns: 1fr; gap: 28px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .tm-row { grid-template-columns: 1fr; gap: 32px; justify-items: center; }
  .tm-row.flip { grid-template-columns: 1fr; }
  .tm-media, .tm-row.flip .tm-media { justify-content: center; }
  .tm-row.flip .tm-media { order: 1; }
  .tm-row.flip .tm-copy { order: 2; }
}
@media (max-width: 809px) {
  h1.serif { font-size: 25px; }
  .h-mission { font-size: 25px; }
  .h-section { font-size: 26px; }
  .h-team { font-size: 24px; }
  .tm-quote { font-size: 23px; }
  .closing-card { padding: 56px 25px; }
  .closing-card { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .closing-side { text-align: left; padding: 24px 22px 12px; }
  .closing-card h2 { font-size: 26px; }
  .nav { display: none; }
  .stats-row, .why-grid, .svc-features { grid-template-columns: 1fr; }
  .logowall { padding: 35px 0 28px; }
  .logo-cloud { grid-template-columns: repeat(2, 1fr); }
  .logo-tile { height: 84px; padding: 16px; }
  .logo-tile img { height: 19px; }
  .logo-tile img.lw-xs { height: 14px; }
  .logo-tile img.lw-sm { height: 17px; }
  .logo-tile img.lw-up { height: 23px; }
  .logo-tile img.lw-up2 { height: 26px; }
  .logo-tile img.lw-md { height: 28px; }
  .logo-tile img.lw-lg { height: 37px; }
  .logo-tile img.lw-xl { height: 53px; }
  .team-panels { grid-template-columns: 1fr; gap: 21px; }
  .cmp { grid-template-columns: 1fr; padding: 0 21px; border-radius: 25px; }
  .cmp-col h3 { font-size: 21px; padding: 32px 0 12px; }
  .cmp-col li { min-height: 49px; padding-right: 0; }
  .cmp-col ul { padding-bottom: 18px; }
  .cmp-us { margin: 8px -21px -21px; border-radius: 21px; padding: 0 21px; }
  .cmp-us h3 { padding-top: 32px; }
  .cmp-us ul { padding: 0 0 32px; }
  .team-list.grey { border-radius: 18px; }
  .hero-card { padding: 35px 19px; }
  .svc-card { padding: 32px 19px; }
  .ss-copy { padding: 35px 18px; }
  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
  .footer-bar { flex-direction: column; gap: 14px; text-align: center; }
  .chip-row { flex-wrap: wrap; }
  .chip-line { display: none; }
  .gallery-marquee { height: 475px; }
  .gallery-marquee img { width: 132px; }
}
