/* ==========================================================================
   Stainless Steel Float Ball Company — design system
   Replicates the Framer reference: cool periwinkle bands, Inter Display
   headings with tight tracking, glass floating nav, scroll-driven ball drop.
   ========================================================================== */

/* ---------- fonts (Inter v4 variable; the opsz axis IS "Inter Display") ---------- */
@font-face {
  font-family: "Inter Var";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/InterVariable.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Var";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/InterVariable-Italic.woff2") format("woff2");
}

/* ---------- tokens ---------- */
:root {
  /* surfaces */
  --page:      #edf1f5;
  --blue:      #94bcfa;   /* primary band */
  --blue-lt:   #c2dafc;   /* secondary band */
  --blue-pale: #cce0fb;   /* chips */
  --card:      rgba(197, 218, 250, .5);
  --white:     #fff;

  /* ink */
  --ink:       #000;
  --ink-70:    rgba(0, 0, 0, .75);
  --navy:      #0f366a;
  --navy-2:    #1c4d8c;
  --navy-3:    #285ea6;
  --navy-4:    #0e3569;
  --accent:    #3b76c4;   /* the blue used inside headings */
  --btn:       #487ab8;
  --btn-ink:   #3363a1;
  --ghost:     rgba(154, 186, 227, .25);
  --ghost-w:   rgba(255, 255, 255, .5);

  /* type */
  --display: "Inter Var", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body:    "Inter Var", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* layout */
  --gutter: 80px;
  --maxw: 1280px;
  --nav-h: 84px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
/* width/height attributes reserve space; they must not fight a CSS width */
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--btn); outline-offset: 3px; border-radius: 6px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--btn); color: #fff; padding: 10px 18px; border-radius: 10px;
  font-size: 14px; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- type scale ----------
   The reference uses "Inter Display" for headings — that is Inter at a large
   optical size, so we push the opsz axis instead of loading a second family. */
.d1, .d2, .d3, .mega__head, .callband__h, .hero__ghost, .hero__note,
.gradecard__title, .phero__ghost, .chip {
  font-variation-settings: "opsz" 32;
}
.d1, .d2, .d3 { font-family: var(--display); font-weight: 500; }
.d1 { font-size: clamp(38px, 4.65vw, 67px); line-height: .9; letter-spacing: -.04em; }
.d2 { font-size: clamp(32px, 3.9vw, 56px); line-height: 1.05; letter-spacing: -.03em; }
.d3 { font-size: clamp(28px, 3.75vw, 54px); line-height: 1.1;  letter-spacing: -.01em; }
.h-sec {
  font-family: var(--body); font-weight: 500;
  font-size: clamp(26px, 2.4vw, 34px); line-height: 1.05; letter-spacing: -.05em;
}
.h-card {
  font-family: var(--body); font-weight: 700;
  font-size: clamp(20px, 1.7vw, 24px); line-height: 1.05; letter-spacing: -.05em;
  color: var(--navy-3);
}
.lead { font-size: 15px; line-height: 1.6; letter-spacing: -.02em; color: var(--navy-4); }
.acc { color: var(--accent); }

/* ---------- shell ---------- */
.wrap { max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.band { position: relative; }
.band--blue  { background: var(--blue); }
.band--light { background: var(--blue-lt); }
.band--page  { background: var(--page); }

/* ---------- floating glass nav ---------- */
.nav {
  position: fixed; z-index: 60;
  top: 23px; left: 10%; right: 10%;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px;
  background: rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .08);
  transition: top .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}
