/* ==========================================================================
   MJS Strategy — design system
   Two identities share one shell:
     body.is-firm     → Investor & advisory platform  (dark header, editorial serif)
     body.is-careers  → Talent & careers platform     (light header, product sans)
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------- */
:root {
  /* shared scale */
  --step-1: .25rem;
  --step-2: .5rem;
  --step-3: .75rem;
  --step-4: 1rem;
  --step-5: 1.5rem;
  --step-6: 2rem;
  --step-7: 3rem;
  --step-8: 4.5rem;

  --radius: 0px;
  --radius-lg: 0px;
  --shell: 1160px;
  --ease: cubic-bezier(.2, .6, .2, 1);
  --dur: .18s;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --grotesk: "Space Grotesk", "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* default identity = investor / firm (also used before body class resolves) */
  --bg: #f4f1e9;
  --surface: #fbf9f2;
  --surface-2: #efe9dc;
  --fg: #1a1712;
  --fg-strong: #100e0b;
  --subtle: #6a6357;
  --border: #ddd4c3;
  --border-strong: #b9ad96;
  --accent: #7a4a24;
  --accent-ink: #f6f1e8;
  --ring: rgba(122, 74, 36, .35);
  --shadow: 0 10px 30px -12px rgba(26, 23, 18, .22);
  --shadow-sm: 0 4px 14px -8px rgba(26, 23, 18, .2);

  --header-bg: #14120f;
  --header-fg: #f4f1e8;
  --header-muted: #b0a48d;
  --header-line: #2b2620;

  --display: var(--serif);
  --display-weight: 500;
  --display-tracking: -.02em;

  /* aliases kept for legacy inline styles across the pages */
  --paper: var(--bg);
  --card: var(--surface);
  --ink: var(--fg);
  --soft: var(--subtle);
  --line: var(--border);
  --copper: var(--accent);
  --header: var(--header-bg);
}

body.is-firm {
  --bg: #f4f1e9;
  --surface: #fbf9f2;
  --surface-2: #efe9dc;
  --fg: #1a1712;
  --fg-strong: #100e0b;
  --subtle: #6a6357;
  --border: #ddd4c3;
  --border-strong: #b9ad96;
  --accent: #7a4a24;
  --accent-ink: #f6f1e8;
  --ring: rgba(122, 74, 36, .35);
  --header-bg: #14120f;
  --header-fg: #f4f1e8;
  --header-muted: #b0a48d;
  --header-line: #2b2620;
  --display: var(--serif);
  --display-weight: 500;
  --display-tracking: -.02em;
}

body.is-careers {
  --bg: #f5f7f9;
  --surface: #ffffff;
  --surface-2: #eef2f6;
  --fg: #131822;
  --fg-strong: #0a0e15;
  --subtle: #57616f;
  --border: #e0e5ec;
  --border-strong: #c2cbd6;
  --accent: #1f6f5c;
  --accent-ink: #f4faf8;
  --ring: rgba(31, 111, 92, .3);
  --shadow: 0 14px 34px -16px rgba(19, 24, 34, .28);
  --shadow-sm: 0 6px 18px -10px rgba(19, 24, 34, .22);
  --header-bg: #ffffff;
  --header-fg: #131822;
  --header-muted: #5b6472;
  --header-line: #e0e5ec;
  --display: var(--grotesk);
  --display-weight: 600;
  --display-tracking: -.03em;
}

/* ---- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
input, button, select, textarea { min-width: 0; }
img, svg, video { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--fg-strong); }
button { font-family: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: var(--display-weight); }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1rem; padding-left: 1.15rem; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--step-5) 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- Layout ---------------------------------------------------------- */
.shell { width: min(var(--shell), calc(100% - 2.5rem)); margin-inline: auto; }
@media (max-width: 480px) { .shell { width: calc(100% - 2rem); } }
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-tight { padding: clamp(1.75rem, 4vw, 2.75rem) 0; }
.narrow { max-width: 44rem; margin-inline: auto; }
.narrow-sm { max-width: 40rem; margin-inline: auto; }
.page-pad { height: 72px; }
.is-careers .page-pad { height: 72px; }
.stack > * + * { margin-top: var(--step-4); }
.divide-top { border-top: 1px solid var(--border); }

