/* variyasinc.com. Colours are taken from the Variyas logo. System fonts only:
   no third-party requests, which the Content-Security-Policy also forbids.

   Every colour is a variable so dark mode (prefers-color-scheme) is one block.
   Each text/background pair below was checked against WCAG AA (4.5:1 for body
   text) in both schemes; tests/contrast.test.js recomputes them from this
   file. Motion is progressive: with JavaScript off nothing is hidden, and
   prefers-reduced-motion switches every animation off at the bottom of the file. */
:root {
  color-scheme: light dark;
  --blue: #036e9c;
  --blue-dark: #024e70;
  --cyan: #06b2e2;
  --ink: #16242c;
  --ink-2: #44545d;
  --muted: #5d6d76;
  --line: #dde5ea;
  --bg: #ffffff;
  --surface: #ffffff;
  --tint: #f2f7fa;
  --link: var(--blue);
  --link-hover: var(--blue-dark);
  --btn-bg: var(--blue);
  --btn-ink: #ffffff;
  --btn-bg-hover: var(--blue-dark);
  --header-bg: rgba(255, 255, 255, .92);
  --logo-bg: transparent;
  --callout-bg: var(--tint);
  --callout-line: #cfe2ec;
  --tick-ring: #d6f2fb;
  --tile: #ffffff;
  --tile-shadow: none;
  --shadow: 0 10px 28px rgba(3, 110, 156, .12);
  --glow: 0 18px 44px rgba(3, 110, 156, .18), 0 0 0 1px var(--cyan), 0 0 30px rgba(6, 178, 226, .22);
  --field: #ffffff;
  --field-line: #9fb3be;
  --ok: #0f7a3e;
  --bad: #b3261e;
  /* Keyboard focus ring. Not the brand cyan in light mode: that is 2.5:1 on
     white, below the 3:1 a focus indicator needs. The hero and the footer set
     their own (see there). */
  --focus: var(--blue);
  --radius: 12px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e7eff3;
    --ink-2: #bccbd3;
    --muted: #9aadb7;
    --line: #23404c;
    --bg: #0b171d;
    --surface: #11222a;
    --tint: #0e1d24;
    --link: #62ccf0;
    --link-hover: #a3e2f7;
    --btn-bg: #3cc2ea;
    --btn-ink: #04202b;
    --btn-bg-hover: #86daf3;
    --header-bg: rgba(11, 23, 29, .92);
    /* The dark header gets a light-on-dark logo (picture/source in the header), so no plate:
       a white box behind the blue logo looked pasted on (Vijay, 30 Sep 2026). */
    --logo-bg: transparent;
    --callout-bg: #10252e;
    --callout-line: #1f4452;
    --tick-ring: #0f3a48;
    /* The 3D icons are rendered on pure white, so in dark mode they sit on a
       light tile rather than showing as stark white squares. */
    --tile: #f4f8fa;
    --tile-shadow: 0 6px 18px rgba(0, 0, 0, .35);
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
    --glow: 0 18px 44px rgba(0, 0, 0, .5), 0 0 0 1px var(--cyan), 0 0 30px rgba(6, 178, 226, .25);
    --field: #0b171d;
    --field-line: #4d6c7a;
    --ok: #6fdc9b;
    --bad: #ff9d94;
    --focus: var(--cyan);
  }
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); overflow-wrap: break-word;
  /* Short pages (thank-you, 404) keep the footer at the bottom of the window
     instead of leaving a white strip under it. */
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
/* A phone number never breaks at its hyphens ("1-" on one line, the rest on the next). */
a[href^="tel:"] { white-space: nowrap; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
/* The outline follows each element's own radius, so pill buttons stay pills
   and cards keep their corners when focused. */
a:focus-visible, summary:focus-visible, button:focus-visible, canvas:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -.01em; }
h2, .h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3, .h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; }
.muted { color: var(--muted); }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: var(--header-bg); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px); }
.top__row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: block; background: var(--logo-bg); border-radius: 10px; padding: 4px 6px; }
.brand img { display: block; width: 160px; }
.nav ul, .menu ul { list-style: none; margin: 0; padding: 0; }
.nav ul { display: flex; gap: 8px; }
.nav a, .menu a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:hover, .menu a:hover { background: var(--tint); color: var(--link); }
.nav a[aria-current="page"], .menu a[aria-current="page"] { color: var(--link); box-shadow: inset 0 -3px 0 var(--cyan); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 48px; height: 48px; display: grid; place-content: center; gap: 5px; border-radius: 8px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 24px; height: 2px; background: var(--ink); }
.menu ul { position: absolute; right: 0; top: 56px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; min-width: 200px; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
/* The two doors: Hire talent / Find a job, a highlighted pair after the links. */
.nav .door a, .menu .door a { border: 2px solid var(--btn-bg); color: var(--link); padding: 8px 14px; border-radius: 999px; }
.nav .door:last-child a, .menu .door:last-child a { background: var(--btn-bg); color: var(--btn-ink); }
.nav .door a:hover, .menu .door a:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); color: var(--btn-ink); }
.nav .door a[aria-current="page"] { box-shadow: 0 0 0 3px var(--tick-ring); }
.nav .door:first-of-type { margin-left: 8px; }
.menu .door { margin-top: 6px; }
@media (max-width: 920px) { .nav { display: none; } .menu { display: block; } .brand img { width: 128px; } }

