/* ==========================================================================
   Firsthand Partners — shared design system  (assets/site.css)
   --------------------------------------------------------------------------
   The one stylesheet both pages (index.html and advisors/index.html) build on:
   design tokens, reset, layout + type primitives, nav, buttons, cards, the
   HTML/CSS product-mockup primitives (.mock*), forms, footer, reveal motion,
   and the components the two pages share (roster cards, Get Started, closing
   block). Look: Lexend, violet #5d5bf6, ink #14142b, airy #f7f7fb sections,
   white 24px cards with 1px #e6e5f8 borders, one dark contrast section.

   How pages use it
     - Fonts: each page loads Lexend 300-700 with <link> tags (never @import).
     - <link rel="stylesheet" href="assets/site.css"> (../assets/ from
       advisors/), then an optional page file (assets/home.css or
       assets/advisors.css) holding only rules unique to that page.
     - A tiny inline <head> script adds class "js" to <html>. Without it nothing
       is hidden or collapsed: reveal-on-scroll and the Get Started panels are
       progressive enhancement. assets/site.js (nav, routes, reveal) and
       assets/forms.js (Get Started + form submit) add the behaviour.
     - Page CSS consumes the tokens below and never redefines :root values.

   Contents
     1.  Fonts                       8.  Mockup primitives (.mock*)
     2.  Tokens                      9.  Forms
     3.  Reset / base               10.  Footer
     4.  Layout + typography        11.  Reveal + motion utilities
     5.  Nav                        12.  Utilities
     6.  Buttons, pills, links      13.  Shared components (person card, logo strip, callout)
     7.  Cards + .feature-card      14.  Get Started (dark selector + form panel)
                                    15.  Closing block
                                    16.  Print + focus targets
   Breakpoints: 1180 (roster 5-up) / 1024 (tablet) / 768 (nav collapses, grids
   stack) / 480 (phone).
   ========================================================================== */


/* ==========================================================================
   1. FONTS
   Lexend is loaded by each page with <link> tags (weights 300-700). We only
   declare the stack here, with a metric-friendly system fallback.
   ========================================================================== */


/* ==========================================================================
   2. TOKENS
   ========================================================================== */
:root {
  /* ---- Font ---- */
  --font: "Lexend", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* ---- Colour: brand ---- */
  --violet:        #5d5bf6;   /* primary. white text on it = 4.9:1 (AA)            */
  --violet-deep:   #4746cb;   /* hover / pressed / violet TEXT on tinted bg (6.4:1) */
  --violet-ink:    #4746cb;   /* alias: use for small violet text (AA everywhere)   */
  --violet-soft:   #a5a4ff;   /* accents on dark surfaces (8:1 on #14142b)          */
  --violet-glow:   rgba(93, 91, 246, .32);

  /* ---- Colour: neutrals ---- */
  --ink:           #14142b;   /* headings, strong text                              */
  --text:          #14142b;
  --text-2:        #45455a;   /* body copy (9:1 on white)                           */
  --muted:         #5f5c82;   /* secondary copy (>=5.4:1 on white / #f7f7fb / lav)  */
  --subtle:        #6a6789;   /* tertiary / placeholders (>=4.65:1 on every surface)*/
  --bg:            #f7f7fb;   /* page background                                    */
  --white:         #ffffff;
  --lav:           #f4f4ff;   /* lavender panel                                     */
  --lav-2:         #eeeef7;   /* deeper lavender / chips                            */
  --line:          #e6e5f8;   /* card + panel borders                               */
  --line-2:        #e4e4f2;   /* alt hairline                                       */
  --line-strong:   #cdcbe6;   /* form-control borders                               */

  /* ---- Colour: status ---- */
  --success:       #1e9e52;   /* dots, icons (NOT small text: 3.5:1)                */
  --success-ink:   #167a3f;   /* success text on --success-bg (5:1)                 */
  --success-bg:    #e9f9ef;
  --success-line:  #c7eed6;
  --danger:        #d64545;
  --danger-ink:    #b42318;   /* error text (6.5:1 on white)                        */
  --danger-bg:     #fdeceb;

  /* ---- Colour: dark surfaces ---- */
  --dark:          #14142b;
  --dark-2:        #1e1e3a;   /* elevated panel on dark                             */
  --dark-line:     rgba(255, 255, 255, .10);
  --on-dark:       #ffffff;
  --on-dark-2:     #d9d9ee;   /* body text on dark (12:1)                           */
  --on-dark-muted: #b4b4d8;   /* secondary text on dark (9:1)                       */

  /* ---- Radii ---- */
  --r-sm:   10px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   24px;
  --r-2xl:  32px;   /* closing panel */
  --r-pill: 999px;

  /* ---- Shadows (very soft, StealthJobs style) ---- */
  --shadow-xs:   0 1px 2px rgba(20, 20, 43, .05);
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, .05), 0 4px 14px rgba(20, 20, 43, .04);
  --shadow-lift: 0 28px 56px -14px rgba(20, 20, 43, .16), 0 8px 22px rgba(20, 20, 43, .06);
  --shadow-violet: 0 10px 24px -6px rgba(93, 91, 246, .5);

  /* ---- Spacing scale (4 / 8 based) ---- */
  --s-1:   4px;
  --s-2:   8px;
  --s-3:   12px;
  --s-4:   16px;
  --s-5:   20px;
  --s-6:   24px;
  --s-8:   32px;
  --s-10:  40px;
  --s-12:  48px;
  --s-16:  64px;
  --s-20:  80px;
  --s-24:  96px;
  --s-32:  128px;
  --section-y: clamp(64px, 5.5rem + 2vw, 120px);   /* vertical rhythm between sections */
  --grid-gap: 24px;

  /* ---- Type scale (fluid) ----
       display  40 -> 72px     h1  36 -> 60px     h2  28 -> 44px
       h3       20 -> 24px     lead 17 -> 20px    body 16    small 14    micro 12 */
  --fs-display: clamp(2.5rem, 1.5rem + 4.2vw, 4.5rem);
  --fs-h1:      clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);
  --fs-h2:      clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  --fs-h3:      clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --fs-lead:    clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  --fs-body:    1rem;
  --fs-small:   .875rem;
  --fs-micro:   .75rem;

  /* ---- Layout ---- */
  --container: 1200px;
  --container-narrow: 860px;
  --gutter: 24px;             /* 20px <= 768 (set below) */
  --nav-h: 72px;              /* 64px <= 768 */
  --closing-overlap: 96px;    /* how far the closing panel rides up over the dark section (64px <= 768) */

  /* ---- Motion ---- */
  --ease:        cubic-bezier(.4, 0, .2, 1);
  --ease-out:    cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-1: .15s;
  --dur-2: .25s;
  --dur-3: .5s;
  --dur-4: .8s;

  /* ---- Inline icons (mask-image data URIs; colour with currentColor) ---- */
  --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E");
  --icon-external: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 11l6-6M6 5h5v5'/%3E%3C/svg%3E");

  /* ---- Mockup theme (light default; see section 8) ---- */
  --m-surface:      #ffffff;                 /* solid colour of the surface a mockup element sits on */
  --m-panel:        #ffffff;                 /* .mock / .mock__row--card background                  */
  --m-panel-border: var(--line);
  --m-text:         var(--ink);
  --m-muted:        #5f5c82;
  --m-skel:         #e4e3f5;
  --m-skel-strong:  #d0cef0;
  --m-line:         #e6e5f8;
  --m-chip:         #f0f0fa;
  --m-accent:       var(--violet);
  --m-accent-ink:   var(--violet-deep);
}

@media (max-width: 768px) {
  :root { --gutter: 20px; --nav-h: 64px; --closing-overlap: 64px; }
}


/* ==========================================================================
   3. RESET / BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);   /* anchors land below the fixed nav */
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--ink);
}
p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
svg { flex: none; }

a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

/* Keyboard focus — violet ring, never removed */
:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}
:where(.section--dark, .on-dark, .card--dark, .feature-card__visual--dark, .mock--dark) :focus-visible {
  outline-color: var(--violet-soft);
}

::selection { background: rgba(93, 91, 246, .22); color: var(--ink); }

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


/* ==========================================================================
   4. LAYOUT PRIMITIVES + TYPOGRAPHY
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }

/* Sections. Default = transparent (shows the #f7f7fb page). Alternate the flavours. */
.section {
  position: relative;
  padding-block: var(--section-y);
}
.section--alt   { background: var(--bg); }
.section--white { background: var(--white); }
.section--lav   { background: var(--lav); }
.section--tight { padding-block: clamp(40px, 4vw, 64px); }
.section--flush-top    { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }

/* The one dark contrast section (Get Started / CTA) */
.section--dark {
  background: var(--dark);
  color: var(--on-dark);
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
}
.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 85% 0%, rgba(93, 91, 246, .30), transparent 70%),
    radial-gradient(45% 45% at 0% 100%, rgba(93, 91, 246, .16), transparent 70%);
}
@media (max-width: 768px) {
  .section--dark::before {
    background:
      radial-gradient(420px 320px at 88% 0, rgba(93, 91, 246, .30), transparent 72%),
      radial-gradient(360px 300px at 0 100%, rgba(93, 91, 246, .16), transparent 72%);
  }
}
.section--dark :is(h1, h2, h3, h4, .display, .h1, .h2, .h3) { color: var(--on-dark); }
.section--dark :is(.lead, .muted) { color: var(--on-dark-muted); }
.section--dark .eyebrow {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .14);
  color: #d4d3ff;
  box-shadow: none;
}
.section--dark .eyebrow::before { background: var(--violet-soft); box-shadow: 0 0 0 3px rgba(165, 164, 255, .18); }
.section--dark .micro-label { color: var(--on-dark-muted); }

/* Section header block: eyebrow + heading + lead */
.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 3rem + 1.5vw, 64px);
}
.section-head > .eyebrow { margin-bottom: 20px; }
.section-head > .lead { margin-top: 16px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center > .lead { margin-inline: auto; }
.section-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 20px clamp(32px, 6vw, 80px);
  align-items: start;
}
.section-head--split > .eyebrow { grid-column: 1 / -1; justify-self: start; margin-bottom: 0; }
.section-head--split > .lead { margin-top: 0; font-size: clamp(1rem, .94rem + .3vw, 1.125rem); }

/* Eyebrow: pill with a dot. Micro-label: uppercase tracked caption. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--violet-ink);
  font-size: var(--fs-micro);
  font-weight: 500;
  line-height: 1;
  letter-spacing: .01em;
  box-shadow: var(--shadow-xs);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 3px rgba(93, 91, 246, .16);
}
.micro-label {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--muted);
}

/* Headings — Lexend 600, tight negative tracking */
.display { font-size: var(--fs-display); font-weight: 600; line-height: 1.03; letter-spacing: -.038em; color: var(--ink); }
.h1      { font-size: var(--fs-h1);      font-weight: 600; line-height: 1.07; letter-spacing: -.034em; color: var(--ink); }
.h2      { font-size: var(--fs-h2);      font-weight: 600; line-height: 1.12; letter-spacing: -.03em;  color: var(--ink); }
.h3      { font-size: var(--fs-h3);      font-weight: 600; line-height: 1.25; letter-spacing: -.02em;  color: var(--ink); }
.lead    { font-size: var(--fs-lead);    font-weight: 400; line-height: 1.6;  letter-spacing: -.006em; color: var(--muted); max-width: 62ch; }
.muted   { color: var(--muted); }
.small   { font-size: var(--fs-small); line-height: 1.55; }
.micro   { font-size: var(--fs-micro); line-height: 1.5; }
.text-accent { color: var(--violet); }
.text-grad {
  background: linear-gradient(100deg, #5d5bf6 0%, #7d7bff 55%, #4746cb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.section--dark .text-grad {
  background: linear-gradient(100deg, #a5a4ff 0%, #c9c8ff 60%, #8f8dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.section--dark .text-accent { color: var(--violet-soft); }

/* Grid helpers — collapse responsively.
     grid-2: 2 -> 1 (<=768)
     grid-3: 3 -> 2 (<=1024, an odd last card is centred) -> 1 (<=768)
     grid-4: 4 -> 2 (<=1024) -> 1 (<=480)
     grid-5: roster ladder 5 -> 4 (<=1179) -> 3 (<=899) -> 2 (<=599)
     grid-3--stay: keep 3 columns on tablets (769-1024) for three short choices  */
.grid { display: grid; gap: var(--grid-gap); }
.grid-2, .grid-3, .grid-4, .grid-5 { display: grid; gap: var(--grid-gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); --grid-gap: 16px; }
.grid--center { align-items: center; }
.grid--start  { align-items: start; }
.grid--stretch > * { height: 100%; }
.gap-sm { --grid-gap: 12px; }
.gap-md { --grid-gap: 16px; }
.gap-lg { --grid-gap: 32px; }
.gap-xl { --grid-gap: clamp(32px, 6vw, 80px); }

@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 > :last-child:nth-child(odd) {   /* orphan: centre it at one column's width */
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - var(--grid-gap) / 2);
  }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3--stay { grid-template-columns: repeat(3, minmax(0, 1fr)); --grid-gap: 16px; }
  .grid-3--stay > :last-child:nth-child(odd) { grid-column: auto; justify-self: stretch; width: auto; }
}
@media (max-width: 1179px) { .grid-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 899px)  { .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .grid-3 > :last-child:nth-child(odd) { grid-column: auto; justify-self: stretch; width: auto; }
  .section-head--split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599px)  { .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); --grid-gap: 12px; } }
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

/* Stack helpers: vertical rhythm between siblings */
.stack > * + * { margin-top: var(--stack, 16px); }
.stack--xs { --stack: 8px; }
.stack--sm { --stack: 12px; }
.stack--md { --stack: 20px; }
.stack--lg { --stack: 28px; }
.stack--xl { --stack: 40px; }
/* Cluster: wrap-friendly horizontal row (buttons, pills) */
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cluster--center { justify-content: center; }
.cluster--between { justify-content: space-between; }


/* ==========================================================================
   5. NAV
   Fixed, translucent white + blur. The blur lives on ::before (NOT on .nav)
   because backdrop-filter on an ancestor traps position:fixed children —
   the mobile overlay must stay viewport-relative.
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.nav.is-scrolled::before {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -14px rgba(20, 20, 43, .14);
}
/* At the very top the bar is see-through so the hero glow is not chopped at y=72.
   Only while site.js is running (.reveal-on): without JS the bar stays solid. */
.reveal-on .nav:not(.is-scrolled):not(.is-menu-open)::before {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.nav-inner {
  position: relative;
  z-index: 2;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* FP logo mark — violet disc, concentric ring (SVG), "FP" */
.fp-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(140deg, #7876ff 0%, #5d5bf6 45%, #4746cb 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.01em;
  box-shadow: 0 6px 14px -4px rgba(93, 91, 246, .55), inset 0 0 0 1px rgba(255, 255, 255, .22);
}
.fp-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fp-mark--sm { width: 30px; height: 30px; font-size: 10.5px; }

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.nav-wordmark {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.022em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links .btn { margin-left: 4px; }
.nav-link {
  padding: 10px 14px;
  border-radius: var(--r-pill);
  color: var(--text-2);
  font-size: var(--fs-small);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}
.nav-link:hover { background: var(--lav); color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--violet-ink); background: var(--lav); }

/* Mobile toggle: 3 bars morph to an X on aria-expanded="true" */
.nav-menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.nav-menu-toggle:hover { background: var(--lav); }
.nav-menu-toggle[aria-expanded="true"] { background: var(--lav); border-color: rgba(93, 91, 246, .35); }
.nav-menu-toggle-bars { position: relative; display: block; width: 18px; height: 12px; }
.nav-menu-toggle-bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur-2) var(--ease-out), top var(--dur-2) var(--ease-out), opacity var(--dur-1) var(--ease);
}
.nav-menu-toggle-bars i:nth-child(1) { top: 0; }
.nav-menu-toggle-bars i:nth-child(2) { top: 5px; }
.nav-menu-toggle-bars i:nth-child(3) { top: 10px; }
.nav-menu-toggle[aria-expanded="true"] i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-menu-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav-menu-toggle[aria-expanded="true"] i:nth-child(3) { top: 5px; transform: rotate(-45deg); }

/* Mobile dropdown + overlay (hidden on desktop; JS toggles .open) */
.nav-mobile-menu,
.nav-mobile-overlay { display: none; }

@keyframes nav-menu-in {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
@keyframes nav-overlay-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-menu-toggle { display: inline-flex; }
  .nav-logo { gap: 9px; }
  .fp-mark { width: 34px; height: 34px; font-size: 11.5px; }

  .nav-mobile-menu {
    position: absolute;
    z-index: 3;
    top: calc(var(--nav-h) + 6px);
    right: var(--gutter);
    width: min(320px, calc(100vw - var(--gutter) * 2));
    padding: 8px;
    flex-direction: column;
    gap: 2px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--white);
    box-shadow: var(--shadow-lift);
    transform-origin: top right;
  }
  .nav-mobile-menu.open { display: flex; animation: nav-menu-in var(--dur-2) var(--ease-out) both; }

  .nav-mobile-overlay {
    position: fixed;
    z-index: 1;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 20, 43, .28);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
  .nav-mobile-overlay.open { display: block; animation: nav-overlay-in var(--dur-2) var(--ease) both; }
}

