/* ==========================================================================
   Venture Banking landing page — built from Figma "VB - U1Core - Landing Page"
   (node 7:3869). Desktop frame is 1440px wide; content column is 1280px.
   ========================================================================== */

/* ==========================================================================
   Design tokens
   Brand colours come from the Figma variables; the scales below collect every
   repeated value so sizes and colours can be tuned in one place.
   ========================================================================== */
:root {
  /* ---- Colour: brand (Figma variables) ---- */
  --charcoal: #24282a;
  --warm-white: #fffefc;
  --white: #fff;
  --slate: #58595b;
  --stifel-blue: #003057;
  --stifel-blue-dark: #0a2945;
  --midtone-blue: #00629d;
  --navy-ink: #1f2d45;
  --gold: #c29660;
  --light-gold: #dbc093;
  --gold-deep: #8c6a3e;
  --gold-deep-light: #a9834f;
  --beige: #f4eadf;
  --line: #efece7;
  --page-bg: #fcfaf8;

  /* ---- Colour: supporting ---- */
  --navy-900: #071e34;          /* darkest stop of the navy gradients */
  --navy-700: #114172;          /* bottom of the form panel gradient */
  --blue-hover: #00406f;        /* blue button hover */
  --sand-100: #f4eee4;          /* features stage top / toggle hover */
  --sand-200: #e6dccb;          /* features stage bottom */
  --sand-50: #f3eee6;           /* mock UI avatars + footer bar */
  --ui-border: #e4dfd7;         /* mock UI card border */
  --gray-400: #9a9fa6;          /* mock UI card "Step 2 of 4" */
  --gray-300: #d9d9d9;          /* footer disclaimer */
  --muted-on-dark: #b9c6d3;     /* body copy on navy */
  --mist: #c9d4df;              /* small labels on navy / glass */
  --placeholder-on-dark: var(--mist); /* was #93a6b8; raised for 4.5:1 contrast on the form panel */
  --error: #f0a58f;             /* invalid field border */
  --error-text: #f6c3b4;        /* inline error message */
  --autofill-bg: var(--stifel-blue); /* autofilled fields match the normal field fill */
  --text-muted-strong: rgba(36, 40, 42, 0.7); /* unselected tab text: 5.6:1 */
  --gold-tint: rgba(195, 152, 98, 0.14);      /* icon tile background */

  /* ---- Colour: translucent white (glass, borders on navy) ---- */
  --white-a06: rgba(255, 255, 255, 0.06);
  --white-a07: rgba(255, 255, 255, 0.07);
  --white-a10: rgba(255, 255, 255, 0.1);
  --white-a12: rgba(255, 255, 255, 0.12);
  --white-a14: rgba(255, 255, 255, 0.14);
  --white-a16: rgba(255, 255, 255, 0.16);
  --white-a50: rgba(255, 255, 255, 0.5);      /* form field border: 3.4:1 */
  --warm-white-a10: rgba(255, 254, 252, 0.1);
  --warm-white-a50: rgba(255, 254, 252, 0.5);

  /* ---- Gradients ---- */
  --grad-gold: linear-gradient(90deg, #c39862 0%, #e6cfa6 50%, #c39862 100%);
  --grad-gold-deep: linear-gradient(92deg, var(--gold-deep) 27.911%, var(--gold-deep-light) 44.71%, var(--gold-deep) 61.51%);
  --grad-gold-bright: linear-gradient(102deg, var(--gold) 0.43%, var(--light-gold) 47.38%);
  --grad-hero: linear-gradient(180deg, var(--navy-900) 0%, var(--stifel-blue-dark) 49.121%, var(--stifel-blue) 100.18%);
  --grad-cta: linear-gradient(180deg, var(--navy-900) 0%, var(--stifel-blue-dark) 38.462%, var(--stifel-blue) 79.327%);
  --grad-form: linear-gradient(180deg, var(--navy-900) 0%, var(--stifel-blue-dark) 45%, var(--navy-700) 100%);
  --grad-product: linear-gradient(180deg, var(--stifel-blue) 0%, var(--midtone-blue) 100%);
  --grad-sand: linear-gradient(180deg, var(--sand-100) 0%, var(--sand-200) 100%);

  /* ---- Typography: families ---- */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* ---- Typography: fixed sizes ---- */
  --fs-12: 12px;   /* eyebrows, chip labels, disclaimer */
  --fs-13: 13px;   /* glass labels, office pills */
  --fs-14: 14px;   /* small print, small buttons */
  --fs-15: 15px;   /* form labels */
  --fs-16: 16px;   /* body */
  --fs-17: 17px;   /* stat labels */
  --fs-18: 18px;   /* lede */
  --fs-20: 20px;   /* list item titles */
  --fs-22: 22px;
  --fs-24: 24px;   /* card titles */
  --fs-26: 26px;
  --fs-28: 28px;
  --fs-32: 32px;   /* sector titles, statement, milestone years */
  --fs-36: 36px;   /* stat chip value */

  /* ---- Typography: fluid display sizes (capped at the Figma desktop sizes) ---- */
  --fs-hero: clamp(52px, 7.25vw, 104px);
  --fs-cta: clamp(44px, 5.7vw, 82px);
  --fs-cta-sm: clamp(42px, 5vw, 72px);
  --fs-h2: clamp(38px, 4.45vw, 64px);
  --fs-h2-sm: clamp(36px, 3.75vw, 54px);
  --fs-stat: clamp(44px, 4.45vw, 64px);

  /* ---- Typography: weights, line heights, tracking ---- */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --lh-hero: 0.9;
  --lh-display: 1.04;
  --lh-heading: 1.12;
  --lh-snug: 1.2;
  --lh-title: 1.24;
  --lh-ui: 1.32;
  --lh-relaxed: 1.4;
  --lh-body: 1.45;

  --tracking-display: -0.015em;
  --tracking-caps: 1.08px;

  /* ---- Corner radii ---- */
  --radius-xs: 9px;        /* icon tiles */
  --radius-sm: 12px;       /* toggle boxes, mock UI fields/buttons */
  --radius-field: 14px;    /* form inputs */
  --radius-md: 20px;       /* cards, stat chip */
  --radius-lg: 24px;       /* mock UI card */
  --radius-xl: 28px;       /* photos, map */
  --radius-2xl: 32px;      /* lead form */
  --radius-3xl: 36px;      /* features stage */
  --radius-section: 42px;  /* hero, panels, dark stages */
  --radius-pill: 999px;    /* pills, buttons, dots */

  /* ---- Spacing (4px-based; one-off optical values stay literal) ---- */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-28: 28px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-56: 56px;
  --space-64: 64px;
  --space-72: 72px;
  --space-80: 80px;
  --space-heading: 22px;   /* eyebrow pill → section heading */
  --space-stack: 44px;     /* section heading → section content */

  /* ---- Layout ---- */
  --content: 1280px;
  --gutter: var(--space-80);
  --section-y: var(--space-80);

  /* ---- Elevation & effects ---- */
  --shadow-card: 0 8px 10px rgba(10, 41, 69, 0.04);
  --shadow-btn-hover: 0 8px 20px rgba(7, 30, 52, 0.18);
  --shadow-chip: 0 40px 90px rgba(0, 10, 26, 0.2);
  --shadow-ui-card: 0 24px 64px rgba(10, 41, 69, 0.1);
  --blur-sm: 10px;
  --blur-md: 12px;
  --blur-lg: 14px;

  /* ---- Motion ---- */
  --transition-fast: 0.2s ease;
  --dur-fade: 0.3s;
  --dur-fade-slow: 0.35s;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--warm-white); color: var(--charcoal);
  padding: 10px var(--space-16); border-radius: var(--radius-pill); font-weight: var(--fw-semibold); text-decoration: none;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; } /* 4.75:1 on light sections */