/* ---- Type helpers --------------------------------------------------- */
.kicker, .eyebrow, .foot-h {
  display: block;
  margin: 0 0 .6rem;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--subtle);
}
.is-careers .kicker, .is-careers .eyebrow, .is-careers .foot-h { color: var(--accent); }
.display-title,
h1.display-title, h2.display-title, h3.display-title {
  font-family: var(--display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 1.12;
  color: var(--fg-strong);
}
.lede { font-size: clamp(1.02rem, 1.6vw, 1.18rem); line-height: 1.6; color: var(--subtle); max-width: 40rem; }
.muted { color: var(--subtle); }
.fine { color: var(--subtle); font-size: .82rem; line-height: 1.6; }
.font-mono { font-family: var(--mono); font-size: .82em; letter-spacing: .01em; }
.accent { color: var(--accent); }

/* ---- Buttons ------------------------------------------------------- */
.btn,
.btn-solid, .btn-copper, .btn-outline, .btn-ghost, .btn-header {
  --btn-bg: var(--fg-strong);
  --btn-fg: var(--bg);
  --btn-bd: var(--fg-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: 0 1.25rem;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn:hover, .btn-solid:hover, .btn-copper:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn:active, .btn-solid:active, .btn-copper:active { transform: translateY(0); box-shadow: none; }

.btn-outline, .btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fg-strong);
  --btn-bd: var(--border-strong);
}
.btn-outline:hover, .btn-ghost:hover {
  background: var(--fg-strong);
  border-color: var(--fg-strong);
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-header {
  --btn-bg: transparent;
  --btn-fg: var(--header-fg);
  --btn-bd: color-mix(in srgb, var(--header-fg) 40%, transparent);
  min-height: 38px;
  padding: 0 .95rem;
  font-size: .78rem;
}
.btn-header:hover {
  background: var(--header-fg);
  border-color: var(--header-fg);
  color: var(--header-bg);
  transform: none;
}
.is-careers .btn-header {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  --btn-bd: var(--accent);
}
.is-careers .btn-header:hover { background: var(--fg-strong); border-color: var(--fg-strong); color: #fff; }

.btn-sm { min-height: 36px; padding: 0 .85rem; font-size: .76rem; }
.btn-block { width: 100%; }

.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--border); background: var(--surface); color: var(--subtle);
  cursor: pointer; border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.btn-icon:hover { border-color: var(--fg-strong); color: var(--fg-strong); }
.btn-icon.is-saved { border-color: var(--accent); color: var(--accent); background: var(--accent-ink); }
.icon, .icon-sm { width: 1rem; height: 1rem; flex: none; }
.icon-sm { width: .85rem; height: .85rem; }

/* ---- Header (shared frame) ---------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  background: var(--header-bg);
  color: var(--header-fg);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-header a { color: var(--header-fg); }
.site-header.is-scrolled { border-bottom-color: var(--header-line); }
.is-careers .site-header.is-scrolled { box-shadow: 0 1px 0 var(--header-line), 0 12px 28px -20px rgba(19, 24, 34, .5); }
.is-firm .site-header.is-scrolled { box-shadow: 0 14px 30px -24px rgba(0, 0, 0, .8); }

.header-row { display: flex; align-items: center; gap: 1.25rem; height: 72px; }
.logo {
  display: inline-flex; align-items: center; gap: .62rem;
  margin-right: auto;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: var(--display-weight);
  letter-spacing: -.018em;
  color: var(--header-fg);
  white-space: nowrap;
}
.logo:hover { color: var(--header-fg); }

/* ---- the mark ---- */
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo-mark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.lm-frame {
  fill: none; stroke: currentColor; stroke-width: 1.6;
  opacity: .4; transition: opacity var(--dur) var(--ease);
}
.lm-m {
  fill: none; stroke: var(--accent); stroke-width: 4.4;
  stroke-linecap: square; stroke-linejoin: miter;
  transition: stroke-width var(--dur) var(--ease);
}
.lm-rule { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: square; opacity: .9; }
.logo:hover .lm-frame { opacity: .55; }
.logo:hover .lm-m { stroke-width: 4.9; }
/* On the light careers header the espresso frame needs help */
.is-careers .lm-frame { stroke: var(--border-strong); opacity: .8; }
.is-careers .logo:hover .lm-frame { opacity: 1; }

.logo-word { line-height: 1; }
.logo-word .lw-a { letter-spacing: .01em; margin-right: .1em; }

.logo-tag {
  align-self: stretch;
  display: inline-flex; align-items: center;
  margin-left: .1rem; padding-left: .55rem;
  border-left: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  font-family: var(--sans);
  font-size: .62rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
}
.is-firm .logo-tag { color: color-mix(in srgb, var(--accent) 62%, var(--header-fg)); }

.nav-main { display: none; align-items: center; gap: 1.6rem; }
.nav-main a {
  position: relative;
  white-space: nowrap;
  padding: .35rem 0;
  font-size: .82rem;
  font-weight: 500;
  color: var(--header-muted);
}
.nav-main a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--accent);
  transition: right var(--dur) var(--ease);
}
.nav-main a:hover, .nav-main a.is-on { color: var(--header-fg); }
.nav-main a:hover::after, .nav-main a.is-on::after { right: 0; }