.nav-mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: var(--r-md);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.nav-mobile-link::after {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  opacity: .4;
  -webkit-mask: var(--icon-arrow) center / contain no-repeat;
  mask: var(--icon-arrow) center / contain no-repeat;
}
.nav-mobile-link:hover,
.nav-mobile-link:focus-visible,
.nav-mobile-link[aria-current="page"],
.nav-mobile-link.is-active { background: var(--lav); color: var(--violet-ink); }
.nav-mobile-link[target="_blank"]::after {
  -webkit-mask-image: var(--icon-external);
  mask-image: var(--icon-external);
}
.nav-mobile-link--cta { background: var(--violet); color: #fff; margin-top: 6px; }
.nav-mobile-link--cta::after { opacity: .9; }
.nav-mobile-link--cta:hover,
.nav-mobile-link--cta:focus-visible,
.nav-mobile-link--cta.is-active { background: var(--violet-deep); color: #fff; }

html.nav-open,
html.nav-open body { overflow: hidden; }        /* no page scroll behind the open mobile menu (site.js toggles .nav-open) */

/* No JS at phone width: the hamburger cannot open anything, so the three links sit in a
   static strip under the logo row instead (site.js also strips the menu's aria-hidden at init). */
@media (max-width: 768px) {
  html:not(.js) { --nav-h: 116px; }
  html:not(.js) .nav-inner { height: 64px; }
  html:not(.js) .nav-menu-toggle { display: none; }
  html:not(.js) .nav-mobile-menu {
    display: flex;
    position: relative;       /* in flow, but above the bar's ::before */
    inset: auto;
    z-index: 2;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    width: auto;
    padding: 0 var(--gutter) 8px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  html:not(.js) .nav-mobile-link { min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); font-size: .875rem; }
  html:not(.js) .nav-mobile-link::after { display: none; }
  html:not(.js) .nav-mobile-link--cta { margin: 0 0 0 auto; }
}

/* Anchor the first section below the fixed nav: pages add .page-top or padding themselves */
.page-top { padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 88px)); }


/* ==========================================================================
   6. BUTTONS, PILLS, LINKS
   ========================================================================== */
.btn {
  --btn-h: 48px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--btn-h);
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--dur-2) var(--ease),
    border-color var(--dur-2) var(--ease),
    color var(--dur-2) var(--ease),
    box-shadow var(--dur-2) var(--ease),
    transform var(--dur-2) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; pointer-events: none; }

.btn--primary {
  background: var(--violet);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), var(--shadow-violet);
}
.btn--primary:hover {
  background: var(--violet-deep);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 14px 28px -8px rgba(93, 91, 246, .6);
}
.btn--primary:active { transform: translateY(0); }

.btn--outline {
  background: var(--white);
  border-color: var(--violet);
  color: var(--violet-ink);
}
.btn--outline:hover { background: var(--violet); border-color: var(--violet); color: #fff; }

.btn--ghost { color: var(--ink); }
.btn--ghost:hover { background: rgba(20, 20, 43, .06); }

.btn--dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 22px -8px rgba(20, 20, 43, .5);
}
.btn--dark:hover { background: #2a2a4d; transform: translateY(-1px); }
.btn--dark:active { transform: translateY(0); }

/* For use on dark sections */
.btn--white { background: #fff; color: var(--ink); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.btn--white:hover { background: var(--lav); transform: translateY(-1px); }
.btn--outline-light { border-color: rgba(255, 255, 255, .32); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .55); }

.btn--sm { --btn-h: 40px; padding: 0 18px; font-size: var(--fs-small); }
.btn--lg { --btn-h: 56px; padding: 0 32px; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

/* Icon slot: <svg class="btn__icon"> inside, or add .btn--arrow / .btn--ext for a CSS arrow */
.btn__icon { width: 16px; height: 16px; transition: transform var(--dur-2) var(--ease-out); }
.btn:hover .btn__icon { transform: translateX(3px); }
.btn--arrow::after,
.btn--ext::after,
.link-arrow::after,
.link-ext::after {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--icon-arrow) center / contain no-repeat;
  mask: var(--icon-arrow) center / contain no-repeat;
  transition: transform var(--dur-2) var(--ease-out);
}
.btn--ext::after,
.link-ext::after {
  -webkit-mask-image: var(--icon-external);
  mask-image: var(--icon-external);
}
.btn--arrow:hover::after,
.link-arrow:hover::after { transform: translateX(3px); }
.btn--ext:hover::after,
.link-ext:hover::after { transform: translate(2px, -2px); }

/* Inline arrow link */
.link-arrow,
.link-ext {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--violet-ink);
  font-size: var(--fs-small);
  font-weight: 500;
  text-decoration: none;
}
.link-arrow:hover,
.link-ext:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
/* Touch: inline links are ~22px tall; extend the hit area to >= 44px with an invisible pseudo-element */
@media (pointer: coarse), (max-width: 768px) {
  .link-arrow, .link-ext, .callout a, .closing__email, .gs-mail a { position: relative; }
  .link-arrow::before, .link-ext::before, .callout a::before, .closing__email::before, .gs-mail a::before {
    content: "";
    position: absolute;
    inset: -12px -6px;
  }
  .roster__head .link-arrow, .closing__email { min-height: 44px; display: inline-flex; align-items: center; }
}
:where(.section--dark, .on-dark, .card--dark) :is(.link-arrow, .link-ext) { color: var(--violet-soft); }

/* Pills / badges */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--lav);
  color: var(--text-2);
  font-size: var(--fs-micro);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.pill--dot::before,
.pill--success::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}
.pill--success { background: var(--success-bg); border-color: var(--success-line); color: var(--success-ink); }
.pill--success::before { background: var(--success); }
.pill--violet  { background: rgba(93, 91, 246, .09); border-color: rgba(93, 91, 246, .22); color: var(--violet-ink); }
.pill--dark    { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill--white   { background: #fff; }
.pill--sm { height: 20px; padding: 0 8px; gap: 5px; font-size: .6875rem; }
.pill--sm.pill--success::before { width: 5px; height: 5px; }
:where(.section--dark, .on-dark, .mock--dark, .feature-card__visual--dark) .pill:not(.pill--success):not(.pill--violet):not(.pill--dark) {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .14);
  color: var(--on-dark-2);
}
:where(.mock--dark, .feature-card__visual--dark) .pill--violet { background: rgba(165, 164, 255, .14); border-color: rgba(165, 164, 255, .3); color: #d4d3ff; }


/* ==========================================================================
   7. CARDS + FEATURE CARD (signature pattern)
   ========================================================================== */
.card {
  --card-pad: clamp(24px, 1.5rem + .6vw, 32px);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--card-pad);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out), border-color var(--dur-2) var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(93, 91, 246, .28);
  box-shadow: var(--shadow-lift);
}
.card--flat { box-shadow: none; }
.card--flat:hover { transform: none; box-shadow: none; }
.card--static:hover { transform: none; box-shadow: var(--shadow-soft); border-color: var(--line); }
.card--dark.card--static:hover { border-color: var(--dark-line); box-shadow: none; }
.card--lavender { background: var(--lav); border-color: var(--line); box-shadow: none; }
.card--dark {
  background: var(--dark);
  border-color: var(--dark-line);
  color: var(--on-dark-2);
  box-shadow: none;
}
.card--dark:hover { border-color: rgba(165, 164, 255, .35); box-shadow: 0 28px 56px -18px rgba(0, 0, 0, .5); }
.section--dark .card--dark { background: var(--dark-2); }   /* elevated one step above the section */
.card--dark :is(h1, h2, h3, h4, .card__title) { color: var(--on-dark); }
.card--dark :is(.card__text, .muted) { color: var(--on-dark-muted); }
.card--dark :is(.card__num, .card__eyebrow) { color: var(--violet-soft); }
.card--lg { --card-pad: clamp(28px, 1.5rem + 1.6vw, 48px); }
.card--sm { --card-pad: 20px; }

/* Selectable card (Get Started: "I'm hiring / talent / advisor") */
.card--select { cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; }
.card--select:hover { border-color: rgba(93, 91, 246, .4); }
.card--select:is(.is-selected, [aria-expanded="true"]) {
  border-color: var(--violet);
  background: var(--lav);
  box-shadow: 0 0 0 3px rgba(93, 91, 246, .16), var(--shadow-soft);
}
.card--dark.card--select:is(.is-selected, [aria-expanded="true"]) {
  border-color: var(--violet-soft);
  background: #25254b;
  box-shadow: 0 0 0 3px rgba(165, 164, 255, .22), 0 28px 56px -18px rgba(0, 0, 0, .5);
}
.card--select:is(.is-selected, [aria-expanded="true"]) .card__icon { background: var(--violet); color: #fff; }
.card__body { display: flex; flex-direction: column; min-width: 0; }
.card__check {                    /* radio-style affordance, top-right of a selectable card */
  position: absolute;
  top: 24px;
  right: 24px;
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  transition: background-color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.card--select:is(.is-selected, [aria-expanded="true"]) .card__check {
  border-color: var(--violet-soft);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.4 8.3l2.4 2.4 4.8-5' fill='none' stroke='%2314142b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 72% no-repeat,
    var(--violet-soft);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: var(--r-md);
  background: var(--lav);
  color: var(--violet);
  transition: background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}
.card__icon svg { width: 20px; height: 20px; }
.card--dark .card__icon { background: rgba(165, 164, 255, .14); color: var(--violet-soft); }
.card__num {
  margin-bottom: 20px;
  color: var(--violet-ink);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: .14em;
}
.card__eyebrow { margin-bottom: 8px; color: var(--violet-ink); }
.card__title {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.02em;
  color: var(--ink);
}
.card__title + .card__text { margin-top: 10px; }
.card__text {
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--muted);
}

/* Feature card — product mockup panel on top, title + text below */
.feature-card {
  display: flex;
  flex-direction: column;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out), border-color var(--dur-2) var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(93, 91, 246, .28);
  box-shadow: var(--shadow-lift);
}
.feature-card__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 280px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: calc(var(--r-xl) - 8px);   /* concentric with the card's 24px corner */
  background: var(--white);
  overflow: hidden;
  isolation: isolate;
  user-select: none;
  -webkit-user-select: none;
}
.feature-card__visual--lavender { background: var(--lav); --m-surface: #f4f4ff; }
.feature-card__visual--white    { background: var(--white); }
.feature-card__visual--dark {
  background: var(--dark);
  border-color: var(--dark);
  --m-surface: #14142b;
  --m-panel: #1e1e3a;
  --m-panel-border: rgba(255, 255, 255, .08);
  --m-text: #ffffff;
  --m-muted: #b4b4d8;
  --m-skel: rgba(255, 255, 255, .12);
  --m-skel-strong: rgba(255, 255, 255, .24);
  --m-line: rgba(255, 255, 255, .12);
  --m-chip: rgba(255, 255, 255, .08);
  --m-accent: #7b79ff;
  --m-accent-ink: #c9c8ff;
  color: var(--m-text);
}
.feature-card__visual--dark::before {   /* soft violet glow behind the panel */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(90% 70% at 50% 0%, rgba(93, 91, 246, .34), transparent 70%);
  pointer-events: none;
}
.feature-card__visual--lavender::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(80% 60% at 100% 0%, rgba(93, 91, 246, .09), transparent 70%);
  pointer-events: none;
}
.feature-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 20px 22px;
}
.feature-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.02em;
  color: var(--ink);
}
.feature-card__text {
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
}