/* Hero. Three layers, all CSS: the brand gradient (slowly shifting), a soft
   moving light, and the 3D art. The art is an <img> the build only emits when
   hero.jpg exists, so a missing file leaves the gradient and nothing broken.
   Desktop: full-bleed behind the text, weighted right. Phones: below the text. */
.hero { --focus: #ffffff; position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background: linear-gradient(120deg, #01344d, var(--blue-dark) 35%, var(--blue) 70%, #0891c4);
  background-size: 180% 180%; animation: hero-shift 26s ease-in-out infinite alternate; }
.hero__light { position: absolute; z-index: -1; width: 70vmax; height: 70vmax; left: -20vmax; top: -35vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 178, 226, .38), rgba(6, 178, 226, 0) 62%);
  animation: hero-light 19s ease-in-out infinite alternate; pointer-events: none; }
.hero__inner { position: relative; padding: clamp(56px, 9vw, 116px) 20px; max-width: var(--wrap); margin: 0 auto; }
.hero h1 { max-width: 640px; color: #fff; }
.hero .lead { color: #dff3fb; font-size: 1.2rem; max-width: 580px; }
.hero__art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
@media (min-width: 861px) {
  .hero__art { position: absolute; inset: 0; z-index: -2; }
  .hero__art img { animation: hero-drift 32s ease-in-out infinite alternate; transform-origin: 75% 50%; }
  /* Keeps white text at AA over the art: solid brand navy under the text column,
     fading out before the network graphic. */
  .hero__art::after { content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(1, 45, 66, .94) 0%, rgba(1, 52, 77, .82) 36%, rgba(2, 58, 85, .25) 62%, rgba(2, 58, 85, 0) 78%); }
}
@media (max-width: 860px) {
  .hero__inner { padding-bottom: 28px; }
  .hero__art { margin: 0 auto; max-width: var(--wrap); padding: 0 20px 40px; }
  .hero__art img { aspect-ratio: 16 / 9; height: auto; object-position: 85% center; border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }
}
@keyframes hero-shift { from { background-position: 0% 40%; } to { background-position: 100% 60%; } }
@keyframes hero-light { from { transform: translate(0, 0); } to { transform: translate(28vmax, 18vmax); } }
@keyframes hero-drift { from { transform: scale(1.02); } to { transform: scale(1.07) translateX(-1%); } }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: #9fe3f7; }
.eyebrow--ink { color: var(--link); }
.pagehead { background: var(--tint); border-bottom: 1px solid var(--line); padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); }
.pagehead__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 760px; }
.crumbs ol { list-style: none; margin: 0 0 .6em; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-weight: 600; font-size: .95rem; }
.crumbs li + li::before { content: "\203A"; margin: 0 8px; color: var(--muted); }
.crumbs a { text-decoration: none; display: inline-block; padding: 12px 0; margin: -12px 0; }
.crumbs [aria-current] { color: var(--muted); }
.jobfacts { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--ink-2); }
.jobfacts strong { color: var(--ink); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions--center { justify-content: center; }
.btn { display: inline-block; background: var(--btn-bg); color: var(--btn-ink); padding: 12px 22px; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; border: 2px solid var(--btn-bg); overflow-wrap: anywhere; cursor: pointer; transition: background-color .15s, border-color .15s, transform .15s; }
.btn:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); color: var(--btn-ink); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn--outline { background: transparent; color: var(--link); border-color: var(--link); }
.btn--outline:hover { background: var(--tint); color: var(--link-hover); border-color: var(--link-hover); }
.hero .btn { background: #fff; color: var(--blue-dark); border-color: #fff; }
.hero .btn:hover { background: #dff3fb; border-color: #dff3fb; color: var(--blue-dark); }
/* Was ".hero .btn--ghost, .btn--ghost": white text on a transparent button,
   unreadable anywhere but the hero. Scoped to the hero, where it is used. */
.hero .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.hero .btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Sections */
.band { padding: clamp(48px, 7vw, 84px) 0; }
.band--tint { background: var(--tint); }
/* Two tinted bands in a row read as one; without this they also stacked two
   full paddings (about 170px of empty tint on Home and Non-IT Recruiting). */
.band--tint + .band--tint { padding-top: 0; }
.sub { color: var(--ink-2); margin-top: -.2em; margin-bottom: 28px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin: 0 0 20px; padding: 0; list-style: none; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.split { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; }
.stack { display: grid; gap: 20px; }
.band__next { margin-top: clamp(36px, 5vw, 56px); }
.ticks--roles { columns: 2 280px; column-gap: 40px; }
.ticks--roles li { break-inside: avoid; }
/* Careers: on wide screens the short intro stays beside the long list of
   notices; on phones the notices come first, since they are why people came. */
@media (min-width: 861px) { .split--jobs > :first-child { position: sticky; top: 104px; } }
@media (max-width: 860px) { .split--jobs > :last-child { order: -1; } }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* 3D icon tiles. Light mode: the white render sits on a white card and the
   tile is invisible. Dark mode: a light rounded plate (see --tile). */
.tile { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 16px; border-radius: 20px; overflow: hidden; background: var(--tile); box-shadow: var(--tile-shadow); flex: none; }
.tile img { display: block; width: 100%; height: 100%; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.tile--lg { width: 104px; height: 104px; border-radius: 24px; }
.tile--head { width: 132px; height: 132px; border-radius: 28px; margin: 0; }
@media (max-width: 600px) { .tile--head { display: none; } }

.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--ink);
  transition: border-color .25s, box-shadow .25s, transform .35s cubic-bezier(.2, .7, .2, 1); }
/* A lift, not a tilt: the 3D rotation read as a gimmick next to the calm hero. */
a.card:hover, a.card:focus-visible { border-color: var(--cyan); box-shadow: var(--glow); transform: translateY(-4px); color: var(--ink); }
a.card:hover .tile img, a.card:focus-visible .tile img { transform: scale(1.07) translateY(-2px); }
a.card:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.card h3 { color: var(--link); }
.card p { color: var(--ink-2); flex: 1; }
.card__more { font-weight: 700; color: var(--link); }
.card__more::after { content: " \2192"; }
.card--static h3 { color: var(--ink); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px; }
.callout { background: var(--callout-bg); border: 1px solid var(--callout-line); border-left: 5px solid var(--cyan); border-radius: var(--radius); padding: 26px; }
.callout > :last-child, .panel > :last-child, .card--static > :last-child { margin-bottom: 0; }
.band--tint .callout { background: var(--surface); }
.cta { text-align: center; }
.cta h2 { margin-bottom: .8em; }

/* IT Staffing and Non-IT Recruiting, side by side with equal weight */
.pillars { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.pillar { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }
.pillar .ticks { flex: 1; margin-bottom: 20px; }
.pillar__lead { color: var(--ink-2); font-size: 1.05rem; }
.pillar p:last-child { margin: 0; }

/* Count-up stats */
.stats { background: var(--surface); border-bottom: 1px solid var(--line); padding: clamp(28px, 4vw, 44px) 0; }
.stats__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__figure { font-size: clamp(2rem, 4.4vw, 2.8rem); font-weight: 800; line-height: 1.1; color: var(--link); letter-spacing: -.01em; }
.stat__num { font-variant-numeric: tabular-nums; }
.stat__word { font-size: .55em; font-weight: 700; color: var(--ink); letter-spacing: 0; }
.stat__label { color: var(--muted); font-size: .95rem; }

/* Case studies, partners, leaders: rendered only when build.py has entries */
.case { margin: 0; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--cyan); border-radius: var(--radius); padding: 22px 24px; }
.case__sector { font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: var(--link); margin-bottom: 8px; }
.case p { color: var(--ink-2); margin: 0; }
.partners { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.partner { display: grid; place-items: center; min-height: 84px; padding: 12px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.partner img { max-height: 60px; width: auto; }
.partner--text { color: #16242c; font-weight: 700; }
.leader { text-align: center; }
.leader__photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; display: block; }

/* How we work */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 20px 24px; counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%; background: var(--btn-bg); color: var(--btn-ink); font-weight: 800; }
.step p { color: var(--ink-2); margin: 0; }

/* Office globe. The flat map is the default; globe.js adds .globe--live only
   once the WebGL globe has drawn, and never when motion is reduced. */
.globe-split { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; }
@media (max-width: 860px) { .globe-split { grid-template-columns: minmax(0, 1fr); } }
.globe { position: relative; aspect-ratio: 4 / 3; width: 100%; max-width: 620px; margin: 0 auto; }
.globe__fallback, .globe__fallback img { display: block; width: 100%; height: 100%; object-fit: contain; }
.globe__fallback { transition: opacity .6s; }
.globe__stage { position: absolute; top: 0; bottom: 0; left: 50%; aspect-ratio: 1; transform: translateX(-50%); max-width: 100%; opacity: 0; pointer-events: none; transition: opacity .8s; }
.globe__canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.globe__canvas:active { cursor: grabbing; }
.globe--live .globe__stage { opacity: 1; pointer-events: auto; }
.globe--live .globe__fallback { opacity: 0; }
.office-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.office-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.office-list__pin { width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px var(--tick-ring); flex: none; }
.office-list__pin--hq { width: 16px; height: 16px; }

.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px var(--tick-ring); }
.prose p, .prose li { color: var(--ink-2); }
.prose h2, .prose h3 { margin-top: 1.4em; }

/* Contact form */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(18px, 3vw, 30px); box-shadow: var(--shadow); min-width: 0; }
.form__row { margin-bottom: 16px; }
.form label { display: block; font-weight: 700; margin-bottom: 6px; }
.form input, .form textarea { display: block; width: 100%; font: inherit; color: var(--ink); background: var(--field); border: 1.5px solid var(--field-line); border-radius: 10px; padding: 11px 13px; }
.form textarea { resize: vertical; min-height: 140px; }
.form input:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--link); }
.form .cf-turnstile { margin: 4px 0 16px; max-width: 100%; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.form__row { grid-column: 1 / -1; min-width: 0; }
.form__row--half { grid-column: auto; }
@media (max-width: 520px) { .form__row--half { grid-column: 1 / -1; } }
.form select { min-height: 48px; display: block; width: 100%; font: inherit; color: var(--ink); background: var(--field); border: 1.5px solid var(--field-line); border-radius: 10px; padding: 11px 13px; }
.form select:focus-visible, .filter input:focus-visible, .filter select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.form__hint { font-size: .88rem; color: var(--muted); margin: 6px 0 0; }
.form__status { min-height: 1.6em; font-weight: 700; margin: 0; }
/* The result of sending is a boxed note, not a line of coloured text that is
   easy to miss under a long form. */
.form__status--ok, .form__status--bad { padding: 12px 14px; border-radius: 10px; background: var(--tint); border: 1px solid var(--line); border-left: 5px solid; }
.form__status--ok { color: var(--ok); border-left-color: var(--ok); }
.form__status--bad { color: var(--bad); border-left-color: var(--bad); }
.form__note { background: var(--tint); border-radius: 10px; padding: 12px 14px; }
.form__small { font-size: .9rem; margin: 12px 0 0; }
/* Honeypot: off-screen for people, still in the form for bots. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* Turnstile's iframe is at least 300px wide whatever its container says (it
   sits in a closed shadow root and overhung a 278px box by 22px at 320px wide,
   30 Sep 2026). Below 360px the form goes flat, with 10px page margins, so a
   320px screen has exactly 300px for it and no horizontal scroll. */
@media (max-width: 360px) {
  /* Sides only: the shorthand also zeroed the top and bottom padding of
     .hero__inner and .foot__legal, which share the .wrap class. */
  .wrap { padding-left: 10px; padding-right: 10px; }
  .form { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
}

/* Careers */
.jobs { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.job a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; background: var(--surface); transition: border-color .2s, transform .2s; }
.job a:hover { border-color: var(--cyan); transform: translateX(3px); }
.filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin: 0 0 12px; }
.filter__field { flex: 1 1 180px; min-width: 0; }
.filter label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 4px; }
.filter input, .filter select { display: block; width: 100%; min-height: 48px; font: inherit; color: var(--ink); background: var(--field); border: 1.5px solid var(--field-line); border-radius: 10px; padding: 9px 12px; }
.filter .btn { min-height: 48px; padding: 8px 20px; }
.filter__count { min-height: 1.4em; margin: 0 0 8px; color: var(--ink-2); font-weight: 600; }
/* The job search sits above both job lists; a full-width keyword box reads as a page search. */
.jobsearch { max-width: 760px; }
/* A past notice's page (only if PUBLISH_ARCHIVED_NOTICES is on): closed is the first thing read. */
.notice-closed { margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--line); border-left: 4px solid var(--ink-2); border-radius: 10px; background: var(--surface); }
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style-position: outside; }
.faq summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.faq p { padding: 0 20px 16px; margin: 0; color: var(--ink-2); }
.job__title { display: block; font-weight: 700; color: var(--link); }
.job__meta { display: block; font-size: .92rem; color: var(--muted); }
.job-notice strong { color: var(--ink); }

