/* ==========================================================================
   Massive Financial — David Bryan
   ========================================================================== */

:root {
  /* Brand */
  --navy-900: #060f22;
  --navy-800: #0a1b3d;
  --navy-700: #0e2650;
  --navy-600: #143165;
  --blue-600: #1d4ed8;
  --blue-500: #2f6bff;
  --blue-400: #4d90ff;
  --blue-300: #7fb2ff;
  --plum-900: #262040;
  --plum-800: #2e2749;

  --ink: #101828;
  --ink-soft: #475467;
  --ink-mute: #667085;
  --line: #e6e9f0;
  --surface: #ffffff;
  --surface-alt: #f5f7fb;
  --gold: #e0b23c;

  /* Type */
  --font-display: "Satoshi", "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-body: "General Sans", "Satoshi", ui-sans-serif, system-ui, sans-serif;

  --step--1: clamp(0.895rem, 0.87rem + 0.12vw, 0.975rem);
  --step-0: clamp(1.045rem, 1.01rem + 0.17vw, 1.15rem);
  --step-1: clamp(1.2rem, 1.13rem + 0.32vw, 1.42rem);
  --step-2: clamp(1.55rem, 1.38rem + 0.78vw, 2.18rem);
  --step-3: clamp(1.98rem, 1.6rem + 1.7vw, 3.1rem);
  --step-4: clamp(2.1rem, 1.55rem + 2.35vw, 3.35rem);

  /* Space */
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 7vw, 7rem);
  --maxw: 1475px;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-card: 0 18px 45px -22px rgba(10, 27, 61, 0.28);
  --shadow-float: 0 26px 60px -26px rgba(10, 27, 61, 0.42);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.68;
  color: var(--ink-soft);
  background: var(--surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0 0 0.6em;
  font-weight: 700;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.791rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--blue-500);
  border-radius: 2px;
}
.eyebrow--center { justify-content: center; }
.eyebrow--light { color: var(--blue-300); }
.eyebrow--light::before { background: var(--blue-300); }

.section { padding-block: var(--section-y); }
.section-head { max-width: 640px; margin-inline: auto; text-align: center; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-head p { color: var(--ink-mute); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.073rem;
  letter-spacing: -0.01em;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(180deg, var(--blue-500), var(--blue-600));
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(47, 107, 255, 0.7);
}
.btn--primary:hover { box-shadow: 0 20px 38px -12px rgba(47, 107, 255, 0.85); }
.btn--ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.16); }
.btn--light { background: #fff; color: var(--navy-800); box-shadow: var(--shadow-card); }
.btn--outline { background: transparent; color: var(--navy-800); border-color: var(--line); }
.btn--outline:hover { border-color: var(--blue-500); color: var(--blue-600); }
.btn--sm { padding: 0.62rem 1.25rem; font-size: 0.96rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--navy-800);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.masthead.is-stuck { box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.85); }
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: none;
}
.brand__type { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.brand__tag {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-300);
}

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav a {
  font-family: var(--font-display);
  font-size: 0.994rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.76);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav a:hover, .nav a.is-active { color: #fff; background: rgba(255, 255, 255, 0.08); }

.masthead__cta { display: flex; align-items: center; gap: 0.6rem; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  padding: 0;
  place-items: center;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav {
  display: none;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  /* never taller than the space under the sticky masthead, and always scrollable */
  max-height: calc(100dvh - var(--mast-h, 76px) - 8px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav.is-open { display: block; }
/* Panel owns the bottom breathing room so the CTA never sits flush on the edge. */
.mobile-nav > .shell { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); }
.mobile-nav ul { list-style: none; margin: 0; padding: 0.6rem 0 0; }
/* Scoped to list links only — an unscoped `.mobile-nav a` outranks `.btn`
   and would strip the CTA's centering, padding and pill shape. */
.mobile-nav ul a {
  display: block;
  padding: 0.85rem 0.25rem;
  font-family: var(--font-display);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.mobile-nav ul li:last-child a { border-bottom: 0; }
.mobile-nav .btn { margin-top: 1.25rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 82% 8%, rgba(47, 107, 255, 0.42) 0%, rgba(10, 27, 61, 0) 62%),
    radial-gradient(90% 80% at 8% 92%, rgba(29, 78, 216, 0.36) 0%, rgba(10, 27, 61, 0) 60%),
    linear-gradient(160deg, #0a1b3d 0%, #0d245a 52%, #0a1b3d 100%);
  padding-block: clamp(2.4rem, 5vw, 4rem) clamp(5.5rem, 9vw, 8rem);
  overflow: hidden;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 78%);
  z-index: -1;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1.42fr) minmax(0, 1.08fr);
  gap: clamp(1rem, 3vw, 2.6rem);
  align-items: center;
}
.hero__figure {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4.05;
  box-shadow: var(--shadow-float);
}
.hero__figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
.hero__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 27, 61, 0) 40%, rgba(10, 27, 61, 0.6) 100%);
}
.hero__figure--b { aspect-ratio: 3 / 4.05; }