@media (max-width: 768px) {
  .feature-card__visual { min-height: 250px; padding: 20px; }
  .feature-card__body { padding: 20px 16px 18px; }
  /* single column: keep mockups product-sized and centred instead of stretching edge to edge */
  .feature-card__visual > * { width: 100%; max-width: 460px; margin-inline: auto; }
}
@media (max-width: 480px) {
  .feature-card__visual { min-height: 240px; padding: 16px; }
}


/* ==========================================================================
   8. MOCKUP PRIMITIVES  (HTML/CSS only, decorative — put aria-hidden="true"
      on .feature-card__visual and let the card title/text carry the meaning)
   --------------------------------------------------------------------------
   Theming is done with --m-* custom properties (see :root). A dark visual or
   .mock--dark re-maps them, so the same markup works on light and dark.
   Tiny type: 11-13px, crisp.
   ========================================================================== */
.mock {
  --mock-pad: 14px;
  --m-surface: var(--m-panel);
  position: relative;
  padding: var(--mock-pad);
  border: 1px solid var(--m-panel-border);
  border-radius: var(--r-md);
  background: var(--m-panel);
  color: var(--m-text);
  font-size: .75rem;
  line-height: 1.4;
  letter-spacing: 0;
  box-shadow: 0 1px 2px rgba(20, 20, 43, .04), 0 10px 26px -12px rgba(20, 20, 43, .12);
}
.mock--dark,
.mock--dark-panel {   /* a dark panel dropped onto a light visual */
  --m-surface: #1e1e3a;
  --m-panel: #1e1e3a;
  --m-panel-border: rgba(255, 255, 255, .08);
  --m-text: #ffffff;
  --m-muted: #b4b4d8;
  --m-skel: rgba(255, 255, 255, .12);
  --m-skel-strong: rgba(255, 255, 255, .24);
  --m-line: rgba(255, 255, 255, .12);
  --m-chip: rgba(255, 255, 255, .08);
  --m-accent: #7b79ff;
  --m-accent-ink: #c9c8ff;
  box-shadow: none;
}
.mock--light {   /* a white panel dropped onto a dark visual */
  --m-surface: #ffffff;
  --m-panel: #ffffff;
  --m-panel-border: #e6e5f8;
  --m-text: #14142b;
  --m-muted: #5f5c82;
  --m-skel: #e4e3f5;
  --m-skel-strong: #d0cef0;
  --m-line: #e6e5f8;
  --m-chip: #f0f0fa;
  --m-accent: #5d5bf6;
  --m-accent-ink: #4746cb;
}
.mock--flat { box-shadow: none; }
.mock--lg { --mock-pad: 18px; }

/* Window header: [dots] Title ........ [badge] */
.mock__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: calc(var(--mock-pad) * -1) calc(var(--mock-pad) * -1) 12px;
  padding: 10px var(--mock-pad);
  border-bottom: 1px solid var(--m-line);
  min-height: 42px;
}
.mock__dots { display: inline-flex; gap: 5px; }
.mock__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--m-skel-strong); }
.mock__title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--m-text);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.mock__label {   /* uppercase tracked caption, e.g. CANDIDATE VIEW */
  color: var(--m-muted);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.2;
  text-transform: uppercase;
}
.mock__text  { color: var(--m-text);  font-size: .78125rem; font-weight: 500; line-height: 1.35; }
.mock__meta  { color: var(--m-muted); font-size: .71875rem; line-height: 1.35; white-space: nowrap; }

/* Rows */
.mock__list { display: flex; flex-direction: column; gap: 8px; }
.mock__row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.mock__row--card {
  padding: 9px 12px;
  border: 1px solid var(--m-panel-border);
  border-radius: 12px;
  background: var(--m-panel);
  box-shadow: 0 1px 2px rgba(20, 20, 43, .03);
}
.feature-card__visual--dark .mock__row--card { box-shadow: none; }
.mock__row--divided + .mock__row--divided { padding-top: 10px; border-top: 1px solid var(--m-line); }
.mock__grow  { flex: 1 1 auto; min-width: 0; }
.mock__lines { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; min-width: 0; }
.mock__right { margin-left: auto; flex: none; }

/* Skeleton bars */
.mock__skeleton {
  display: block;
  width: 64%;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--m-skel);
}
.mock__skeleton--short { width: 36%; }
.mock__skeleton--long  { width: 90%; }
.mock__skeleton--full  { width: 100%; }
.mock__skeleton--dark  { background: var(--m-skel-strong); }   /* stronger tone: titles / names */
.mock__skeleton--thin  { height: 6px; }
.mock__skeleton--tall  { height: 10px; }
.mock__skeleton--shimmer {
  background: linear-gradient(90deg, var(--m-skel) 0%, var(--m-skel-strong) 50%, var(--m-skel) 100%);
  background-size: 200% 100%;
  animation: shimmer 2.4s linear infinite;
}

/* Avatars: initial / icon / image */
.mock__avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--m-chip);
  color: var(--m-accent-ink);
  font-size: .6875rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}
.mock__avatar svg { width: 55%; height: 55%; }
.mock__avatar img { width: 100%; height: 100%; object-fit: cover; }
.mock__avatar--sm { width: 22px; height: 22px; font-size: .5625rem; }
.mock__avatar--lg { width: 40px; height: 40px; font-size: .875rem; }
.mock__avatar--xl { width: 48px; height: 48px; font-size: 1rem; }
.mock__avatar--violet { background: linear-gradient(135deg, #6f6dff, #4746cb); color: #fff; }
.mock__avatar--dark   { background: var(--ink); color: #fff; }
.mock__avatar--soft   { background: rgba(93, 91, 246, .12); color: var(--violet-ink); }
.mock__avatar--ghost  { background: var(--m-skel); color: transparent; }
.mock__avatar--square { border-radius: 9px; }
.feature-card__visual--dark .mock__avatar--dark,
.mock--dark .mock__avatar--dark { background: rgba(255, 255, 255, .14); }
.feature-card__visual--dark .mock__avatar--soft,
.mock--dark .mock__avatar--soft { background: rgba(165, 164, 255, .16); color: #d4d3ff; }

/* Overlapping avatar stack with a ring that matches the surface */
.avatar-stack { display: inline-flex; align-items: center; }
.avatar-stack > * + * { margin-left: -6px; }
.avatar-stack > .mock__avatar,
.avatar-stack__more { box-shadow: 0 0 0 2px var(--m-surface); position: relative; }
.avatar-stack__more {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border-radius: var(--r-pill);
  background: var(--m-chip);
  color: var(--m-muted);
  font-size: .6875rem;
  font-weight: 600;
}
.avatar-stack--lg > * + * { margin-left: -8px; }

/* Chips + micro tags */
.mock__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  border: 1px solid var(--m-line);
  border-radius: var(--r-pill);
  background: var(--m-chip);
  color: var(--m-text);
  font-size: .6875rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.mock__chip--violet { background: rgba(93, 91, 246, .1); border-color: rgba(93, 91, 246, .25); color: var(--m-accent-ink); }
.mock__chip--outline { background: transparent; }
.mock__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mock__kbd {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border: 1px solid var(--m-line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--m-chip);
  color: var(--m-muted);
  font-size: .625rem;
  font-weight: 600;
  line-height: 1;
}
.mock__tag {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 6px;
  background: rgba(93, 91, 246, .1);
  color: var(--m-accent-ink);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
}

/* Tick list */
.mock__checks { display: flex; flex-direction: column; gap: 9px; }
.mock__check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 18px;
  color: var(--m-text);
  font-size: .78125rem;
  font-weight: 500;
  line-height: 1.3;
}
.mock__check::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.7 8.4l2.2 2.2 4.4-4.6' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat,
    var(--m-accent);
}
.mock__check--success::before { background-color: var(--success); }
.mock__check--off { color: var(--m-muted); }
.mock__check--off::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--m-skel-strong); }

