/* ==========================================================================
   Brenvalaine (brenvalaine.ca) — stylesheet
   Light theme, maple red accent on off-white + warm charcoal. One accent, one
   neutral family, one radius / shadow / type scale everywhere (design.md §1).
   ========================================================================== */

/* ---------- fonts (OFL, downloaded at build time, shipped locally) ---------- */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/SourceSans3-var.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;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/SourceSans3-italic-var.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;
}

/* ---------- tokens ---------- */
:root {
  --bg: #faf8f4;
  --surface: #fffdfb;
  --surface-2: #f3eee8;
  --surface-3: #e9e2d9;
  --border: #e6dfd6;
  --border-strong: #cfc4b8;
  --text: #211c1a;
  --text-muted: #5b5350;
  --text-soft: #6a605b;             /* ≥ 4.5:1 on every surface incl. --surface-2 (4.76 on --surface-3) */
  --ink: #241d1c;
  --ink-2: #3a2a2c;
  --accent: #c0202e;
  --accent-hover: #a31a26;
  --accent-tint: #fbeceb;
  --accent-tint-2: #f3d4d6;
  --on-accent: #fffaf7;
  --positive: #1f7a4a;
  --positive-tint: #e6f3eb;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(51, 36, 30, .06), 0 1px 1px rgba(51, 36, 30, .04);
  --shadow-md: 0 1px 2px rgba(51, 36, 30, .06), 0 8px 24px rgba(51, 36, 30, .08);
  --shadow-lg: 0 2px 4px rgba(51, 36, 30, .06), 0 18px 48px rgba(51, 36, 30, .14);

  --font: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --fs-sm: 15px;
  --fs-base: 17px;
  --fs-lg: 20px;
  --fs-xl: 24px;
  --lh: 1.6;

  --header-h: 72px;
  --ease: cubic-bezier(.2, .6, .2, 1);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, iframe, video, canvas { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.18; font-weight: 700; letter-spacing: -.012em; color: var(--text); }
h1 { font-size: clamp(34px, 4.8vw, 56px); }
h2 { font-size: clamp(26px, 3vw, 36px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin: 0 0 .35em; }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.icon { width: 24px; height: 24px; flex: none; vertical-align: middle; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--ink); color: var(--on-accent); padding: 10px 16px; border-radius: var(--radius-sm); transition: top .15s var(--ease); }
.skip-link:focus { top: 12px; color: var(--on-accent); }
.muted { color: var(--text-muted); }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.lead { font-size: var(--fs-lg); color: var(--text-muted); }
.nowrap { white-space: nowrap; }
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
main { display: block; }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }
.section-head { max-width: 760px; margin-bottom: clamp(24px, 4vw, 40px); }
.section-head p { color: var(--text-muted); font-size: var(--fs-lg); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-link { margin-top: 24px; }
.section-head--center { text-align: center; margin-inline: auto; max-width: 720px; }

/* ---------- background treatments (each carries a drawn motif, never a bare gradient) ---------- */
.bg-paper { background-color: var(--bg); }
.bg-sand { background-color: var(--surface-2); }
.bg-tint { background-color: var(--accent-tint); }
.bg-grid { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ccircle cx='2' cy='2' r='1.2' fill='%23c0202e' fill-opacity='.10'/%3E%3C/svg%3E"); background-size: 28px 28px; }
.bg-ledger { background-image: repeating-linear-gradient(0deg, transparent 0 31px, rgba(33, 28, 26, .06) 31px 32px); }
.bg-mesh { position: relative; }
.bg-mesh::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23c0202e' stroke-opacity='.055' stroke-width='1'%3E%3Cpath d='M0 80c26-40 54-40 80 0s54 40 80 0M0 120c26-40 54-40 80 0s54 40 80 0M0 40c26-40 54-40 80 0s54 40 80 0'/%3E%3Ccircle cx='80' cy='80' r='2' fill='%23c0202e' fill-opacity='.14' stroke='none'/%3E%3Ccircle cx='0' cy='80' r='2' fill='%23c0202e' fill-opacity='.14' stroke='none'/%3E%3Ccircle cx='160' cy='80' r='2' fill='%23c0202e' fill-opacity='.14' stroke='none'/%3E%3C/g%3E%3C/svg%3E"); background-size: 160px 160px; }
.section--band { position: relative; overflow: hidden; }
.section--band::after { content: ''; position: absolute; right: -120px; bottom: -180px; width: 480px; height: 480px; border-radius: 50%; border: 48px solid var(--accent-tint-2); opacity: .45; pointer-events: none; }
.section--band > .container { position: relative; z-index: 1; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--radius); border: 1px solid transparent; font: 700 16px/1 var(--font); color: var(--on-accent); background: var(--accent); cursor: pointer; white-space: nowrap; text-decoration: none; box-shadow: var(--shadow-sm); transition: background-color .16s var(--ease), color .16s var(--ease), transform .16s var(--ease), box-shadow .16s var(--ease), border-color .16s var(--ease); }
.btn:hover { background: var(--accent-hover); color: var(--on-accent); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn .icon { width: 18px; height: 18px; }
.btn--secondary { background: transparent; color: var(--accent); border-color: var(--accent); box-shadow: none; }
.btn--secondary:hover { background: var(--accent-tint); color: var(--accent-hover); border-color: var(--accent-hover); }
.btn--light { background: var(--on-accent); color: var(--ink); border-color: var(--on-accent); }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--ghost { background: rgba(255, 250, 247, .1); color: var(--on-accent); border-color: rgba(255, 250, 247, .45); box-shadow: none; }
.btn--ghost:hover { background: rgba(255, 250, 247, .22); color: #fff; border-color: rgba(255, 250, 247, .7); box-shadow: none; }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.text-link .icon { width: 16px; height: 16px; transition: transform .16s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }
/* links inside running text are underlined (WCAG 1.4.1: never colour alone); button-like links opt out */
.prose a, .faq__a a, .calc-note a, .notice a, .card p a, .review__text a, .review-note a, .table-note a, td a, .footer-disclaimer a, .footer-bottom a, .footer-facts a, .offer-modal p a, .form-legal a, .def-list dd a, .doc-meta a, .ihero__copy a, .hero__copy a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a.btn, .prose a.text-link, .prose a.card, .prose a.link-card, .prose a.btn:hover, .hero__copy a.btn, .ihero__copy a.btn, .hero__copy a.hero-pill, .ihero__copy a.hero-pill, .ihero__copy a.text-link { text-decoration: none; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 26px; height: 100%; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); margin: 0; }
.card--flat { box-shadow: var(--shadow-sm); }
.card--ink { background: var(--ink); border-color: var(--ink); color: #e9dcdb; }
.card--ink h3, .card--ink h4 { color: var(--on-accent); }
.card--ink p { color: #d9c9c8; }
.card--ink .icon-badge { background: rgba(192, 32, 46, .35); color: var(--on-accent); }
.card--link { display: block; color: inherit; }
.card--link:hover { color: inherit; text-decoration: none; }
.card--link h3 { color: var(--accent); }
.card--link:hover h3 { color: var(--accent-hover); }
.card-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.card-head h3, .card-head h2 { margin: 4px 0 0; }
.icon-badge { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; flex: none; }
.icon-badge .icon { width: 24px; height: 24px; }
.icon-badge--ink { background: var(--ink); color: var(--on-accent); }
.icon-badge--outline { background: transparent; border: 1.5px solid var(--accent); }

/* grids */
.grid { display: grid; gap: 20px; }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.grid-split--rev { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.stagger > *:nth-child(even) { transform: translateY(22px); }
.bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bento > *:first-child { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; }
.bento > *:first-child p { font-size: var(--fs-lg); }
.bento > *:last-child { grid-column: span 2; }   /* 1 large + 3 small: the last card fills its row, no empty cell */
.bento__ill { width: 100%; height: auto; border-radius: 12px; margin: 0 0 22px; }
.bento > *:first-child .card-head { margin-bottom: 10px; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; position: relative; }
.steps::before { content: ''; position: absolute; left: 24px; right: 24px; top: 24px; height: 2px; background: linear-gradient(90deg, var(--accent-tint-2), var(--accent-tint-2)); }
.steps > li { counter-increment: step; position: relative; padding: 64px 18px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.steps > li:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.steps > li::before { content: counter(step); position: absolute; top: 6px; left: 24px; width: 38px; height: 38px; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 17px; display: grid; place-items: center; box-shadow: 0 0 0 6px var(--bg); }
.steps h3 { margin: 0 0 8px; font-size: 19px; }
.steps p { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); }
.step-list { list-style: none; padding: 0; margin: 0; counter-reset: sl; }
.step-list > li { counter-increment: sl; position: relative; padding: 0 0 24px 60px; margin: 0; }
.step-list > li::before { content: counter(sl); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); font-weight: 700; display: grid; place-items: center; }
.step-list > li::after { content: ''; position: absolute; left: 19px; top: 42px; bottom: 6px; width: 2px; background: var(--accent-tint-2); }
.step-list > li:last-child::after { display: none; }
.step-list h3, .step-list h4 { margin-bottom: 6px; font-size: 19px; }
.step-list p { margin-bottom: 6px; }

/* tables */
.table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); max-width: 100%; }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-2); font-weight: 700; color: var(--text); font-size: 14px; letter-spacing: .02em; }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: rgba(243, 238, 232, .45); }
td strong { color: var(--text); }
.table-plans { min-width: 720px; }
.table-plans th:first-child, .table-plans td:first-child { position: sticky; left: 0; background: var(--surface-2); z-index: 2; }
.table-plans td:first-child { background: var(--surface); font-weight: 700; }
.table-plans tbody tr:nth-child(even) td:first-child { background: #fbf8f4; }
.table-payments { min-width: 720px; }
.table-reg { min-width: 640px; }
.compare { min-width: 600px; }
.compare thead th:nth-child(2) { background: var(--accent); color: var(--on-accent); }
.compare th:first-child, .compare td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 2; }
.compare th:first-child { background: var(--surface-2); }
.compare tbody tr:nth-child(even) td:first-child { background: #fbf8f4; }
.mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.mark .icon { width: 18px; height: 18px; }
.mark--yes { background: var(--positive-tint); color: var(--positive); }
.mark--no { background: var(--accent-tint); color: var(--accent); }
.table-note { font-size: var(--fs-sm); color: var(--text-soft); margin-top: 14px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.faq__item[open] { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; font-weight: 700; cursor: pointer; list-style: none; border-radius: var(--radius); }
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent-hover); }
.faq__chevron { color: var(--accent); transition: transform .2s var(--ease); }
.faq__item[open] .faq__chevron { transform: rotate(180deg); }
.faq__a { padding: 0 20px 18px; color: var(--text-muted); animation: faqIn .22s var(--ease); }
.faq__a p:last-child { margin-bottom: 0; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.faq-cols { columns: 2; column-gap: 20px; }
.faq-cols .faq { display: contents; }
.faq-cols .faq__item { break-inside: avoid; margin-bottom: 10px; }

/* forms (formFactory wrapper + overrides) */
.form-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 24px; color: var(--text); }
.form-block .iti, .form-block .iti__selected-country, .form-block .iti__selected-dial-code { color: var(--text); }   /* the phone widget inherits text colour: keep it dark on the light card, also inside the hero */
.form-block--bare { background: transparent; border: 0; box-shadow: none; padding: 0; }
.form-block__heading { font-size: 20px; font-weight: 700; margin: 0 0 12px; color: var(--text); }
.form-block__intro { font-size: var(--fs-sm); color: var(--text-muted); margin: 0 0 12px; }
.form-block__note { font-size: var(--fs-sm); color: var(--text-muted); margin: 12px 0 0; }
.form-legal { font-size: 14px; color: var(--text-soft); margin: 12px 0 0; line-height: 1.5; }
.form-legal a { color: var(--accent); font-weight: 600; }
.form-block form { max-width: 100%; }
.form-block form > div { display: grid; gap: 12px; }
.form-block form input[type="text"],
.form-block form input[type="email"],
.form-block form input[type="tel"] {
  width: 100%; height: 48px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--surface); padding: 0 14px; font: 400 16px/1.2 var(--font); color: var(--text);
  box-shadow: var(--shadow-sm); transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.form-block form input::placeholder { color: var(--text-soft); opacity: 1; }