.hero__copy { text-align: center; color: #fff; }
.hero__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 1rem;
  margin-bottom: 1.4rem;
  font-family: var(--font-display);
  font-size: 0.927rem;
  color: rgba(255, 255, 255, 0.72);
}
.hero__pills span { display: inline-flex; align-items: center; gap: 1rem; }
.hero__pills span:not(:last-child)::after {
  content: "";
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.28);
}
.hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 1.2rem + 2.5vw, 3.05rem);
  max-width: 15ch;
  margin-inline: auto;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  margin-bottom: 0.5em;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--blue-400); }
.hero__lede {
  max-width: 45ch;
  margin: 0 auto 1.6rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: var(--step-0);
}
.hero__checks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.6rem;
  margin-bottom: 1.8rem;
  font-size: 0.972rem;
  color: var(--blue-300);
  font-family: var(--font-display);
  font-weight: 500;
}
.hero__checks li { list-style: none; display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__checks svg { flex: none; }
.hero__checks ul, .hero__checks { padding: 0; margin-left: 0; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; }

.hero__trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
  padding-top: clamp(1.6rem, 3vw, 2.2rem);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.trust {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.938rem;
  font-family: var(--font-display);
  line-height: 1.3;
}
.trust__icon {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: var(--blue-300);
}
.trust strong { display: block; color: #fff; font-weight: 700; }

/* notch under hero */
.notch {
  position: relative;
  height: 0;
}
.notch::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -1px;
  transform: translateX(-50%);
  width: min(420px, 56%);
  height: 40px;
  background: var(--surface);
  clip-path: polygon(0 0, 100% 0, calc(100% - 42px) 100%, 42px 100%);
}

/* ---------- About / collage ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.collage { position: relative; padding-bottom: 4.2rem; }
.collage__main {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3.35;
}
.collage__main img { width: 100%; height: 100%; object-fit: cover; }
.collage__inset {
  position: absolute;
  right: -6%;
  bottom: 0;
  width: 52%;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: var(--shadow-float);
  aspect-ratio: 4 / 3;
}
.collage__inset img { width: 100%; height: 100%; object-fit: cover; }

.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #fff;
  border-radius: var(--r-md);
  padding: 0.7rem 1rem;
  box-shadow: var(--shadow-float);
  font-family: var(--font-display);
}
.chip strong { display: block; font-size: 1.05rem; color: var(--ink); line-height: 1.1; }
.chip small { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.chip--years {
  top: 9%;
  right: -4%;
  width: 156px;
  flex-direction: column;
  gap: 0.1rem;
  text-align: center;
  background: linear-gradient(180deg, var(--blue-500), var(--blue-600));
  padding: 1rem 1.15rem;
  border-radius: var(--r-md);
}
.chip--years strong { color: #fff; font-size: 1.65rem; }
.chip--years small { color: rgba(255, 255, 255, 0.9); line-height: 1.32; letter-spacing: 0.07em; font-size: 0.74rem; white-space: normal; }
.chip--clients { bottom: 1.1rem; left: -5%; }
.chip--clients img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }

.stat-card {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 0;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.stat-card__body { padding: 1.4rem 1.5rem; }
.stat-card__top { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.stat-card__badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--blue-500), var(--blue-600));
  color: #fff;
  flex: none;
}
.stat-card__top strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); line-height: 1; display: block; }
.stat-card__top small { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.ticks li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 1.017rem; }
.ticks svg { flex: none; margin-top: 3px; color: var(--blue-500); }
.stat-card__media { min-height: 250px; }
.stat-card__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Services ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 2.4vw, 2rem);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-300));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-float); border-color: transparent; }
.card:hover::before { opacity: 1; }
.card__icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(47, 107, 255, 0.1);
  color: var(--blue-600);
  margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 1.051rem; color: var(--ink-mute); }
.card__list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.4rem; }
.card__list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.994rem;
  color: var(--ink-soft);
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-400);
}

/* ---------- Pillars strip ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.pillar { background: #fff; padding: 1.5rem 1.4rem; }
.pillar strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.pillar p { font-size: 0.983rem; color: var(--ink-mute); }

/* ---------- CTA band (claims analog) ---------- */
.band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 0;
}
.band__photo {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1.06;
  z-index: 2;
  box-shadow: var(--shadow-card);
}
.band__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.band__glow {
  position: absolute;
  inset: -12% auto auto -12%;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.22), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}