.hero :focus-visible,
.dark-stage :focus-visible,
.footer :focus-visible,
.skip-link:focus-visible { outline-color: var(--gold); } /* 5.5:1 on the dark navy sections */
main:focus { outline: none; } /* skip-link target, not an interactive control */

/* ---------- Motion ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Scroll reveal: script.js adds .reveal to below-the-fold blocks and .is-revealed
   once they scroll into view. Uses `translate` (not `transform`) so it never
   fights hover transforms. Skipped entirely for reduced motion and in print. */
@keyframes reveal-up {
  from { opacity: 0; translate: 0 var(--reveal-distance); }
  to   { opacity: 1; translate: none; }
}
:root { --reveal-distance: 24px; --dur-reveal: 0.7s; --ease-reveal: cubic-bezier(0.22, 1, 0.36, 1); }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; }
  .reveal.is-revealed { animation: reveal-up var(--dur-reveal) var(--ease-reveal) var(--reveal-delay, 0s) both; }
}
@media print { .reveal { opacity: 1 !important; animation: none !important; } }

/* Hero load-in: pure CSS, plays once on page load. Headline lines, subhead and
   button rise in sequence, then the monitor rises inside its cropped frame
   (.hero__device clips it). */
:root { --dur-hero: 0.8s; }
@media (prefers-reduced-motion: no-preference) {
  .hero__title .line,
  .hero__sub,
  .hero__content > .btn {
    animation: reveal-up var(--dur-hero) var(--ease-reveal) var(--hero-delay, 0s) both;
  }
  .hero__title .line:nth-child(1) { --hero-delay: 0.1s; }
  .hero__title .line:nth-child(2) { --hero-delay: 0.22s; }
  .hero__sub                      { --hero-delay: 0.34s; }
  .hero__content > .btn           { --hero-delay: 0.46s; }
  .hero__device .monitor {
    --reveal-distance: 56px;
    animation: reveal-up 1.1s var(--ease-reveal) 0.55s both;
  }
  .hero__glow { animation: hero-glow-in 1.6s ease-out both; }
}
@keyframes hero-glow-in { from { opacity: 0; } }

section[id] { scroll-margin-top: 24px; }

/* ---------- Layout helpers ---------- */
.section {
  padding: var(--section-y) var(--gutter);
}
.container {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
}

/* ---------- Shared type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  color: var(--charcoal);
  text-wrap-style: balance;
}
.h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-display);
}
.gold-text {
  background-image: var(--grad-gold-deep);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.gold-text--bright { background-image: var(--grad-gold); }
.gold-text--cta { background-image: var(--grad-gold-bright); }
.line { display: block; }
/* Gradient text only paints inside its box, so tight line-heights clip descenders.
   0.2em covers the hero (line-height 0.9); the negative margin keeps layout unchanged. */
.line.gold-text { padding-bottom: 0.2em; margin-bottom: -0.2em; }

.lede { color: var(--slate); font-size: var(--fs-18); line-height: var(--lh-body); }

/* ---------- Eyebrow pill ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--fs-12);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--charcoal);
  white-space: nowrap;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: var(--radius-pill);
  background: var(--grad-gold);
  flex: none;
}
.eyebrow--dark {
  background: var(--white-a06);
  border-color: var(--white-a10);
  color: var(--white);
}

.eyebrow--reversed {
  background: var(--stifel-blue);
  color: var(--white);
}



/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-16);
  border: 1px solid var(--white);
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  line-height: var(--lh-ui);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-backdrop-filter: blur(var(--blur-sm));
  backdrop-filter: blur(var(--blur-sm));
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-btn-hover); }
.btn:active { transform: none; box-shadow: none; }

.btn__arrow {
  position: relative;
  width: 17px; height: 6px;
  flex: none;
}
.btn__arrow img {
  position: absolute;
  inset: -11.68% -4.12%;
  width: calc(100% + 8.24%);
  height: calc(100% + 23.36%);
  max-width: none;
}

.btn--light { background: var(--white); color: var(--navy-ink); font-weight: var(--fw-semibold); font-size: var(--fs-14); padding: var(--space-16) 25px; }
.btn--sm    { gap: var(--space-4); height: 42px; padding: 0 var(--space-16); }
.btn--bold  { font-weight: var(--fw-bold); font-size: var(--fs-16); padding: 15.5px 25px; }
.btn--blue  { background: var(--stifel-blue); color: var(--warm-white); font-weight: var(--fw-medium); font-size: var(--fs-16); padding: 14.5px var(--space-24); }
.btn--blue:hover { background: var(--blue-hover); }
.btn--footer { background: var(--warm-white); color: var(--charcoal); font-weight: var(--fw-semibold); font-size: var(--fs-14); }

/* ---------- Glass label / chips ---------- */
.glass-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8) 14px var(--space-8) var(--space-12);
  border: 1px solid var(--warm-white-a10);
  border-radius: var(--radius-pill);
  background: var(--white-a14);
  -webkit-backdrop-filter: blur(var(--blur-sm));
  backdrop-filter: blur(var(--blur-sm));
  color: var(--warm-white);
  font-weight: var(--fw-medium);
  font-size: var(--fs-13);
  line-height: var(--lh-snug);
  white-space: nowrap;
}
.glass-label::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: var(--radius-pill);
  background: var(--warm-white);
  flex: none;
}