.header-end { display: flex; align-items: center; gap: .9rem; }
.link-quiet {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: .8rem; font-weight: 500; color: var(--header-muted);
  transition: color var(--dur) var(--ease);
}
.link-quiet:hover { color: var(--header-fg); }
.switch-link {
  display: none;
  align-items: center; gap: .3rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .04em;
  color: var(--header-muted);
  padding: .3rem .55rem;
  border: 1px solid var(--header-line);
}
.switch-link:hover { color: var(--header-fg); border-color: var(--header-muted); }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .4rem;
  background: transparent; border: 1px solid var(--header-line);
  color: var(--header-fg); min-height: 38px; padding: 0 .8rem;
  font-size: .78rem; font-weight: 600; border-radius: var(--radius); cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-toggle:hover { background: var(--header-fg); color: var(--header-bg); }

/* On the narrowest phones tighten the bar and drop the header CTA (it is in
   the menu drawer) so the logo and Menu button always fit. */
@media (max-width: 420px) {
  .header-row { gap: .7rem; }
  .header-end { gap: .55rem; }
  .header-end .btn-header { display: none; }
  .logo { font-size: 1.04rem; gap: .5rem; }
  .logo-mark { width: 25px; height: 25px; }
  .logo-tag { font-size: .58rem; letter-spacing: .14em; padding-left: .45rem; }
}

