/* ==========================================================================
   AudaxBridge — Careers
   Tokens first. To retheme (e.g. to the live site's #273b5b navy), change the
   variables in :root only — nothing below hard-codes a brand colour.
   ========================================================================== */
:root {
  --navy: #182D46;
  --navy-deep: #0F1E30;
  --navy-hover: #21395A;
  --navy-shade: 11, 23, 38;          /* hero overlay rgb */
  --steel: #3B5F87;

  --white: #fff;
  --panel: #F5F7F9;
  --chip: #EDF1F5;
  --ghost-hover: #F0F3F6;

  --line: #E3E8ED;
  --line-input: #DDE4EB;
  --line-dash: #CBD5DF;
  --line-hover: #C6D2DE;
  --dot: #C2CDD8;

  --ink: var(--navy);
  --body: #55697D;
  --body-strong: #41566C;
  --muted: #7C8B9B;
  --faint: #8C9AA8;
  --placeholder: #A7B4C1;

  --error: #C0474A;
  --error-bg: #FFF7F6;

  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Consolas, monospace; /* technical labels only */
  --ease: cubic-bezier(.4, 0, .2, 1);

  --nav-h: 84px;
  --gutter: clamp(24px, 9.72vw, 140px);
  --edge: max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter)));
  --section-y: clamp(76px, 9.03vw, 130px);
  --radius-card: 20px;
  --radius-panel: 30px;
  --radius-btn: 10px;
  --radius-field: 11px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--ink); text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .nav :focus-visible, .footer :focus-visible { outline-color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 12px 18px; border-radius: 8px; background: #fff; color: var(--ink); font-weight: 600;
}
.skip:focus { top: 12px; }

/* Layout ------------------------------------------------------------------ */
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: var(--section-y); scroll-margin-top: var(--nav-h); }
.sec--panel { background: var(--panel); }
.sec--navy { background: var(--navy); }