/* ---------- Gold icon tile ---------- */
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  flex: none;
  border-radius: var(--radius-xs);
  background: var(--gold-tint);
}
/* Gold icons are exported from Figma with the gradient already applied */
.icon-tile__icon { width: 20px; height: 20px; max-width: none; }
/* Cards glyph: Figma group sits at inset 15.01% 8.32% 12.5% 8.33% of the 20px icon */
.icon-tile__img { width: 20px; height: 20px; position: relative; overflow: hidden; }
.icon-tile__img img { position: absolute; left: 1.666px; top: 3.002px; width: 32px; height: 32px; max-width: none; }


/* ---------- Card (white) ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-24);
}
.card__title {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-24);
  line-height: var(--lh-title);
  color: var(--charcoal);
}
.card__text { color: var(--slate); font-size: var(--fs-16); line-height: var(--lh-body); }

.panel {
  display: flex;
  gap: var(--space-24);
  padding: var(--space-24);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-section);
  overflow: hidden;
}

/* ---------- Monitor mockup (Studio Display + screen) ---------- */
.monitor {
  position: relative;
  width: 100%;
  aspect-ratio: 1090 / 634;
  overflow: hidden;
}
.monitor__frame {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 132.03%;
  object-fit: cover;
}
.monitor__screen {
  position: absolute;
  left: 2.07%;
  top: 3.57%;
  width: 95.81%;   /* 100 - 2.07 - 2.12 */
  height: 92.92%;  /* 100 - 3.57 - 3.51 */
  max-width: none;
  object-fit: cover;
}

/* ==========================================================================
   1. Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--radius-section) var(--radius-section);
  background: var(--grad-hero);
  color: var(--white);
  isolation: isolate;
}

/* Hero lines. images/lines.png (and the shader data in images/lines-data.js)
   are rendered from images/lines.svg by build-lines.py with the Figma tilt,
   rotate(6.16deg) skewX(1.79deg), already applied at 2x. The values below come
   from its output: re-run it and paste them if lines.svg changes. The lines sit
   66px higher than the Figma frame (per design review) so the outermost line
   peaks at the vertical middle of the hero "Get Connected" button. */
:root { --lines-x: -61px; --lines-y: 405px; --lines-w: 1767px; --lines-h: 1342px; }
.hero__lines {
  position: absolute;
  z-index: -1;
  left: calc(50% - 720px);
  top: 0;
  width: var(--lines-w);
  height: var(--lines-h);
  max-width: none;
  /* --lines-shift (set by script.js) keeps the peak on the button's midpoint
     when the headline reflows at narrower widths; 0 at the 1440px design. */
  transform: translate(var(--lines-x), calc(var(--lines-y) + var(--lines-shift, 0px)));
  will-change: translate;
  pointer-events: none;
}
/* Until script.js swaps in the canvas (or gives it the fallback src), the <img>
   has no src, and Chrome/Safari outline an empty sized image in grey. Hide it. */
img.hero__lines:not([src]) { visibility: hidden; }

/* Scroll parallax: the lines move up an extra 35% of the scroll distance over
   the first screen, so they travel faster than the page. A scroll-driven
   animation runs in step with scrolling (no lag behind the page). Browsers
   without it get the same effect from script.js (LINES_SPEED). */
@keyframes hero-lines-parallax { to { translate: 0 -35vh; } }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__lines {
      animation: hero-lines-parallax linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px 100vh;
    }
  }
}

/* Hero line pulse: a ring of lower opacity travels outward through the
   concentric lines. Drawn by a WebGL shader in script.js (each pixel of the
   line data knows which line it belongs to, 0 = innermost), so the dip reaches
   each line slightly after the one inside it. Each line fades out and back over
   the first 25% of the cycle (0.75s at 3s), so a ring is about 16 lines wide. A
   ring takes ~2.8s to cross all 63 lines, so the next one starts just after
   the last has finished. Keep --pulse-step at about cycle / 66 when changing
   the cycle, or rings overlap (too long) or leave gaps (too short).
   Off for reduced motion (the static lines.png shows). */
:root {
  --pulse-cycle: 3s;        /* a new ring starts every 3s, continuously */
  --pulse-step: 45ms;       /* delay between neighbouring lines (63 lines ≈ 2.8s to cross) */
  --pulse-dim: 0;           /* line opacity at the bottom of the dip (lines sit at 30%, so the dip goes all the way out to read) */
}
.hero__glow {
  position: absolute;
  z-index: -1;
  left: calc(50% - 720px + 317px - 300px);
  top: calc(534px - 300px);
  width: 1360px;
  height: 1360px;
  max-width: none;
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-24);
  padding: var(--space-16) 50px;
  border-bottom: 1px solid var(--white-a10);
}
.nav__logo { display: block; width: 79.17px; height: 23.95px; }
.nav__logo img { width: 100%; height: 100%; }

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-24);
  padding: 47px var(--space-24) 0;
  text-align: center;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-hero);
  line-height: var(--lh-hero);
  letter-spacing: var(--tracking-display);
  color: var(--white);
}
.hero__sub {
  max-width: 718px;
  color: var(--muted-on-dark);
  font-size: var(--fs-16);
  line-height: var(--lh-body);
  text-wrap-style: balance;
}

/* Only the top 322px of the 634px-tall monitor shows in the 800px hero */
.hero__device {
  width: min(1090px, calc(100% - 48px));
  margin: 28px auto 0;
  aspect-ratio: 1090 / 322;
  overflow: hidden;
}

/* Desktop: the hero fills the viewport. Extra height first lets the monitor's
   crop grow (more of the screen shows and it sits higher), up to 45% of its
   width; anything left over is split above and below the headline block. On
   short viewports the content's own height wins, so nothing gets squeezed. */