.band__body {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.6rem, 3vw, 2.6rem);
  padding-left: clamp(1.6rem, 3vw + 2.5rem, 4.6rem);
  margin-left: -2.5rem;
  box-shadow: var(--shadow-card);
  z-index: 1;
}
.band__body h2 { font-size: var(--step-2); margin-bottom: 0.5rem; }
.band__body p { font-size: 1.051rem; color: var(--ink-mute); }
.band__cta {
  background: linear-gradient(170deg, var(--blue-500), var(--blue-600));
  border-radius: var(--r-md);
  padding: clamp(1.8rem, 3vw, 2.4rem) 1.4rem;
  text-align: center;
  color: #fff;
  margin-left: -1.5rem;
  z-index: 2;
  box-shadow: 0 22px 45px -20px rgba(29, 78, 216, 0.75);
}
.band__cta .or { display: block; margin: 0.9rem 0 0.4rem; font-size: 0.814rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.75; }
.band__cta small { display: block; font-size: 0.791rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; margin-bottom: 0.2rem; }
.band__cta a.mail { color: #fff; font-family: var(--font-display); font-weight: 500; font-size: 1.04rem; border-bottom: 1px solid rgba(255,255,255,0.5); }

/* ---------- Process (dark) ---------- */
.process {
  position: relative;
  background: linear-gradient(150deg, var(--plum-900) 0%, #1f1b36 55%, var(--plum-800) 100%);
  color: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}
.process::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 20% 10%, rgba(47, 107, 255, 0.2), transparent 60%);
}
.process .shell { position: relative; }
.process h2, .process h3 { color: #fff; }
.process .section-head p { color: rgba(255, 255, 255, 0.6); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 2.4rem);
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 152px;
  left: 16%;
  right: 16%;
  border-top: 1px dashed rgba(255, 255, 255, 0.28);
}
.step { text-align: center; position: relative; }
.step__ring {
  width: clamp(148px, 17vw, 226px);
  height: clamp(148px, 17vw, 226px);
  margin: 0 auto;
  border-radius: 50%;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
}
.step__ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.step__num {
  position: relative;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 1rem 0 1rem;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--blue-500), var(--blue-600));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
  box-shadow: 0 0 0 6px rgba(47, 107, 255, 0.16);
}
.step h3 { font-size: 1.02rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.972rem; max-width: 30ch; margin-inline: auto; }

/* ---------- Testimonials ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}
@media (min-width: 760px) {
  .quotes { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1180px) {
  .quotes { grid-template-columns: repeat(4, 1fr); }
}
.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.5rem 1.5rem 1.4rem;
  position: relative;
  box-shadow: var(--shadow-card);
}
.quote__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.9rem; }
.quote__mark { font-family: var(--font-display); font-size: 2.4rem; line-height: 0.7; color: rgba(47, 107, 255, 0.28); }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.quote p { font-size: 1.017rem; color: var(--ink-mute); }
.quote__who { display: flex; align-items: center; gap: 0.7rem; margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.quote__who img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.quote__who strong { display: block; font-family: var(--font-display); font-size: 1.04rem; color: var(--ink); }
.quote__who small { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 0.7rem; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0 1.3rem;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.faq details[open] { box-shadow: var(--shadow-card); border-color: rgba(47, 107, 255, 0.32); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.096rem;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink-mute);
  border-bottom: 2px solid var(--ink-mute);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.28s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq .faq__a { padding: 0 0 1.25rem; font-size: 1.04rem; color: var(--ink-mute); max-width: 68ch; }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: start;
}
/* ---------- Reusable frosted glass ------------------------------------------
   A photo sits behind a bluish translucent pane. `isolation: isolate` confines
   the backdrop-filter to the element so it blurs only the photo below it and
   nothing else on the page. Shared by .contact__panel and .map__card.
   Markup: <div class="glass"><img class="glass__bg"><div class="glass__inner">
--------------------------------------------------------------------------- */
.glass {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  /* opaque floor so the panel still reads if the image 404s */
  background: linear-gradient(160deg, var(--navy-800), var(--navy-700));
  color: rgba(255, 255, 255, 0.86);
  box-shadow: 0 40px 90px -40px rgba(3, 9, 24, 0.8);
}
.glass__bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 62% 46%;
}
/* the frost itself */
.glass::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  border-radius: inherit;
  -webkit-backdrop-filter: blur(7px) saturate(180%);
  backdrop-filter: blur(7px) saturate(180%);
  background:
    /* scrim keeps the text column on deep navy for contrast */
    linear-gradient(100deg, rgba(5, 16, 40, 0.62) 0%, rgba(5, 16, 40, 0.28) 54%, rgba(5, 16, 40, 0) 82%),
    linear-gradient(158deg,
      rgba(7, 21, 52, 0.62) 0%,
      rgba(12, 35, 82, 0.44) 42%,
      rgba(23, 74, 190, 0.26) 100%);
}
/* specular top edge + hairline, so it reads as glass rather than a flat tint */
.glass::after {
  content: ''; position: absolute; inset: 0; z-index: 3;
  border-radius: inherit; pointer-events: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 -60px 80px -60px rgba(3, 9, 24, 0.55);
}
.glass__inner { position: relative; z-index: 2; padding: clamp(1.7rem, 3vw, 2.7rem); }
/* icon chips pick up the same translucent glass */
.glass .trust__icon {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  /* no backdrop-filter: lean on a heavier tint so text stays legible */
  .glass::before {
    background: linear-gradient(158deg, rgba(7, 21, 52, 0.90), rgba(13, 38, 88, 0.84) 50%, rgba(23, 74, 190, 0.76));
  }
}

