/*
 * 24/7 iT Consulting design system. One stylesheet for every page.
 * Contents: 1 tokens, 2 fonts, 3 base, 4 layout, 5 type helpers, 6 buttons,
 * 7 cards, 8 content components, 9 forms, 10 hero and page hero, 11 header,
 * 12 footer, 13 tools utility, 14 motion, 15 print.
 * No third-party assets, no inline-style dependencies. Documented in docs/design-system.md.
 */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* Surfaces: one base, two elevated tones, one for hover/inputs */
  --bg: #070a10;
  --surface-1: #101520;
  --surface-2: #171d2b;
  --surface-3: #212939;

  /* Lines. --line and --line-strong are decorative; --control-border is for inputs (3:1+) */
  --line: #1f2430;
  --line-strong: #2d3444;
  --control-border: #6b7385;

  /* Text */
  --text: #eef0f5;
  --text-muted: #b4bbc8;
  --text-subtle: #929aab;

  /* Accent: desaturated green, used for links, markers and the single primary action */
  --accent: #6cc194;
  --accent-strong: #8fd5ae;
  --accent-ink: #04120a;
  --accent-tint: rgba(108, 193, 148, 0.09);
  --accent-line: rgba(108, 193, 148, 0.38);
  --focus: #8fd5ae;
  --danger: #f5948c;
  --danger-tint: rgba(245, 148, 140, 0.08);

  /* Type */
  --font-sans: "Inter Variable", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-h3: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-h2: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  --fs-h1: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
  --lh-body: 1.6;
  --lh-tight: 1.2;
  --measure: 70ch;

  /* Spacing scale (rem) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Shape and elevation */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.02) inset;
  --shadow-2: 0 14px 32px -16px rgba(0, 0, 0, 0.8);

  --container: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(3rem, 2rem + 5vw, 6rem);
  --nav-height: 4rem; /* Minimum bar height and anchor scroll offset. */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

@media (max-width: 1180px) {
  :root { --nav-height: 3.6rem; }
}

/* 2. Fonts: Inter variable, self-hosted (OFL, includes/fonts/OFL.txt) --------- */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/includes/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/includes/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Metric-matched fallback so text does not jump when Inter swaps in */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 107.4%;
  ascent-override: 90.5%;
  descent-override: 22.6%;
  line-gap-override: 0%;
}