.form-block form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint-2); }
.form-block form input[type="submit"] {
  width: 100%; height: 50px; border: 0; border-radius: var(--radius); background: var(--accent); color: var(--on-accent);
  font: 700 17px/1 var(--font); cursor: pointer; box-shadow: var(--shadow-sm);
  transition: background-color .16s var(--ease), transform .16s var(--ease), box-shadow .16s var(--ease);
}
.form-block form input[type="submit"]:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.form-block form input[type="submit"]:active { transform: translateY(0); }
.form-label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-block--hero { padding: 26px; }
.form-callout { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 12px 14px; border-radius: var(--radius); background: var(--accent-tint); color: var(--text); font-size: var(--fs-sm); }
.form-callout .icon { color: var(--accent); width: 20px; height: 20px; margin-top: 2px; }
.form-callout p { margin: 0; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 244, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); transition: box-shadow .2s var(--ease), background-color .2s var(--ease); }
.site-header.is-scrolled { background: rgba(250, 248, 244, .98); box-shadow: var(--shadow-md); }
.header-bar__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); position: relative; }
.brand { display: inline-flex; align-items: center; color: var(--text); flex: none; }
.brand:hover { color: var(--text); text-decoration: none; }
.logo { height: 34px; width: auto; display: block; }
.nav { margin-left: auto; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav__item { position: relative; margin: 0; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: var(--radius-sm); background: none; border: 0; font: 600 16px/1 var(--font); color: var(--text); cursor: pointer; transition: color .15s var(--ease), background-color .15s var(--ease); }
.nav__link:hover, .nav__link[aria-expanded="true"] { color: var(--accent); background: var(--accent-tint); }
.nav__caret { width: 16px; height: 16px; transition: transform .18s var(--ease); }
.nav__link[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }
.nav__panel { position: absolute; top: calc(100% + 10px); left: 0; min-width: 270px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 8px; z-index: 60; opacity: 0; transform: translateY(4px); transition: opacity .16s var(--ease), transform .16s var(--ease); }
.nav__panel.is-open { opacity: 1; transform: none; }
.nav__panel::before { content: ''; position: absolute; top: -6px; left: 26px; width: 12px; height: 12px; background: var(--surface); border-left: 1px solid var(--border); border-top: 1px solid var(--border); transform: rotate(45deg); }
.nav__panel.is-right { left: auto; right: 0; }
.nav__panel.is-right::before { left: auto; right: 26px; }
.nav__sub { list-style: none; margin: 0; padding: 0; max-height: min(70vh, 560px); overflow-y: auto; }
.nav__sublink { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text); font-weight: 600; font-size: 15px; transition: background-color .15s var(--ease), color .15s var(--ease); }
.nav__sublink:hover, .nav__sublink:focus-visible, .nav__sublink[aria-current="page"] { background: var(--accent-tint); color: var(--accent-hover); text-decoration: none; }
.nav__subicon { width: 18px; height: 18px; color: var(--accent); }
.header-cta { flex: none; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; place-items: center; padding: 0; box-shadow: var(--shadow-sm); }
.nav-toggle__icon { display: grid; place-items: center; }
.nav-toggle__icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon--close { display: grid; }
.mobile-menu { display: none; }