@media (min-width: 1000px) {
  .nav-main { display: flex; }
  .switch-link { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ---- Offcanvas drawer -------------------------------------------- */
.offcanvas { background: var(--surface); color: var(--fg); }
.offcanvas-header { border-bottom: 1px solid var(--border); }
.drawer { display: flex; flex-direction: column; }
.drawer a { padding: .8rem 0; border-bottom: 1px solid var(--border); color: var(--fg); font-weight: 500; }
.drawer a:hover { color: var(--accent); padding-left: .3rem; }
.drawer hr { margin: .6rem 0; }
.drawer .drawer-label { margin-top: 1rem; }

/* ---- Hero: firm (editorial split) ------------------------------- */
.hero { position: relative; display: grid; background: var(--bg); border-bottom: 1px solid var(--border); }
.hero-copy { display: flex; align-items: center; }
.hero-copy-inner { width: 100%; max-width: 38rem; padding: clamp(2rem, 5vw, 3.25rem) 1.35rem; }
.hero-copy h1 {
  font-family: var(--display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: clamp(2.1rem, 4.4vw, 3.15rem);
  line-height: 1.08;
  margin: .3rem 0 .9rem;
  color: var(--fg-strong);
}
.hero-visual { position: relative; min-height: 260px; background: var(--fg-strong); overflow: hidden; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; filter: saturate(.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.hero-stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem .6rem;
  margin-top: 1.75rem; padding-top: 1.15rem; border-top: 1px solid var(--border);
}
@media (min-width: 560px) { .hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hero-stats > div strong { display: block; font-family: var(--display); font-size: 1.4rem; font-weight: var(--display-weight); color: var(--fg-strong); }
.hero-stats > div span { font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }
@media (min-width: 940px) {
  .hero { grid-template-columns: 1fr 1.05fr; min-height: 480px; }
  .hero-copy { justify-content: flex-end; }
  .hero-copy-inner { padding: 3rem 3.25rem 3rem 0; }
  .hero-visual, .hero-visual img { min-height: 480px; height: 100%; }
}

/* ---- Hero: careers (product / search-first) -------------------- */
.hero-careers {
  background:
    radial-gradient(60rem 30rem at 12% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    var(--surface);
  border-bottom: 1px solid var(--border);
}
.hero-careers-inner { padding: clamp(2.5rem, 7vw, 4.75rem) 0; max-width: 46rem; }
.hero-careers h1 {
  font-family: var(--display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  line-height: 1.05;
  margin: .4rem 0 .85rem;
  color: var(--fg-strong);
}
.hero-search {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem;
  background: var(--surface); border: 1px solid var(--border-strong);
  padding: .45rem; align-items: center;
  box-shadow: var(--shadow-sm);
}
.hero-search input { border: 0; background: transparent; min-height: 44px; padding: 0 .5rem; flex: 1 1 12rem; min-width: 0; }
.hero-search input:focus { outline: none; box-shadow: none; }
.hero-search .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .hero-search .btn { flex: 0 0 auto; } }
.hero-quicklinks { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.hero-metrics { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2rem; }
.hero-metrics > div strong { display: block; font-family: var(--display); font-size: 1.6rem; color: var(--fg-strong); }
.hero-metrics > div span { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); }

/* ---- Page hero (interior) ------------------------------------- */
.page-hero { padding: clamp(2rem, 5vw, 3rem) 0 clamp(1.5rem, 3vw, 2rem); border-bottom: 1px solid var(--border); background: var(--surface); }
.page-hero-inner { max-width: 42rem; }
.page-hero h1 { font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: clamp(1.9rem, 4vw, 2.8rem); margin: .2rem 0 .6rem; color: var(--fg-strong); }

/* ---- Bands & statements ------------------------------------- */
.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.statement-grid { display: grid; gap: 1.5rem; }
.statement-grid h2 { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--fg-strong); }
@media (min-width: 820px) { .statement-grid { grid-template-columns: 1fr 1.25fr; gap: 3rem; } }

/* ---- Metrics row ------------------------------------------- */
.metrics { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.metric { padding: 1.4rem 1.15rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.metric strong { display: block; font-family: var(--display); font-size: 1.85rem; font-weight: var(--display-weight); color: var(--fg-strong); }
.metric span { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); }
@media (min-width: 820px) { .metrics { grid-template-columns: repeat(4, 1fr); } .metric { border-bottom: 0; } }

/* ---- Cards --------------------------------------------------- */
.card-grid, .job-grid { display: grid; gap: 1rem; }
@media (min-width: 820px) { .card-grid, .job-grid { grid-template-columns: 1fr 1fr; } }
.card-grid-3 { display: grid; gap: 1rem; }
@media (min-width: 720px) { .card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }

.panel, .job-card, .insight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.35rem;
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
a.job-card, a.insight-card, a.panel { color: inherit; display: block; }
.job-card:hover, .insight-card:hover, .panel.is-interactive:hover, a.panel:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.job-card { position: relative; }
.job-card.is-remote { border-left: 3px solid var(--accent); }
.job-card-top { display: flex; justify-content: space-between; gap: .75rem; align-items: flex-start; }
.job-card-title { font-family: var(--display); font-size: 1.28rem; margin: .3rem 0 0; line-height: 1.2; }
.job-card-title a { color: var(--fg-strong); }
.job-card-title a:hover { color: var(--accent); }
.job-card-excerpt { color: var(--subtle); font-size: .95rem; margin-top: .55rem; }
.job-card-meta { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: 1rem; }
.job-card .btn { margin-top: 1.1rem; }

.badge-soft {
  display: inline-flex; align-items: center; gap: .3rem;
  border: 1px solid var(--border); background: var(--surface-2);
  padding: .2rem .5rem; font-size: .68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; color: var(--subtle);
  border-radius: var(--radius);
}
.badge-remote {
  border-color: var(--accent);
  color: var(--accent-ink);
  background: var(--accent);
}
.badge-remote::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-ink) 30%, transparent);
}
.badge-onsite { border-style: dashed; }

/* ---- Filters & chips -------------------------------------- */
.filters {
  display: grid; gap: .6rem; margin-bottom: 1rem;
  position: sticky; top: 72px; z-index: 20;
  background: var(--bg); padding: .85rem 0 .5rem;
}
@media (min-width: 820px) { .filters { grid-template-columns: 1.6fr 1fr 1fr; } }
.filter-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.25rem; }
.chip {
  border: 1px solid var(--border); background: var(--surface); color: var(--subtle);
  padding: .35rem .75rem; font-size: .74rem; font-weight: 600; cursor: pointer;
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.chip:hover { border-color: var(--fg-strong); color: var(--fg-strong); }
.chip.is-on { border-color: var(--accent); color: var(--accent-ink); background: var(--accent); }

/* ---- Forms ------------------------------------------------ */
input, select, textarea {
  width: 100%; min-height: 44px;
  background: var(--surface); color: var(--fg);
  border: 1px solid var(--border); padding: .55rem .75rem;
  font: inherit; border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--subtle) 75%, transparent); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
textarea { min-height: 7.5rem; resize: vertical; }
label {
  display: block; font-size: .72rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--subtle);
  margin-bottom: .35rem;
}
form .panel > label:not(:first-child), form.panel > label:not(:first-child) { margin-top: 1rem; }

/* ---- Tenets / timeline / quotes -------------------------- */
.tenet { display: grid; gap: .45rem; padding: 1.35rem 0; border-top: 1px solid var(--border); }
@media (min-width: 720px) { .tenet { grid-template-columns: 3.5rem 1fr; gap: 1.75rem; } }
.tenet h2, .tenet h3 { font-family: var(--display); font-size: 1.35rem; margin: 0 0 .35rem; color: var(--fg-strong); }
.tenet > div > p { margin: 0; }

.timeline { display: grid; gap: 0; }
.tl-item { padding: 0 0 1.75rem 1.6rem; border-left: 1px solid var(--border); position: relative; }
.tl-item::before {
  content: ""; position: absolute; left: -5px; top: .3rem;
  width: 9px; height: 9px; background: var(--accent); border-radius: 50%;
}
.tl-item:last-child { border-left-color: transparent; }

.quote {
  border-left: 2px solid var(--accent); padding: .2rem 0 .2rem 1.15rem; margin: 0;
  font-family: var(--display); font-size: 1.18rem; color: var(--fg-strong);
}
.quote footer { font-family: var(--sans); }

/* ---- FAQ accordion ------------------------------------- */
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: transparent; border: 0;
  padding: 1.15rem 0; font-family: var(--display); font-size: 1.2rem; color: var(--fg-strong);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer;
}
.faq-q:hover { color: var(--accent); }
.faq-q span { font-family: var(--sans); font-size: 1.4rem; color: var(--subtle); transition: transform var(--dur) var(--ease); flex: none; }
.faq-item.is-open .faq-q span { transform: rotate(45deg); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease); }
.faq-item.is-open .faq-a { max-height: 16rem; }
.faq-a p { color: var(--subtle); padding-bottom: 1.15rem; }