@media (min-width: 1025px) {
  .hero { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
  .hero__content { margin-block: auto; }
  .hero__device {
    flex: 1 0 auto;
    max-height: calc(min(1090px, 100vw - 48px) * 0.45);
  }

  /* Bottom corners: square at the top of the page, rounding in over the first
     160px of scrolling. Instead of animating border-radius (which repaints the
     whole hero every frame), two page-coloured corner pieces scale up from 0;
     scaling is done by the GPU alone. Browsers without scroll-driven
     animations get --hero-corner from script.js. */
  .hero { border-radius: 0; }
  .hero::before,
  .hero::after {
    content: '';
    position: absolute;
    z-index: 3;
    bottom: 0;
    width: var(--radius-section);
    height: var(--radius-section);
    pointer-events: none;
    scale: var(--hero-corner, 1);
  }
  .hero::before {
    left: 0;
    transform-origin: 0 100%;
    background: radial-gradient(circle var(--radius-section) at 100% 0, transparent calc(100% - 0.75px), var(--page-bg) 100%);
  }
  .hero::after {
    right: 0;
    transform-origin: 100% 100%;
    background: radial-gradient(circle var(--radius-section) at 0 0, transparent calc(100% - 0.75px), var(--page-bg) 100%);
  }
  @supports (animation-timeline: scroll()) {
    .hero::before,
    .hero::after {
      animation: hero-corner-in linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px 160px;
    }
  }
}
@keyframes hero-corner-in { from { scale: 0; } to { scale: 1; } }

/* ==========================================================================
   2. Numbers
   ========================================================================== */
.numbers .container { max-width: 1240px; margin-inline: 0 auto; }
@media (min-width: 1441px) { .numbers .container { margin-inline: auto; max-width: 1280px; } }
.numbers__inner { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-24); }
.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  row-gap: var(--space-16);
  column-gap: var(--space-40);
  width: 100%;
}
.stat { display: flex; flex-direction: column; gap: var(--space-8); width: 280px; }
.stat__value {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: var(--fs-stat);
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-display);
  white-space: nowrap;
}
.stat__label { color: var(--slate); font-size: var(--fs-17); line-height: var(--lh-body); }
.stat__label--narrow { max-width: 155px; }
.stat__label--wrap { max-width: 180px; } /* matches the two-line wrap in Figma */
.numbers__spacer { height: 24px; }
.numbers__note { color: var(--slate); font-size: var(--fs-14); line-height: var(--lh-body); }
.numbers__note a { text-decoration: underline; text-underline-position: from-font; }

/* ==========================================================================
   3. Who we serve
   ========================================================================== */
.serve { display: flex; flex-direction: column; align-items: center; gap: var(--space-24); text-align: center; }

/* ==========================================================================
   Section heading block (eyebrow + h2)
   ========================================================================== */
.heading { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-heading); }
.section-stack { display: flex; flex-direction: column; gap: var(--space-stack); }

/* ==========================================================================
   4. Coverage
   ========================================================================== */
.coverage__panel { align-items: stretch; }
.map {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 440px;
  border-radius: var(--radius-xl);
  background: var(--beige);
  overflow: hidden;
}
.map__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* Phone-only list of offices (map labels get too small to read) */
.office-list {
  display: none;
  flex-wrap: wrap;
  gap: var(--space-8);
  list-style: none;
  margin: 0;
  padding: var(--space-4) var(--space-4) var(--space-8);
}
.office-list li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  padding: 6px var(--space-12) 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--stifel-blue);
  color: var(--warm-white);
  font-weight: var(--fw-medium);
  font-size: var(--fs-13);
  line-height: var(--lh-snug);
}
.office-list li::before { content: ""; width: 6px; height: 6px; border-radius: var(--radius-pill); background: var(--warm-white); }

.sectors { display: flex; flex-direction: column; gap: var(--space-16); width: 480px; flex: none; }
.sector { flex: 1 1 0; display: flex; flex-direction: column; gap: var(--space-12); }
.sector__head { display: flex; align-items: center; gap: var(--space-16); }
.sector__title {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-32);
  line-height: var(--lh-title);
}
.sector .card__text { max-width: 280px; }

/* ==========================================================================
   5. Platform
   ========================================================================== */
.platform { display: flex; align-items: center; gap: var(--space-64); }
.product-shot {
  position: relative;
  flex: none;
  width: 640px;
  height: 460px;
  border-radius: var(--radius-section);
  overflow: hidden;
  background: var(--grad-product);
}
.product-shot .monitor { position: absolute; left: 40px; top: 56px; width: 560px; }
.platform__copy { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-24); }
.platform__statement { font-size: var(--fs-32); line-height: var(--lh-title); }

/* ==========================================================================
   6. Founders & funds
   ========================================================================== */
.both__panel { align-items: center; }
.both__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 36px; padding: 9px 0; }
.both__top { display: flex; flex-direction: column; gap: var(--space-32); width: 100%; }

.segmented {
  display: inline-flex;
  align-self: flex-start;
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}
.segmented__btn {
  height: 46px;
  min-width: 131px;
  padding: 0 var(--space-24);
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted-strong); /* was 0.6; 5.6:1 */
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--fs-16);
  line-height: var(--lh-body);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.segmented__btn:hover { color: var(--charcoal); }
.segmented__btn[aria-selected="true"] {
  background: var(--light-gold);
  color: var(--charcoal);
  box-shadow: inset 0 0 0 1px var(--gold-deep); /* 4.95:1 edge; inset so the size doesn't change */
}

.both__body { display: flex; flex-direction: column; gap: 22px; }
.both__title { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--fs-24); line-height: var(--lh-heading); }
.stages { list-style: none; margin: 0; padding: 0; }
.stage {
  display: flex;
  gap: var(--space-20);
  padding: 18px 0;
  border-top: 1px solid var(--slate);
}
.stage:last-child { border-bottom: 1px solid var(--slate); }
.stage__num { width: 32px; flex: none; font-family: var(--font-display); font-size: var(--fs-20); line-height: normal; color: var(--gold-deep); } /* 4.95:1 */
.stage__text { display: flex; flex-direction: column; gap: var(--space-4); }
.stage__name { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--fs-20); line-height: normal; }
.stage__desc { font-size: var(--fs-16); line-height: var(--lh-body); }