/* announce strip (offer page only) */
.announce { background: var(--ink); color: var(--on-accent); }
.announce__inner { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-block: 10px; }
.announce__item { display: inline-flex; align-items: baseline; gap: 8px; font-size: 14px; }
.announce__value { font-weight: 700; color: #ffb3b8; font-variant-numeric: tabular-nums; }
.announce__label { color: #d9c9c8; }

/* ticker row (injected by _beacon after </header>) */
.tv-ticker-wrapper {
  position: relative;
  border-bottom: 1px solid var(--border);
  padding-top: 0px !important;
  height: 58px !important;
}
.ticker-label { position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 0 54px 0 clamp(16px, 4vw, 40px); margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text); background: linear-gradient(90deg, #ffffff 0, #ffffff calc(100% - 40px), rgba(255, 255, 255, 0) 100%); pointer-events: none; }
.ticker-label::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* breadcrumbs */
.breadcrumbs { background: var(--bg); border-bottom: 1px solid var(--border); }
.breadcrumbs__list { list-style: none; margin: 0; padding: 12px 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--text-soft); }
.breadcrumbs__item { margin: 0; display: inline-flex; gap: 6px; align-items: center; }
.breadcrumbs__item + .breadcrumbs__item::before { content: '/'; color: var(--border-strong); }
.breadcrumbs__link { color: var(--text-soft); }
.breadcrumbs__current { color: var(--text); font-weight: 600; }

/* ---------- home hero (geo-adapted: full-bleed Ottawa artwork) ---------- */
.hero { position: relative; color: var(--on-accent); background: var(--ink-2); overflow: hidden; isolation: isolate; min-height: clamp(560px, 86vh, 820px); display: flex; align-items: center; padding: clamp(32px, 5vw, 72px) 0; }
.hero__media { position: absolute; inset: -12% 0 0 0; z-index: -3; will-change: transform; display: block; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: right center; display: block; }
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, #081522 0%, rgba(8, 21, 34, .88) 31%, rgba(8, 21, 34, .25) 67%, transparent),
              linear-gradient(0deg, rgba(8, 21, 34, .72), transparent 30%);
}
.home-steps {
  background: linear-gradient(90deg, #0b192d 8%, rgba(11, 25, 45, .92) 37%, rgba(11, 25, 45, .28)),
              #0b192d url("../images/home-trading-desk.webp") right top / cover no-repeat;
}
.home-steps .section-head h2 { color: #fff; }
.home-steps .section-head p { color: #e1ecf8; }
.home-steps .section-head .eyebrow { color: #ffbfc5; }
.hero__canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; display: none; }
.hero.is-animated .hero__canvas { display: block; }
.hero__motif-static { position: absolute; inset: auto 0 0 auto; width: 70%; max-width: 760px; z-index: -1; pointer-events: none; opacity: .9; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); grid-template-areas: "title card" "copy card"; column-gap: clamp(24px, 4vw, 64px); align-items: start; }
.hero__title { grid-area: title; color: var(--on-accent); margin: 0 0 18px; font-size: clamp(32px, 3.9vw, 52px); max-width: 22ch; text-shadow: 0 2px 18px rgba(20, 16, 22, .35); }
.hero__copy { grid-area: copy; max-width: 540px; }
.hero__card { grid-area: card; align-self: center; width: 100%; max-width: 440px; justify-self: end; }
.hero__copy p { color: #f1e6e4; font-size: var(--fs-lg); }
.hero__flag { display: inline-flex; align-items: center; gap: 10px; margin: 4px 0 16px; padding: 8px 14px 8px 10px; border-radius: var(--radius-pill); background: rgba(255, 250, 247, .12); border: 1px solid rgba(255, 250, 247, .22); font-size: var(--fs-sm); font-weight: 600; color: var(--on-accent); }
.flag { width: 28px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); flex: none; }
.hero__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.hero-pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: var(--radius-pill); background: rgba(255, 250, 247, .1); border: 1px solid rgba(255, 250, 247, .25); color: var(--on-accent); font-weight: 600; font-size: var(--fs-sm); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color .16s var(--ease), transform .16s var(--ease), color .16s var(--ease); }
.hero-pill:hover { background: rgba(255, 250, 247, .2); color: #fff; text-decoration: none; transform: translateY(-1px); }
.hero-pill .icon { color: #ffb3b8; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 16px; padding: 0; list-style: none; font-size: var(--fs-sm); color: #f1e6e4; }
.hero__badges li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.hero__badges .icon { width: 16px; height: 16px; color: #ffb3b8; }

/* ---------- inner hero (form pages) ---------- */
.ihero { position: relative; color: var(--on-accent); background: var(--ink-2); overflow: hidden; isolation: isolate; padding: clamp(40px, 6vw, 80px) 0; }
.ihero__media { position: absolute; inset: 0; z-index: -2; }
.ihero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; display: block; }
.ihero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 16, 22, .82) 0%, rgba(20, 16, 22, .5) 55%, rgba(20, 16, 22, .3) 100%); }
.ihero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); grid-template-areas: "title card" "copy card"; column-gap: clamp(24px, 4vw, 64px); align-items: start; }
.ihero__title { grid-area: title; color: var(--on-accent); margin: 0 0 18px; max-width: 20ch; }
.ihero__copy { grid-area: copy; max-width: 560px; }
.ihero__copy p { color: #f1e6e4; font-size: var(--fs-lg); }
.ihero__copy ul { color: #f1e6e4; padding-left: 1.1em; }
.ihero__copy li { margin-bottom: 6px; }
.ihero__card { grid-area: card; align-self: center; width: 100%; max-width: 440px; justify-self: end; }
.ihero__ill { width: 100%; max-width: 420px; height: auto; margin-top: 20px; }
.ihero__facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 16px; padding: 0; list-style: none; font-size: var(--fs-sm); color: #f1e6e4; }
.ihero__facts li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.ihero__facts .icon { color: #ffb3b8; width: 18px; height: 18px; }

/* ---------- page head (document pages) ---------- */
.page-head { background: var(--surface-2); border-bottom: 1px solid var(--border); padding: clamp(32px, 5vw, 56px) 0; position: relative; overflow: hidden; }
.page-head::after { content: ''; position: absolute; right: -140px; top: -160px; width: 440px; height: 440px; border-radius: 50%; border: 44px solid var(--accent-tint-2); opacity: .5; pointer-events: none; }
.page-head .container { position: relative; }
.page-head h1 { max-width: 20ch; }
.page-head p { max-width: 760px; color: var(--text-muted); font-size: var(--fs-lg); margin: 0; }
.prose { max-width: 820px; }
.prose--wide { max-width: 920px; }
.prose h2 { margin-top: 8px; }
.prose h3 { margin-top: 28px; }
.prose p, .prose li { color: var(--text-muted); }
.prose strong { color: var(--text); }
.prose ul li::marker { color: var(--accent); }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 18px 0 0; padding: 0; list-style: none; font-size: var(--fs-sm); color: var(--text-soft); }
.doc-meta li { margin: 0; }
.def-list { margin: 0 0 1em; display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; }
.def-list dt { font-weight: 700; color: var(--text); }
.def-list dd { margin: 0; color: var(--text-muted); }

/* info tiles (facts) */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tile .icon-badge { width: 42px; height: 42px; border-radius: 12px; }
.tile__label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 2px; }
.tile__value { display: block; font-weight: 700; color: var(--text); }
.tile__value a { color: var(--text); }
.tile__value small { display: block; font-weight: 400; color: var(--text-muted); }

/* exchange logos: balanced grid, no orphan chip; the chip is never narrower than its widest logo at 28px */
.exchanges { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.chip { width: auto; min-width: 0; height: 60px; border-radius: 12px; border: 1px solid var(--border); background: #ffffff; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; box-shadow: var(--shadow-sm); transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.chip--dark { background: #0f172a; border-color: #0f172a; }
.chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.chip img { height: 28px; width: auto; max-width: 100%; display: block; }
@media (max-width: 1179px) { .exchanges { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .exchanges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 385px) { .exchanges { grid-template-columns: minmax(0, 1fr); } }

/* calculator section */
.calc-grid { display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.calc-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 24px 28px; min-width: 0; }
.calc-wrap .calc-widget { text-align: left; }
.calc-wrap .calc-widget__title { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: .4rem; }
.calc-wrap .calc-widget__subtitle { font-size: 17px; margin-bottom: 1.6rem; max-width: 48ch; }
.calc-wrap .calc-widget__wrapper { gap: 36px; max-width: none; margin-bottom: 1.6rem; }
.calc-wrap .calc-widget__controls { gap: 28px; }
.calc-wrap .calc-widget__cta { margin-inline: 0; }
.calc-note { font-size: var(--fs-sm); color: var(--text-soft); margin: 16px 0 0; text-align: center; }
.calc-side { display: flex; flex-direction: column; gap: 14px; }
.calc-side__ill { width: 100%; height: auto; }

/* reviews */
.reviews { columns: 3; column-gap: 20px; }
.review { break-inside: avoid; margin: 0 0 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 22px; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.review:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review__photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); box-shadow: 0 0 0 2px var(--accent-tint-2); flex: none; }
.review__name { font-weight: 700; color: var(--text); }
.review__role { font-size: var(--fs-sm); color: var(--text-soft); }
.review__stars { color: var(--accent); letter-spacing: 2px; font-size: 15px; margin: 0 0 10px; }
.review__text { color: var(--text-muted); margin: 0 0 14px; }
.review__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--border); list-style: none; }
.review__stats li { margin: 0; }
.review__stats span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-soft); }
.review__stats strong { font-size: var(--fs-sm); color: var(--text); font-variant-numeric: tabular-nums; }
.review-note { font-size: var(--fs-sm); color: var(--text-soft); margin: 18px 0 0; }