/* Stealth-style switch with pulse. .is-on = violet + ON; add .mock__toggle--still to stop the pulse */
.mock__toggle { display: inline-flex; align-items: center; gap: 10px; }
.mock__toggle-track {
  position: relative;
  flex: none;
  width: 38px;
  height: 22px;
  border-radius: var(--r-pill);
  background: var(--m-skel-strong);
  transition: background-color var(--dur-2) var(--ease);
}
.mock__toggle-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(20, 20, 43, .28);
  transition: transform var(--dur-2) var(--ease-out);
}
.mock__toggle-label { color: var(--m-text); font-size: .8125rem; font-weight: 600; letter-spacing: -.01em; }
.mock__toggle-state {
  min-width: 26px;
  color: var(--m-muted);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .06em;
}
.mock__toggle.is-on .mock__toggle-track { background: var(--violet); animation: switch-pulse 2s ease-out infinite; }
.mock__toggle.is-on .mock__toggle-track::after { transform: translateX(16px); }
.mock__toggle.is-on .mock__toggle-state { color: var(--m-accent-ink); }
.mock__toggle--still.is-on .mock__toggle-track { animation: none; }

/* Blurred placeholder text ("hidden" information) */
.mock__blur {
  display: inline-block;
  filter: blur(4.5px);
  opacity: .9;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Dividers, note line, meter, bubbles */
.mock__divider-dashed { height: 0; margin: 12px 0; border: 0; border-top: 1px dashed var(--m-line); }
.mock__note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--m-line);
  color: var(--m-muted);
  font-size: .71875rem;
  line-height: 1.4;
}
.mock__note svg { width: 12px; height: 12px; }
.mock__note { text-wrap: pretty; }
.mock__meter { height: 6px; overflow: hidden; border-radius: var(--r-pill); background: var(--m-skel); }
.mock__meter > i { display: block; width: var(--v, 60%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7b79ff, var(--m-accent)); }
.mock__bubble {
  max-width: 88%;
  padding: 9px 12px;
  border: 1px solid var(--m-panel-border);
  border-radius: 14px 14px 14px 4px;
  background: var(--m-panel);
  color: var(--m-text);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.4;
  text-wrap: pretty;
}
@media (max-width: 480px) {
  .mock__bubble { max-width: 94%; padding: 8px 11px; }
}
.mock__bubble--me {
  align-self: flex-end;
  border-color: transparent;
  border-radius: 14px 14px 4px 14px;
  background: var(--violet);
  color: #fff;
}
.mock__thread { display: flex; flex-direction: column; gap: 8px; }

/* Vertical timeline */
.mock__timeline { position: relative; display: flex; flex-direction: column; }
.mock__timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 0 16px 24px;
}
.mock__timeline-item:last-child { padding-bottom: 0; }
.mock__timeline-item::before {   /* dot */
  content: "";
  position: absolute;
  z-index: 1;
  top: 2px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--m-surface);
  box-shadow: inset 0 0 0 2px var(--m-skel-strong);
}
.mock__timeline-item::after {    /* connector */
  content: "";
  position: absolute;
  top: 16px;
  bottom: -2px;
  left: 5.25px;
  width: 1.5px;
  background: var(--m-line);
}
.mock__timeline-item:last-child::after { display: none; }
.mock__timeline-item.is-done::before { background: var(--m-accent); box-shadow: none; }
.mock__timeline-item.is-active::before { background: var(--m-accent); box-shadow: 0 0 0 4px rgba(93, 91, 246, .22); }
/* Horizontal variant: 30 / 60 / 90 style markers */
.mock__timeline--h { flex-direction: row; }
.mock__timeline--h .mock__timeline-item { flex: 1 1 0; min-width: 0; padding: 22px 8px 0 0; }
.mock__timeline--h .mock__timeline-item::before { top: 0; }
.mock__timeline--h .mock__timeline-item::after { top: 5.25px; bottom: auto; left: 16px; right: 4px; width: auto; height: 1.5px; }
.mock__timeline--h .mock__timeline-item:last-child::after { display: none; }

/* Icon in a soft circle (lock, pin, search ...) */
.mock__icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--m-chip);
  color: var(--m-accent-ink);
}
.mock__icon svg { width: 14px; height: 14px; }

/* Absolutely-positioned floating chip/panel for depth in hero collages */
.mock__float { position: absolute; z-index: 2; }


/* ==========================================================================
   9. FORMS
   ========================================================================== */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
/* .form--cols: fields flow into two columns; .field--full, buttons and the status line span both */
.form--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form--cols > :is(.field--full, .btn, .form-status) { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.label {
  color: var(--ink);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
}
.label__opt { color: var(--subtle); font-weight: 400; }
.req { margin-left: 2px; color: var(--violet-ink); }        /* required-field asterisk (aria-hidden) */

.input,
.select,
.textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background-color: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;              /* 16px: iOS Safari does not zoom on focus */
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -.003em;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease);
}
.textarea { min-height: 128px; padding: 14px 16px; resize: vertical; line-height: 1.55; }
.select {
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235f5c82' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}
.input::placeholder,
.textarea::placeholder { color: #6f6c90; opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: #b3b1d6; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(93, 91, 246, .16);
}
.input:disabled, .select:disabled, .textarea:disabled { background-color: var(--lav); color: var(--subtle); cursor: not-allowed; }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"],
.is-error > .input, .is-error > .select, .is-error > .textarea {
  border-color: var(--danger);
}
.input[aria-invalid="true"]:focus, .select[aria-invalid="true"]:focus, .textarea[aria-invalid="true"]:focus,
.is-error > .input:focus, .is-error > .select:focus, .is-error > .textarea:focus {
  box-shadow: 0 0 0 4px rgba(214, 69, 69, .16);
}
.field-hint  { color: var(--muted); font-size: .78125rem; line-height: 1.45; }
.field-error { color: var(--danger-ink); font-size: .78125rem; font-weight: 500; line-height: 1.45; }

/* Status line under a form (aria-live="polite") */
.form-status {
  min-height: 22px;
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted);
}
.form-status:empty { min-height: 0; }
.form-status--ok  { color: var(--success-ink); }
.form-status--err { color: var(--danger-ink); }