/* Section header: eyebrow → H2 → supporting sentence ---------------------- */
.sec-head { display: flex; flex-direction: column; gap: 20px; max-width: 720px; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.h2 {
  font-size: clamp(32px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -.03em;
  font-weight: 600; color: var(--ink);
}
.lede { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; color: var(--body); }
.on-dark .eyebrow { color: rgba(255,255,255,.58); }
.on-dark .h2 { color: #fff; }
.on-dark .lede { color: rgba(255,255,255,.72); }

/* Scroll reveal (only armed when JS is running) --------------------------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Buttons + roll-hover ----------------------------------------------------
   Two stacked labels inside an overflow-hidden box one line tall; on hover both
   translate -100% so the duplicate slides up into view. */
.btn {
  --lh: 22px;
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px; border-radius: var(--radius-btn);
  border: 1px solid transparent; font-size: 16px; font-weight: 500; white-space: nowrap;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.btn--sm { --lh: 20px; height: 44px; padding: 0 22px; font-size: 15px; }
.btn--lg { height: 56px; padding: 0 30px; }
.btn--xl { --lh: 24px; height: 58px; padding: 0 34px; font-size: 17px; border-radius: var(--radius-field); }
.btn--block { display: flex; width: 100%; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-hover); }
.btn--light { background: #fff; color: var(--navy); }
.btn--outline { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,.08); }
.btn--ghost { border-color: #D9E1E9; color: var(--ink); background: #fff; }
.btn--ghost:hover { background: var(--ghost-hover); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.roll { display: block; height: var(--lh); line-height: var(--lh); overflow: hidden; }
.roll > span { display: block; height: var(--lh); transition: transform .36s var(--ease); }
.btn:hover .roll > span, .btn:focus-visible .roll > span { transform: translateY(-100%); }

/* Media placeholder — drop real media in by adding an <img class="slot__media">
   or <video class="slot__media"> as the first child; the label hides itself. */
.slot {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; min-height: inherit; overflow: hidden;
  background: linear-gradient(135deg, #DCE3EA, #C7D2DE);
}
/* drafting-sheet grid: 24px minor, 120px major */
.slot::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(24,45,70,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(24,45,70,.11) 1px, transparent 1px),
    linear-gradient(rgba(24,45,70,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(24,45,70,.05) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.slot__label {
  position: relative; max-width: 82%; padding: 8px 14px; border-radius: 999px; text-align: center;
  font-size: 12px; font-weight: 600; letter-spacing: .04em; line-height: 1.35; color: var(--steel);
  background: rgba(255,255,255,.78);
}
.slot__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot__media + .slot__label { display: none; }
.slot--dark { background: linear-gradient(135deg, #2C4665, #14263D); }
.slot--dark::before {
  background-image:
    linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
}
.slot--dark .slot__label { color: rgba(255,255,255,.8); background: rgba(255,255,255,.1); }
.slot--circle { border-radius: 50%; }
.slot--circle .slot__label { padding: 3px 7px; font-size: 9px; letter-spacing: .02em; }

/* Nav ---------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,30,48,.55);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.12);
  transition: background-color .3s ease;
}
.nav.is-scrolled { background: rgba(15,30,48,.94); }
.nav--solid { background: var(--navy-deep); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.brand__mark {
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--navy);
  font-size: 15px; font-weight: 700;
}
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a { position: relative; font-size: 15px; color: rgba(255,255,255,.72); transition: color .2s ease; }
.nav__links a:hover { color: #fff; }
.nav__links a[aria-current="page"] { color: #fff; font-weight: 500; }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: #fff;
}
.nav__links .nav__contact-m { display: none; }
.nav__toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 11px; margin-right: -11px; border: 0; background: none;
}
.nav__toggle span { height: 1.5px; background: #fff; transition: transform .25s ease, opacity .2s ease; }
.nav.is-open .nav__toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* Hero --------------------------------------------------------------------- */
.hero {
  position: relative; display: flex; align-items: center; overflow: hidden; color: #fff;
  min-height: clamp(690px, 50vw, 760px);
  margin-top: calc(var(--nav-h) * -1); padding: var(--nav-h) 0 0;
}
.hero__media { position: absolute; inset: 0; min-height: 100%; }
.hero .slot { align-items: flex-start; justify-content: flex-end; padding: calc(var(--nav-h) + 22px) var(--gutter) 0; } /* keep the placeholder label clear of the headline + buttons */
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(var(--navy-shade),.78) 0%, rgba(var(--navy-shade),.6) 45%, rgba(var(--navy-shade),.88) 100%);
}
.hero__body { position: relative; display: flex; flex-direction: column; gap: 26px; max-width: 760px; }
.hero .eyebrow { color: rgba(255,255,255,.66); }
.hero h1 { font-size: clamp(46px, 5.7vw, 82px); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; }
.hero p { max-width: 600px; font-size: clamp(16px, 1.32vw, 19px); line-height: 1.6; color: rgba(255,255,255,.78); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }

/* Mission + Why ------------------------------------------------------------ */
.mission .sec-head { max-width: 760px; }
.mission .h2 { font-size: clamp(32px, 3.6vw, 52px); }
.why {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: center;
  gap: clamp(32px, 4.2vw, 60px); padding: clamp(28px, 5.1vw, 74px);
  background: var(--navy); border-radius: var(--radius-panel);
}
.why__text { display: flex; flex-direction: column; gap: 20px; }
.why__text p { font-size: clamp(22px, 2.1vw, 30px); line-height: 1.5; font-weight: 500; color: #fff; }
/* Team photo, shown at its natural 16:9 so nobody is cropped */
.why__media { border-radius: var(--radius-card); overflow: hidden; }
.why__media img { width: 100%; height: auto; }

/* Vertical loops (values + programmes) ------------------------------------- */
.loop {
  position: relative; max-width: 640px; height: var(--loop-h, 520px); overflow: hidden; margin-top: 40px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}
.loop__track { display: flex; flex-direction: column; animation: loop-y var(--loop-t, 24s) linear infinite; }
.loop:hover .loop__track, .loop:focus-within .loop__track { animation-play-state: paused; }
.loop__set { display: flex; flex-direction: column; gap: var(--loop-gap, 16px); padding-bottom: var(--loop-gap, 16px); }
@keyframes loop-y { to { transform: translateY(-50%); } }

.values-line {
  margin-top: 56px; font-size: clamp(30px, 3.05vw, 44px); line-height: 1.1; letter-spacing: -.03em;
  font-weight: 600; color: var(--ink);
}
.prog {
  display: flex; align-items: center; gap: 20px; padding: 28px 32px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
}
.prog h3 { font-size: 19px; line-height: 1.35; font-weight: 500; letter-spacing: -.01em; color: var(--ink); }

/* Cards (shared hover) ------------------------------------------------------ */
@media (hover: hover) {
  .card { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
  .card:hover { transform: translateY(-5px); border-color: var(--line-hover); box-shadow: 0 18px 40px -24px rgba(24,45,70,.35); }
}

/* Projects: cursor-driven strip -------------------------------------------- */
.proj { margin-top: 56px; }
/* Full-bleed strip: the first card starts on the content gutter, the rest run off both edges */
.sec--clip { overflow-x: clip; }
.proj__viewport {
  overflow: hidden; touch-action: pan-y; user-select: none; padding-block: 8px;
  margin-inline: calc(50% - 50vw);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.proj__track { display: flex; width: max-content; will-change: transform; }
.proj__set { display: flex; gap: 20px; padding-right: 20px; }
.proj-card {
  flex: 0 0 320px; display: flex; flex-direction: column; padding: 0; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
.proj-card__img { height: 150px; overflow: hidden; background: #173A63; }
.proj-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.proj-card:hover .proj-card__img img { transform: scale(1.04); }
.proj-card__title { display: flex; align-items: center; gap: 10px; padding: 16px 18px; min-width: 0; }
.proj-card__title::before { content: ""; flex: 0 0 6px; height: 6px; border-radius: 50%; background: var(--steel); }
.proj-card__title span { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; font-size: 14px; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.proj-card[aria-pressed="true"] { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.proj__detail {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start;
  margin-top: 32px; padding: 34px 38px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-card);
}
.proj__detail h3 { margin-top: 14px; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.proj__detail p { font-size: 17px; line-height: 1.65; color: var(--body-strong); }
.tag {
  display: inline-block; padding: 6px 12px; border-radius: 7px; background: var(--chip);
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--steel);
}

/* Benefits ------------------------------------------------------------------ */
/* Bento: one large navy tile plus smaller ones, packed so the 4-column grid has no holes */
.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(196px, auto); gap: 16px; margin-top: 64px; }
.benefit {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  padding: 26px 28px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); color: var(--navy);
}
.benefit h3 { font-size: 21px; line-height: 1.25; font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.benefit--wide { grid-column: span 2; }
.benefit--feat { grid-column: 1 / 3; grid-row: 1 / 3; padding: 38px; background: var(--navy); border-color: var(--navy); }
.benefit--feat h3 { max-width: 11ch; font-size: clamp(30px, 3vw, 42px); line-height: 1.06; letter-spacing: -.03em; font-weight: 600; color: #fff; }
/* the small drafting diagram on each tile */
.dg { position: absolute; right: 22px; top: 20px; width: auto; height: calc(var(--h, 64px) * var(--s, 1)); color: var(--navy); }
.dg text { font-family: var(--mono); font-size: 10.5px; fill: currentColor; stroke: none; }
.dg .s2 { stroke: var(--steel); }
.dg .s3 { stroke: #8FA4B9; }
.dg .wk { fill: currentColor; }
.benefit--wide .dg { top: 50%; right: 34px; transform: translateY(-50%); }
.benefit--feat .dg { top: 34px; right: 34px; color: #fff; }
.benefit--feat .dg .s2, .benefit--feat .dg .s3 { stroke: currentColor; }
/* Entrance: tiles rise 26px and fade in on a 0.08s cascade (--d); the week's dots then fill Mon-Fri */
.js .benefit { opacity: 0; transform: translateY(26px); transition: opacity .6s ease var(--d, 0s), transform .6s var(--ease) var(--d, 0s), box-shadow .3s ease, border-color .3s ease; }
.js .benefits.is-in .benefit { opacity: 1; transform: none; }
.js .benefits.is-settled .benefit { transition-delay: 0s; }
.js .dg .wk { fill-opacity: 0; transition: fill-opacity .35s ease calc(.75s + var(--k, 0) * .12s); }
.js .benefits.is-in .dg .wk { fill-opacity: 1; }
@media (hover: hover) {
  .js .benefits.is-in .benefit:hover { transform: translateY(-4px); border-color: var(--line-hover); box-shadow: 0 18px 40px -24px rgba(24,45,70,.35); }
  .js .benefits.is-in .benefit--feat:hover { border-color: var(--navy); box-shadow: 0 26px 54px -28px rgba(15,30,48,.75); }
}

/* Gallery ------------------------------------------------------------------- */
/* Office photos in a bento. Three motions only: rise-in on scroll, slow zoom on hover, caption slides up.
   The filter stays light on purpose — the photos are already clean, anything heavier reads as fake. */
.gallery { display: grid; grid-auto-flow: row dense; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; gap: 16px; margin-top: 64px; }
.tile {
  position: relative; margin: 0; overflow: hidden; border-radius: 18px; isolation: isolate;
  grid-row: span var(--rows, 1); grid-column: span var(--cols, 1);
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 24px 48px -30px rgba(0,0,0,.6);
}
.tile img {
  width: 100%; height: 100%; object-fit: cover; /* cropping also hides the wide-angle lean in several shots */
  filter: saturate(.92) brightness(1.02);
  transition: transform .6s ease, filter .6s ease;
}
.tile__cap {
  position: absolute; inset: auto 0 0; display: flex; flex-direction: column; gap: 3px;
  padding: 56px 22px 20px; color: #fff; line-height: 1.35; pointer-events: none;
  background: linear-gradient(0deg, rgba(var(--navy-shade),.94) 0%, rgba(var(--navy-shade),.72) 50%, rgba(var(--navy-shade),0) 100%);
  transform: translateY(101%); transition: transform .4s var(--ease);
}
.tile__cap strong { font-size: 16px; font-weight: 600; letter-spacing: -.005em; }
.tile__cap span { font-size: 14px; color: rgba(255,255,255,.82); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.06); filter: saturate(1.05); }
.tile:hover .tile__cap, .tile:focus-visible .tile__cap { transform: none; }
.js .tile { opacity: 0; transform: translateY(24px); transition: opacity .6s ease-out var(--d, 0s), transform .6s ease-out var(--d, 0s); }
.js .tile.is-in { opacity: 1; transform: none; }
@media (hover: none) { .tile__cap { transform: none; padding-top: 44px; } .tile img { filter: none; } } /* touch: no hover, so captions stay on */

/* Testimonials --------------------------------------------------------------- */
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.arrows { display: flex; gap: 10px; flex: 0 0 auto; }
.arrow {
  display: flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 50%; border: 1px solid #D9E1E9; background: #fff; transition: background-color .2s ease, opacity .2s ease;
}
.arrow:hover { background: var(--ghost-hover); }
.arrow:disabled { opacity: .4; pointer-events: none; }
/* Full-bleed strip travelling left → right; the loop is built in JS (assets/careers.js) */
.tscroll {
  margin-top: 56px; padding-block: 8px 12px; overflow: hidden; touch-action: pan-y; user-select: none; cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.tscroll:active { cursor: grabbing; }
.tscroll__track { display: flex; width: max-content; will-change: transform; }
.tscroll__set { display: flex; gap: 24px; padding-right: 24px; align-items: stretch; }
/* reduced motion: a plain scroll-snap carousel */
.tscroll.is-native {
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding-inline: var(--edge);
  -webkit-mask-image: none; mask-image: none; user-select: auto; cursor: auto;
}
.tscroll.is-native::-webkit-scrollbar { display: none; }
.tscroll.is-native .tscroll__track { padding-inline: var(--edge); }
.tscroll.is-native .quote { scroll-snap-align: start; }
.quote {
  flex: 0 0 min(440px, 84vw);
  display: flex; flex-direction: column; justify-content: flex-start; gap: 26px; padding: 36px;
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
}
.quote svg { stroke: var(--dot); }
.quote blockquote { margin: 0; font-size: 17px; line-height: 1.6; letter-spacing: -.01em; color: var(--ink); }
.quote__who { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.quote__photo {
  flex: 0 0 54px; width: 54px; height: 54px; min-height: 0; border-radius: 50%; overflow: hidden;
  background: linear-gradient(150deg, #8DBBE6 0%, #4C7FB8 55%, #2C5A92 100%);
}
/* Flat avatar (drawn in careers.js). `.quote .av` out-ranks the `.quote svg` stroke rule above. */
.quote .av { display: block; width: 100%; height: 100%; stroke: none; }
.av .shirt { fill: var(--shirt); }
.av .neck { fill: var(--skin-shade); }
.av .skin { fill: var(--skin); }
.av .h { fill: #1F3B6E; }
.av .av__glasses { fill: none; stroke: #1B2B45; stroke-width: 1.1; }
.av__head { transform-origin: 32px 46px; transition: transform .5s var(--ease); }
.quote:hover .av__head { transform: translateY(-1.5px) rotate(-2deg); }
.quote__who strong { display: block; font-size: 16px; font-weight: 600; color: var(--ink); }
.quote__who .quote__role { display: block; margin-top: 3px; font-size: 14px; color: var(--muted); }
.quote--featured { background: var(--navy); border-color: var(--navy); }
.quote--featured svg { stroke: rgba(255,255,255,.45); }
.quote--featured blockquote, .quote--featured .quote__who strong { color: #fff; }
.quote--featured .quote__who .quote__role { color: rgba(255,255,255,.62); }

/* Job board ------------------------------------------------------------------ */
.filters { display: flex; flex-direction: column; gap: 22px; margin-top: 56px; }
.filters__row { display: flex; gap: 14px; }
.search {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 22px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s ease;
}
.search:focus-within { border-color: var(--steel); }
.search svg { flex: 0 0 auto; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--ink); }
.search input::placeholder { color: var(--faint); }
.select { position: relative; }
.select select, .field select {
  width: 100%; appearance: none; -webkit-appearance: none; cursor: pointer; outline: 0;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238C9AA8' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 20px center;
  border: 1px solid var(--line); text-overflow: ellipsis;
}
.filters .select { width: 210px; flex: 0 0 auto; }
.filters .select select { height: 58px; padding: 0 46px 0 22px; border-radius: 12px; font-size: 16px; color: var(--body); }
.select select:focus, .field select:focus, .field input:focus { border-color: var(--steel); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  height: 42px; padding: 0 20px; border-radius: 999px; font-size: 15px; font-weight: 500;
  border: 1px solid var(--line-input); background: #fff; color: var(--body);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.chip:hover { background: var(--ghost-hover); border-color: var(--line-dash); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.jobs { display: flex; flex-direction: column; gap: 14px; margin-top: 40px; }
.job {
  display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 34px 38px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
}
.job__main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.job h3 { font-size: clamp(21px, 1.8vw, 26px); font-weight: 600; letter-spacing: -.02em; }
.job h3 a { color: var(--ink); }
.job h3 a:hover { color: var(--steel); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; color: var(--body); }
.meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--dot); }
.empty {
  display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 80px 40px; text-align: center;
  background: #fff; border: 1px dashed var(--line-dash); border-radius: var(--radius-card);
}
.empty p { max-width: 420px; font-size: 19px; line-height: 1.55; color: var(--body); }

/* Interest form --------------------------------------------------------------- */
.form-panel { margin-top: 56px; padding: clamp(24px, 3.9vw, 56px); background: var(--panel); border: 1px solid var(--line); border-radius: 28px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 32px; }
.field { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field > label, .field__label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field__label small { font-size: inherit; font-weight: 400; color: var(--placeholder); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field input[type="number"], .field select {
  height: 56px; padding: 0 20px; background-color: #fff; border: 1px solid var(--line-input); border-radius: var(--radius-field);
  font-size: 16px; color: var(--ink); outline: 0; transition: border-color .2s ease, background-color .2s ease;
}
.field select { padding-right: 46px; border-color: var(--line-input); }
.field input::placeholder { color: var(--placeholder); }
.field select:invalid { color: var(--placeholder); }
.field__hint { font-size: 13px; color: var(--faint); }
.field__err { display: none; align-items: center; gap: 7px; font-size: 13px; color: var(--error); }
.field.is-invalid .field__err { display: flex; }
.field.is-invalid input, .field.is-invalid select { border-color: var(--error); background-color: var(--error-bg); }
.phone { display: flex; gap: 10px; }
.phone select { flex: 0 0 96px; width: 96px; padding-left: 16px; padding-right: 34px; background-position: right 12px center; }
.phone input { flex: 1; min-width: 0; }

.drop {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px; text-align: center; cursor: pointer;
  background: #fff; border: 1px dashed var(--line-dash); border-radius: 14px; transition: border-color .2s ease, background-color .2s ease;
}
.drop:hover, .drop.is-over, .drop:focus-within { border-color: var(--steel); background: #FAFBFC; }
.drop__main { font-size: 16px; color: var(--ink); }
.drop__main b { font-weight: 600; }
.drop__hint { font-size: 13px; color: var(--faint); }
.drop__touch { display: none; }
@media (hover: none) { .drop__desk { display: none; } .drop__touch { display: inline; } }
.field.is-invalid .drop { border-color: var(--error); background: var(--error-bg); }
.file {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px;
  background: #fff; border: 1px solid var(--line-input); border-radius: 14px;
}
.file__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; color: var(--ink); }
.file__name small { margin-left: 8px; font-size: 13px; color: var(--faint); }
.file button { flex: 0 0 auto; border: 0; background: none; font-size: 14px; font-weight: 600; color: var(--steel); }
.file button:hover { text-decoration: underline; }
.consent { display: flex; align-items: flex-start; gap: 14px; margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--body); cursor: pointer; }
.consent input {
  appearance: none; -webkit-appearance: none; flex: 0 0 22px; width: 22px; height: 22px; margin: 0; cursor: pointer;
  border: 1px solid var(--line-dash); border-radius: 6px; background: #fff center / 14px no-repeat; transition: background-color .2s ease, border-color .2s ease;
}
.consent input:checked {
  background-color: var(--navy); border-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E");
}
.field.is-invalid .consent { color: var(--error); }
.field.is-invalid .consent input { border-color: var(--error); background-color: var(--error-bg); }
.form-actions { grid-column: 1 / -1; margin-top: 10px; }
.success {
  display: flex; flex-direction: column; align-items: center; gap: 18px; padding: clamp(40px, 5vw, 64px) 34px; text-align: center;
  background: var(--navy); border-radius: var(--radius-card); color: #fff;
}
.success__icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.12); }
.success h3 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -.02em; font-weight: 600; }
.success p { max-width: 380px; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.72); }

/* Footer ---------------------------------------------------------------------- */
.footer { background: var(--navy-deep); padding: clamp(60px, 6.9vw, 100px) 0 48px; color: rgba(255,255,255,.72); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 60px; }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 340px; }
.footer__brand p { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.6); }
.footer__col { display: flex; flex-direction: column; gap: 16px; }
.footer__col h4 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.footer__col a, .footer__col span { font-size: 16px; color: rgba(255,255,255,.72); transition: color .2s ease; }
.footer__col a:hover { color: #fff; }
.footer__col a[aria-current="page"] { color: #fff; font-weight: 500; }
.footer__bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 70px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: 14px; color: rgba(255,255,255,.45);
}

/* ==========================================================================
   Job detail template
   ========================================================================== */
.jd-hero { background: var(--navy-deep); padding: clamp(48px, 5.8vw, 84px) 0 clamp(44px, 5.3vw, 76px); }
.jd-hero__in { max-width: 820px; display: flex; flex-direction: column; gap: 22px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: rgba(255,255,255,.5); }
.crumbs a { color: rgba(255,255,255,.72); }
.crumbs a:hover { color: #fff; }
.jd-hero h1 { font-size: clamp(34px, 4.3vw, 62px); line-height: 1.05; letter-spacing: -.035em; font-weight: 600; color: #fff; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.pills li { padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.24); font-size: 14px; color: rgba(255,255,255,.82); }
.jd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 388px; gap: clamp(40px, 5.5vw, 80px); align-items: start; padding-block: clamp(52px, 6.9vw, 100px); }
.jd-body { display: flex; flex-direction: column; gap: 56px; }
.jd-block { display: flex; flex-direction: column; gap: 22px; }
.jd-block > p { font-size: 19px; line-height: 1.65; color: var(--body-strong); }
.bullets { display: flex; flex-direction: column; gap: 16px; }
.bullets li { display: flex; gap: 16px; align-items: flex-start; font-size: 17px; line-height: 1.6; color: var(--body-strong); }
.bullets li::before { content: ""; flex: 0 0 7px; height: 7px; margin-top: 10px; border-radius: 50%; background: var(--navy); }
.offer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.offer li { display: flex; align-items: center; gap: 12px; padding: 20px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; font-size: 16px; color: var(--ink); }
.offer svg { flex: 0 0 auto; }
.apply { position: sticky; top: calc(var(--nav-h) + 24px); } /* the grid item sticks; the card inside just fills it */
.apply__card {
  display: flex; flex-direction: column; gap: 22px; padding: 34px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 24px;
}
.apply__card h2 { margin-top: 8px; font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.apply__facts { display: flex; flex-direction: column; gap: 12px; padding: 20px 0; border-block: 1px solid var(--line); }
.apply__facts div { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.apply__facts dt { color: var(--muted); }
.apply__facts dd { margin: 0; color: var(--ink); text-align: right; }
.apply__note { font-size: 13px; line-height: 1.5; color: var(--faint); }
.apply__bar { display: none; }
.others { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.other { display: flex; flex-direction: column; gap: 22px; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); }
.other .tag { align-self: flex-start; }
.other h3 { font-size: 23px; line-height: 1.25; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.other .go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-size: 15px; font-weight: 500; color: var(--ink); }
.other .go svg { transition: transform .25s ease; }
.other:hover .go svg { transform: translateX(4px); }
.other-link::after { content: ""; position: absolute; inset: 0; }
.other { position: relative; }
.notfound { padding-block: 120px; text-align: center; }
.notfound p { margin: 16px 0 28px; font-size: 18px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .values-line { white-space: normal; }
  .benefit { --s: .82; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 32px; }
  .footer__brand { grid-column: 1 / -1; }
  .jd-grid { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (min-width: 1101px) {
  .values-line { white-space: nowrap; }
}

@media (max-width: 960px) {
  :root { --nav-h: 68px; }
  .brand { font-size: 16px; }
  .brand__mark { width: 22px; height: 22px; font-size: 13px; }
  .nav__toggle { display: flex; }
  .nav__cta { display: none; }
  .nav__links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px; background: var(--navy-deep); border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: 16px 0; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav__links a[aria-current="page"]::after { display: none; }
  .nav__links .nav__contact-m { display: inline-flex; margin-top: 18px; padding: 0 22px; border: 0; color: var(--navy); }
  .nav__links .nav__contact-m:hover { color: var(--navy); }

  .hero { align-items: flex-end; min-height: 600px; padding-block: 120px 44px; }
  .hero__body { gap: 18px; }
  .hero__cta { flex-direction: column; gap: 10px; margin-top: 8px; }
  .hero__cta .btn { width: 100%; height: 54px; }

  .why { grid-template-columns: 1fr; }
  .why__text { gap: 24px; }
  .loop { --loop-h: 460px; }
  .prog { padding: 12px 18px 12px 12px; gap: 16px; }
  .prog h3 { font-size: 17px; }
  .values-line { margin-top: 40px; }

  .proj-card { flex-basis: 270px; }
  .proj-card__img { height: 130px; }
  .proj__detail { grid-template-columns: 1fr; gap: 18px; padding: 26px 24px; }
  .proj__detail p { font-size: 16px; }

  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(168px, auto); gap: 12px; margin-top: 40px; }
  .benefit { padding: 20px; border-radius: 18px; --s: .7; }
  .benefit h3 { font-size: 16.5px; }
  .benefit--feat { grid-column: 1 / -1; grid-row: auto; min-height: 290px; padding: 26px; }
  .benefit--feat h3 { font-size: 30px; }
  .benefit--wide { grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; gap: 12px; margin-top: 36px; }
  .tile { border-radius: 14px; }
  .tile__cap { padding: 40px 16px 14px; }
  .tile__cap strong { font-size: 15px; }
  .tile__cap span { font-size: 13px; }

  .head-row { flex-direction: column; align-items: flex-start; }
  .tscroll { margin-top: 30px; }
  .tscroll__set { gap: 16px; padding-right: 16px; }
  .quote { padding: 26px; gap: 24px; border-radius: 20px; flex-basis: min(332px, 86vw); }
  .quote blockquote { font-size: 15.5px; }
  .arrow { width: 46px; height: 46px; }

  .filters { margin-top: 36px; gap: 14px; }
  .filters__row { flex-wrap: wrap; }
  .search { flex-basis: 100%; height: 54px; padding: 0 18px; }
  .search input { font-size: 15px; }
  .filters .select { flex: 1 1 0; width: auto; }
  .filters .select select { height: 54px; padding: 0 40px 0 18px; font-size: 15px; background-position: right 14px center; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; height: 40px; padding: 0 18px; font-size: 14px; }
  .jobs { margin-top: 28px; gap: 12px; }
  .job { flex-direction: column; align-items: stretch; gap: 18px; padding: 24px; border-radius: 18px; }
  .job .btn { width: 100%; height: 48px; font-size: 15px; --lh: 20px; }
  .meta { gap: 6px 16px; font-size: 14px; }
  .meta i { display: none; } /* separators would dangle at wrapped line ends; spacing does the job here */
  .meta .tag { margin-right: 4px; }
  .empty { padding: 44px 24px; gap: 14px; }
  .empty p { font-size: 16px; }

  .form-panel { margin-top: 36px; border-radius: 22px; }
  .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .field { gap: 8px; }
  .field > label, .field__label { font-size: 13px; }
  .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field input[type="number"], .field select { height: 52px; padding: 0 16px; font-size: 15px; }
  .field select { padding-right: 40px; background-position: right 14px center; }
  .drop { padding: 28px 18px; gap: 8px; }
  .drop__main { font-size: 15px; }
  .consent { font-size: 14px; gap: 12px; }
  .form-actions .btn { width: 100%; height: 54px; }


  .footer__bar { margin-top: 44px; padding-top: 20px; font-size: 13px; }
  .footer__col a, .footer__col span { font-size: 15px; }

  .jd-grid { grid-template-columns: 1fr; padding-bottom: 130px; }
  .jd-body { gap: 40px; }
  .jd-block > p { font-size: 16px; }
  .bullets li { font-size: 16px; gap: 12px; }
  .bullets li::before { flex-basis: 6px; height: 6px; margin-top: 9px; }
  .offer { grid-template-columns: 1fr; gap: 10px; }
  .offer li { padding: 16px 18px; font-size: 15px; }
  .apply { position: static; }
  .apply__card { display: none; }
  .apply__bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.92);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  }
  .apply__bar strong { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
  .apply__bar .apply__sub { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
  .apply__bar .btn { height: 48px; padding: 0 24px; font-size: 15px; --lh: 20px; }
  .others { display: flex; overflow-x: auto; gap: 12px; margin-top: 24px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .others::-webkit-scrollbar { display: none; }
  .other { flex: 0 0 250px; gap: 16px; padding: 24px; border-radius: 16px; }
  .other h3 { font-size: 19px; }
}
/* Phones: one photo per row, spans reset */
@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .tile { grid-row: span 1; grid-column: span 1; }
}

/* Motion preferences: no auto-scrolling — everything becomes scrollable by hand */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loop__track { animation: none; }
  .loop { overflow-y: auto; -webkit-mask-image: none; mask-image: none; }
  .proj__viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .proj__track { padding-left: var(--edge); }
  .js .reveal, .js .benefit, .js .tile { opacity: 1 !important; transform: none !important; transition: none; }
  .tile img, .tile__cap { transition: none; }
  .tile:hover img, .tile:focus-visible img { transform: none; }
  .js .dg .wk { fill-opacity: 1; transition: none; }
  .btn:hover .roll > span { transition-duration: .01s; }
}


/* ==========================================================================
   Design pass — the drawing office
   One idea: AudaxBridge is an engineering firm, so the page borrows from its
   working documents. Drafting grid behind every placeholder and dark panel, mono
   labels for technical detail.
   Everything else stays quiet.
   ========================================================================== */

/* Mono is for technical labels only */
.tag, .count, .slot__label { font-family: var(--mono); }
.tag { padding: 6px 11px; font-size: 11px; font-weight: 500; letter-spacing: .04em; }
.slot__label { font-size: 11px; font-weight: 500; letter-spacing: .03em; }
.slot--circle .slot__label { font-size: 9px; }
.count { margin-top: 36px; font-size: 13px; letter-spacing: .04em; color: var(--muted); }
.jobs { margin-top: 14px; }

/* Hero: one staggered entrance */
.hero h1 { font-size: clamp(50px, 6.4vw, 92px); line-height: .98; letter-spacing: -.04em; }
.hw { display: block; }
.hero .rise { opacity: 0; transform: translateY(20px); animation: rise .85s var(--ease) var(--i, 0s) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero__body { max-width: min(600px, calc(100% - min(40vw, 640px) - 32px)); }
.hero { padding-bottom: 56px; } /* breathing room under the buttons at every width */

/* Nav: labels never wrap; tighten the gaps before the mobile menu takes over at 960px */
.nav__links a { white-space: nowrap; }
@media (max-width: 1180px) { .nav__links { gap: 22px; } }
.hero .slot::before {
  -webkit-mask-image: radial-gradient(ellipse 55% 75% at 74% 52%, #000, transparent);
  mask-image: radial-gradient(ellipse 55% 75% at 74% 52%, #000, transparent);
}

/* Hero image: no card, and the photo keeps its own colours. Its white ground is multiplied into a light
   blue glow that falls off to the hero navy, so the picture melts into the gradient; a radial mask
   dissolves the outer edge. Works with any white-ground image: swap the file and the blend carries over. */
.hero__fig {
  position: absolute; z-index: 0; pointer-events: none;
  width: min(52vw, 780px); right: calc(var(--edge) - 7vw);
  top: calc(50% + var(--nav-h) / 2); transform: translateY(-50%);
  -webkit-mask-image: radial-gradient(ellipse 50% 54% at 50% 50%, #000 44%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 54% at 50% 50%, #000 44%, transparent 100%);
}
.hero__card {
  margin: 0; padding: 7% 9%;
  background: radial-gradient(ellipse 58% 62% at 52% 46%, #FFFFFF 0%, #F1F6FB 24%, #AEC5DD 48%, #4A6F9A 70%, #14263D 100%);
}
.hero__card img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }

/* Drafting grid on the dark panels */
.blueprint { position: relative; isolation: isolate; overflow: hidden; }
.blueprint::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 75% 95% at 88% 12%, #000, transparent);
  mask-image: radial-gradient(ellipse 75% 95% at 88% 12%, #000, transparent);
}

/* Mission: single column, headline given room to run */
.mission .sec-head { max-width: 900px; }

/* Values + Learning: heading left, loop right — the width is used on purpose */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.split__head { position: sticky; top: calc(var(--nav-h) + 40px); }
.split .loop { margin-top: 0; max-width: none; }
.prog { gap: 20px; padding: 16px 24px 16px 16px; }
/* Learning drawings: white drafting lines on the same blueprint blue as the project cards */
.prog__img {
  position: relative; flex: 0 0 196px; width: 196px; height: 128px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(135deg, #24538A, #173A63);
}
.pa { display: block; width: 100%; height: 100%; fill: none; stroke: #EEF4FB; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease); }
.prog:hover .pa { transform: scale(1.06); }
.pa .dim { stroke-width: 1.1; stroke-opacity: .45; }
.pa .hi { stroke: #A9CFF5; }
.pa .solid { fill: #A9CFF5; stroke: none; }
.pa .soft { fill: rgba(169,207,245,.18); }
.pa-min, .pa-hr { transform-origin: 62px 64px; animation: pa-spin 6s linear infinite; }
.pa-hr { animation-duration: 72s; }
.pa-sweep { stroke-dasharray: 1; animation: pa-sweep 6s linear infinite; }
.pa-bar { transform-box: fill-box; transform-origin: left center; animation: pa-bar 6s var(--ease) calc(var(--i) * .35s) infinite both; }
.pa-beam { transform-origin: 98px 36px; animation: pa-beam 6s ease-in-out infinite; }
.pa-panL { animation: pa-panL 6s ease-in-out infinite; }
.pa-panR { animation: pa-panR 6s ease-in-out infinite; }
.pa-check { stroke-width: 2.6; stroke-dasharray: 1; animation: pa-check 6s ease infinite; }
.pa-arrow { animation: pa-arrow 4.5s cubic-bezier(.3,.1,.2,1) infinite; }
.pa-ripple { opacity: 0; transform-origin: 124px 64px; animation: pa-ripple 4.5s ease-out infinite; }
.pa-needle { transform-origin: 72px 64px; animation: pa-needle 6s ease-in-out infinite; }
.pa-flag { transform-origin: 160px 49px; animation: pa-flag 2s ease-in-out infinite; }
.pa-g1 { animation: pa-spin 12s linear infinite; }
.pa-g2 { animation: pa-spin 9s linear infinite reverse; }
.pa-g3 { animation: pa-spin 7s linear infinite; }
.pa-dot { animation: pa-dot 4s ease-in-out var(--d) infinite both; }
.pa-pulse { opacity: 0; animation: pa-pulse 4s linear infinite; }
.pa-col { transform-box: fill-box; transform-origin: center bottom; animation: pa-col 5s var(--ease) var(--d) infinite both; }
.pa-trend { stroke-dasharray: 1; animation: pa-trend 5s ease infinite; }
.pa-wave { animation: pa-wave 1.8s ease-in-out var(--d) infinite both; }
@keyframes pa-spin { to { transform: rotate(360deg); } }
@keyframes pa-sweep { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pa-bar { 0% { transform: scaleX(0); } 35%, 90% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes pa-beam { 0% { transform: rotate(0); } 12% { transform: rotate(-9deg); } 28% { transform: rotate(7deg); } 44% { transform: rotate(-4deg); } 58% { transform: rotate(2deg); } 70%, 100% { transform: rotate(0); } }
@keyframes pa-panL { 0% { transform: translateY(0); } 12% { transform: translateY(7.5px); } 28% { transform: translateY(-5.8px); } 44% { transform: translateY(3.3px); } 58% { transform: translateY(-1.7px); } 70%, 100% { transform: translateY(0); } }
@keyframes pa-panR { 0% { transform: translateY(0); } 12% { transform: translateY(-7.5px); } 28% { transform: translateY(5.8px); } 44% { transform: translateY(-3.3px); } 58% { transform: translateY(1.7px); } 70%, 100% { transform: translateY(0); } }
@keyframes pa-check { 0%, 66% { stroke-dashoffset: 1; opacity: 0; } 67% { opacity: 1; } 80%, 96% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes pa-arrow { 0% { transform: translateX(-58px); opacity: 0; } 8% { opacity: 1; } 34%, 90% { transform: translateX(0); opacity: 1; } 100% { transform: translateX(0); opacity: 0; } }
@keyframes pa-ripple { 0%, 32% { transform: scale(.6); opacity: 0; } 36% { opacity: .9; } 62% { transform: scale(3.2); opacity: 0; } 100% { opacity: 0; } }
@keyframes pa-needle { 0% { transform: rotate(0); } 10% { transform: rotate(-68deg); } 28% { transform: rotate(32deg); } 42% { transform: rotate(-16deg); } 54% { transform: rotate(7deg); } 64% { transform: rotate(-3deg); } 72%, 100% { transform: rotate(0); } }
@keyframes pa-flag { 0%, 100% { transform: scaleX(1) skewY(0); } 50% { transform: scaleX(.86) skewY(3deg); } }
@keyframes pa-dot { 0% { transform: translateY(0); opacity: .4; } 8% { transform: translateY(-5px); opacity: 1; } 16%, 40% { transform: translateY(0); opacity: 1; } 60%, 100% { transform: translateY(0); opacity: .4; } }
@keyframes pa-pulse { 0%, 26% { transform: translate(0, 0); opacity: 0; } 30% { opacity: 1; } 52% { transform: translate(18px, 18px); opacity: 1; } 56%, 100% { transform: translate(18px, 18px); opacity: 0; } }
@keyframes pa-col { 0% { transform: scaleY(0); } 28%, 90% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
@keyframes pa-trend { 0%, 38% { stroke-dashoffset: 1; opacity: 0; } 39% { opacity: 1; } 62%, 90% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes pa-wave { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pa, .pa * { animation: none !important; transition: none; } }

/* Section heads: one soft reveal, once */
.js .reveal--soft { transform: translateY(16px); transition-duration: .6s; }

/* Input focus rings */
.field input:focus, .field select:focus, .search:focus-within { box-shadow: 0 0 0 4px rgba(59,95,135,.14); }
.field.is-invalid input:focus, .field.is-invalid select:focus { box-shadow: 0 0 0 4px rgba(192,71,74,.14); }

@media (max-width: 960px) {
  .hero { padding-block: calc(var(--nav-h) + 250px) 44px; }
  .hero__body { max-width: none; }
  .hero h1 { font-size: clamp(46px, 14vw, 66px); }
  .hero .slot__label { display: none; }
  .hero__fig { left: auto; right: calc(var(--gutter) - 26px); width: min(360px, calc(100% - var(--gutter))); top: calc(var(--nav-h) + 4px); transform: none; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split__head { position: static; }
  .count { margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero .rise { animation: none; opacity: 1; transform: none; }
}


/* ==========================================================================
   Values — spotlight
   Names down the left, the chosen value lit up in a navy panel on the right.
   ========================================================================== */
.spot { --spot-t: 5.5s; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 72px); align-items: stretch; }
.spot__names { margin: 34px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.spot__item { position: relative; border-bottom: 1px solid var(--line); }
.spot__name {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  padding: 16px 0; border: 0; background: none; text-align: left; font: inherit; cursor: pointer;
  font-size: clamp(34px, 3.2vw, 46px); line-height: 1.1; letter-spacing: -.03em; font-weight: 600;
  color: #B7C2CE; transition: color .25s ease;
}
.spot__name:hover { color: #8598AC; }
.spot__name svg { flex: 0 0 auto; opacity: 0; transform: translateX(-8px); transition: opacity .25s ease, transform .25s ease; }
.spot__item.on .spot__name { color: var(--ink); }
.spot__item.on .spot__name svg { opacity: 1; transform: none; }
/* the underline on the active name is also the timer: it fills, then the next value takes over */
.spot__item::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--navy); }
.spot__item.on::after { width: 58%; }
.spot.is-auto .spot__item.on::after { width: 0; animation: spot-progress var(--spot-t) linear forwards; }
.spot.is-paused .spot__item.on::after { animation-play-state: paused; }
@keyframes spot-progress { to { width: 100%; } }

.spot__inline {   /* every description stays in the DOM for screen readers; visible inline on mobile only */
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.spot__panel { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(28px, 3.1vw, 44px); border-radius: 28px; background: var(--navy); min-height: 360px; }
.spot__icon { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 24px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); }
.spot__tag { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.spot__desc { margin-top: 14px; max-width: 520px; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.25; letter-spacing: -.02em; font-weight: 500; color: #fff; }
.spot__dots { display: flex; gap: 8px; margin-top: 30px; }
.spot__dots i { width: 26px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.22); transition: background-color .3s ease; }
.spot__dots i.on { background: #fff; }
.spot__panel.swap .spot__icon, .spot__panel.swap .spot__body { animation: spot-in .5s var(--ease) both; }
@keyframes spot-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  .spot { grid-template-columns: 1fr; gap: 0; }
  .spot__panel { display: none; }
  .spot__names { margin-top: 24px; }
  .spot__name { padding: 14px 0; font-size: clamp(30px, 8.6vw, 38px); }
  .spot__item.on .spot__inline {
    position: static; width: auto; height: auto; margin: -4px 0 18px; overflow: visible; clip: auto; white-space: normal;
    max-width: 34ch; font-size: 16px; line-height: 1.55; color: var(--body);
  }
}
@media (prefers-reduced-motion: reduce) {
  .spot__panel.swap .spot__icon, .spot__panel.swap .spot__body { animation: none; }
}

/* Learning cards on small screens (must come after the desktop .prog__img rule to win) */
@media (max-width: 960px) {
  .prog { gap: 16px; padding: 12px 16px 12px 12px; }
  .prog__img { flex-basis: 112px; width: 112px; height: 76px; border-radius: 10px; }
}