.photo-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: var(--space-20);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--stifel-blue-dark);
}
.photo-card__img {
  position: absolute;
  left: 50%;
  top: calc(50% + 14.5px);
  width: 623px;
  min-width: 100%;
  height: 444px;
  transform: translate(-50%, -50%);
  object-fit: cover;
  max-width: none;
}
/* Funds photo (11:204) simply covers the card, no offset crop */
.photo-card__img--fill {
  left: 0; top: 0;
  width: 100%; height: 100%;
  min-width: 0;
  transform: none;
}
/* Cutout photos (transparent background): show the whole photo along the bottom edge
   and let the card's navy fill the rest, so nobody gets cropped on narrow cards */
.photo-card__img--cutout { object-fit: contain; object-position: bottom; }
/* Long captions (several names) wrap instead of running off narrow cards */
.photo-card .glass-label { position: relative; max-width: 100%; white-space: normal; text-wrap: balance; }
/* Darker glass than usual: these badges sit over light clothing in the photos */
.photo-card .glass-label,
.person-card .glass-label { background: rgba(10, 41, 69, 0.6); }
.stat-chip {
  position: absolute;
  left: 20px; top: 20px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-16) 22px;
  border: 1px solid var(--white-a16);
  border-radius: var(--radius-md);
  background: var(--white-a12);
  -webkit-backdrop-filter: blur(var(--blur-lg));
  backdrop-filter: blur(var(--blur-lg));
  box-shadow: var(--shadow-chip);
}
.stat-chip__label {
  color: var(--mist);
  font-weight: var(--fw-medium);
  font-size: var(--fs-12);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}
.stat-chip__value { font-family: var(--font-display); font-size: var(--fs-36); line-height: var(--lh-title); color: var(--white); }

/* ==========================================================================
   7. Features
   ========================================================================== */
.features { padding-bottom: 100px; }
.features__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-32); }
.features__title { font-size: var(--fs-h2-sm); line-height: var(--lh-heading); }
.features__body { display: flex; align-items: center; gap: var(--space-24); }

.accordion { display: flex; flex-direction: column; gap: var(--space-8); width: 607px; flex: none; }
.acc-item { padding: 0; }
.acc-item__heading { margin: 0; font: inherit; }
.acc-item__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
  width: 100%;
  padding: var(--space-24);
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-md);
}
.acc-item__label { display: flex; align-items: center; gap: var(--space-16); }
.acc-item__toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--page-bg);
  transition: background-color var(--transition-fast);
}
.acc-item__trigger:hover .acc-item__toggle { background: var(--sand-100); }
/* plus/minus SVGs are 32x32 boxes with the 20px glyph in the top-left */
.acc-item__toggle .ico { position: relative; width: 20px; height: 20px; overflow: hidden; }
.acc-item__toggle img { position: absolute; left: 0; top: 0; width: 32px; height: 32px; max-width: none; }
.acc-item__toggle .is-minus { display: none; }
.acc-item__trigger[aria-expanded="true"] .is-minus { display: block; }
.acc-item__trigger[aria-expanded="true"] .is-plus { display: none; }
.acc-item__panel { padding: 0 var(--space-24) 25px; margin-top: -12px; }
.acc-item__panel:not([hidden]) { animation: fade-up var(--dur-fade) ease both; }
.both__body:not([hidden]),
.both__panel .photo-card:not([hidden]) { animation: fade-up var(--dur-fade) ease both; }

.stage-box {
  flex: 1 1 0;
  min-width: 0;
  min-height: 500px; /* grows to fit the open view */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-24);
  border-radius: var(--radius-3xl);
  background: var(--grad-sand);
  overflow: hidden;
}
.stage-box { display: grid; place-items: center; grid-template-columns: minmax(0, 1fr); }
/* Mock cards keep their 440px design layout; script.js sets --ui-scale to shrink
   them (zoom) when the stage box is narrower than that. */
.stage-view .ui-card { zoom: var(--ui-scale, 1); }
.stage-view { grid-area: 1 / 1; width: 100%; display: flex; justify-content: center; pointer-events: none;}
/* Only the open view takes up space, so the box fits whichever card is showing */
.stage-view:not(.is-active) { display: none; }
.stage-view.is-active { animation: fade-up var(--dur-fade-slow) ease both; }

.ui-card {
  flex: none;
  width: 440px;
  background: var(--white);
  border: 1px solid var(--ui-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-ui-card);
  overflow: hidden;
}
.ui-card__head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-20) var(--space-28); border-bottom: 1px solid var(--line); }
.ui-card__logo { width: 66.12px; height: 20px; }
.ui-card__step { color: var(--gray-400); font-size: var(--fs-14); }
.ui-card__body { display: flex; flex-direction: column; gap: var(--space-20); padding: var(--space-28); }
.ui-card__intro { display: flex; flex-direction: column; gap: 6px; }
.ui-card__title { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--fs-24); line-height: var(--lh-title); }
.ui-card__sub { color: var(--slate); font-size: var(--fs-15); }
.ui-field { display: flex; flex-direction: column; gap: var(--space-8); flex: 1 1 0; min-width: 0; }
.ui-field__label { font-weight: var(--fw-medium); font-size: var(--fs-14); line-height: var(--lh-snug); }
.ui-field__value {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 var(--space-16);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: var(--fs-16);
  line-height: var(--lh-snug);
}
.ui-row { display: flex; gap: 14px; }
.ui-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px var(--space-24);
  border-radius: var(--radius-sm);
  background: var(--stifel-blue-dark);
  color: var(--white);
  font-weight: var(--fw-medium);
  font-size: var(--fs-16);
  line-height: var(--lh-snug);
}

/* ---------- Feature views 2–5 (Figma 11:762) ---------- */
.ui-card__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  padding: 22px var(--space-28);
  border-bottom: 1px solid var(--ui-border);
  font-weight: var(--fw-medium);
  font-size: var(--fs-18);
  line-height: var(--lh-body);
  white-space: nowrap;
}
.ui-card__sub { line-height: var(--lh-body); }
.ui-divider { width: 100%; height: 1px; margin: 0; border: 0; background: var(--ui-border); }