/* consultation panel: type on the shared glass shell */
.contact__panel h2 { color: #fff; font-size: var(--step-2); text-shadow: 0 1px 18px rgba(3, 9, 24, 0.45); }
.contact__panel > .glass__inner > p { color: rgba(255, 255, 255, 0.84); }
.contact__panel .contact__list li { color: rgba(255, 255, 255, 0.95); }

.contact__list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 1rem; }
.contact__list li { display: flex; gap: 0.85rem; align-items: center; font-size: 1.04rem; }
.contact__list .trust__icon { width: 40px; height: 40px; }
.contact__list a { color: #fff; }

.form { display: grid; gap: 0.9rem; }
.field { display: grid; gap: 0.4rem; }
.field label {
  font-family: var(--font-display);
  font-size: 0.859rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 1.073rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 118px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.14);
}
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.form__note { font-size: 0.859rem; color: var(--ink-mute); }

/* ---------- Footer ---------- */
.footer {
  background: var(--plum-800);
  color: rgba(255, 255, 255, 0.62);
  padding-block: clamp(2.6rem, 5vw, 4rem) 1.6rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 0.8fr)) minmax(0, 1fr);
  gap: clamp(1.6rem, 3vw, 3rem);
}
.footer .brand__name { font-size: 1.02rem; }
.footer p { font-size: 0.96rem; margin-top: 1rem; }
.footer h4 {
  color: #fff;
  font-size: 0.904rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; font-size: 0.983rem; }
.footer a:hover { color: #fff; }
.socials { display: flex; gap: 0.5rem; margin-top: 1.3rem; }
.socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}
.socials a:hover { background: var(--blue-500); transform: translateY(-2px); }
.footer__bar {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  justify-content: space-between;
  font-size: 0.859rem;
}
.footer__legal { font-size: 0.814rem; line-height: 1.6; opacity: 0.72; max-width: 100%; margin-top: 1.2rem; }
.footer__ver {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 2px 10px;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.78s ease, transform 0.78s cubic-bezier(0.2, 0.78, 0.22, 1);
  transition-delay: var(--rv-d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* directional + scale variants */
.reveal--left  { transform: translateX(-34px); }
.reveal--right { transform: translateX(34px); }
.reveal--zoom  { transform: translateY(18px) scale(0.965); }
.reveal--fade  { transform: none; }
.reveal--left.is-in, .reveal--right.is-in, .reveal--zoom.is-in { transform: none; }
/* Horizontal slide-ins would widen the scroll box on narrow screens */
@media (max-width: 760px) {
  .reveal--left  { transform: translateY(26px); }
  .reveal--right { transform: translateY(26px); }
}

/* auto-stagger for grids and lists of revealed children */
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.78, 0.22, 1); }
.reveal-stagger.is-in > * { opacity: 1; transform: none; }
.reveal-stagger.is-in > *:nth-child(1) { transition-delay: 40ms; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: 110ms; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: 180ms; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: 250ms; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: 390ms; }

/* per-line heading reveal */
.rv-line { display: block; overflow: hidden; }
.rv-line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--rv-d, 0ms);
}
.is-in > .rv-line > span, .rv-line.is-in > span { transform: none; }



/* ---------- South Bay Coders credit line -------------------------------------
   Ported from the footer of jadabutler.com so the attribution is identical
   across South Bay Coders builds: same wording, same mono/uppercase treatment,
   same #D9A441 gold link, same #E06A55 heart, same beat keyframes.
   .nb keeps "love (heart) by" from splitting across a line break, and the link
   is nowrap so the company name never breaks mid-name when the line wraps.
--------------------------------------------------------------------------- */
.footer .credit {
  margin: 30px auto 0;
  text-align: center;
  text-wrap: balance;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.credit .nb { white-space: nowrap; }
.credit .heart {
  color: #e06a55;
  font-size: 12px;
  letter-spacing: 0;
  display: inline-block;
  animation: beat 2.6s ease-in-out infinite;
}
.credit a {
  white-space: nowrap;
  color: #d9a441;
  text-decoration: none;
  box-shadow: inset 0 -1px 0 rgba(217, 164, 65, 0);
  transition: box-shadow 0.3s ease, color 0.25s ease;
}
.credit a:hover, .credit a:focus-visible { box-shadow: inset 0 -1px 0 #d9a441; }
@keyframes beat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.28); }
  28% { transform: scale(1); }
  42% { transform: scale(1.18); }
  56% { transform: scale(1); }
}