/* Dark-surface variants: put .on-dark on the form/wrapper, or use inside .section--dark / .card--dark */
:is(.on-dark, .section--dark, .card--dark) .label { color: var(--on-dark-2); }
:is(.on-dark, .section--dark, .card--dark) .label__opt { color: var(--on-dark-muted); }
:is(.on-dark, .section--dark, .card--dark) .req { color: var(--violet-soft); }
:is(.on-dark, .section--dark, .card--dark) :is(.input, .select, .textarea) {
  border-color: rgba(255, 255, 255, .18);
  background-color: rgba(255, 255, 255, .06);
  color: #fff;
  color-scheme: dark;
}
:is(.on-dark, .section--dark, .card--dark) :is(.input, .textarea)::placeholder { color: #9c9cc4; }
:is(.on-dark, .section--dark, .card--dark) :is(.input, .select, .textarea):hover { border-color: rgba(255, 255, 255, .32); }
:is(.on-dark, .section--dark, .card--dark) :is(.input, .select, .textarea):focus {
  border-color: var(--violet-soft);
  background-color: rgba(255, 255, 255, .09);
  box-shadow: 0 0 0 4px rgba(165, 164, 255, .2);
}
:is(.on-dark, .section--dark, .card--dark) .select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23b4b4d8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
}
:is(.on-dark, .section--dark, .card--dark) :is(.input, .select, .textarea)[aria-invalid="true"] { border-color: #ff8a8a; }
:is(.on-dark, .section--dark, .card--dark) .field-hint { color: var(--on-dark-muted); }
:is(.on-dark, .section--dark, .card--dark) .field-error { color: #ffb4b4; }
:is(.on-dark, .section--dark, .card--dark) .form-status { color: var(--on-dark-muted); }
:is(.on-dark, .section--dark, .card--dark) .form-status--ok  { color: #7be0a2; }
:is(.on-dark, .section--dark, .card--dark) .form-status--err { color: #ffb4b4; }

@media (max-width: 640px) {
  .form-row, .form--cols { grid-template-columns: minmax(0, 1fr); }
}


/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.footer {
  padding-block: 56px 32px;
  border-top: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px 64px;
}
.footer-brand { max-width: 340px; }
.footer-tag { margin-top: 14px; font-size: .9375rem; line-height: 1.6; color: var(--muted); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px clamp(40px, 6vw, 88px); }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.footer-col .micro-label { margin-bottom: 10px; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  color: var(--text-2);
  font-size: .9375rem;
  text-decoration: none;
  transition: color var(--dur-1) var(--ease);
}
.footer-col a:hover { color: var(--violet-ink); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: .8125rem;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .footer { padding-block: 44px 28px; }
  .footer-col a { min-height: 44px; }   /* tap targets */
}


/* ==========================================================================
   11. REVEAL + MOTION UTILITIES
   --------------------------------------------------------------------------
   Progressive enhancement: nothing is hidden unless <html class="js"> is set
   (inline script in <head>) AND the user has not asked for reduced motion.
   Implemented with a CSS *animation* (not a transition on transform) so it
   never fights .card:hover { transform } and never overrides hover transitions.
   Fail-safe: if site.js never runs (blocked / offline), everything appears
   after 3s. site.js adds .reveal-on to <html> which cancels the fail-safe.
   ========================================================================== */
@keyframes reveal-up {
  from { opacity: 0; translate: 0 16px; }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes reveal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes reveal-scale {
  from { opacity: 0; scale: .96; }
  to   { opacity: 1; scale: 1; }
}
.js [data-reveal] { opacity: 0; }
.js [data-reveal].is-in {
  opacity: 1;
  animation: reveal-up .7s var(--ease-out) var(--reveal-delay, 0s) both;
}
.js [data-reveal="fade"].is-in  { animation-name: reveal-fade; }
.js [data-reveal="scale"].is-in { animation-name: reveal-scale; }
.js:not(.reveal-on) [data-reveal]:not(.is-in) { animation: reveal-up .6s var(--ease-out) 3s both; }
[data-reveal-delay="1"] { --reveal-delay: .08s; }
[data-reveal-delay="2"] { --reveal-delay: .16s; }
[data-reveal-delay="3"] { --reveal-delay: .24s; }
[data-reveal-delay="4"] { --reveal-delay: .32s; }
[data-reveal-delay="5"] { --reveal-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal],
  .js [data-reveal].is-in,
  .js:not(.reveal-on) [data-reveal]:not(.is-in) { opacity: 1; animation: none !important; }
}

/* Looping motion: hero float / pulse / shimmer. All disabled for reduced motion. */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes switch-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(93, 91, 246, .45); }
  70%  { box-shadow: 0 0 0 9px rgba(93, 91, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(93, 91, 246, 0); }
}
@keyframes ring-pulse {
  0%   { transform: scale(.85); opacity: .7; }
  100% { transform: scale(1.9); opacity: 0; }
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}
@keyframes fade-up-load {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.anim-float      { animation: float-y 6s var(--ease-in-out) infinite; }
.anim-float-slow { animation: float-y 9s var(--ease-in-out) infinite; }
.anim-float-alt  { animation: float-y 7s var(--ease-in-out) -3s infinite; }
.anim-pulse-dot { position: relative; }
.anim-pulse-dot::after {   /* expanding ring behind a small dot */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  animation: ring-pulse 2s ease-out infinite;
}
/* Above-the-fold entrance without IntersectionObserver (hero copy): .anim-in + style="--d:.1s" */
.anim-in { animation: fade-up-load .8s var(--ease-out) var(--d, 0s) both; }
@media (prefers-reduced-motion: reduce) {
  .anim-float, .anim-float-slow, .anim-float-alt, .anim-pulse-dot::after,
  .mock__toggle.is-on .mock__toggle-track, .mock__skeleton--shimmer, .anim-in { animation: none !important; }
}

/* Decorative backgrounds (put inside a position:relative + overflow:hidden/clip parent) */
.bg-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: radial-gradient(rgba(93, 91, 246, .22) 1px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(60% 70% at 70% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(60% 70% at 70% 30%, #000 0%, transparent 75%);
}
.glow {
  position: absolute;
  z-index: -1;
  width: 560px;
  height: 560px;
  max-width: 90vw;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(93, 91, 246, .22), rgba(93, 91, 246, 0));
  pointer-events: none;
}


/* ==========================================================================
   12. UTILITIES
   ========================================================================== */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-size: var(--fs-small);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--dur-2) var(--ease-out);
}
.skip-link:focus { transform: none; outline: 2px solid var(--violet-soft); outline-offset: 2px; }
.nowrap  { white-space: nowrap; }
.balance { text-wrap: balance; }
.pretty  { text-wrap: pretty; }
.center  { text-align: center; }
.mx-auto { margin-inline: auto; }
.relative { position: relative; }
.clip    { overflow: hidden; overflow: clip; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mt-16 { margin-top: 64px; }
.hide-mobile { display: initial; }
.show-mobile { display: none; }
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: initial; }
}


/* ==========================================================================
   13. SHARED PAGE COMPONENTS
   Used by BOTH pages (roster + company strip + cross-promo box) so they stay
   visually identical. Optional — pages may skip them.
   ========================================================================== */

/* Person card — roster photo + name + role, links to LinkedIn.
   Photos are grayscale at rest and turn to colour on hover (pointer devices) and on
   keyboard focus; touch devices keep grayscale. Shared by both pages: the colour
   reveal, hover lift and the small ↗ chip all live here. */
.person-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
  color: inherit;
  text-decoration: none;
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out), border-color var(--dur-2) var(--ease);
}
.person-card__photo {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: calc(var(--r-lg) - 8px);
  background: var(--lav-2);
}
.person-card__photo::before {     /* hairline so white photo backgrounds don't dissolve into the card */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(20, 20, 43, .09);
  pointer-events: none;
}
.person-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(100%) contrast(1.05);
  transition: filter .35s ease, transform var(--dur-4) var(--ease-out);
}
/* LinkedIn hint: a round ↗ chip appears on hover / keyboard focus */
a.person-card:not(.person-card--more) .person-card__photo::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235d5bf6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 11l6-6M6 5h5v5'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: 0 6px 16px -4px rgba(20, 20, 43, .35);
  opacity: 0;
  translate: -4px 4px;
  scale: .9;
  transition: opacity var(--dur-2) var(--ease), translate var(--dur-3) var(--ease-out), scale var(--dur-3) var(--ease-out);
}
@media (hover: hover) {
  a.person-card:hover {
    transform: translateY(-4px);
    border-color: rgba(93, 91, 246, .35);
    box-shadow: var(--shadow-lift);
  }
  a.person-card:hover .person-card__photo img { filter: grayscale(0) contrast(1); transform: scale(1.03); }
  a.person-card:not(.person-card--more):hover .person-card__photo::after { opacity: 1; translate: 0 0; scale: 1; }
}
a.person-card:focus-visible { border-color: var(--violet); }
a.person-card:focus-visible .person-card__photo img { filter: grayscale(0) contrast(1); }
a.person-card:not(.person-card--more):focus-visible .person-card__photo::after { opacity: 1; translate: 0 0; scale: 1; }
.person-card__body { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px 8px; }
.person-card__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.person-card__badge {
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: rgba(93, 91, 246, .1);
  color: var(--violet-ink);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.4;
}
.person-card__role { color: var(--violet-ink); font-size: .8125rem; font-weight: 500; line-height: 1.4; text-wrap: balance; }
.person-card--more {
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 120px;
  border: 1.5px dashed rgba(93, 91, 246, .4);
  background: transparent;
  color: var(--violet-ink);
  font-size: .9375rem;
  font-weight: 600;
  text-align: center;
}
.person-card--more:hover { background: rgba(93, 91, 246, .05); border-color: var(--violet); }
.person-card--more .person-card__plus { font-size: 1.75rem; font-weight: 400; line-height: 1; }

/* Company wordmark strip (plain text; no logo assets) */
.logo-strip { display: flex; flex-direction: column; gap: 20px; }
.logo-strip__list { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 36px; }
.logo-strip__item {
  color: var(--subtle);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.2;
  white-space: nowrap;
}
.section--dark .logo-strip__item { color: var(--on-dark-muted); }
@media (max-width: 768px) {
  .logo-strip__list { gap: 12px 24px; }
  .logo-strip__item { font-size: 1rem; }
}