/* company block */
.office-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 24px; }
.office-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: start; }
.office-card dt { color: var(--accent); }
.office-card dd { margin: 0; color: var(--text); }
.office-card dd small { display: block; color: var(--text-soft); }
.office-card a { color: var(--text); font-weight: 700; }
.link-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.link-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); color: var(--text); font-weight: 700; transition: transform .16s var(--ease), box-shadow .16s var(--ease), border-color .16s var(--ease); }
.link-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent-tint-2); text-decoration: none; color: var(--accent-hover); }
.link-card .icon-badge { width: 40px; height: 40px; border-radius: 10px; }
.link-card .icon-badge .icon { width: 20px; height: 20px; }

/* illustrations */
.ill { width: 100%; height: auto; display: block; }
.ill-frame { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 18px; }

/* map */
.map-embed { border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; max-width: 100%; aspect-ratio: 16 / 9; min-height: 320px; background: var(--surface-2); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* careers */
.vacancy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: center; }
.grid--tight { gap: 16px; }
.vacancy__title { margin-bottom: 4px; }
.vacancy__text { margin-bottom: 8px; }
.vacancy__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; padding: 0; list-style: none; }
.vacancy__meta li { margin: 0; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--text-muted); }
.vacancy__meta li:first-child { background: var(--accent-tint); color: var(--accent-hover); }