.nav.is-tucked { box-shadow: 0 10px 40px rgba(0, 0, 0, .13); background: rgba(255, 255, 255, .68); }
.nav__brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nav__brand img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.nav__name { font-size: 15px; font-weight: 600; line-height: 1.2; color: var(--navy); letter-spacing: -.01em; }
.nav__sub  { font-size: 10px; font-weight: 400; line-height: 1.2; color: var(--navy); }
.nav__right { display: flex; align-items: center; gap: 34px; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__link {
  position: relative; font-size: 16px; letter-spacing: -.02em; color: #000;
  padding: 4px 0; transition: color .25s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav__link:hover { color: var(--btn-ink); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__tel {
  display: inline-flex; align-items: center; gap: 8px;
  background: #16181c; color: #fff; border-radius: 999px;
  padding: 11px 20px; font-size: 14px; white-space: nowrap;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.nav__tel:hover { transform: translateY(-2px); background: #000; }
.nav__tel svg { width: 14px; height: 14px; flex: none; }
.nav__burger {
  display: none; width: 42px; height: 42px; border: 0; background: transparent;
  padding: 0; cursor: pointer; align-items: center; justify-content: center;
}
.nav__burger span {
  display: block; width: 20px; height: 1.6px; background: var(--navy); position: relative;
  transition: transform .35s var(--ease), opacity .2s;
}
.nav__burger span::before, .nav__burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 1.6px; background: var(--navy);
  transition: transform .35s var(--ease);
}
.nav__burger span::before { top: -6px; }
.nav__burger span::after  { top: 6px; }
.nav.is-open .nav__burger span { background: transparent; }
.nav.is-open .nav__burger span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__burger span::after  { transform: translateY(-6px) rotate(-45deg); }

/* mobile drawer */
.mobnav {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(237, 241, 245, .96);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 120px 32px 40px;
  opacity: 0; pointer-events: none; transform: translateY(-12px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.mobnav.is-open { opacity: 1; pointer-events: auto; transform: none; }
.mobnav a {
  font-family: var(--display); font-size: 30px; font-weight: 500; letter-spacing: -.035em;
  color: var(--navy); padding: 12px 0; border-bottom: 1px solid rgba(15, 54, 106, .12);
}
.mobnav .mobnav__cta {
  margin-top: 24px; border: 0; background: var(--btn); color: #fff; border-radius: 999px;
  text-align: center; font-size: 17px; padding: 16px;
}

/* ---------- floating quote FAB ---------- */
.fab {
  position: fixed; right: 80px; bottom: 68px; z-index: 60;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 18px 30px; border-radius: 999px;
  background: var(--btn); color: var(--page);
  font-size: 18px; letter-spacing: -.01em;
  box-shadow: 0 14px 34px rgba(21, 60, 110, .28);
  animation: fab-breathe 3.6s ease-in-out infinite;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.fab:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 20px 44px rgba(21, 60, 110, .34); }
@keyframes fab-breathe {
  0%, 100% { box-shadow: 0 14px 34px rgba(21, 60, 110, .28); }
  50%      { box-shadow: 0 14px 34px rgba(21, 60, 110, .28), 0 0 0 12px rgba(72, 122, 184, .12); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; font-size: 14px; line-height: 1.4; letter-spacing: -.005em;
  border: 1px solid transparent; padding: 13px 26px; cursor: pointer;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn svg { width: 14px; height: 14px; flex: none; }
.btn--solid  { background: var(--btn); color: #fff; }
.btn--solid:hover { background: #3b6aa6; transform: translateY(-2px); }
.btn--ghost  { background: transparent; color: var(--btn-ink); border-color: rgba(51, 99, 161, .55); }
.btn--ghost:hover { background: rgba(255, 255, 255, .45); transform: translateY(-2px); }
.btn--dark   { background: #16181c; color: #fff; }
.btn--dark:hover { background: #000; transform: translateY(-2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; }
.hero__inner { position: relative; z-index: 3; padding-top: 137px; min-height: 794px; }
.hero__title { max-width: 640px; color: #fff; }
.hero__cta { margin-top: 39px; }
.hero__note {
  position: absolute; right: var(--gutter); top: 497px; z-index: 3;
  max-width: 300px; text-align: right;
  font-family: var(--display); font-weight: 500; font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.1; letter-spacing: -.01em; color: var(--navy-2);
}
.hero__ghost {
  position: absolute; left: 0; top: 544px; width: 100%; z-index: 1;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(58px, 11.4vw, 163px); line-height: 1; letter-spacing: -.04em;
  color: var(--ghost); white-space: nowrap; pointer-events: none;
  padding-left: 4px;
}

/* the scroll-driven steel ball */
.ballstage { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.ball {
  position: absolute; left: 50%; top: 260px;
  width: min(400px, 46vw);
  margin-left: calc(min(400px, 46vw) / -2 - 111px);
  will-change: transform;
  filter: drop-shadow(0 40px 60px rgba(23, 58, 105, .25));
}
.ball img { width: 100%; height: auto; }

/* ---------- call band ---------- */
.callband { position: relative; z-index: 3; padding: 90px 0 542px; text-align: center; }
.callband__h { color: rgba(255, 255, 255, .77); max-width: 900px; margin: 0 auto; }
.callband .btn { margin-top: 40px; }

/* ---------- stats strip ---------- */
.stats { padding: 44px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 42px; }
.stat__top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding-bottom: 9px; border-bottom: 1px solid rgba(0, 0, 0, .55);
}
.stat__num { font-size: 20px; font-weight: 500; letter-spacing: -.05em; line-height: 1.05; }
.stat__arrow { font-size: 13px; opacity: .8; transition: transform .35s var(--ease); }
.stat:hover .stat__arrow { transform: translateX(4px); }
.stat__label { margin-top: 10px; font-size: 15px; font-weight: 300; letter-spacing: -.02em; line-height: 1.4; }

/* ---------- mega card ---------- */
.mega { padding: 60px 0 120px; }
.mega__card { background: var(--blue); border-radius: 20px; padding: 66px 40px 40px; overflow: hidden; }
.mega__head { text-align: center; max-width: 760px; margin: 0 auto; color: #fff; }
.mega__balls { margin: 32px auto -10px; max-width: 700px; }
.mega__balls img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(23, 58, 105, .22)); }

.bento { display: grid; grid-template-columns: 283px 1fr; gap: 16px; margin-top: 26px; }
.bento__col { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.tile {
  background: var(--card); border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 15px; padding: 30px 28px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 34px;
  transition: transform .5s var(--ease), background .5s var(--ease);
}
.tile:hover { transform: translateY(-4px); background: rgba(206, 226, 253, .62); }
.tile--map { padding-bottom: 0; gap: 12px; }
.tile--map .tile__map { margin: 6px -10px 0; }
.tile--map .tile__map img { width: 100%; height: auto; }
.tile__title { color: var(--navy-3); }
.tile--map .tile__title { color: var(--navy-3); }

.grades {
  display: grid; grid-template-columns: 1fr 283px; gap: 16px; margin-top: 16px;
}
.gradecard {
  position: relative; border-radius: 15px; overflow: hidden; min-height: 332px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 30px 0 34px;
}
.gradecard__bg { position: absolute; inset: 0; z-index: 0; }
.gradecard__bg img { width: 100%; height: 100%; object-fit: cover; }
.gradecard__bg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .28); }
.gradecard__title {
  position: relative; z-index: 2; padding: 0 30px; color: #fff;
  font-family: var(--display); font-weight: 500; font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.1; letter-spacing: -.01em;
}

/* marquee */
.marquee { position: relative; z-index: 2; display: grid; gap: 10px; overflow: hidden; }
.marquee__row { display: flex; width: max-content; gap: 10px; will-change: transform; }
.marquee__row--a { animation: marquee-l 38s linear infinite; }
.marquee__row--b { animation: marquee-r 44s linear infinite; }
.marquee:hover .marquee__row { animation-play-state: paused; }
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue-pale); color: #151515; border-radius: 11px;
  padding: 10px 18px; white-space: nowrap;
  font-family: var(--display); font-weight: 500; font-size: 10px; letter-spacing: -.01em; line-height: 1.1;
}
@keyframes marquee-l { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
@keyframes marquee-r { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ---------- where floats go ---------- */
.reach { position: relative; padding: 110px 0 120px; overflow: hidden; }
.reach__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.reach__intro { max-width: 420px; }
.reach__intro p { margin-top: 18px; font-size: 15px; line-height: 1.55; letter-spacing: -.015em; }
.reach__globe {
  position: absolute; left: -90px; bottom: -160px; z-index: 1;
  width: 784px; height: 844px; max-width: 62vw; pointer-events: none;
  opacity: .95;
}
.reach__list { padding-top: 210px; }
.reachrow {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 13px 0 12px; border-bottom: 1px solid rgba(0, 0, 0, .5);
  font-size: 19px; letter-spacing: -.01em;
  transition: padding-left .4s var(--ease), color .3s var(--ease);
}
.reachrow:hover { padding-left: 10px; color: var(--btn-ink); }
.reachrow span:last-child { transition: transform .4s var(--ease); }
.reachrow:hover span:last-child { transform: translateX(6px); }

/* ---------- testimonials ---------- */
.testi { position: relative; height: 2200px; }
.testi__sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.testi__ghost {
  position: absolute; z-index: 1; text-align: center; width: 100%;
  font-family: var(--body); font-weight: 600;
  font-size: clamp(64px, 13vw, 187px); line-height: 1; letter-spacing: -.011em;
  color: var(--ghost-w); pointer-events: none; user-select: none;
}
.testi__cards { position: absolute; inset: 0; z-index: 2; }
.tcard {
  position: absolute; width: 360px; max-width: 78vw;
  background: #fff; border-radius: 28px; padding: 30px 34px;
  box-shadow: 0 24px 60px rgba(19, 51, 96, .16);
  will-change: transform;
}
.tcard p { font-size: 15px; font-weight: 300; line-height: 1.25; color: var(--ink-70); }
.tcard__who { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.tcard__who img { width: 30px; height: 26px; border-radius: 5px; object-fit: cover; flex: none; }
.tcard__who div { font-size: 10px; line-height: 1.2; color: var(--ink-70); }

/* ---------- FAQ ---------- */
.faq { padding: 118px 0 130px; }
.faq__grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 60px; }
.faq__h { font-size: clamp(32px, 3.1vw, 45px); font-weight: 500; line-height: 1.2; letter-spacing: -.005em; }
.faq__support { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 17px; font-weight: 500; }
.faq__support span { transition: transform .35s var(--ease); }
.faq__support:hover span { transform: translateX(5px); }
.faqitem { border-bottom: 1px solid rgba(0, 0, 0, .5); }
.faqitem__q {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 17px 0 16px; font-size: clamp(19px, 1.7vw, 24px); font-weight: 300; letter-spacing: -.01em;
  transition: color .3s var(--ease);
}
.faqitem__q:hover { color: var(--btn-ink); }
.faqitem__q svg { width: 14px; height: 14px; flex: none; transition: transform .4s var(--ease); }
.faqitem.is-open .faqitem__q svg { transform: rotate(180deg); }
.faqitem__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faqitem.is-open .faqitem__a { grid-template-rows: 1fr; }
.faqitem__a > div { overflow: hidden; }
.faqitem__a p { padding: 0 0 22px; max-width: 62ch; font-size: 15px; line-height: 1.65; color: var(--navy-4); }

/* ---------- 3-up product strip ---------- */
.trio { padding: 62px 0 66px; }
.trio__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 114px; }
.trio__icon { width: 19px; height: 19px; object-fit: contain; margin-bottom: 14px; }
.trio__top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 9px; border-bottom: 1px solid rgba(0, 0, 0, .55);
  font-size: clamp(17px, 1.4vw, 20px); font-weight: 500; letter-spacing: -.04em;
}
.trio__top span { transition: transform .35s var(--ease); }
.trio__item:hover .trio__top span { transform: translateX(5px); }
.trio__list { margin-top: 16px; display: grid; gap: 9px; }
.trio__list li { display: flex; gap: 9px; font-size: 12px; font-weight: 300; letter-spacing: -.02em; line-height: 1.4; }
.trio__list svg { width: 12px; height: 12px; flex: none; margin-top: 3px; }

/* ---------- quote ---------- */
.quote { padding: 96px 0 110px; }
.quote__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.quote__h { font-size: clamp(30px, 2.8vw, 40px); font-weight: 500; line-height: 1.4; letter-spacing: -.04em; max-width: 400px; }
.qform {
  background: #fff; border-radius: 16px; padding: 28px 30px 30px;
  box-shadow: 0 26px 60px rgba(19, 51, 96, .14);
}
.qform__eyebrow { font-size: 17px; font-weight: 600; color: #4a83d9; margin-bottom: 18px; }
.qform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 500; color: #888; }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid #e3e6ea; background: transparent;
  padding: 8px 0 9px; font-size: 14px; color: #111; border-radius: 0;
  transition: border-color .3s var(--ease);
}
.field textarea { min-height: 86px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #b9bec6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--btn); }
.qform__submit {
  margin-top: 20px; width: 100%; border: 0; cursor: pointer;
  background: var(--btn); color: #fff; border-radius: 8px; padding: 13px;
  font-size: 14px; font-weight: 600;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.qform__submit:hover { background: #3b6aa6; transform: translateY(-2px); }
.qform__note { margin-top: 12px; font-size: 12px; color: #98a0ab; text-align: center; }

/* ---------- footer ---------- */
.footer { padding: 40px 0 76px; }
.footer__card {
  position: relative; overflow: hidden;
  max-width: 1066px; margin: 0 auto;
  background: rgba(255, 255, 255, .62); border-radius: 16px; padding: 0;
}
.footer__top {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 32px; background: rgba(255, 255, 255, .45);
  border-bottom: 1px solid rgba(255, 255, 255, .7);
}
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__brand img { width: 38px; height: 38px; object-fit: contain; }
.footer__copy { font-size: 18px; }
.footer__cols {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: .8fr 1.5fr .85fr; gap: 40px;
  padding: 46px 32px 52px 300px;
}
.footer__cols > * { min-width: 0; }
.footer__globe { position: absolute; left: 26px; bottom: 10px; width: 250px; height: 236px; z-index: 1; opacity: .55; }
.footer__coltitle {
  display: flex; align-items: center; gap: 10px;
  font-size: 21px; font-weight: 600; margin-bottom: 16px;
}
.footer__coltitle::before { content: ""; width: 3px; height: 22px; background: #000; border-radius: 2px; }
.footer__cols a, .footer__cols li { font-size: 16px; line-height: 1.9; }
.footer__cols a { transition: color .25s var(--ease), transform .25s var(--ease); display: inline-block; }
.footer__cols a:hover { color: var(--btn-ink); transform: translateX(3px); }
.footer__contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer__contact li > a, .footer__contact li > span { min-width: 0; overflow-wrap: anywhere; }
.footer__contact svg { width: 17px; height: 17px; flex: none; margin-top: .45em; }
.footer__legal {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 18px 32px; padding-right: 250px; border-top: 1px solid rgba(255, 255, 255, .7);
  font-size: 13px; color: rgba(0, 0, 0, .6);
}
.footer__legal a:hover { color: var(--btn-ink); }

/* ---------- inner-page hero ---------- */
.phero { position: relative; overflow: hidden; padding: 210px 0 96px; }
.phero__crumbs { font-size: 13px; letter-spacing: -.01em; color: var(--navy-2); margin-bottom: 22px; }
.phero__crumbs a { transition: color .25s; }
.phero__crumbs a:hover { color: #fff; }
.phero__title { max-width: 15ch; color: #fff; }
.phero__sub { margin-top: 22px; max-width: 60ch; font-size: 17px; line-height: 1.55; letter-spacing: -.015em; color: var(--navy-2); }
.phero__cta { margin-top: 32px; }
.phero__ghost {
  position: absolute; right: -20px; bottom: -26px; z-index: 0;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(60px, 10vw, 150px); line-height: 1; letter-spacing: -.04em;
  color: var(--ghost); white-space: nowrap; pointer-events: none;
}
.phero__ball {
  position: absolute; right: 6%; top: 150px; width: min(360px, 30vw); z-index: 1;
  filter: drop-shadow(0 40px 60px rgba(23, 58, 105, .25));
  animation: bob 7s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-22px) rotate(3deg); } }

/* ---------- generic content sections ---------- */
.sec { padding: 88px 0; }
.sec--tight { padding: 62px 0; }
.sec__head { max-width: 760px; margin-bottom: 44px; }
.sec__head p { margin-top: 16px; font-size: 16px; line-height: 1.6; letter-spacing: -.015em; color: var(--navy-4); }
.sec__head--center { margin-left: auto; margin-right: auto; text-align: center; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--card); border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 15px; padding: 28px 26px 30px;
  transition: transform .5s var(--ease), background .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover { transform: translateY(-5px); background: rgba(206, 226, 253, .66); box-shadow: 0 18px 44px rgba(19, 51, 96, .12); }
.card p { font-size: 15px; line-height: 1.55; letter-spacing: -.015em; color: var(--navy-4); }
.card__more {
  margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--btn-ink);
}
.card__more span { transition: transform .35s var(--ease); }
.card:hover .card__more span { transform: translateX(5px); }
.card--white { background: rgba(255, 255, 255, .62); }
.card--white:hover { background: rgba(255, 255, 255, .8); }

.card__media { margin: -28px -26px 4px; border-radius: 15px 15px 0 0; overflow: hidden; aspect-ratio: 16 / 10; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }

/* spec table */
.spectable { width: 100%; border-collapse: collapse; font-size: 15px; }
.spectable caption { text-align: left; font-size: 13px; color: var(--navy-2); padding-bottom: 10px; }
.spectable th, .spectable td { text-align: left; padding: 13px 16px; border-bottom: 1px solid rgba(0, 0, 0, .12); }
.spectable thead th { font-weight: 600; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; color: var(--navy-2); }
.spectable tbody tr { transition: background .3s var(--ease); }
.spectable tbody tr:hover { background: rgba(255, 255, 255, .38); }
.tablewrap { overflow-x: auto; background: rgba(255, 255, 255, .5); border-radius: 15px; padding: 8px 6px; }

/* checklist */
.checks { display: grid; gap: 11px; }
.checks li { display: flex; gap: 10px; font-size: 15px; line-height: 1.5; letter-spacing: -.015em; color: var(--navy-4); }
.checks svg { width: 14px; height: 14px; flex: none; margin-top: 4px; color: var(--btn-ink); }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
/* vertical rhythm inside any text column (headings, paragraphs, lists, tables) */
.split > *:not(.split__media) > * + *,
.sec > .wrap > * + *:not(section):not(.cards):not(.split):not(.sec__head) { margin-top: 18px; }
.split > *:not(.split__media) > * + h2,
.split > *:not(.split__media) > * + h3,
.sec > .wrap > * + h2,
.sec > .wrap > * + h3 { margin-top: 32px; }
.sec > .wrap > * + .cards,
.sec > .wrap > * + .split,
.sec > .wrap > * + .tablewrap,
.sec > .wrap > * + .masonry { margin-top: 30px; }
.sec__head + * { margin-top: 0; }
.split__media { border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(19, 51, 96, .16); }
.split__media img, .split__media video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* CTA band */
.ctaband { padding: 96px 0; text-align: center; }
.ctaband h2 { color: #fff; max-width: 18ch; margin: 0 auto; }
.ctaband p { margin: 18px auto 0; max-width: 56ch; color: var(--navy-2); font-size: 17px; letter-spacing: -.015em; }
.ctaband .btn-row { justify-content: center; margin-top: 30px; }

/* gallery */
.masonry { columns: 3; column-gap: 16px; }
.masonry figure { break-inside: avoid; margin: 0 0 16px; border-radius: 15px; overflow: hidden; box-shadow: 0 16px 40px rgba(19, 51, 96, .12); }
.masonry img, .masonry video { width: 100%; height: auto; display: block; transition: transform .8s var(--ease); }
.masonry figure:hover img { transform: scale(1.04); }

/* ---------- narrow-viewport safety ----------
   Grid and flex children default to min-width:auto, so a wide table or a long
   unbroken string (an email address) can push a track past the viewport.
   Opt every layout child out of that, and let long words wrap. */
.cards > *, .cards--2 > *, .split > *, .bento > *, .bento__col > *,
.grades > *, .reach__grid > *, .faq__grid > *, .quote__grid > *,
.trio__grid > *, .stats__grid > *, .footer__cols > *, .tablewrap {
  min-width: 0;
}
p, li, h1, h2, h3, h4, h5, h6, td, th, .lead, .card p, .footer__cols a {
  overflow-wrap: break-word;
}
.footer__contact li, .footer__contact a, .qform__note, .phero__crumbs { overflow-wrap: anywhere; }

/* ---------- scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); }
.is-revealed[data-reveal] { opacity: 1; transform: none; transition: opacity .85s var(--ease), transform .85s var(--ease); }
[data-reveal="scale"] { transform: translateY(30px) scale(.97); }
.is-revealed[data-reveal="scale"] { transform: none; }
[data-reveal="left"] { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
.is-revealed[data-reveal="left"], .is-revealed[data-reveal="right"] { transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  :root { --gutter: 48px; }
  .nav { left: 4%; right: 4%; }
  .bento { grid-template-columns: 1fr; }
  .bento__col { grid-template-rows: auto auto; }
  .grades { grid-template-columns: 1fr; }
  .reach__list { padding-top: 40px; }
  .reach__globe { opacity: .32; left: -160px; bottom: -220px; }
  .trio__grid { gap: 48px; }
  .footer__cols { padding-left: 32px; }
  .footer__globe { display: none; }
}
@media (max-width: 900px) {
  :root { --gutter: 26px; --nav-h: 68px; }
  .nav { top: 14px; padding: 14px 18px; height: auto; }
  .nav__right .nav__links, .nav__right .nav__tel { display: none; }
  .nav__burger { display: flex; }
  /* stack the hero: title → ball → note → ghost → call band */
  .hero { min-height: auto; padding-bottom: 30px; display: flex; flex-direction: column; }
  .hero__inner { padding-top: 126px; min-height: 0; order: 1; }
  .ballstage { position: relative; inset: auto; height: auto; margin: 26px 0 4px; order: 2; }
  .ball {
    position: relative; left: auto; top: auto; margin: 0 auto;
    width: 62vw; transform: none !important;
  }
  .hero__note {
    position: static; order: 3; margin: 22px 0 0; text-align: left; max-width: 100%;
    padding: 0 var(--gutter);
  }
  .hero__ghost {
    position: static; order: 4; margin: 30px 0 0; white-space: normal;
    padding: 0 var(--gutter); font-size: 15vw; line-height: .95;
  }
  .callband { order: 5; padding: 66px 0 74px; }
  .callband { padding: 70px 0 76px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .mega { padding: 30px 0 70px; }
  .mega__card { padding: 40px 20px 24px; }
  .split, .quote__grid, .faq__grid, .reach__grid { grid-template-columns: 1fr; gap: 34px; }
  .trio__grid { grid-template-columns: 1fr; gap: 34px; }
  .qform__grid { grid-template-columns: 1fr; }
  .testi { height: auto; }
  .testi__sticky { position: static; height: auto; display: block; padding: 76px 0 90px; }
  .testi__ghost { position: static; margin-bottom: 30px; }
  .testi__cards { position: static; display: grid; gap: 16px; padding: 0 var(--gutter); }
  .tcard { position: static !important; width: 100%; transform: none !important; }
  .footer__cols { grid-template-columns: 1fr; gap: 30px; padding: 34px 24px 40px; }
  .footer__top { flex-direction: column; align-items: flex-start; padding: 20px 24px; }
  .footer__legal { padding: 16px 24px; }
  .fab { right: 18px; bottom: 18px; padding: 14px 22px; font-size: 15px; }
  .phero { padding: 140px 0 62px; }
  .phero__ball { position: static; margin: 30px auto 0; width: 56vw; }
  .phero__ghost { display: none; }
  .masonry { columns: 2; }
  .sec { padding: 60px 0; }
  .reach { padding: 70px 0 80px; }
  .faq { padding: 70px 0 80px; }
  .quote { padding: 62px 0 70px; }
}
@media (max-width: 560px) {
  .stats__grid { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .d1 { font-size: 40px; }
}
@media (max-width: 400px) {
  :root { --gutter: 18px; }
  .nav { padding: 12px 14px; }
  .nav__brand img { width: 34px; height: 34px; }
  .fab { right: 12px; bottom: 12px; padding: 12px 18px; font-size: 14px; }
  .footer__top, .footer__legal { padding-left: 18px; padding-right: 18px; }
  .footer__cols { padding: 30px 18px 34px; }
  .trio__grid, .cards, .cards--2 { grid-template-columns: 1fr; }
}
/* the floating CTA steps aside while a hero call-to-action is on screen */
.fab.is-parked { opacity: 0; pointer-events: none; transform: translateY(12px) scale(.9); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .ball { transform: none !important; }
}