/* Callout — dashed cross-promo box (e.g. "Also on StealthJobs.co") */
.callout {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px;
  border: 1.5px dashed rgba(93, 91, 246, .32);
  border-radius: var(--r-lg);
  background: rgba(93, 91, 246, .05);
}
.callout__label { color: var(--violet-ink); font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.callout__title { color: var(--ink); font-size: 1.0625rem; font-weight: 600; line-height: 1.35; letter-spacing: -.015em; }
.callout__text  { color: var(--muted); font-size: .9375rem; line-height: 1.65; }
.callout .link-arrow, .callout .link-ext { margin-top: 4px; }
:is(.on-dark, .section--dark) .callout { border-color: rgba(165, 164, 255, .35); background: rgba(255, 255, 255, .05); }
:is(.on-dark, .section--dark) .callout__label { color: var(--violet-soft); }
:is(.on-dark, .section--dark) .callout__title { color: #fff; }
:is(.on-dark, .section--dark) .callout__text { color: var(--on-dark-muted); }


/* ==========================================================================
   14. GET STARTED  (the dark section: three selector cards -> one form panel)
   --------------------------------------------------------------------------
   Markup (identical on both pages):
     section.section.section--dark.has-closing.gs#get-started
       .container > .section-head + .gs-cards.grid-3.grid-3--stay (3 x button.card--select)
                  + #vb-form-area > .gs-panel (x3, role="region")
   assets/forms.js adds .gs--open to the section when a card is chosen, sets
   aria-expanded + .is-selected on that card and .is-open on its panel.
     - Invitation state (nothing chosen): three full-size cards.
     - .gs--open: the cards collapse into a compact tab row and the vertical
       rhythm tightens (vh-aware clamps) so header + tabs + form fit ONE
       desktop viewport. On phones the tabs become a 3-up segmented row.
   Failure modes (forms.js sets html.gs-ready as its very first action):
     - forms.js blocked/failed while JS is on: no .gs-ready -> the cards are hidden and all
       three forms stay visible, stacked. They cannot send (the form's mailto action opens
       an email draft instead of leaking details into a GET URL); the always-visible
       "Prefer email?" line under the cards (.gs-mail) is the fallback.
     - JavaScript off entirely: the forms are hidden too and .noscript-note takes their place.
   ========================================================================== */
.gs-cards .card--select { align-items: flex-start; }
html:not(.gs-ready) .gs-cards { display: none; }

/* "Prefer email?" - visible in the invitation state and in every failure state. Once a panel is open the forms
   are working (their own error message carries the address) and the line would cost the single-viewport fit. */
.gs-mail { margin-top: 20px; text-align: center; color: var(--on-dark-muted); font-size: var(--fs-small); line-height: 1.5; }
.gs-mail a,
.noscript-note a { color: var(--violet-soft); text-decoration: underline; text-underline-offset: 3px; }
.gs--open .gs-mail { display: none; }
html:not(.js) .gs-mail { display: none; }
.noscript-note { display: none; }
html:not(.js) .noscript-note { display: flex; width: 100%; max-width: 560px; margin: 28px auto 0; }
html:not(.js) .gs-panel { display: none; }

@media (min-width: 769px) and (max-width: 1024px) {
  .gs-cards .card--select { --card-pad: 22px; }
  .gs-cards .card__icon { margin-bottom: 16px; }
  .gs-cards .card__check { top: 22px; right: 22px; }
}
@media (max-width: 640px) {
  .gs-cards { --grid-gap: 12px; }
  .gs-cards .card--select { --card-pad: 20px; }
  .gs-cards .card__icon { margin-bottom: 14px; }
  .gs-cards .card__check { top: 20px; right: 20px; }
}

/* --- Compact state: tab row ------------------------------------------------ */
@media (min-width: 769px) {        /* header + padding glide to the compact rhythm (phones: instant, the header scrolls away) */
  .gs { transition: padding-top var(--dur-3) var(--ease-out), padding-bottom var(--dur-3) var(--ease-out); }
  .gs .section-head,
  .gs .section-head > * { transition: margin var(--dur-3) var(--ease-out), font-size var(--dur-3) var(--ease-out); }
}
.gs--open { padding-top: clamp(24px, 4.8vh, 72px); }
.gs--open.has-closing { padding-bottom: calc(var(--closing-overlap) + clamp(40px, 6vh, 64px)); }
.gs--open .section-head { margin-bottom: clamp(14px, 2.6vh, 28px); }
.gs--open .section-head > .eyebrow { margin-bottom: clamp(10px, 1.8vh, 16px); }
.gs--open .section-head > .h2 { font-size: clamp(1.625rem, 1.1rem + 1.5vw, 2.25rem); }
.gs--open .section-head > .lead { margin-top: clamp(6px, 1vh, 10px); font-size: 1rem; }

.gs--open .gs-cards { --grid-gap: 12px; }
.gs--open .gs-cards .card--select {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 12px 54px 12px 16px;
  border-radius: var(--r-lg);
}
.gs--open .gs-cards .card__icon { width: 40px; height: 40px; margin: 0; flex: none; }
.gs--open .gs-cards .card__body { flex: 1 1 auto; }
.gs--open .gs-cards .card__eyebrow { margin-bottom: 2px; }
.gs--open .gs-cards .card__title { font-size: 1.0625rem; line-height: 1.25; }
.gs--open .gs-cards .card__text { display: none; }
.gs--open .gs-cards .card__check { top: 50%; right: 18px; width: 20px; height: 20px; translate: 0 -50%; }
.gs-cards .gs-pre { display: inline; }
@media (min-width: 769px) and (max-height: 820px) {   /* short laptop screens: slimmer tabs */
  .gs--open .gs-cards .card--select { min-height: 60px; padding-block: 8px; }
  .gs--open .gs-cards .card__icon { width: 36px; height: 36px; }
}
@media (min-width: 769px) and (max-height: 740px) {   /* very short screens: drop the subline so the form still fits */
  .gs--open .section-head > .lead { display: none; }
  .gs--open .section-head > .h2 { font-size: 1.75rem; }
}
@media (max-width: 1024px) {
  .gs--open .gs-cards .card__eyebrow { display: none; }   /* tab width: title only */
  .gs--open .gs-cards .card--select { gap: 12px; padding-right: 46px; }
  .gs--open .gs-cards .card__title { font-size: 1rem; }
}

/* --- Form panel ------------------------------------------------------------- */
.gs-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 20px clamp(24px, 3.2vw, 44px);
  align-items: stretch;
  margin-top: clamp(10px, 1.6vh, 20px);
  padding: clamp(16px, 2.8vh, 28px) clamp(20px, 2.8vw, 36px);
  border: 1px solid var(--dark-line);
  border-radius: var(--r-xl);
  background: var(--dark-2);
}
.gs-ready .gs-panel { display: none; }
.gs-ready .gs-panel.is-open { display: grid; animation: fade-up-load .5s var(--ease-out) both; }
.gs-panel--solo { grid-template-columns: minmax(0, 1fr); width: 100%; max-width: 720px; margin-inline: auto; }
.gs-panel__head {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--dark-line);
}
.gs-ready .gs-panel__head { display: none; }        /* the chosen tab already names the panel */
html:not(.gs-ready) .gs-panel { margin-top: 32px; }

.gs-panel .form { gap: 14px 16px; align-content: start; }
.gs-panel .form:not(:has(.textarea)) { align-content: center; }   /* short forms (advisor) sit centred beside the side column */
.form__intro { display: flex; flex-direction: column; gap: 4px; padding-bottom: 16px; margin-bottom: 2px; border-bottom: 1px solid var(--dark-line); }
.form__intro-title { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; color: var(--on-dark); }
.form__intro-text { font-size: .9375rem; line-height: 1.5; color: var(--on-dark-muted); }
.gs-panel .form:has(.textarea) { grid-template-rows: auto auto minmax(0, 1fr) auto auto; }   /* the message box soaks up spare height */
.gs-panel .field--full:has(.textarea) .textarea { flex: 1 1 auto; }
.gs-panel .form-status:empty { margin-top: -14px; }             /* an empty status line adds no dead space */
.gs-panel .input, .gs-panel .select { min-height: 46px; }
.gs-panel .textarea { min-height: 0; padding-block: 12px; }
.gs-panel .btn--lg { --btn-h: 52px; }

/* Side column: a compact mockup + the cross-promo callout (never taller than the form) */
.gs-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.gs-side__visual { flex: 1 1 auto; min-height: 0; padding: 14px 16px; gap: 10px; justify-content: center; border-radius: var(--r-lg); }
.gs-side__visual .mock { --mock-pad: 12px; }
.gs-side__visual .mock__row--card { padding: 4px 10px; }
.gs-side__visual .mock__list { gap: 6px; }
.gs-side__visual .mock__avatar--lg { width: 32px; height: 32px; font-size: .75rem; }
.gs-side .callout { flex: 0 0 auto; justify-content: center; gap: 5px; padding: 12px 16px; }
.gs-side .callout:only-child { flex: 1 1 auto; padding: 16px 18px; }
.gs-side .callout__title { font-size: 1rem; line-height: 1.3; }
.gs-side .callout__text { font-size: .78125rem; line-height: 1.5; }

@media (max-width: 900px) {
  .gs-panel { grid-template-columns: minmax(0, 1fr); }
}

/* --- Phones: tabs become a 3-up segmented row ------------------------------- */
@media (max-width: 768px) {
  .gs--open .gs-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    --grid-gap: 4px;
    padding: 4px;
    border: 1px solid var(--dark-line);
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, .04);
  }
  .gs--open .gs-cards .card--select {
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-height: 64px;
    padding: 10px 4px;
    border-color: transparent;
    border-radius: 14px;
    background: transparent;
    text-align: center;
  }
  .gs--open .gs-cards .card--select:is(.is-selected, [aria-expanded="true"]) {
    border-color: var(--violet-soft);
    background: #25254b;
    box-shadow: none;
  }
  .gs--open .gs-cards .card__icon { width: 28px; height: 28px; border-radius: 9px; }
  .gs--open .gs-cards .card__icon svg { width: 16px; height: 16px; }
  .gs--open .gs-cards .card__body { flex: none; align-items: center; }
  .gs--open .gs-cards .card__title { font-size: .8125rem; line-height: 1.2; }
  .gs--open .gs-cards .card__check { display: none; top: 6px; right: 6px; width: 14px; height: 14px; translate: none; border-width: 1.2px; }
  .gs--open .gs-cards .card--select:is(.is-selected, [aria-expanded="true"]) .card__check { display: block; }
  .gs--open .gs-cards .gs-pre {      /* "I'm an " prefix: kept for screen readers, hidden visually */
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .gs-panel { padding: 18px 16px; border-radius: var(--r-lg); }
  .gs-side__visual { display: none; }          /* decorative mockup: skipped on phones to keep the form short */
}