/* 3. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-height) + var(--space-4));
  background: var(--bg);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: var(--lh-body);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

[hidden] { display: none !important; }

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

h1, h2, h3, h4 {
  margin: 0 0 var(--space-3);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.015em;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); font-weight: 650; letter-spacing: -0.025em; line-height: 1.1; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-base); }

p { margin: 0 0 var(--space-4); text-wrap: pretty; }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.25rem; }
li { margin-bottom: var(--space-2); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-6) 0; }
strong, b { font-weight: 600; }
small { font-size: var(--fs-xs); }
address { font-style: normal; }
code, kbd, samp { font-family: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace; font-size: 0.9em; background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 4px; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent-strong); text-decoration-thickness: 2px; }

::selection { background: rgba(108, 193, 148, 0.32); color: var(--text); }

:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: 0;
  z-index: 3000;
  padding: var(--space-3) var(--space-4);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transform: translateY(-120%);
}
.skip-link:focus { transform: none; outline: 2px solid var(--text); outline-offset: 2px; color: var(--accent-ink); }

/* 4. Layout ---------------------------------------------------------------- */
main { display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--alt {
  background: var(--surface-1);
  border-block: 1px solid var(--line);
}

.section-head { max-width: 46rem; margin-bottom: var(--space-7); }
.section-head > :last-child { margin-bottom: 0; }

/* 5. Type helpers ---------------------------------------------------------- */
.eyebrow {
  display: block;
  margin: 0 0 var(--space-3);
  color: var(--accent);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
}

.lead {
  margin: 0 0 var(--space-5);
  max-width: 62ch;
  color: var(--text-muted);
  font-size: var(--fs-lead);
  line-height: 1.55;
}

.prose { max-width: var(--measure); color: var(--text-muted); }
.prose > * + * { margin-top: var(--space-4); }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose h2 { margin-top: var(--space-7); color: var(--text); }
.prose h3 { margin-top: var(--space-6); color: var(--text); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose strong { color: var(--text); }
.prose li + li { margin-top: var(--space-2); }
.prose li { margin-bottom: 0; }
.prose a { text-decoration: underline; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); margin-top: var(--space-5); }

/* 6. Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-strong); color: var(--accent-ink); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--control-border); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--text-muted); color: var(--text); text-decoration: none; }
.btn:focus-visible { outline-offset: 3px; border-radius: var(--radius); }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* 7. Cards ----------------------------------------------------------------- */
.card-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.section--alt .card { background: var(--surface-2); }
.card__title { margin: 0; font-size: var(--fs-h3); }
.card__text { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.6; }
.card__text + .card__text { margin-top: var(--space-1); }
.card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-3);
  color: var(--accent);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
}
.card__link::before {
  content: "";
  order: 2;
  width: 0.45em;
  height: 0.45em;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
  transition: transform 0.18s var(--ease);
}
/* Stretched link: the whole card is one click target and one focus stop */
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.card__link:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 0.2em; }
.card__link:focus-visible { outline: none; }
.card__link:focus-visible::after { outline: 2px solid var(--focus); outline-offset: 2px; }
.card:has(.card__link):hover { background: var(--surface-2); border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.section--alt .card:has(.card__link):hover { background: var(--surface-3); }
.card:has(.card__link):hover .card__link::before { transform: translateX(3px) rotate(45deg); }

/* 8. Content components ---------------------------------------------------- */
.breadcrumb { margin: 0 0 var(--space-5); font-size: var(--fs-sm); color: var(--text-subtle); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); margin: 0; padding: 0; list-style: none; }
.breadcrumb li { display: inline-flex; align-items: center; gap: var(--space-2); margin: 0; }
.breadcrumb li + li::before { content: "/"; content: "/" / ""; color: var(--text-subtle); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--text); }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat { margin: 0; padding: var(--space-4) clamp(var(--space-4), 2.5vw, var(--space-5)); background: var(--surface-1); }
.section--alt .stat { background: var(--surface-2); }
.stat__num {
  display: block;
  margin: 0 0 var(--space-1);
  color: var(--text);
  font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.375rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat__label { display: block; color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.45; }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin: var(--space-6) 0 0;
  padding: var(--space-5) 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.trust-strip li { position: relative; margin: 0; padding-left: 1.1rem; }
.trust-strip li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}

.steps { counter-reset: step; margin: 0; padding: 0; list-style: none; max-width: 52rem; }
.steps > li { position: relative; margin: 0; padding: 0 0 var(--space-6) 3.5rem; counter-increment: step; }
.steps > li:not(:has(~ li:not([hidden]))) { padding-bottom: 0; }
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  display: grid;
  place-items: center;
  width: 2.375rem;
  height: 2.375rem;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
  font-size: var(--fs-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.steps > li::after {
  content: "";
  position: absolute;
  left: calc(1.1875rem - 0.5px);
  top: 2.5rem;
  bottom: 0.15rem;
  width: 1px;
  background: var(--line-strong);
}
.steps > li:not(:has(~ li:not([hidden])))::after { display: none; }
.steps :is(h3, strong) { display: block; margin: 0 0 var(--space-1); font-size: var(--fs-h3); font-weight: 600; color: var(--text); line-height: 1.3; }
.steps p { margin: 0; color: var(--text-muted); }
.section--alt .steps > li::before { background: var(--surface-1); }

.check-list { margin: 0 0 var(--space-4); padding: 0; list-style: none; }
.check-list li { position: relative; margin: 0 0 var(--space-3); padding-left: 1.875rem; color: var(--text-muted); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.42em;
  width: 0.4rem;
  height: 0.75rem;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.check-list strong { color: var(--text); }

.callout {
  margin: var(--space-5) 0;
  padding: var(--space-5);
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-line);
  border-radius: var(--radius);
  color: var(--text-muted);
}
.section--alt .callout { background: var(--surface-2); }
.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }
.callout :is(h2, h3, h4, strong) { color: var(--text); }
.callout :is(h2, h3, h4) { font-size: var(--fs-h3); }

.faq { max-width: 52rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  display: block;
  padding: var(--space-4) 2.5rem var(--space-4) 0;
  color: var(--text);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 0.875rem;
  height: 0.875rem;
  margin-top: -0.4375rem;
  color: var(--accent);
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
}
.faq details[open] summary::after { background-size: 100% 2px, 0 0; }
.faq summary:hover { color: var(--accent-strong); }
.faq summary:focus-visible { outline-offset: 0; border-radius: var(--radius-sm); }
.faq details > :not(summary) { max-width: var(--measure); margin: 0 0 var(--space-4); color: var(--text-muted); }
.faq details > :not(summary):last-child { margin-bottom: var(--space-5); }