/* notices */
.notice { border-left: 4px solid var(--accent); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px 22px; margin: 22px 0; }
.notice p { margin: 0; color: var(--text-muted); }
.notice strong { color: var(--text); }
.notice--warn { border-left-color: #b7791f; }
.notice--inline { margin: 14px 0 0; padding: 12px 14px; border-left-width: 3px; font-size: var(--fs-sm); box-shadow: none; background: var(--surface-2); }
.notice--inline p { color: var(--text-muted); margin: 0; }

/* CTA band */
.cta-band { background: var(--accent); color: var(--on-accent); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%; border: 36px solid rgba(255, 250, 247, .12); pointer-events: none; }
.cta-band h2, .cta-band p { color: var(--on-accent); margin: 0; }
.cta-band p { opacity: .92; }
.cta-band .btn { position: relative; z-index: 1; }

/* related pages */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.related--narrow { max-width: 760px; margin: 40px auto 0; }
.btn-row--center { justify-content: center; }
.text-left { text-align: left; }

/* ---------- offer page ---------- */
.offer-hero { position: relative; color: var(--on-accent); background: var(--ink-2); overflow: hidden; isolation: isolate; padding: clamp(36px, 6vw, 72px) 0; }
.offer-hero__media { position: absolute; inset: 0; z-index: -2; }
.offer-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; display: block; }
.offer-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 16, 22, .86) 0%, rgba(20, 16, 22, .55) 55%, rgba(20, 16, 22, .35) 100%); }
.offer-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); font-size: 14px; font-weight: 700; margin: 0 0 14px; }
.offer-countdown { display: inline-flex; gap: 6px; align-items: center; font-variant-numeric: tabular-nums; font-weight: 700; margin: 0 0 18px; }
.offer-countdown span { display: inline-block; min-width: 44px; padding: 8px 10px; border-radius: var(--radius-sm); background: rgba(255, 250, 247, .12); border: 1px solid rgba(255, 250, 247, .25); text-align: center; font-size: 22px; }
.offer-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); grid-template-areas: "copy card" "steps card"; column-gap: clamp(24px, 4vw, 64px); align-items: start; }
.offer-copy { grid-area: copy; }
.offer-copy h1 { color: var(--on-accent); margin: 0 0 18px; max-width: 20ch; text-shadow: 0 2px 18px rgba(20, 16, 22, .35); }
.offer-copy p { color: #f1e6e4; font-size: var(--fs-lg); }
.offer-card { grid-area: card; align-self: center; width: 100%; max-width: 440px; justify-self: end; }
.offer-steps { grid-area: steps; margin-top: 28px; }
.offer-steps h2 { color: var(--on-accent); margin-bottom: 14px; }
.offer-steps ol { list-style: none; padding: 0; margin: 0; counter-reset: os; display: grid; gap: 12px; }
.offer-steps li { counter-increment: os; position: relative; padding: 12px 16px 12px 58px; margin: 0; background: rgba(255, 250, 247, .08); border: 1px solid rgba(255, 250, 247, .2); border-radius: var(--radius); color: #f1e6e4; }
.offer-steps li::before { content: counter(os); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; display: grid; place-items: center; }
.offer-steps strong { color: #fff; }

/* exit-intent modal */
.offer-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.offer-modal.is-open { display: block; }
.offer-modal__overlay { position: absolute; inset: 0; background: rgba(20, 16, 22, .72); }
.offer-modal__card { position: relative; z-index: 1; width: min(92vw, 460px); margin: 6vh auto 0; background: var(--surface); color: var(--text); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 28px 28px 26px; text-align: center; animation: modalIn .22s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.offer-modal__close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.offer-modal__close:hover { background: var(--surface-2); }
.offer-modal__ill { width: 140px; height: auto; margin: 0 auto 10px; display: block; }
.offer-modal h2 { font-size: 26px; }
.offer-modal p { color: var(--text-muted); }
.countdown { display: inline-flex; gap: 6px; margin: 4px 0 18px; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 28px; }
.countdown span { display: inline-block; min-width: 64px; padding: 10px 8px 8px; border-radius: var(--radius-sm); background: var(--ink); color: var(--on-accent); border: 1px solid var(--border); }
.countdown b { font-weight: 700; display: block; }
.countdown small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #d9c9c8; margin-top: 4px; }
body.offer-locked { overflow: hidden; }

/* ---------- footer ---------- */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--border); padding: clamp(40px, 6vw, 64px) 0 28px; margin-top: 0; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.footer-tagline { color: var(--text-muted); font-size: var(--fs-sm); margin: 14px 0 16px; max-width: 34ch; }
.footer-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: var(--fs-sm); color: var(--text-muted); }
.footer-facts li { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.footer-facts .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.footer-facts a { color: var(--text-muted); font-weight: 600; }
.footer-col__title { font-weight: 700; color: var(--text); margin: 0 0 12px; font-size: 15px; }
.footer-col__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: var(--fs-sm); }
.footer-col__list a { color: var(--text-muted); }
.footer-col__list a:hover, .footer-col__list a[aria-current="page"] { color: var(--accent); }
.footer-disclaimer { margin-top: 40px; padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.footer-disclaimer p { font-size: 14px; color: var(--text-soft); margin: 0 0 8px; line-height: 1.55; }
.footer-disclaimer__title { font-weight: 700; color: var(--text); font-size: 15px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-soft); }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--text-soft); }