/* Footer: dark in both schemes */
.foot { --focus: #06b2e2; background: #0f2530; color: #c8d6dd; padding: 48px 0 24px; margin-top: 0; }
@media (prefers-color-scheme: dark) { .foot { background: #07131a; border-top: 1px solid var(--line); } }
.foot a { color: #e4f4fb; }
.foot__grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 6px; }
/* Touch screens: each footer link gets a 44px-high target. */
@media (max-width: 920px), (pointer: coarse) {
  .foot li { margin-bottom: 0; }
  .foot li a, .foot p a { display: inline-block; padding: 9px 0; }
  .panel a[href^="tel:"] { display: inline-block; padding: 9px 0; }
}
.foot__name, .foot__head { color: #fff; font-weight: 700; }
.foot__legal { border-top: 1px solid #25414d; margin-top: 28px; padding-top: 18px; font-size: .9rem; color: #9fb3bd; }

/* Scroll reveal. site.js marks only elements that start below the fold as
   .is-pending, so nothing on screen at load ever blinks out, and without
   JavaScript nothing is hidden at all. */
.is-pending { opacity: 0; }
.is-in { animation: rise .7s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0ms) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

/* Chat assistant (built by chat.js; absent without JavaScript) */
.chat-launcher { position: fixed; right: 16px; bottom: 16px; z-index: 20; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 0; border-radius: 999px; background: var(--btn-bg); color: var(--btn-ink); font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 10px 30px rgba(2, 40, 58, .35); transition: transform .2s, background-color .2s; }
.chat-launcher:hover { background: var(--btn-bg-hover); transform: translateY(-2px); }
.chat-launcher svg { width: 20px; height: 20px; flex: none; }
.chat { position: fixed; inset: auto 16px 16px auto; margin: 0; padding: 0; width: min(390px, calc(100vw - 32px)); height: min(580px, calc(100dvh - 32px)); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, .3); overflow: hidden; }
.chat[open] { display: flex; flex-direction: column; }
.chat::backdrop { background: rgba(6, 20, 27, .25); }
.chat__head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 16px 12px; border-bottom: 1px solid var(--line); background: var(--tint); }
.chat__head h2 { font-size: 1.05rem; margin: 0 0 4px; }
.chat__badge { display: inline-block; vertical-align: 2px; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-ink); font-size: .72rem; font-weight: 800; letter-spacing: .02em; }
.chat__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chat__chip { font: inherit; font-size: .88rem; min-height: 44px; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--link); background: var(--surface); color: var(--link); cursor: pointer; }
.chat__chip:hover { background: var(--tint); }
.chat__head p { font-size: .82rem; color: var(--muted); margin: 0; line-height: 1.4; }
.chat__close { margin-left: auto; flex: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); font: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.chat__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; white-space: pre-wrap; font-size: .95rem; line-height: 1.5; }
.msg--bot { align-self: flex-start; background: var(--tint); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg--user { align-self: flex-end; background: var(--btn-bg); color: var(--btn-ink); border-bottom-right-radius: 4px; }
.msg--note { align-self: center; background: none; color: var(--muted); font-size: .85rem; text-align: center; padding: 4px; }
.msg--wait { color: var(--muted); }
.chat__form { display: flex; gap: 8px; align-items: flex-end; padding: 12px; border-top: 1px solid var(--line); }
.chat__form textarea { flex: 1; min-width: 0; font: inherit; font-size: .95rem; color: var(--ink); background: var(--field); border: 1.5px solid var(--field-line); border-radius: 12px; padding: 9px 11px; resize: none; max-height: 120px; }
.chat__form textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.chat__form .btn { padding: 10px 16px; }
@media (max-width: 480px) { .chat { inset: auto 8px 8px auto; width: calc(100vw - 16px); height: calc(100dvh - 16px); } .chat-launcher { right: 12px; bottom: 12px; padding: 12px 14px; } }
/* Phones: the launcher is a 56px round button; its words stay as the
   accessible name. As a 200px pill it sat over the hero picture, form fields
   and the footer on every screen of a 320-375px phone. */
@media (max-width: 600px) {
  .chat-launcher { width: 56px; height: 56px; padding: 0; justify-content: center; }
  .chat-launcher svg { width: 24px; height: 24px; }
  .chat-launcher span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .is-pending { opacity: 1; }
  a.card:hover, a.card:focus-visible, .job a:hover, .chat-launcher:hover { transform: none; }
  a.card:hover .tile img { transform: none; }
}