.ui-chips { display: flex; align-items: flex-start; gap: var(--space-8); }
.ui-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid var(--ui-border);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-weight: var(--fw-medium);
  font-size: var(--fs-14);
  line-height: var(--lh-snug);
  white-space: nowrap;
}
.ui-chip.is-on { border: 0; background: var(--stifel-blue-dark); color: var(--white); }

.ui-group { display: flex; flex-direction: column; gap: 10px; }

.ui-figure { display: flex; flex-direction: column; gap: var(--space-4); }
.ui-figure__value {
  font-weight: var(--fw-semibold);
  font-size: 44px;
  line-height: var(--lh-heading);
  letter-spacing: -0.44px;
  white-space: nowrap;
}
.ui-kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  width: 100%;
  font-size: var(--fs-15);
  line-height: var(--lh-body);
  white-space: nowrap;
}
.ui-kv > span:first-child { color: var(--slate); }
.ui-kv > span:last-child { font-weight: var(--fw-medium); }

/* Cards: payment card mock */
.ui-card__body--cards { gap: 22px; }
.ui-paycard {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 224px;
  padding: var(--space-24);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--stifel-blue-dark) 45%, var(--navy-700) 100%);
  box-shadow: 0 8px 24px rgba(10, 41, 69, 0.07);
  color: var(--white);
}
.ui-paycard__row { display: flex; align-items: center; justify-content: space-between; }
.ui-paycard__row--end { align-items: flex-end; }
.ui-paycard__status {
  padding: 6px var(--space-12);
  border-radius: var(--radius-pill);
  background: var(--white-a14);
  font-weight: var(--fw-medium);
  font-size: var(--fs-13);
  line-height: var(--lh-snug);
}
.ui-paycard__id { display: flex; flex-direction: column; gap: var(--space-4); line-height: var(--lh-snug); }
.ui-paycard__name { color: var(--muted-on-dark); font-size: var(--fs-14); }
.ui-paycard__num { font-weight: var(--fw-medium); font-size: var(--fs-20); white-space: nowrap; }
.ui-paycard__chip { width: 44px; height: 30px; border-radius: 8px; background: var(--grad-gold); }

/* Bill pay: Figma builds this card at 480px and shows it at 88.1% */
.stage-view .ui-card--bills { width: 480px; zoom: calc(0.881 * var(--ui-scale, 1)); }
.ui-bills { list-style: none; margin: 0; padding: 6px var(--space-28); }
.ui-bill { display: flex; align-items: center; gap: 14px; padding: 18px 0; }
.ui-bill + .ui-bill { border-top: 1px solid var(--ui-border); }
.ui-bill__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--sand-50);
  color: var(--stifel-blue-dark);
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-18);
  line-height: var(--lh-title);
}
.ui-bill__info { display: flex; flex-direction: column; gap: 6px; flex: 1 1 0; min-width: 0; }
.ui-bill__name { font-weight: var(--fw-medium); font-size: var(--fs-16); line-height: var(--lh-snug); white-space: nowrap; }
.ui-bill__meta { display: flex; align-items: center; gap: var(--space-8); color: var(--slate); font-size: var(--fs-14); line-height: var(--lh-snug); white-space: nowrap; }
.ui-bill__meta .ui-chip { color: var(--charcoal); }
.ui-bill__amount { font-weight: var(--fw-medium); font-size: var(--fs-16); line-height: var(--lh-body); white-space: nowrap; }
.ui-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  padding: 18px var(--space-28);
  background: var(--sand-50);
}
.ui-card__note { color: var(--slate); font-size: var(--fs-15); line-height: var(--lh-body); white-space: nowrap; }
.ui-card__foot .ui-card__btn { padding: 15px var(--space-24); white-space: nowrap; }

/* ==========================================================================
   8. Solutions
   ========================================================================== */
.solutions__cards { display: flex; gap: var(--space-24); }
.solution { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--space-20); }
.solution .card__text { max-width: 252px; }
.solutions__note { margin-top: var(--space-20); color: var(--slate); font-size: var(--fs-14); }

/* ==========================================================================
   9 & 11. Dark stages (CTA + form)
   ========================================================================== */
.dark-stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-section);
  color: var(--white);
  isolation: isolate;
}
.dark-stage__decor { position: absolute; left: 0; top: 0; z-index: -1; max-width: none; pointer-events: none; }

.cta-stage {
  min-height: 470px;
  padding: var(--space-80);
  background: var(--grad-cta);
}
.cta-stage .dark-stage__decor { width: 1400px; height: 640px; }
.cta-stage__copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 36px; max-width: 764px; }
.cta-stage__title { font-size: var(--fs-cta-sm); line-height: var(--lh-display); letter-spacing: var(--tracking-display); color: var(--white); }

/* Landscape card sized to the 600×406 group photo (transparent background, so the
   card supplies the navy behind it); right edge stays where the portrait card was */
.person-card {
  position: absolute;
  right: 80px;
  top: 40px;
  width: 576px;
  height: 390px;
  background: var(--stifel-blue-dark);
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: var(--space-20);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.person-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: bottom; }
/* Navy duotone over black-and-white cutout photos */
.person-card__duotone,
.photo-card__duotone { position: absolute; inset: 0; background: var(--stifel-blue-dark); mix-blend-mode: lighten; }
.person-card .glass-label { position: relative; }