/* ==========================================================================
   15. CLOSING BLOCK  ("Built by operators. Backed by experience.")
   --------------------------------------------------------------------------
   A violet brand panel that rides up over the bottom edge of the dark section
   above it. Put .has-closing on that dark section (adds the extra bottom padding).
   Markup: section.section.closing > .container > .closing__panel
             > .closing__rings (decor)
             + .closing__main  (kicker, h2.closing__title, lead, .closing__cta)
             + .closing__contact (face stack, label, e-mail, StealthJobs link)
   ========================================================================== */
.has-closing { padding-bottom: calc(var(--section-y) + var(--closing-overlap)); }
.closing {
  position: relative;
  z-index: 2;
  margin-top: calc(var(--closing-overlap) * -1);
  padding-top: 0;
  padding-bottom: clamp(48px, 5vw, 80px);
}
.closing__panel {
  position: relative;
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, .8fr);
  align-items: center;
  gap: 40px clamp(32px, 5vw, 80px);
  padding: clamp(32px, 1.5rem + 3.5vw, 72px);
  border-radius: var(--r-2xl);
  color: var(--on-dark);
  background: linear-gradient(135deg, #6a68ff 0%, var(--violet) 38%, var(--violet-deep) 72%, #34329f 100%);
  box-shadow: 0 40px 80px -30px rgba(71, 70, 203, .55), 0 12px 30px -12px rgba(20, 20, 43, .35);
}
/* soft light + fine dot grid, fading out toward the copy */
.closing__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(255, 255, 255, .16), transparent 60%),
    radial-gradient(circle, rgba(255, 255, 255, .16) 1px, transparent 1.4px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(115deg, transparent 20%, #000 75%);
          mask-image: linear-gradient(115deg, transparent 20%, #000 75%);
  pointer-events: none;
}
/* concentric rings: an oversized echo of the FP mark, bottom-right */
.closing__rings {
  position: absolute;
  z-index: -1;
  right: -180px;
  bottom: -260px;
  width: 620px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow:
    0 0 0 70px rgba(255, 255, 255, .025),
    0 0 0 71px rgba(255, 255, 255, .10),
    0 0 0 150px rgba(255, 255, 255, .02),
    0 0 0 151px rgba(255, 255, 255, .07);
  pointer-events: none;
}
.closing__main { min-width: 0; }
.closing__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: #fff;
}
.closing__kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
.closing__title {
  margin-top: 20px;
  font-size: clamp(2rem, 1rem + 3vw, 3.375rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.04em;
  color: #fff;
  text-wrap: balance;
}
.closing__title > span { display: block; }
.closing__accent { color: #cfceff; }
.closing__lead {
  margin-top: 18px;
  max-width: 44ch;
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, .82);
}
.closing__cta { margin-top: clamp(24px, 3vw, 36px); }

/* contact card — frosted glass on the violet */
.closing__contact {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, .10);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 20px 40px -20px rgba(20, 20, 43, .45);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.closing__faces { display: flex; margin-bottom: 14px; }
.closing__faces img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--violet);
  filter: grayscale(100%) contrast(1.05);
  transition: filter .35s var(--ease-out), transform .35s var(--ease-out);
}
.closing__faces img + img { margin-left: -10px; }
@media (hover: hover) {
  .closing__contact:hover .closing__faces img { filter: grayscale(0) contrast(1); }
  .closing__faces img:hover { transform: translateY(-3px); }
}
.closing__contact-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}
.closing__email {
  color: #fff;
  font-size: clamp(1rem, .9rem + .3vw, 1.125rem);
  font-weight: 600;
  letter-spacing: -.02em;
  text-decoration: none;
  overflow-wrap: break-word;   /* splits at the <wbr> after @ first; mid-word only at extreme text zoom */
}
.closing__email:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.closing__contact .link-ext {
  display: inline;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  width: 100%;
  color: #fff;
  font-size: .9375rem;
}
.closing__contact .link-ext:hover { color: #e4e3ff; }
.closing__contact .link-ext::after { display: inline-block; vertical-align: -3px; margin-left: 6px; }
.closing__panel :focus-visible { outline-color: #fff; }

@media (max-width: 1080px) {
  .closing__panel { grid-template-columns: minmax(0, 1fr); }
  .closing__rings { width: 480px; right: -220px; bottom: -300px; }
}
@media (max-width: 480px) {
  .closing__contact { padding: 20px 18px; }
  .closing__email { font-size: clamp(.875rem, 4.1vw, 1.0625rem); }
  .closing__cta { width: 100%; }
  .closing__cta .btn { flex: 1 1 100%; }
}
/* long unbreakable strings (e-mail address, "StealthJobs.co", uppercase title words) must wrap at large text sizes */
.closing__contact .link-ext,
.closing__title > span,
.gs-mail a,
.noscript-note a,
.footer-col a { overflow-wrap: anywhere; }
@media (max-width: 479px) {
  :is(h1, .display, .h1) .nowrap { white-space: normal; }      /* headline phrases may wrap on phones (200% text zoom) */
}
@media (max-width: 768px) {
  .callout a.callout__label,
  .callout .link-ext,
  .callout .link-arrow { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; }
}


/* ==========================================================================
   16. PRINT + FOCUS TARGETS
   ========================================================================== */
[tabindex="-1"]:focus { outline: none; }        /* <main id="main" tabindex="-1"> is the skip-link target */
@media print {
  .js [data-reveal] { opacity: 1 !important; animation: none !important; }
  .nav, .skip-link, .gs-cards, .gs-panel, .noscript-note, .nav-mobile-overlay { display: none !important; }   /* forms are pointless on paper: the e-mail line stays */
  .gs-mail { display: block !important; }
  .page-top { padding-top: 24px; }
  .section { padding-block: 24px; }
  .has-closing, .gs--open.has-closing { padding-bottom: 24px; }
  .closing { margin-top: 0; padding-bottom: 0; }
  /* ink-friendly: gradients and glows become plain colour, primary buttons an outline */
  .text-grad { -webkit-text-fill-color: currentColor; color: #4746cb; background: none; }
  .btn--primary { background: none; color: #14142b; border: 1px solid #14142b; box-shadow: none; }
  .fp-mark { background: none; color: #4746cb; box-shadow: inset 0 0 0 1.5px #4746cb; }
  /* the dark section prints as ordinary dark-on-white text */
  .section--dark { background: none; color: #14142b; }
  .section--dark::before, .glow, .bg-dots, .closing__panel::before, .feature-card__visual::before { display: none; }
  .section--dark :is(h1, h2, h3, h4, .display, .h1, .h2, .h3, .card__title, .callout__title, .label, .micro-label, .eyebrow) { color: #14142b; }
  .section--dark :is(.lead, .muted, .card__text, .callout__text, .field-hint, .label__opt, .gs-mail) { color: #45455a; }
  .section--dark :is(.link-arrow, .link-ext, .callout__label, .gs-mail a, .req, .text-accent) { color: #4746cb; }
  .section--dark .eyebrow, .callout, .card--dark { background: none; border-color: #c9c8e4; box-shadow: none; }
  /* dark mockup panels print light (backgrounds are usually off in print) */
  .feature-card__visual--dark,
  .mock--dark {
    --m-surface: #fff; --m-panel: #fff; --m-panel-border: #e6e5f8; --m-text: #14142b; --m-muted: #45455a;
    --m-skel: #e4e3f5; --m-skel-strong: #d0cef0; --m-line: #e6e5f8; --m-chip: #f0f0fa; --m-accent: #5d5bf6; --m-accent-ink: #4746cb;
    background: #fff; border-color: #e6e5f8; color: #14142b;
  }
  .card, .feature-card, .person-card, .closing__panel { box-shadow: none; break-inside: avoid; }
  .closing__panel { background: none; color: #14142b; border: 1px solid #c9c8e4; }
  .closing__rings, .closing__faces { display: none; }
  .closing__panel :is(.closing__title, .closing__email, .closing__kicker, .link-ext) { color: #14142b; }
  .closing__accent { color: #4746cb; }
  .closing__panel :is(.closing__lead, .closing__contact-label) { color: #45455a; }
  .closing__contact { background: none; box-shadow: none; padding: 0; }
  .closing__panel .btn--white, .closing__panel .btn--outline-light { background: none; color: #14142b; border: 1px solid #14142b; box-shadow: none; }
  .person-card__photo img { filter: none; }
}