.offices {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.offices > * {
  margin: 0;
  padding: var(--space-5);
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.section--alt .offices > * { background: var(--surface-2); }
.offices :is(h3, h4) { margin: 0 0 var(--space-2); font-size: var(--fs-h3); }
.offices p, .offices address { margin: 0 0 var(--space-2); }
.offices > * > :last-child { margin-bottom: 0; }
.offices a { color: var(--accent); }

/* 9. Forms ----------------------------------------------------------------- */
.form { display: grid; gap: var(--space-5); max-width: 44rem; }
@media (min-width: 720px) {
  .form { grid-template-columns: 1fr 1fr; }
  .form > :not(.field),
  .form > .field:has(:is(textarea, fieldset)),
  .form > fieldset { grid-column: 1 / -1; }
}
.form > * { margin: 0; min-width: 0; }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field > label, .field > legend, .form legend { color: var(--text); font-size: var(--fs-sm); font-weight: 500; }
.field :is(input:not([type="checkbox"], [type="radio"]), select, textarea) {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--control-border);
  border-radius: var(--radius);
  font: inherit;
  line-height: 1.4;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field :is(input, select, textarea)::placeholder { color: var(--text-subtle); opacity: 1; }
.field :is(input, select, textarea):hover { border-color: var(--text-muted); }
.field :is(input, select, textarea):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--focus); border-radius: var(--radius); }
.field :is(input, select, textarea):is([aria-invalid="true"], .is-invalid) { border-color: var(--danger); }
.field input[type="checkbox"], .field input[type="radio"] { width: 1.125rem; height: 1.125rem; accent-color: var(--accent); }
.field :is(small, .field__hint) { color: var(--text-subtle); font-size: var(--fs-xs); }
.field__error { display: flex; align-items: flex-start; gap: var(--space-2); margin: 0; color: var(--danger); font-size: var(--fs-sm); line-height: 1.4; }
.field__error::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.1rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}
.form .callout[role="alert"] { border-left-color: var(--danger); background: var(--danger-tint); }
.form .callout[role="status"] { border-left-color: var(--accent); }
.form :is(fieldset) { margin: 0; padding: 0; border: 0; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 1.2rem) 55%, calc(100% - 0.85rem) 55%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; padding-right: 2.25rem; }