/* Form stage */
.form-stage {
  padding: 96px var(--space-72);
  background: var(--grad-form);
}
.form-stage .dark-stage__decor { width: 1400px; height: 705px; }
.form-stage__lines {
  position: absolute;
  z-index: -2;
  left: 64.83%;
  top: -281px;
  width: 1702.67px;
  height: 1524.6px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.form-stage__lines img {
  flex: none;
  width: 1602.6px;
  height: 1361.6px;
  max-width: none;
  transform: rotate(5.99deg) skewX(1.41deg);
}
.form-stage__row { position: relative; display: flex; align-items: center; gap: var(--space-24); }
.form-stage__copy { width: 536px; flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.form-stage__title { font-size: var(--fs-cta); line-height: var(--lh-display); letter-spacing: var(--tracking-display); color: var(--white); }
.form-stage__sub { color: var(--muted-on-dark); font-size: var(--fs-16); }

.lead-form {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
  padding: 36px;
  border: 1px solid var(--white-a16);
  border-radius: var(--radius-2xl);
  background: var(--white-a07);
  -webkit-backdrop-filter: blur(var(--blur-md));
  backdrop-filter: blur(var(--blur-md));
}
.lead-form__row { display: flex; gap: var(--space-16); }
.field { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--space-8); }
.field__label { font-weight: var(--fw-medium); font-size: var(--fs-15); line-height: var(--lh-body); color: var(--white); }
.field__input {
  width: 100%;
  height: 52px;
  padding: 0 var(--space-20);
  border: 1px solid var(--white-a50); /* was 0.14; 3.4:1 against the panel */
  border-radius: var(--radius-field);
  background: var(--stifel-blue);
  color: var(--white);
  font-size: var(--fs-16);
  line-height: var(--lh-body);
  transition: border-color var(--transition-fast), outline-color var(--transition-fast);
}
.field__input::placeholder { color: var(--placeholder-on-dark); opacity: 1; }
/* Light-gold border plus a 2px outline ring so the focused field is easy to spot */
.field__input:focus { outline: 2px solid var(--light-gold); outline-offset: 2px; border-color: var(--light-gold); }
.field__input:user-invalid,
.field__input[aria-invalid="true"] { border-color: var(--error); }
.field__error { margin: 0; color: var(--error-text); font-size: var(--fs-14); line-height: var(--lh-relaxed); }
/* Keep browser autofill from painting fields yellow/white on the dark panel */
.field__input:-webkit-autofill,
.field__input:-webkit-autofill:hover,
.field__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--white);
  caret-color: var(--white);
  box-shadow: 0 0 0 1000px var(--autofill-bg) inset;
  transition: background-color 9999s ease-out;
}
textarea.field__input { height: 104px; padding-top: var(--space-16); resize: vertical; }
.lead-form__submit {
  width: 100%;
  height: 56px;
  gap: var(--space-12);
  border: 0;
  background: var(--warm-white);
  color: var(--navy-ink);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-14);
  border-radius: var(--radius-pill);
}
.lead-form__note { color: var(--muted-on-dark); font-size: var(--fs-14); text-align: center; } /* #b9c6d3: 4.9:1 */
/* Thank-you state (11:573): same glass box, content centred */
.lead-form--done { align-items: center; justify-content: center; text-align: center; outline: none; }
.lead-form--done:not([hidden]) { animation: fade-up var(--dur-fade) ease both; }
.lead-form__check { width: 46px; height: 46px; margin: 5px; } /* 46px glyph in Figma's 56px icon slot */
.lead-form__thanks { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 48px; line-height: 1.1; color: var(--warm-white); }

/* ==========================================================================
   10. Heritage
   ========================================================================== */
.heritage { display: flex; align-items: flex-start; gap: var(--space-80); }
.heritage__left { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-24); }
.archive { display: flex; gap: var(--space-16); width: 100%; padding-top: var(--space-16); }
.archive__photo { flex: 1 1 0; min-width: 0; height: 300px; border-radius: var(--radius-xl); overflow: hidden; }
.archive__photo img { width: 100%; height: 100%; object-fit: cover; }
.milestones { width: 600px; flex: none; list-style: none; margin: 0; padding: var(--space-8) 0 0; }
.milestone { display: flex; gap: var(--space-32); padding: var(--space-24) 0; border-top: 1px solid var(--slate); }
.milestone:last-child { border-bottom: 1px solid var(--slate); }
.milestone__year { width: 96px; flex: none; font-family: var(--font-display); font-size: var(--fs-32); line-height: normal; }
.milestone__text { display: flex; flex-direction: column; gap: 6px; }
.milestone__title { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--fs-24); line-height: normal; }
.milestone__desc { color: var(--slate); font-size: var(--fs-16); line-height: var(--lh-body); }

/* ==========================================================================
   12. Footer
   ========================================================================== */
.footer {
  background: var(--charcoal);
  color: var(--warm-white);
  font-family: var(--font-ui);
  padding: 88px 100px;
}
.footer__inner { max-width: 1240px; margin-inline: auto; display: flex; flex-direction: column; gap: var(--space-80); }
.footer__top { display: flex; justify-content: space-between; gap: var(--space-48); }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-24); max-width: 340px; }
.footer__logo { width: 182.5px; height: 42px; }
.footer__tagline { font-size: var(--fs-16); line-height: var(--lh-body); }
.footer__cols { display: flex; gap: var(--space-80); }
/* Links are 24px+ tall tap targets (2px padding); gap + negative margin keep Figma's 34px rhythm */
.footer__list { list-style: none; margin: -2px 0; padding: 0; display: flex; flex-direction: column; gap: 7.6px; }
.footer a { text-decoration: none; font-size: var(--fs-16); line-height: var(--lh-relaxed); }
.footer__list a { display: inline-block; padding: 2px 0; }
.footer a:hover { text-decoration: underline; }
.footer__bottom { display: flex; flex-direction: column; gap: var(--space-32); }
.footer__entities { display: flex; flex-wrap: wrap; align-items: stretch; gap: 18px; list-style: none; margin: 0; padding: 0; }
.footer__entities li + li { padding-left: 18px; border-left: 1px solid var(--warm-white-a50); }
.footer__legal-row { display: flex; flex-wrap: wrap; gap: var(--space-16); font-size: var(--fs-16); line-height: var(--lh-relaxed); }
.footer__legal-links { display: flex; flex-wrap: wrap; gap: var(--space-16); list-style: none; margin: 0; padding: 0; }
.footer__legal-links a { text-decoration: underline; text-underline-position: from-font; }
.footer__disclaimer { color: var(--gray-300); font-size: var(--fs-12); line-height: var(--lh-relaxed); }
.footer__fineprint { display: flex; flex-direction: column; gap: var(--space-12); }
/* Links inside the fine print match its small type and stay underlined, since they sit in running text */
.footer .footer__disclaimer a { font-size: inherit; line-height: inherit; color: inherit; text-decoration: underline; text-underline-position: from-font; }

/* ==========================================================================
   Responsive
   Figma only has the 1440px desktop frame; everything below is our own
   adaptation. Breakpoints: 1280 (small desktop), 1024 (tablet landscape),
   900 (tablet portrait), 640 (phone).
   ========================================================================== */