@media (max-width: 560px) {
  /* tighter tracking so the line wraps to two balanced rows instead of three */
  .footer .credit { margin-top: 24px; font-size: 9.5px; letter-spacing: 0.1em; line-height: 2; }
}

/* Pre-reveal transforms must not widen the document. `.collage` carries
   .reveal--right, so before it reveals it sits 34px right of its resting
   position, pushing the absolutely-positioned .collage__inset past the viewport
   edge and producing a transient horizontal scrollbar on About. `clip` rather
   than `hidden` because clip does not create a scroll container, so the sticky
   masthead keeps working. Browsers without clip support fall back to today's
   behaviour, so this cannot regress. */
.collage { overflow-x: clip; }

/* ---------- Hero entrance (load-time, one shot) -----------------------------
   The scroll .reveal system cannot do this job: the hero is already inside the
   viewport at load, so its IntersectionObserver fires for every child at once
   and you get one simultaneous pop instead of a sequence. This runs off load +
   document.fonts.ready instead.

   The hidden starting state is scoped to .js-enter, which an inline <head>
   script sets. If JS never runs, that class is never added and the hero renders
   normally rather than staying invisible forever.
--------------------------------------------------------------------------- */
.js-enter .enter {
  opacity: 0;
  transform: translateY(var(--enter-y, 18px));
  will-change: opacity, transform;
  transition:
    opacity   var(--enter-t, 0.8s) cubic-bezier(0.2, 0.78, 0.22, 1) var(--enter-d, 0ms),
    transform var(--enter-t, 0.8s) cubic-bezier(0.2, 0.78, 0.22, 1) var(--enter-d, 0ms);
}
.js-enter .enter-on .enter { opacity: 1; transform: none; }

/* Photos settle out of a slight scale instead of sliding, so they do not
   compete with the copy. The scale is on the <img>, not the <figure>: both
   figures are overflow:hidden, so the scaled image is clipped and cannot widen
   the document. Scaling the figure itself would risk a horizontal scrollbar. */
.js-enter .enter-img img {
  transform: scale(1.045);
  transition: transform 1.15s cubic-bezier(0.2, 0.78, 0.22, 1) var(--enter-d, 0ms);
}
.js-enter .enter-on .enter-img img { transform: none; }

/* homepage hero, in reading order */
.hero__pills     { --enter-d:   0ms; --enter-y: 14px; }
.hero h1         { --enter-d: 120ms; --enter-y: 20px; }
.hero__lede      { --enter-d: 300ms; --enter-y: 18px; }
.hero__checks    { --enter-d: 420ms; --enter-y: 16px; }
.hero__actions   { --enter-d: 520ms; --enter-y: 16px; }
.hero__figure    { --enter-d: 180ms; --enter-y: 22px; --enter-t: 1.15s; }
.hero__figure--b { --enter-d: 300ms; }
.hero__trust     { --enter-d: 700ms; --enter-y: 14px; }

/* about + contact page headers, same cadence */
.crumbs             { --enter-d:   0ms; --enter-y: 12px; }
.page-hero h1       { --enter-d: 120ms; --enter-y: 20px; }
.page-hero__lede    { --enter-d: 300ms; --enter-y: 18px; }
.page-hero__chips   { --enter-d: 440ms; --enter-y: 16px; }
.page-hero__actions { --enter-d: 440ms; --enter-y: 16px; }
.page-hero__figure  { --enter-d: 200ms; --enter-y: 22px; --enter-t: 1.15s; }