/* ---------- 404 ---------- */
.nf { padding: clamp(56px, 9vw, 120px) 0; text-align: center; }
.nf__code { font-size: clamp(72px, 14vw, 160px); font-weight: 700; line-height: 1; color: var(--accent-tint-2); margin: 0 0 8px; letter-spacing: -.04em; }
.nf p { max-width: 52ch; margin-inline: auto; }

/* ---------- motion: scroll reveal (enhancement only) ---------- */
.js .reveal { opacity: 0; transform: translateY(8px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .stagger.reveal > *:nth-child(even) { transform: translateY(30px); }
.js .stagger.reveal.is-visible > *:nth-child(even) { transform: translateY(22px); }
.js .steps.reveal > *, .js .grid.reveal > *, .js .reviews.reveal > * { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .steps.reveal.is-visible > *, .js .grid.reveal.is-visible > *, .js .reviews.reveal.is-visible > * { opacity: 1; transform: none; }
.js .grid.reveal.is-visible > *:nth-child(2) { transition-delay: .06s; }
.js .grid.reveal.is-visible > *:nth-child(3) { transition-delay: .12s; }
.js .grid.reveal.is-visible > *:nth-child(4) { transition-delay: .18s; }
.js .grid.reveal.is-visible > *:nth-child(5) { transition-delay: .24s; }
.js .grid.reveal.is-visible > *:nth-child(6) { transition-delay: .3s; }
.js .stagger.grid.reveal.is-visible > *:nth-child(even) { transform: translateY(22px); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .reviews { columns: 2; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento > *:first-child { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 1023px) {
  .nav { display: none; }
  .nav-toggle { display: grid; margin-left: auto; }
  .header-cta { margin-left: auto; }
  .header-cta + .nav-toggle { margin-left: 0; }
  .mobile-menu { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-top: 1px solid var(--border); box-shadow: var(--shadow-lg); padding: 12px clamp(16px, 4vw, 40px) 20px; max-height: calc(100vh - var(--header-h)); overflow-y: auto; animation: menuIn .18s var(--ease); }
  .mobile-menu[hidden] { display: none; }
  @keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  .mobile-menu__group { border-bottom: 1px solid var(--border); }
  .mobile-menu__toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; background: none; border: 0; font: 700 17px/1 var(--font); color: var(--text); cursor: pointer; }
  .mobile-menu__caret { color: var(--accent); transition: transform .18s var(--ease); }
  .mobile-menu__toggle[aria-expanded="true"] .mobile-menu__caret { transform: rotate(180deg); }
  .mobile-menu__list { list-style: none; margin: 0; padding: 0 0 10px; display: grid; gap: 2px; }
  .mobile-menu__list[hidden] { display: none; }
  .mobile-menu__link { display: block; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text); font-weight: 600; }
  .mobile-menu__link:hover, .mobile-menu__link[aria-current="page"] { background: var(--accent-tint); color: var(--accent-hover); text-decoration: none; }
  .mobile-menu__cta { margin-top: 16px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before { display: none; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-split, .grid-split--rev, .calc-grid { grid-template-columns: minmax(0, 1fr); }
  .stagger > *:nth-child(even) { transform: none; }
  .hero { min-height: 0; }
}
@media (max-width: 767px) {
  .hero__grid, .ihero__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "card" "copy"; }
  .offer-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "card" "steps"; }
  .hero__title, .ihero__title { max-width: none; }
  .hero__card, .ihero__card, .offer-card { justify-self: stretch; max-width: none; align-self: auto; }
  .hero__copy { margin-top: 24px; }
  .hero { background-color: #081522; }
  .hero__media { inset: 0 0 auto; height: clamp(470px, 124vw, 720px); mask-image: linear-gradient(#000 76%, transparent); }
  .hero__media img { object-position: left top; }
  .hero__scrim { background: linear-gradient(180deg, rgba(8, 21, 34, .56), rgba(8, 21, 34, .44) 370px, transparent 650px); }
  .home-steps {
    background-image: linear-gradient(180deg, rgba(11, 25, 45, .83), #0b192d 330px),
                      url("../images/home-trading-desk.webp");
    background-size: cover, auto 380px;
  }
  .hero__motif-static { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .reviews { columns: 1; }
  .faq-cols { columns: 1; }
  .cta-band { grid-template-columns: minmax(0, 1fr); }
  .vacancy { grid-template-columns: minmax(0, 1fr); }
  .link-cards { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-embed { min-height: 260px; }
  .section { padding-block: 40px; }
}
@media (max-width: 560px) {
  .header-cta { display: none; }
  .logo { height: 30px; }
  .ticker-label { font-size: 11px; letter-spacing: .04em; gap: 6px; padding: 0 30px 0 16px; }
  .ticker-label::before { width: 6px; height: 6px; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento > *:first-child, .bento > *:last-child { grid-column: auto; }
  .offer-countdown span { min-width: 40px; font-size: 20px; }
  .countdown { font-size: 24px; }
  .countdown span { min-width: 56px; }
}

/* ---------- balanced grids (no empty cell when the card count does not divide evenly) ---------- */
.grid--five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid--five > * { grid-column: span 2; }
.grid--five > *:nth-child(4), .grid--five > *:nth-child(5) { grid-column: span 3; }
@media (max-width: 1023px) {
  .grid--five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--five > *:nth-child(4), .grid--five > *:nth-child(5) { grid-column: span 1; }
  .grid--five > *:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 767px) {
  .grid--five { grid-template-columns: minmax(0, 1fr); }
  .grid--five > *:nth-child(5) { grid-column: span 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal, .js .reveal > * { opacity: 1 !important; transform: none !important; }
  .hero__canvas { display: none !important; }
}