@media (max-width: 1280px) {
  :root { --gutter: var(--space-48); }
  .stats { column-gap: var(--space-32); }
  .stat { width: calc(25% - 24px); }
  .accordion { width: 52%; }
  .product-shot { width: 50%; height: auto; aspect-ratio: 640 / 460; }
  .product-shot .monitor { left: 6.25%; top: 12.17%; width: 87.5%; }
  .platform { gap: var(--space-48); }
  .cta-stage { display: flex; align-items: center; justify-content: space-between; gap: var(--space-40); padding: var(--space-64); }
  .cta-stage__copy { max-width: 764px; flex: 1 1 auto; min-width: 0; }
  .person-card { position: relative; right: auto; top: auto; flex: none; width: 440px; height: auto; aspect-ratio: 600 / 406; }
  .milestones { width: 50%; }
  .heritage { gap: var(--space-48); }
  .form-stage { padding: var(--space-72) var(--space-56); }
  .form-stage__copy { width: 42%; flex: none; }
  .footer { padding-inline: var(--gutter); }
}

@media (max-width: 1024px) {
  :root { --gutter: var(--space-32); --section-y: var(--space-64); }
  .coverage__panel { flex-direction: column; }
  .map { flex: none; height: auto; aspect-ratio: 1452 / 880; }
  .sectors { width: 100%; flex-direction: row; }
  .platform__statement { font-size: var(--fs-28); }
  .features__head { flex-direction: column; align-items: flex-start; gap: var(--space-20); }
  .features__body { flex-direction: column; align-items: stretch; }
  .accordion { width: 100%; }
  .stage-box { flex: none; }
  .solutions__cards { flex-wrap: wrap; }
  .solution { flex: 1 1 calc(50% - 12px); }
  .solution .card__text { max-width: 320px; }
  .cta-stage { padding: var(--space-56); }
  .person-card { width: 340px; }
  .form-stage { padding: var(--space-56); }
  .form-stage__row { flex-direction: column; align-items: stretch; gap: var(--space-40); }
  .form-stage__copy { width: auto; max-width: 560px; }
  .footer__top { flex-direction: column; }
  .footer__cols { gap: var(--space-48); flex-wrap: wrap; }
}

@media (max-width: 900px) {
  .stats { column-gap: var(--space-24); row-gap: var(--space-32); }
  .stat { width: calc(50% - 12px); }
  .platform { flex-direction: column; align-items: stretch; gap: var(--space-40); }
  .product-shot { width: 100%; max-width: 640px; }
  .both__panel { flex-direction: column; align-items: stretch; }
  .photo-card { flex: none; }
  .heritage { flex-direction: column; }
  .milestones { width: 100%; }
  .archive__photo { height: auto; aspect-ratio: 292 / 300; }
}

@media (max-width: 760px) {
  .cta-stage { flex-direction: column; align-items: stretch; gap: var(--space-32); }
  .person-card { width: 100%; max-width: 560px; }
}

@media (max-width: 640px) {
  :root {
    --gutter: var(--space-16);
    --section-y: var(--space-56);
    --fs-hero: clamp(40px, 11.6vw, 52px);
    --fs-stat: clamp(36px, 10.5vw, 44px);
  }
  .nav { padding: 14px var(--space-16); }
  .hero__content { gap: var(--space-28); padding-top: var(--space-64); padding-inline: var(--space-16); }
  /* A taller crop of the monitor than desktop, for more breathing room on phones */
  .hero__device { width: calc(100% - 32px); margin-top: var(--space-28); aspect-ratio: 1090 / 480; }
  .stats { column-gap: var(--space-16); }
  .stat { width: calc(50% - 8px); }
  .stat__label { font-size: var(--fs-15); }
  .h2 br { display: none; }
  .panel { padding: var(--space-12); border-radius: var(--radius-xl); }
  .map { border-radius: var(--radius-md); }
  .office-list { display: flex; }
  .sectors { flex-direction: column; }
  .sector__title { font-size: var(--fs-26); }
  .platform__statement { font-size: var(--fs-26); }
  .product-shot { border-radius: var(--radius-xl); }
  .segmented__btn { min-width: 0; padding: 0 18px; }
  /* Shorter card sized to the landscape cutout photos: grows with the screen
     (about 246px tall at 375px wide) up to the desktop height */
  /* Label sits in the empty navy above the photo, clear of faces */
  .photo-card { height: clamp(220px, 40px + 55vw, 340px); justify-content: flex-start; }
  .acc-item__trigger { padding: 18px; }
  .acc-item__panel { padding: 0 18px var(--space-20); }
  .card__title { font-size: var(--fs-22); }
  .stage-box { padding: var(--space-16); min-height: 0; border-radius: var(--radius-xl); }
  .solutions__cards { gap: var(--space-12); }
  /* Icon sits inline with the title (like .sector__head); the text runs full width below */
  .solution {
    flex-basis: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: var(--space-16);
    row-gap: var(--space-12);
  }
  .solution .card__text { grid-column: 1 / -1; max-width: none; }
  .dark-stage { border-radius: var(--radius-xl); }
  .cta-stage, .form-stage { padding: var(--space-40) var(--space-20); }
  #get-started { padding-inline: 0; } /* form panel runs edge to edge */
  .lead-form { padding: var(--space-20); border-radius: var(--radius-lg); }
  .lead-form__row { flex-direction: column; }
  .milestone { gap: var(--space-16); }
  .milestone__year { width: 72px; font-size: var(--fs-26); }
  .milestone__title { font-size: var(--fs-20); }
  .archive { gap: var(--space-12); }
  .archive__photo { border-radius: var(--radius-md); }
  .footer { padding: var(--space-56) var(--gutter); }
  .footer__inner { gap: var(--space-48); }
  .footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-32) var(--space-24); }
  .footer__entities { flex-direction: column; gap: 10px; }
  .footer__entities li + li { padding-left: 0; border-left: 0; }
  .footer a, .footer__legal-row { font-size: var(--fs-15); }
}

/* reCAPTCHA v3: hide the floating badge. Allowed by Google only because the
   reCAPTCHA legal note (.lead-form__legal) is shown next to the form. */
.grecaptcha-badge { visibility: hidden; }
.lead-form__legal { font-size: var(--fs-13, 13px); }
.lead-form__legal a { color: inherit; text-decoration: underline; }