/* 10. Hero and page hero --------------------------------------------------- */
.hero, .page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3rem, 2rem + 6vw, 7rem) clamp(2.5rem, 2rem + 3vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}
/* The one generated visual: layered gradients, no canvas, no media. Slow drift only. */
.hero::before, .page-hero::before {
  content: "";
  position: absolute;
  inset: -25% -10%;
  z-index: -1;
  background:
    radial-gradient(48% 55% at 82% 8%, rgba(108, 193, 148, 0.13), transparent 70%),
    radial-gradient(42% 60% at 8% 92%, rgba(92, 120, 190, 0.11), transparent 72%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 88px);
  -webkit-mask-image: radial-gradient(75% 85% at 62% 28%, #000 30%, transparent 78%);
  mask-image: radial-gradient(75% 85% at 62% 28%, #000 30%, transparent 78%);
  animation: hero-drift 48s ease-in-out infinite alternate;
  will-change: transform;
}
.hero::after, .page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 6rem;
  z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
@keyframes hero-drift {
  from { transform: translate3d(-1.5%, 0, 0) scale(1); }
  to { transform: translate3d(1.5%, -2%, 0) scale(1.05); }
}
.hero h1, .page-hero h1 { max-width: 30ch; margin-bottom: var(--space-4); }
.hero .lead, .page-hero .lead { max-width: 58ch; }
.hero .actions, .page-hero .actions { margin-top: var(--space-5); }
.hero .container, .page-hero .container { position: relative; }

/* Photographic variants (Montréal hero, Toronto closing call to action). Dark overlay keeps text AAA. */
.page-hero--photo {
  background-color: var(--bg);
  background-image: linear-gradient(90deg, rgba(7, 10, 16, 0.93) 0%, rgba(7, 10, 16, 0.78) 48%, rgba(7, 10, 16, 0.42) 100%), url("/includes/montreal-1439.jpg");
  background-image: linear-gradient(90deg, rgba(7, 10, 16, 0.93) 0%, rgba(7, 10, 16, 0.78) 48%, rgba(7, 10, 16, 0.42) 100%), image-set(url("/includes/montreal-1439.avif") type("image/avif"), url("/includes/montreal-1439.webp") type("image/webp"), url("/includes/montreal-1439.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center;
}
.page-hero--photo::before { opacity: 0.45; }
.section--photo {
  background-color: var(--bg);
  background-image: linear-gradient(180deg, rgba(7, 10, 16, 0.9), rgba(7, 10, 16, 0.72)), url("/includes/toronto-1437.jpg");
  background-image: linear-gradient(180deg, rgba(7, 10, 16, 0.9), rgba(7, 10, 16, 0.72)), image-set(url("/includes/toronto-1437.avif") type("image/avif"), url("/includes/toronto-1437.webp") type("image/webp"), url("/includes/toronto-1437.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center;
}

.page-hero { padding-block: clamp(2.25rem, 1.5rem + 4.5vw, 5.5rem) clamp(2.25rem, 1.75rem + 3vw, 4.5rem); }
.page-hero .lead { margin-bottom: 0; }
.page-hero .actions { margin-top: var(--space-5); }
.page-hero .trust-strip { max-width: 56rem; }
.page-hero .breadcrumb { margin-bottom: var(--space-5); }

/* 11. Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topnav {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: 100%;
  min-height: var(--nav-height);
  padding: 0 var(--gutter);
  background: rgba(5, 6, 10, 0.94);
  border: 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-sans);
  overflow: visible;
}
@supports (backdrop-filter: blur(1px)) {
  .topnav { background: rgba(5, 6, 10, 0.82); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); }
}
.topnav a {
  display: block;
  padding: 0.5rem 0.75rem;
  background: transparent;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.topnav a:hover { background: var(--surface-2); color: var(--text); }
.topnav a[aria-current="page"] { color: var(--text); }
.topnav :is(a, summary):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.topnav > .nav-brand { padding: 0.25rem 0.25rem 0.25rem 0; margin-right: var(--space-3); flex: none; }
.topnav > .nav-brand:hover { background: transparent; }
.topnav .nav-logo { height: 2.5rem; width: auto; max-width: none; margin: 0; }
.topnav .nav-phone { margin-right: auto; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
.topnav .nav-call-label { display: none; }

.topnav .nav-links { display: flex; flex-wrap: nowrap; align-items: center; gap: var(--space-1); margin-left: auto; }
.topnav .dropdown { position: relative; }
.topnav summary { list-style: none; }
.topnav summary::-webkit-details-marker { display: none; }
.topnav .dropbtn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
}
.topnav .dropbtn:hover, .topnav .dropdown[open] > .dropbtn { background: var(--surface-2); color: var(--text); }
.topnav .dropdown-arrow { display: inline-block; font-size: 0.55rem; line-height: 1; opacity: 0.75; transition: transform 0.2s var(--ease); }
.topnav .dropdown[open] > .dropbtn .dropdown-arrow { transform: rotate(180deg); }
.topnav .dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 1100;
  min-width: 17rem;
  padding: var(--space-2);
  background: var(--surface-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}
.topnav .dropdown:nth-last-child(-n+3) > .dropdown-content { left: auto; right: 0; }
.topnav .dropdown[open] > .dropdown-content { display: block; }
.topnav .dropdown-content a { padding: 0.55rem 0.75rem; font-weight: inherit; line-height: 1.35; }
.topnav .dropdown-content a:hover { background: var(--surface-3); }

.topnav .language-toggle { display: flex; align-items: center; gap: 2px; margin: 0 var(--space-2) 0 var(--space-3); padding: 2px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
.topnav a.lang-btn {
  display: block;
  padding: 0.3rem 0.6rem;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1.2;
}
.topnav a.lang-btn:hover { background: var(--surface-2); color: var(--text); }
.topnav a.lang-btn[aria-current] { background: var(--surface-3); color: var(--text); font-weight: 600; }

.topnav a.nav-cta {
  margin-left: var(--space-2);
  padding: 0.55rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  border-radius: var(--radius);
}
.topnav a.nav-cta:hover { background: var(--accent-strong); color: var(--accent-ink); }

.topnav .nav-disclosure { display: none; }

@media (max-width: 1180px) {
  .topnav { padding: 0 var(--space-4); }
  .topnav > .nav-brand { padding: 0.35rem 0.25rem; min-width: 0; }
  .topnav .nav-logo { height: 2rem; max-width: 100%; object-fit: contain; }
  .topnav .nav-phone-number { display: none; }
  .topnav .nav-call-label { display: inline; }
  .topnav .nav-phone {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    margin-left: auto;
    margin-right: 0;
    padding: 0 var(--space-3);
    color: var(--accent);
    flex-shrink: 0;
  }
  .topnav .nav-disclosure { display: block; flex: none; }
  .topnav .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
  }
  .topnav .nav-toggle:focus-visible { outline-offset: 0; }
  .topnav .nav-toggle span { display: block; width: 22px; height: 2px; margin: 0 auto; background: var(--text); border-radius: 1px; transition: transform 0.25s var(--ease), opacity 0.2s var(--ease); }
  .topnav .nav-disclosure[open] .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .topnav .nav-disclosure[open] .nav-toggle span:nth-child(2) { opacity: 0; }
  .topnav .nav-disclosure[open] .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .topnav .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1002;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-height: calc(100dvh - var(--nav-height));
    margin-left: 0;
    padding: var(--space-2) var(--space-4) var(--space-5);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--bg);
    border-bottom: 1px solid var(--line-strong);
  }
  .topnav .nav-disclosure[open] + .nav-links { display: flex; }

  .topnav .dropdown { width: 100%; }
  .topnav .dropbtn { width: 100%; justify-content: space-between; padding: 0.8rem 0.5rem; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .topnav .dropdown-content { position: static; min-width: 0; margin: 0 0 var(--space-2); padding: var(--space-1) 0; background: var(--surface-1); border: 0; border-radius: var(--radius-sm); box-shadow: none; }
  .topnav .nav-links > a:not(.nav-cta) { padding: 0.8rem 0.5rem; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .topnav .dropdown-content a { padding: 0.7rem 0.75rem; }
  .topnav .language-toggle { margin: var(--space-4) 0 var(--space-2); align-self: flex-start; }
  .topnav a.lang-btn { padding: 0.5rem 0.9rem; font-size: var(--fs-sm); }
  .topnav a.nav-cta { margin: var(--space-2) 0 0; padding: 0.8rem 1rem; font-size: 1rem; }
}

@media (min-width: 1181px) and (max-width: 1320px) {
  .topnav .nav-phone { font-size: var(--fs-xs); }
  .topnav a, .topnav .dropbtn { padding-inline: 0.55rem; }
}

/* 12. Footer --------------------------------------------------------------- */
.site-footer {
  margin-top: 0;
  padding: var(--space-8) 0 var(--space-6);
  background: var(--surface-1);
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.site-footer > .container { display: grid; gap: var(--space-7); }
.site-footer__cols {
  display: grid;
  gap: var(--space-6) var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}
.site-footer__cols > * { min-width: 0; }
@media (min-width: 960px) {
  .site-footer__cols { grid-template-columns: 1.35fr 1fr 1fr 1fr; }
}
.site-footer__brand { margin: 0 0 var(--space-3); color: var(--text); font-size: 1.0625rem; }
.site-footer__desc { max-width: 34ch; }
.site-footer__list + .site-footer__title { margin-top: var(--space-5); }
.site-footer :is(h2, h3, h4) { margin: 0 0 var(--space-3); color: var(--text); font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0; }
.site-footer img { height: 2.25rem; width: auto; margin-bottom: var(--space-3); }
.site-footer p { margin: 0 0 var(--space-3); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 0 0 var(--space-2); }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 0.2em; }
.site-footer address { color: var(--text-muted); }
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  color: var(--text-subtle);
  font-size: var(--fs-xs);
  line-height: 1.55;
}
.site-footer__legal p { margin: 0; max-width: 62ch; }
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.site-footer__legal li { margin: 0; }
.site-footer__legal a { color: var(--text-muted); }

/* 13. Free security tools utility ---------------------------------------------
   Markup: <aside class="tools" aria-labelledby="tools-title"><h2 id="tools-title"> + <ul><li><a><img> <span>.
   A static band above the footer: a labelled list of external tools, readable without JS and
   never overlapping content. */
.tools {
  padding: var(--space-6) max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  background: var(--surface-1);
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.tools h2 { margin: 0 0 var(--space-3); color: var(--text); font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.tools ul { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin: 0; padding: 0; list-style: none; }
.tools li { margin: 0; }
.tools li a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.6rem 0.65rem;
  color: var(--text);
  border-radius: var(--radius-sm);
  text-decoration: none;
  line-height: 1.3;
}
.tools li a:hover { background: var(--surface-3); color: var(--text); }
.tools li a:focus-visible { outline-offset: -2px; }
.tools :is(img, svg) { flex: none; width: 1.25rem; height: 1.25rem; }
.tools li small { display: block; color: var(--text-subtle); font-size: var(--fs-xs); }
/* 14. Motion --------------------------------------------------------------- */
/* site.js adds .reveal only to blocks that start below the fold; no JS, no hidden content. */
.reveal { opacity: 0; transform: translateY(0.75rem); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Video helper: poster only until site.js decides it may play */
video[data-lazy-video] { width: 100%; height: auto; background: var(--surface-1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .card:has(.card__link):hover { transform: none; }
  .card:has(.card__link):hover .card__link::before { transform: rotate(45deg); }
}

/* 15. Print ---------------------------------------------------------------- */
@media print {
  body, .section--alt, .site-footer, .card, .callout { background: #fff !important; color: #000 !important; }
  .site-header, .tools, .skip-link, .hero::before, .hero::after { display: none !important; }
  .reveal { opacity: 1; transform: none; }
  a { color: #000; text-decoration: underline; }
  h1, h2, h3, .stat__num { color: #000; }
}

/* ---------- Careers: job postings ---------- */
.job { scroll-margin-top: 5rem; }
.job-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-5) var(--space-7); padding-bottom: var(--space-6); margin-bottom: var(--space-7); border-bottom: 1px solid var(--line-strong); }
.job-head > div:first-child { flex: 1 1 30rem; min-width: 0; }
.job-head h2 { margin: var(--space-2) 0 var(--space-3); }
.job-head .lead { margin: 0; }
.job-meta { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); font-size: var(--fs-sm); color: var(--text-subtle); }
.job-meta strong { color: var(--text); font-weight: 500; margin-left: var(--space-1); }
.job-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-7); }
.job-main { flex: 999 1 34rem; min-width: 0; max-width: 52rem; display: grid; gap: var(--space-7); }
.job-block h3 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin: 0 0 var(--space-4); }
.job-block p { margin: 0; color: var(--text-muted); max-width: var(--measure); }
.job-block .check-list { margin-bottom: 0; }
.job-aside { flex: 1 1 18rem; max-width: 26rem; min-width: 0; display: grid; gap: var(--space-4); position: sticky; top: 6rem; }
.job-aside .card { padding: var(--space-5); }
.job-aside .btn { width: 100%; justify-content: center; text-align: center; }
.job-aside__title { margin: 0 0 var(--space-4); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-subtle); }
.job-aside__label { margin: var(--space-4) 0 var(--space-2); font-size: var(--fs-xs); font-weight: 600; color: var(--text-subtle); }
.job-aside__title + .job-aside__label { margin-top: 0; }
.job-facts { margin: 0; }
.job-facts div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--space-3); padding: var(--space-3) 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.job-facts div:first-child { border-top: 0; padding-top: 0; }
.job-facts dt { color: var(--text-subtle); }
.job-facts dd { margin: 0; color: var(--text); font-weight: 500; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface-2); color: var(--text); font-size: var(--fs-xs); font-weight: 500; line-height: 1.5; white-space: nowrap; }
.job-tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 3px; border: 1px solid var(--line-strong); font-size: 0.75rem; font-weight: 600; letter-spacing: .02em; color: var(--text-muted); }
.job-tag--req { border-color: var(--accent-line); background: var(--accent-tint); color: var(--accent-strong); }
.job-tag--pref { border-color: #4f6a99; color: #a9c4f5; }
.job-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.job-list li { position: relative; padding-left: 1.875rem; color: var(--text-muted); }
.job-list--steps { counter-reset: step; }
.job-list--steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0.15em; font-size: var(--fs-xs); font-weight: 600; color: var(--text-subtle); font-variant-numeric: tabular-nums; }
.job-list--pref li::before { content: "+"; position: absolute; left: 0.2rem; top: -0.05em; font-size: 1.25rem; line-height: 1.2; color: #a9c4f5; }
.job-list--nice li::before { content: ""; position: absolute; left: 0.4rem; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--text-subtle); }
.job-note { font-size: var(--fs-xs); color: var(--text-subtle); max-width: var(--measure); margin: 0; }
@media (max-width: 760px) { .job-aside { position: static; max-width: none; } }