/* ---- Home band (firm three columns) ------------------- */
.home-band { border-top: 1px solid var(--border); background: var(--surface); }
.home-grid { display: grid; gap: 0; }
.home-col { padding: 2rem 0; }
.home-col + .home-col { border-top: 1px solid var(--border); }
.home-col h2 { font-family: var(--display); font-size: 1.5rem; margin: 0 0 .7rem; color: var(--fg-strong); }
.home-list { list-style: none; margin: 0; padding: 0; }
.home-list li { border-bottom: 1px solid var(--border); }
.home-list a { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; color: var(--fg); font-weight: 500; }
.home-list a:hover { color: var(--accent); padding-left: .3rem; }
@media (min-width: 900px) {
  .home-grid { grid-template-columns: repeat(3, 1fr); }
  .home-col { padding: 2.25rem 1.75rem; }
  .home-col + .home-col { border-top: 0; border-left: 1px solid var(--border); }
  .home-col:first-child { padding-left: 0; }
  .home-col:last-child { padding-right: 0; }
}

/* ---- LinkedIn apply ------------------------------------ */
.btn-linkedin {
  --btn-bg: #0a66c2; --btn-fg: #fff; --btn-bd: #0a66c2;
  background: #0a66c2; border-color: #0a66c2; color: #fff;
  min-height: 50px; padding: 0 1.5rem; font-size: .9rem;
}
.btn-linkedin:hover { background: #084d94; border-color: #084d94; color: #fff; transform: translateY(-1px); }
.btn-linkedin .icon { width: 20px; height: 20px; }

.li-panel {
  background: var(--surface); border: 1px solid var(--border-strong);
  border-top: 3px solid #0a66c2;
  padding: clamp(1.35rem, 4vw, 2rem); box-shadow: var(--shadow-sm);
}
.li-panel .li-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 9px; background: #0a66c2; color: #fff; margin-bottom: .9rem;
}
.li-panel .li-mark .icon { width: 22px; height: 22px; }
.li-panel h2 { font-family: var(--display); font-size: clamp(1.35rem, 3vw, 1.7rem); color: var(--fg-strong); margin: 0 0 .4rem; }
.li-panel p { margin: 0 0 1rem; }
.li-note { font-size: .84rem; color: var(--subtle); margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--border); }
.li-or {
  display: flex; align-items: center; gap: 1rem; margin: 1.75rem 0;
  color: var(--subtle); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.li-or::before, .li-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---- Apply step 2: the LinkedIn gate ---- */
.li-gate {
  background: var(--surface); border: 1px solid var(--border-strong);
  border-top: 4px solid #0a66c2;
  padding: clamp(1.6rem, 5vw, 2.75rem); box-shadow: var(--shadow-sm);
  text-align: center;
}
.li-gate .li-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 10px; background: #0a66c2; color: #fff; margin-bottom: 1rem;
}
.li-gate .li-mark .icon { width: 24px; height: 24px; }
.li-gate-h { font-family: var(--display); font-size: clamp(1.5rem, 4vw, 2.1rem); color: var(--fg-strong); margin: 0 0 .6rem; }
.li-gate .muted { max-width: 34rem; margin-inline: auto; }
.li-steps {
  list-style: none; margin: 0 0 1.5rem; padding: 0;
  display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap;
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
}
.li-steps li { display: flex; align-items: center; gap: .4rem; color: var(--subtle); }
.li-steps li span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; font-size: .72rem;
  background: var(--surface-2); border: 1px solid var(--border);
}
.li-steps li.is-done { color: var(--accent); }
.li-steps li.is-done span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.li-steps li.is-now span { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.li-gate-go {
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center;
  margin: 1.6rem 0 .5rem;
}
.li-wait {
  margin: 1.25rem auto 0; max-width: 30rem; padding: 1rem 1.15rem;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  display: flex; gap: .8rem; align-items: flex-start; text-align: left;
  font-size: .9rem; color: var(--fg);
}
.li-wait p { margin: 0; }
.li-spin {
  flex: none; width: 18px; height: 18px; margin-top: .15rem; border-radius: 50%;
  border: 2px solid var(--border-strong); border-top-color: #0a66c2;
}
.js .li-spin { animation: liSpin .8s linear infinite; }
@keyframes liSpin { to { transform: rotate(360deg); } }
.li-gate .li-note { max-width: 32rem; margin-inline: auto; }
.li-noscript .link-quiet { font-size: inherit; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }

.li-panel-done { border-top-color: var(--joy-1); }
.li-panel-done .li-mark { background: var(--joy-1); }

.ticket-badge {
  display: inline-flex; align-items: center; gap: .35rem; margin-top: .6rem;
  padding: .28rem .6rem; border-radius: 999px;
  background: rgba(18, 146, 92, .12); color: var(--joy-1, #12925c);
  font-size: .72rem; font-weight: 700; letter-spacing: .03em;
}
.ticket-badge .icon { width: 14px; height: 14px; }

@media (max-width: 480px) {
  .li-gate-go .btn { width: 100%; }
}

/* ==========================================================================
   Application confirmation — the celebration
   ========================================================================== */
:root { --joy-1: #12925c; --joy-2: #0c6b42; --joy-3: #0a5334; --joy-ink: #eafff5; }

.celebrate {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  color: var(--joy-ink);
  padding: clamp(3rem, 9vw, 5rem) 0 clamp(4.5rem, 11vw, 7rem);
  background:
    radial-gradient(48rem 30rem at 50% -12%, #2fae7d 0%, transparent 62%),
    radial-gradient(30rem 24rem at 82% 8%, rgba(120, 230, 180, .45) 0%, transparent 60%),
    linear-gradient(184deg, var(--joy-1), var(--joy-2) 55%, var(--joy-3));
}
.celebrate-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
}
.celebrate > .shell { position: relative; z-index: 2; max-width: 40rem; }
.celebrate .kicker {
  display: inline-block; margin: 1.15rem 0 0; padding: .3rem .7rem;
  color: #eafff5; background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px;
  backdrop-filter: blur(2px);
}
.celebrate h1 {
  font-family: var(--display); font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: clamp(2.3rem, 6.5vw, 3.6rem); line-height: 1.04;
  margin: 1rem 0 .5rem; color: #fff;
  text-wrap: balance;
}
.celebrate p.lede { color: #d9f6e8; max-width: 30rem; margin-inline: auto; font-size: 1.05rem; text-wrap: pretty; }
.celebrate strong { color: #fff; }

/* animated success seal */
.seal { width: 88px; height: 88px; display: block; margin: 0 auto; }
.seal .ring { fill: rgba(255, 255, 255, .12); stroke: #fff; stroke-width: 3; }
.seal .tick {
  fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40;
}
.js .seal { animation: sealPop .5s var(--ease) both; }
.js .seal .tick { animation: sealTick .45s .22s var(--ease) forwards; }
.js .seal .ring { animation: sealRing 2.6s .5s ease-out infinite; }
@keyframes sealPop { 0% { transform: scale(.3) rotate(-12deg); opacity: 0 } 60% { transform: scale(1.08) } 100% { transform: scale(1); opacity: 1 } }
@keyframes sealTick { to { stroke-dashoffset: 0 } }
@keyframes sealRing { 0% { stroke-width: 3 } 12% { stroke-width: 5 } 30% { stroke-width: 3 } 100% { stroke-width: 3 } }

/* the ticket — lifted out of the green band */
.ticket {
  position: relative;
  z-index: 1;
  max-width: 30rem;
  margin: clamp(-3.25rem, -8vw, -4rem) auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: left;
  box-shadow: 0 30px 70px -28px rgba(10, 83, 52, .55), 0 8px 20px -12px rgba(10, 83, 52, .3);
}
.js .ticket { animation: ticketRise .55s .25s var(--ease) both; }
@keyframes ticketRise { from { transform: translateY(24px); opacity: 0 } to { transform: none; opacity: 1 } }

.ticket-head { position: relative; padding: 1.35rem 1.5rem 1.5rem; }
.ticket-head .eyebrow { color: var(--accent); margin-bottom: .3rem; }
.ticket-role { font-family: var(--display); font-size: 1.2rem; color: var(--fg-strong); margin: 0; line-height: 1.25; }
.ticket-perf {
  position: relative; height: 0;
  border-top: 2px dashed var(--border-strong);
  margin: 0 1.1rem;
}
.ticket-perf::before, .ticket-perf::after {
  content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border);
}
.ticket-perf::before { left: -23px; }
.ticket-perf::after { right: -23px; }

.ticket-body { padding: 1.5rem; display: grid; gap: 1.35rem; }
.ticket-ref dt, .ticket-stats dt { font-size: .66rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--subtle); margin: 0; }
.ticket-ref dd { margin: .4rem 0 0; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.ticket-ref .val {
  font-family: var(--mono); font-size: 1.35rem; font-weight: 600; letter-spacing: .04em;
  color: var(--fg-strong);
}
.ticket-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.ticket-stats dd { margin: .3rem 0 0; font-family: var(--display); font-size: 1.7rem; font-weight: var(--display-weight); color: var(--fg-strong); line-height: 1; }
.ticket-stats dd small { display: block; font-family: var(--sans); font-size: .76rem; font-weight: 400; color: var(--subtle); margin-top: .35rem; line-height: 1.4; }

.btn-copy {
  display: inline-flex; align-items: center; gap: .35rem;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--subtle);
  font: inherit; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .35rem .6rem; cursor: pointer; border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.btn-copy:hover { border-color: var(--accent); color: var(--accent); }
.btn-copy.is-done { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }

/* the rest of the confirmation, on the normal surface */
.after-ticket { max-width: 30rem; margin: 2.25rem auto 0; }
.receipt-next { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .9rem; }
.receipt-next li { position: relative; padding-left: 1.6rem; color: var(--subtle); }
.receipt-next li::before { content: ""; position: absolute; left: 0; top: .55rem; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .js .seal, .js .seal .tick, .js .seal .ring, .js .ticket { animation: none; }
  .seal .tick { stroke-dashoffset: 0; }
}

/* ---- Steps (careers "how it works") ------------------ */
.steps { display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--border); padding: 1.5rem 1.35rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: .8rem; color: var(--accent); display: block; margin-bottom: .6rem;
}
.step h3 { font-family: var(--display); font-size: 1.15rem; margin: 0 0 .4rem; color: var(--fg-strong); }
.step p { color: var(--subtle); font-size: .92rem; margin: 0; }

/* ---- Footer ------------------------------------------ */
.site-footer { border-top: 1px solid var(--border); background: var(--surface-2); }
.is-careers .site-footer { background: var(--fg-strong); color: #dfe4ea; }
.is-careers .site-footer a { color: #dfe4ea; }
.is-careers .site-footer .foot-h { color: color-mix(in srgb, var(--accent) 70%, #fff); }
.is-careers .site-footer .fine { color: #8b93a0; }
.footer-row { display: grid; gap: 2rem; padding: clamp(2rem, 5vw, 3rem) 0 1.75rem; }
@media (min-width: 820px) { .footer-row { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-logo {
  display: inline-flex; align-items: center; gap: .55rem;
  margin: 0 0 .7rem; font-family: var(--display); font-size: 1.12rem;
  font-weight: var(--display-weight); letter-spacing: -.018em; color: var(--fg-strong);
}
.footer-logo .logo-mark { width: 28px; height: 28px; }
.footer-logo .lm-rule { opacity: .75; }
.is-careers .footer-logo { color: #fff; }
.is-careers .footer-logo .lm-frame { stroke: rgba(255, 255, 255, .35); opacity: 1; }
.footer-row a { display: block; padding: .22rem 0; color: var(--fg); font-weight: 500; }
.footer-row a:hover { color: var(--accent); padding-left: .25rem; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  border-top: 1px solid var(--border); padding: 1.15rem 0 1.5rem;
  font-size: .78rem; color: var(--subtle);
}
.is-careers .footer-base { border-top-color: rgba(255, 255, 255, .12); color: #8b93a0; }

/* ---- Flash & search & to-top ------------------------ */
.flash-wrap { position: relative; z-index: 45; outline: none; }
.flash {
  display: flex; align-items: flex-start; gap: .5rem;
  width: min(var(--shell), calc(100% - 2.5rem)); margin: .9rem auto 0;
  padding: .8rem 1rem; font-size: .92rem; font-weight: 500; line-height: 1.5;
  border: 1px solid transparent;
}
.flash::before { content: ""; flex: none; width: 1.1rem; height: 1.1rem; margin-top: .1rem; background: currentColor;
  -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.flash-ok { background: color-mix(in srgb, var(--accent) 14%, #fff); color: #1f5b3a; border-color: color-mix(in srgb, #1f5b3a 30%, transparent); }
.flash-ok::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E"); }
.flash-err { background: #fbe9e4; color: #8a2c1a; border-color: #e6b3a6; }
.flash-err::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2 1 21h22L12 2zm0 6 6.5 11h-13L12 8zm-1 3v4h2v-4h-2zm0 5v2h2v-2h-2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2 1 21h22L12 2zm0 6 6.5 11h-13L12 8zm-1 3v4h2v-4h-2zm0 5v2h2v-2h-2z'/%3E%3C/svg%3E"); }

.search-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10, 9, 7, .5); backdrop-filter: blur(2px);
  display: flex; justify-content: center; padding: 12vh 1rem;
}
.search-overlay[hidden] { display: none; }
.search-panel { width: min(560px, 100%); background: var(--surface); border: 1px solid var(--border); padding: 1rem; box-shadow: var(--shadow); height: max-content; }
.search-results a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--border); color: var(--fg); font-weight: 500; }
.search-results a:hover { color: var(--accent); padding-left: .25rem; }
.search-results a:last-child { border-bottom: 0; }

.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--accent); z-index: 70; transition: width .1s linear; }

.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
  border: 1px solid var(--border); background: var(--surface); color: var(--fg);
  min-height: 40px; padding: 0 .85rem; font-size: .78rem; font-weight: 600; cursor: pointer;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease);
  box-shadow: var(--shadow-sm);
}
.to-top.is-on { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--fg-strong); color: var(--bg); border-color: var(--fg-strong); }

/* ---- Quiz / lens ----------------------------------- */
.quiz-opt {
  display: block; width: 100%; text-align: left;
  background: var(--surface); color: var(--fg);
  border: 1px solid var(--border); padding: .9rem 1rem; margin: .45rem 0; cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.quiz-opt:hover { border-color: var(--accent); transform: translateX(3px); }
.progress-line { height: 3px; background: var(--border); margin: .85rem 0 1.1rem; }
.progress-line span { display: block; height: 3px; background: var(--accent); transition: width var(--dur) var(--ease); }

dl.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 1rem; margin: 1.25rem 0 0; }
dl.stat-row dt { font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); }
dl.stat-row dd { margin: .2rem 0 0; font-family: var(--mono); }

/* ---- Utilities & motion --------------------------- */
.hidden, .is-hidden-card { display: none !important; }
[hidden] { display: none !important; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Bootstrap alignment: keep util spacing but match our type colour */
.text-muted { color: var(--subtle) !important; }

/* ---- Phone tune-up (<=560px) --------------------- */
@media (max-width: 560px) {
  h1, .display-title { overflow-wrap: anywhere; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy-inner { padding-inline: 0; max-width: none; }
  .hero-visual, .hero-visual img { min-height: 200px; }
  .d-flex.gap-2, .d-flex.gap-3, .hero-actions, .btn-row { flex-wrap: wrap; }
  /* Primary action buttons go full width where they stand alone */
  form.panel > .btn, .receipt .btn-outline { width: 100%; }
  .metric { border-right: 0; }
  .metric:nth-child(odd) { border-right: 1px solid var(--border); }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

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