/* section-level entrance for full bands */
.section, .band, .quotes, .steps { will-change: auto; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
  .rv-line > span { transform: none; }
  .js-enter .enter { opacity: 1; transform: none; }
  .js-enter .enter-img img { transform: none; }
  .credit .heart { animation: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet landscape and below */
@media (max-width: 1024px) {
  .nav { display: none; }
  .burger { display: grid; }
  .masthead__cta .btn { display: none; }

  .hero__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__copy { grid-column: 1 / -1; order: -1; }
  .hero__figure { aspect-ratio: 4 / 3.15; }

  .band { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
  .band__photo { max-width: 320px; }
  .band__body { margin-left: 0; padding-left: clamp(1.6rem, 3vw, 2.6rem); }
  .band__cta { margin-left: 0; grid-column: 1 / -1; }

  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tablet portrait */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: clamp(2.5rem, 8vw, 4rem); }
  .collage { max-width: 560px; margin-inline: auto; }
  .contact { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 2.4rem; }
  .steps::before { display: none; }
  .step__num { margin-block: 0.9rem 0.7rem; }
  .stat-card { grid-template-columns: 1fr; }
  .stat-card__media { min-height: 210px; order: -1; }
}

/* Mobile */
@media (max-width: 640px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__figure--b { display: none; }
  .hero__figure { aspect-ratio: 4 / 3.4; max-height: 380px; }
  .hero__trust { grid-template-columns: 1fr; gap: 0.9rem; }
  .hero__pills { font-size: 0.836rem; gap: 0.3rem 0.7rem; }
  .hero__pills span:not(:last-child)::after { display: none; }

  .band { grid-template-columns: 1fr; }
  .band__photo { max-width: 100%; aspect-ratio: 16 / 11; }

  .collage { padding-bottom: 4.5rem; }
  .collage__inset { right: 0; width: 46%; }
  .chip--years { right: 0; top: 8%; }
  .chip--clients { left: 0; }

  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .notch::before { width: 70%; }
}

@media (max-width: 380px) {
  .brand__mark { width: 38px; height: 38px; }
  .brand__name { font-size: 1.073rem; }
}

/* ==========================================================================
   Services coverflow carousel  (3D cover-flow, autoplay, drag/swipe/keys)
   ========================================================================== */
.svc-top {
  display: flex; flex-wrap: wrap; gap: 16px 40px;
  align-items: flex-end; justify-content: space-between;
  margin-bottom: clamp(26px, 3vw, 40px);
}
.svc-top .section-head { margin-bottom: 0; max-width: 62ch; text-align: left; }
.svc-top .section-head p { margin-inline: 0; }
.svc-top .eyebrow { justify-content: flex-start; }
.svc-note {
  font-size: 1.04rem; color: var(--ink-mute); max-width: 30ch;
  padding-left: 18px; border-left: 2px solid var(--line); line-height: 1.6;
}

.cf {
  position: relative; user-select: none;
  --cf-w: 356px; --cf-h: 534px;
  /* Vertical panning stays with the browser so a downward swipe over the
     carousel scrolls the page; horizontal panning is handled in JS. */
  touch-action: pan-y;
  cursor: grab;
}
.cf.is-dragging { cursor: grabbing; }
/* While a finger or pointer is down the track tracks input 1:1 — the eased
   transition is reinstated on release so it settles smoothly. */
.cf.is-dragging .cf-card { transition: opacity 0.5s ease, box-shadow 0.5s ease; }
.cf.is-dragging .cf-card .dim { transition: none; }
.cf.is-dragging .cf-go { pointer-events: none; }
.cf-stage {
  perspective: 1750px; perspective-origin: 50% 46%;
  overflow: hidden; padding: 14px 0 18px;
  margin-inline: -6px;
}
.cf-track { position: relative; height: var(--cf-h); transform-style: preserve-3d; }
.cf-card {
  position: absolute; top: 0; left: 50%;
  width: var(--cf-w); height: var(--cf-h); margin-left: calc(var(--cf-w) / -2);
  border-radius: 24px; overflow: hidden; background: var(--navy-900); cursor: pointer;
  box-shadow: 0 22px 54px rgba(6, 15, 34, 0.26);
  transition: transform 0.74s cubic-bezier(0.22, 0.78, 0.2, 1), opacity 0.5s ease, box-shadow 0.5s ease;
  will-change: transform; backface-visibility: hidden;
}
.cf-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cf-card .scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 11, 28, 0.06) 0%, rgba(5, 11, 28, 0.44) 44%, rgba(5, 11, 28, 0.94) 100%);
}
.cf-card .dim {
  position: absolute; inset: 0; pointer-events: none;
  background: #050b1c; opacity: var(--dim, 0); transition: opacity 0.5s ease;
}
.cf-card.is-active { box-shadow: 0 34px 84px rgba(6, 15, 34, 0.44); }
.cf-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 24px 22px; color: #fff; }
.cf-body h3 { color: #fff; font-size: 1.24rem; letter-spacing: -0.022em; margin-bottom: 8px; }
.cf-body p { color: rgba(219, 228, 252, 0.88); font-size: 1.02rem; line-height: 1.55; }
.cf-list {
  list-style: none; margin: 12px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.cf-list li {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.01em;
  color: rgba(226, 235, 255, 0.94);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px; padding: 4px 10px;
  backdrop-filter: blur(3px);
}
.cf-go {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-family: var(--font-display); font-size: 0.96rem; font-weight: 700;
  color: var(--blue-600); background: #fff; border-radius: 8px; padding: 10px 17px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.2s ease;
  pointer-events: none;
}
.cf-card.is-active .cf-go { opacity: 1; transform: none; pointer-events: auto; }
.cf-go:hover { box-shadow: 0 8px 22px rgba(255, 255, 255, 0.3); }
.cf-go svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.cf-go:hover svg { transform: translateX(3px); }
.cf-tag {
  position: absolute; top: 20px; left: 20px; z-index: 3;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--navy-900);
  background: linear-gradient(96deg, #9fd0ff, #d8c48f);
  border-radius: 999px; padding: 5px 11px;
}
.cf-ui { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: clamp(18px, 2.2vw, 28px); }
.cf-arrow {
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--navy-800);
  display: grid; place-items: center; cursor: pointer; transition: all 0.2s ease; flex: none;
}
.cf-arrow:hover { border-color: var(--blue-500); color: var(--blue-600); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.cf-arrow svg { width: 20px; height: 20px; }
.cf-dots { display: flex; align-items: center; gap: 9px; }
.cf-dot {
  width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  background: #cbd5ec; transition: width 0.34s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s ease;
}
.cf-dot.on { width: 30px; background: linear-gradient(96deg, var(--blue-500), var(--blue-600)); }
.cf-hint { text-align: center; margin-top: 14px; font-size: 0.95rem; color: var(--ink-mute); letter-spacing: 0.01em; }

@media (max-width: 1040px) {
  .cf-body h3 { font-size: 1.18rem; }
  .cf-body p { font-size: 0.98rem; }
}
@media (max-width: 760px) {
  .cf-card { border-radius: 20px; }
  .cf-body { padding: 20px 18px; }
  .cf-body h3 { font-size: 1.08rem; }
  .cf-body p {
    font-size: 0.94rem; line-height: 1.48;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .cf-list { gap: 5px; margin-top: 10px; }
  .cf-list li { font-size: 0.76rem; padding: 3px 9px; }
  .cf-go { margin-top: 12px; padding: 9px 15px; font-size: 0.9rem; }
  .svc-note { padding-left: 0; border-left: 0; }
}

/* ==========================================================================
   v3.0.0 — inner pages (about.html, contact.html)
   ========================================================================== */

/* ---------- Breadcrumbs ---------- */
.crumbs {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; letter-spacing: 0.02em;
  color: rgba(197, 213, 248, 0.72); margin-bottom: 1.15rem;
}
.crumbs a { color: rgba(220, 232, 255, 0.9); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span[aria-hidden] { color: rgba(197, 213, 248, 0.4); }
.crumbs [aria-current] { color: var(--blue-300); font-weight: 500; }

/* ---------- Page hero ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 620px at 78% -14%, rgba(47, 107, 255, 0.34), transparent 62%),
    linear-gradient(168deg, var(--navy-800) 0%, var(--navy-900) 68%);
  color: #fff;
  padding-top: clamp(2.6rem, 5vw, 4.4rem);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
}
.page-hero > .shell { position: relative; z-index: 2; }
.page-hero__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.24fr 0.9fr;
  gap: clamp(2rem, 4.4vw, 4.2rem); align-items: center;
  padding-bottom: clamp(2.4rem, 4.6vw, 4rem);
}
.page-hero h1 {
  color: #fff; font-size: var(--step-4); line-height: 1.04;
  letter-spacing: -0.032em; margin: 0 0 1.1rem;
}
.page-hero h1 em { font-style: normal; color: var(--blue-300); }
.page-hero__lede {
  font-size: var(--step-1); line-height: 1.58; max-width: 62ch;
  color: rgba(219, 228, 252, 0.92); margin: 0;
}
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.9rem; }
.page-hero__figure {
  position: relative; margin: 0; border-radius: 26px; overflow: hidden;
  aspect-ratio: 3 / 3.7;
  box-shadow: 0 40px 90px -32px rgba(3, 9, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.page-hero__figure img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  /* The portrait source is very tall (1600x3310) — anchoring the crop near the
     top keeps the subject's head fully in frame at every aspect ratio. */
  object-position: 50% 6%;
}

.page-hero--slim { padding-bottom: clamp(2.6rem, 5vw, 4.4rem); }
.page-hero--slim h1 { max-width: 22ch; }
.page-hero__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.65rem; margin: 1.8rem 0 0; padding: 0; }
.page-hero__chips li {
  font-size: 0.92rem; font-weight: 500; letter-spacing: 0.01em;
  color: rgba(228, 236, 255, 0.94);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px; padding: 7px 15px;
  backdrop-filter: blur(6px);
}

.page-hero__stats { position: relative; z-index: 2; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.page-hero__stats ul {
  list-style: none; margin: 0; padding: clamp(1.5rem, 2.6vw, 2.2rem) 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem;
}
.page-hero__stats li { display: flex; flex-direction: column; gap: 4px; }
.page-hero__stats strong {
  font-family: var(--font-display); font-size: clamp(1.7rem, 2.4vw, 2.35rem);
  font-weight: 900; letter-spacing: -0.03em; color: #fff; line-height: 1;
}
.page-hero__stats small {
  font-size: 0.86rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(197, 213, 248, 0.78);
}

/* ---------- Lead-in ticks + actions (landing "why" block, about story) ---------- */
.ticks--lead { margin-top: 1.6rem; }
.lead-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.9rem; }

/* ---------- Values grid ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 1.8vw, 1.6rem); }
.values--3 { grid-template-columns: repeat(3, 1fr); }
.value {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(1.4rem, 2vw, 1.85rem);
  box-shadow: var(--shadow-card);
}
.value strong {
  display: block; font-family: var(--font-display); font-size: 1.12rem;
  font-weight: 700; letter-spacing: -0.018em; color: var(--ink); margin-bottom: 0.5rem;
}
.value p { margin: 0; color: var(--ink-mute); font-size: 0.99rem; line-height: 1.62; }

/* ---------- Google Map + office card ---------- */
.map {
  display: grid; grid-template-columns: 1.6fr 0.95fr;
  gap: clamp(1.2rem, 2.2vw, 2rem); align-items: stretch;
}
.map__frame {
  position: relative; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-alt);
  min-height: 460px; box-shadow: var(--shadow-card);
}
.map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
/* .map__card carries .glass; only the layout + narrow-column tuning lives here */
.map__card { border-radius: 22px; }
/* the column is narrow, so favour the darker upper-left of the backdrop */
.map__card .glass__bg { object-position: 24% 38%; }
.map__card > .glass__inner {
  display: flex; flex-direction: column; height: 100%;
  padding: clamp(1.6rem, 2.4vw, 2.2rem);
}
.map__card h3 {
  color: #fff; font-size: 1.32rem; letter-spacing: -0.022em; margin: 0 0 0.55rem;
}
.map__card address {
  font-style: normal; color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem; line-height: 1.58; margin-bottom: 1.4rem;
}
.map__meta { margin: 0 0 1.6rem; display: grid; gap: 0.95rem; }
.map__meta > div { display: grid; gap: 3px; }
.map__meta dt {
  font-size: 0.79rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #a9c8ff; font-weight: 600;
}
.map__meta dd { margin: 0; color: rgba(255, 255, 255, 0.95); font-size: 0.99rem; line-height: 1.52; }
.map__meta a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(127, 178, 255, 0.5); }
.map__meta a:hover { border-bottom-color: #fff; }
.map__card .btn { margin-top: auto; }
.map__card h3 { text-shadow: 0 1px 16px rgba(3, 9, 24, 0.45); }

/* ---------- Final CTA (replaces the inline form on index + about) ---------- */
.final-cta { padding-block: clamp(2.6rem, 5vw, 4.6rem); }
.final {
  display: grid; grid-template-columns: 1.5fr 0.92fr;
  gap: clamp(1.6rem, 3vw, 3rem); align-items: center;
  background:
    radial-gradient(760px 420px at 88% 8%, rgba(47, 107, 255, 0.4), transparent 64%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: #fff; border-radius: 26px;
  padding: clamp(1.9rem, 3.4vw, 3.2rem);
  box-shadow: var(--shadow-float);
}
.final__body h2 { color: #fff; margin: 0.35rem 0 0.85rem; }
.final__body p { color: rgba(219, 228, 252, 0.9); max-width: 56ch; margin: 0; }
.final__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.final__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.05rem; }
.final__facts li { display: flex; gap: 0.85rem; align-items: flex-start; font-size: 1rem; line-height: 1.5; color: rgba(219, 228, 252, 0.88); }
.final__facts a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(127, 178, 255, 0.5); }
.final__facts a:hover { border-bottom-color: #fff; }

/* ---------- Inner-page responsive ---------- */
@media (max-width: 1024px) {
  .page-hero__grid { grid-template-columns: 1fr; gap: 2rem; }
  .page-hero__figure { aspect-ratio: 4 / 3.1; max-height: 460px; }
  .page-hero__figure img { object-position: 50% 4%; }
  .page-hero__stats ul { grid-template-columns: repeat(2, 1fr); gap: 1.2rem 1.6rem; }
  .map { grid-template-columns: 1fr; }
  .map__frame { min-height: 380px; }
  .values, .values--3 { grid-template-columns: repeat(2, 1fr); }
  .final { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page-hero__figure { aspect-ratio: 4 / 3.6; max-height: 400px; }
  .page-hero__figure img { object-position: 50% 3%; }
  .values, .values--3 { grid-template-columns: 1fr; }
  .final__actions .btn { width: 100%; }
  .map__frame { min-height: 320px; }
}
