:root {
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --bg: #faf6ee;
  --bg-soft: #f3ecdf;
  --surface: #ffffff;
  --surface-2: #f6efe2;
  --ink: #1b1f2a;
  --ink-soft: #454b5c;
  --muted: #6d7280;
  --line: rgba(27, 31, 42, 0.12);
  --line-strong: rgba(27, 31, 42, 0.24);

  --red: #e0282b;
  --red-deep: #a80f12;
  --red-soft: rgba(224, 40, 43, 0.1);
  --amber: #e09a2c;
  --gold: #c9881c;
  --blue: #24508c;
  --blue-soft: rgba(36, 80, 140, 0.1);

  --shadow-sm: 0 1px 2px rgba(27, 31, 42, 0.05), 0 6px 18px rgba(27, 31, 42, 0.06);
  --shadow-lg: 0 4px 12px rgba(27, 31, 42, 0.08), 0 24px 60px rgba(27, 31, 42, 0.12);
  --glow: radial-gradient(1200px 600px at 80% -10%, rgba(224, 40, 43, 0.14), transparent 60%);
  --glow-blue: radial-gradient(900px 500px at 10% 0%, rgba(36, 80, 140, 0.16), transparent 60%);

  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --max: 1180px;
}

html.theme-dark {
  --bg: #0b0f1a;
  --bg-soft: #0e1420;
  --surface: #121826;
  --surface-2: #182032;
  --ink: #f2f4f8;
  --ink-soft: #c6ccd8;
  --muted: #8b92a3;
  --line: rgba(242, 244, 248, 0.12);
  --line-strong: rgba(242, 244, 248, 0.26);

  --red: #ff4d5e;
  --red-deep: #ff7c88;
  --red-soft: rgba(255, 77, 94, 0.14);
  --amber: #ffc24d;
  --gold: #ffd27f;
  --blue: #8fb3ff;
  --blue-soft: rgba(143, 179, 255, 0.14);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 6px 16px rgba(0, 0, 0, 0.45), 0 30px 70px rgba(0, 0, 0, 0.5);
  --glow: radial-gradient(1200px 600px at 80% -10%, rgba(255, 77, 94, 0.16), transparent 60%);
  --glow-blue: radial-gradient(900px 500px at 10% 0%, rgba(143, 179, 255, 0.14), transparent 60%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  background-image: var(--glow), var(--glow-blue);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--red);
  color: #fff;
}

::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--bg-soft);
}
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--red) 55%, transparent);
  border-radius: 8px;
  border: 3px solid var(--bg-soft);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--red);
}

.container {
  width: min(var(--max), 92%);
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red), var(--amber));
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.h-display {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
}

.h-section {
  font-size: clamp(2rem, 4vw, 3rem);
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

.muted {
  color: var(--muted);
}

.accent {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(120deg, var(--red) 20%, var(--amber) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.article {
  max-width: 72ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.7rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--red), var(--red-deep));
  color: #fff;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--red) 40%, transparent);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--red) 45%, transparent);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.62rem 1.2rem;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 1.05rem 2.1rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ---------- Header ---------- */

.site-header {
  /* Dominica header palette — uniform across all sections */
  --bg: #f0f5e6;
  --surface: #ffffff;
  --ink: #1a3a1a;
  --ink-soft: #2d5a2d;
  --muted: #4a6a4a;
  --line: rgba(26, 58, 26, 0.12);
  --line-strong: rgba(26, 58, 26, 0.24);
  --red: #e0282b;
  --red-deep: #a80f12;
  --red-soft: rgba(224, 40, 43, 0.1);
  --amber: #e09a2c;
  --shadow-lg: 0 4px 12px rgba(26, 58, 26, 0.08), 0 24px 60px rgba(26, 58, 26, 0.12);

  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}

html.theme-dark .site-header {
  --bg: #0a1a0a;
  --surface: #122812;
  --ink: #e8f5e8;
  --ink-soft: #b8d8b8;
  --muted: #7a9a7a;
  --line: rgba(232, 245, 232, 0.12);
  --line-strong: rgba(232, 245, 232, 0.26);
  --red: #ff4d5e;
  --red-deep: #ff7c88;
  --red-soft: rgba(255, 77, 94, 0.14);
  --amber: #ffc24d;
  --shadow-lg: 0 6px 16px rgba(0, 0, 0, 0.45), 0 30px 70px rgba(0, 0, 0, 0.5);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--amber));
  color: #fff;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--red) 35%, transparent);
}

.brand-logo {
  display: block;
  height: 44px;
  width: auto;
  flex-shrink: 0;
}

html.theme-dark .brand-logo {
  height: 34px;
  padding: 5px 10px;
  border-radius: 12px;
  background: #f6f3ec;
}

.brand-name {
  color: var(--ink);
}

.brand-name span {
  color: var(--red);
}

.main-nav {
  display: flex;
  gap: 0.2rem;
  margin-inline: auto;
}

.main-nav a {
  position: relative;
  padding: 0.55rem 0.95rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--radius-pill);
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover {
  color: var(--red);
  background: var(--red-soft);
}

.main-nav a.active {
  color: var(--red);
  font-weight: 700;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.15rem;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.theme-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-strong);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.theme-link:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: color-mix(in srgb, var(--amber) 10%, transparent);
}

/* ---------- Clock widget ---------- */
.clock-widget {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  margin-inline: 0.2rem;
  cursor: pointer;
}

.clock-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  width: 130px;
}

.clock-face {
  filter: drop-shadow(0 1px 2px rgba(27, 31, 42, 0.16));
  transition: filter 0.25s ease;
}

/* 3D navbar clock: layered shadows, beveled rim, inner glow */
.clock-main .clock-face {
  filter:
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25))
    drop-shadow(0 2px 3px rgba(0, 0, 0, 0.18))
    drop-shadow(0 4px 8px rgba(27, 31, 42, 0.22));
}

.clock-widget:hover .clock-main .clock-face {
  filter:
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3))
    drop-shadow(0 3px 5px rgba(0, 0, 0, 0.22))
    drop-shadow(0 6px 14px rgba(27, 31, 42, 0.3));
}

/* Beveled outer rim for navbar clock */
.clock-main .clock-outer {
  stroke: rgba(27, 31, 42, 0.55);
  stroke-width: 2.4;
}

/* Inner highlight ring giving a recessed-dial look */
.clock-main .clock-inner {
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 1.2;
}

/* Raised hands with subtle shadow for depth */
.clock-main .clock-hand {
  filter: drop-shadow(0 0.5px 0.5px rgba(0, 0, 0, 0.35));
}

.clock-main .clock-second {
  filter: drop-shadow(0 0.5px 0.5px rgba(0, 0, 0, 0.3));
}

/* Raised pin cap */
.clock-main .clock-pin {
  filter: drop-shadow(0 0.5px 0.8px rgba(0, 0, 0, 0.4));
}

/* Night-mode 3D tweaks: lighter rim, cooler glow */
.clock-main.night .clock-outer {
  stroke: rgba(242, 244, 248, 0.3);
}

.clock-main.night .clock-inner {
  stroke: rgba(255, 255, 255, 0.12);
}

.clock-outer {
  stroke: var(--line-strong);
  stroke-width: 1.6;
}

.clock-inner {
  stroke: var(--line);
  stroke-width: 0.8;
}

.clock-tick {
  stroke: var(--ink-soft);
  stroke-width: 1.4;
  stroke-linecap: round;
}

.clock-tick.major {
  stroke: var(--ink);
  stroke-width: 2.2;
}

.clock-hand {
  stroke: var(--ink);
  stroke-linecap: round;
}

.clock-hour {
  stroke-width: 4;
}

.clock-minute {
  stroke-width: 3;
}

.clock-second {
  stroke: var(--red);
  stroke-width: 1.4;
}

.clock-pin {
  fill: var(--red);
}

/* Night face (18:00-06:00): light ticks/hands on dark face */
.night .clock-tick {
  stroke: rgba(242, 244, 248, 0.5);
}

.night .clock-tick.major {
  stroke: rgba(242, 244, 248, 0.85);
}

.night .clock-hand {
  stroke: #f2f4f8;
}

.night .clock-second {
  stroke: var(--amber);
}

.night .clock-pin {
  fill: var(--amber);
}

/* ---------- Sun symbol (daytime 06:00-18:00) ---------- */
.clock-sun {
  display: none;
}

.sun-glow {
  opacity: 0.8;
}

.sun-body {
  fill: rgba(255, 194, 77, 0.35);
  stroke: #e09a2c;
  stroke-width: 1;
}

.sun-rays {
  stroke: #e09a2c;
  stroke-width: 1.8;
  stroke-linecap: round;
  opacity: 0.85;
}

/* 3D sun for navbar clock: warmer glow, raised body */
.clock-main .sun-glow {
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(255, 194, 77, 0.5));
}

.clock-main .sun-body {
  fill: rgba(255, 210, 127, 0.3);
  stroke: #e09a2c;
  stroke-width: 1.2;
  filter: drop-shadow(0 0.5px 1px rgba(224, 154, 44, 0.4));
}

.clock-main .sun-rays {
  stroke: #ffc24d;
  stroke-width: 2.2;
  opacity: 1;
  filter: drop-shadow(0 0 2px rgba(255, 194, 77, 0.5));
}

.clock-label {
  margin-top: 3px;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- Clock dropdown panel ---------- */
.clock-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.7rem);
  right: 0;
  width: 360px;
  padding: 1rem 1rem 0.85rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  z-index: 80;
}

.clock-panel::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 18px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background: var(--surface);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.clock-widget.open .clock-panel,
.clock-widget:hover .clock-panel {
  display: block;
}

.clock-panel-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 0.85rem;
}

.clock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem 0.5rem;
}

.mini-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.6rem 0.4rem;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--bg-soft) 60%, transparent);
  transition: background 0.18s ease;
}

.mini-clock:hover {
  background: color-mix(in srgb, var(--red-soft) 50%, transparent);
}

.mini-clock .clock-face {
  width: 44px;
  height: 44px;
}

.mini-clock-label {
  margin-top: 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
  white-space: nowrap;
}

.clock-digital {
  margin-top: 0.2rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* ---------- Clock marquee banner (mobile) ---------- */
.clock-banner {
  display: none;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg) 55%, #ffffff);
  border-bottom: 1px solid var(--line);
}

.clock-banner .clock-digital {
  display: none;
}

.clock-banner-track {
  display: flex;
  gap: 1.6rem;
  width: max-content;
  padding: 0.35rem 0;
  animation: clock-banner-scroll 28s linear infinite;
}

@keyframes clock-banner-scroll {
  to {
    transform: translateX(-50%);
  }
}

.clock-banner .mini-clock {
  padding: 0.3rem 0.5rem;
  background: transparent;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(4rem, 9vw, 7.5rem) 0 0;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 30% 40%, color-mix(in srgb, var(--amber) 14%, transparent), transparent 42%),
    radial-gradient(circle at 75% 20%, color-mix(in srgb, var(--red) 16%, transparent), transparent 45%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  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%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-copy .lead {
  margin: 1.4rem 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2.2rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.hero-ticks li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-ticks li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--amber));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 15%, transparent);
}

/* Hero art panel */

.hero-art {
  position: relative;
}

.hero-card {
  position: relative;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 2.2rem;
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
}

.hero-card-stack {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  border: 1px solid var(--line);
  transform: rotate(-3deg) translate(10px, 10px);
  background: linear-gradient(135deg, color-mix(in srgb, var(--red) 12%, transparent), color-mix(in srgb, var(--amber) 12%, transparent));
  z-index: -1;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--red-soft);
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--red) 40%, transparent); }
  55% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--red) 0%, transparent); }
}

.mini-flag {
  display: flex;
  gap: 3px;
  width: 46px;
  height: 30px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
}

.mini-flag span {
  flex: 1;
}

.mini-flag .f-red {
  background: #e0282b;
}

.mini-flag .f-white {
  background: #fff;
}

.mini-flag .f-red-fade {
  background: #b81216;
}

.flag-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.hero-card h3 {
  font-size: 1.7rem;
}

.progress-track {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-top: 1.6rem;
}

.progress-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}

.progress-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--red);
}

.progress-step b {
  font-size: 0.95rem;
}

.progress-step p {
  font-size: 0.88rem;
  color: var(--muted);
}

.score-bar {
  margin-top: 1.5rem;
  padding-top: 1.4rem;
  border-top: 1px dashed var(--line-strong);
}

.score-bar-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.score-track {
  height: 10px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.score-fill {
  height: 100%;
  width: 72%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--red));
}

.hero-note {
  margin-top: 1.6rem;
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---------- Marquee ---------- */

.marquee {
  position: relative;
  margin-top: clamp(3rem, 7vw, 5.5rem);
  padding: 1rem 0;
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll 30s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 2.2rem;
  padding-right: 2.2rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--ink-soft);
}

.marquee-track span::after {
  content: "✦";
  color: var(--red);
  font-size: 0.9rem;
}

/* Desktop: show the program marquee directly under the header; the mid-page
   copy stays hidden. Mobile swaps them (see the 640px block). */
.marquee-top {
  margin-top: 0;
}

.marquee-mid {
  display: none;
}

@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.section-tight {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

/* ---------- IRCC Updates Section ---------- */
.draw-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.draw-stat {
  padding: 0.7rem 0.8rem;
  background: color-mix(in srgb, var(--bg-soft) 60%, transparent);
  border-radius: var(--radius-sm);
  text-align: center;
}

.draw-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.draw-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

.update-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.update-highlight {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.update-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.2rem, 4vw, 3.4rem);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.center .eyebrow {
  justify-content: center;
}

.section-head .eyebrow {
  margin-bottom: 1rem;
}

.section-head h2 {
  margin-bottom: 1rem;
}

.section-head p {
  color: var(--muted);
}

/* ---------- Stats ---------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.stat-card {
  position: relative;
  padding: 1.8rem 1.6rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% -20%;
  height: 60%;
  background: radial-gradient(circle at 50% 100%, color-mix(in srgb, var(--red) 12%, transparent), transparent 70%);
  pointer-events: none;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--red), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.stat-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  gap: 1.4rem;
}

.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  position: relative;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 1.8rem;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--red) 40%, var(--line));
}

.card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--red) 14%, var(--surface)), color-mix(in srgb, var(--amber) 14%, var(--surface)));
  border: 1px solid var(--line);
  color: var(--red);
  transition: transform 0.28s ease;
}

.card:hover .card-icon {
  transform: rotate(-6deg) scale(1.06);
}

.card h3 {
  font-size: 1.28rem;
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--muted);
  font-size: 0.97rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.2rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--red);
}

.card-link:hover {
  color: var(--amber);
}

.card-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.card-link:hover::after {
  transform: translateX(4px);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--red-soft);
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ---------- Feature list ---------- */

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.3rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.feature:hover {
  border-color: color-mix(in srgb, var(--amber) 45%, var(--line));
  transform: translateX(4px);
}

.feature-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--amber) 14%, var(--surface));
  color: var(--gold);
}

.feature b {
  display: block;
  margin-bottom: 0.25rem;
}

.feature p {
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.9rem 1.6rem 1.7rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  counter-increment: step;
}

.step::before {
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(120deg, var(--red), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
}

.step h3 {
  font-size: 1.15rem;
  margin: 1rem 0 0.5rem;
}

.step p {
  font-size: 0.92rem;
  color: var(--muted);
}

.step::after {
  content: "→";
  position: absolute;
  top: 2rem;
  right: -1.05rem;
  z-index: 2;
  font-size: 1.1rem;
  color: var(--amber);
}

.step:last-child::after {
  display: none;
}

/* ---------- Testimonials ---------- */

.testimonial {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4rem;
}

.quote {
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--ink);
  position: relative;
}

.quote::before {
  content: "“";
  font-size: 3.4rem;
  line-height: 0.6;
  color: var(--red);
  opacity: 0.5;
  display: block;
  margin-bottom: 0.6rem;
}

.stars {
  color: var(--amber);
  letter-spacing: 0.15em;
  font-size: 0.9rem;
}

.person {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--line-strong);
}

.avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}

.avatar-red { background: linear-gradient(135deg, var(--red), var(--red-deep)); }
.avatar-blue { background: linear-gradient(135deg, var(--blue), #1a3a66); }
.avatar-amber { background: linear-gradient(135deg, var(--amber), var(--gold)); }

.person b {
  display: block;
  font-size: 0.95rem;
}

.person small {
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---------- CTA banner ---------- */

.cta-banner {
  position: relative;
  border-radius: 28px;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  background: linear-gradient(130deg, color-mix(in srgb, var(--red) 22%, var(--surface)), color-mix(in srgb, var(--amber) 16%, var(--surface)) 60%, var(--surface));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.cta-banner::before {
  content: "🍁";
  position: absolute;
  right: -2rem;
  bottom: -2.5rem;
  font-size: 11rem;
  opacity: 0.12;
  transform: rotate(-12deg);
}

.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-inner h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  max-width: 18ch;
}

.cta-inner p {
  margin-top: 0.7rem;
  color: var(--ink-soft);
  max-width: 52ch;
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 0;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 70% 20%, color-mix(in srgb, var(--red) 15%, transparent), transparent 45%),
    radial-gradient(circle at 20% 80%, color-mix(in srgb, var(--amber) 12%, transparent), transparent 40%);
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.breadcrumb a {
  color: var(--red);
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span::before {
  content: "›";
  margin-right: 0.5rem;
  color: var(--muted);
}

.page-hero h1 {
  max-width: 18ch;
  margin-bottom: 1.2rem;
}

.page-hero .lead {
  margin-bottom: 2.2rem;
}

/* ---------- Team ---------- */

.team-card {
  text-align: center;
}

.team-avatar {
  width: 92px;
  height: 92px;
  margin: 0 auto 1.2rem;
  border-radius: 28px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--amber));
  box-shadow: 0 14px 30px color-mix(in srgb, var(--red) 30%, transparent);
  transform: rotate(-4deg);
  transition: transform 0.28s ease;
}

.team-card:hover .team-avatar {
  transform: rotate(4deg) scale(1.05);
}

.team-avatar.blue { background: linear-gradient(135deg, var(--blue), #1a3a66); }
.team-avatar.amber { background: linear-gradient(135deg, var(--amber), var(--gold)); }
.team-avatar.mix { background: linear-gradient(135deg, #1a3a66, var(--red)); }

.team-role {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red);
  margin: 0.3rem 0 0.2rem;
}

/* ---------- Accordion (FAQ) ---------- */

.faq {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq details[open] {
  border-color: color-mix(in srgb, var(--red) 40%, var(--line));
}

.faq summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform 0.25s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq-body {
  padding: 0 1.4rem 1.3rem;
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- Forms ---------- */

.form {
  display: grid;
  gap: 1.15rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.9rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.98rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 14%, transparent);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%238b92a3' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
}

.field .combo {
  position: relative;
}

.field .combo-list {
  position: absolute;
  top: calc(100% + 0.3rem);
  left: 0;
  right: 0;
  max-height: 15rem;
  overflow-y: auto;
  margin: 0;
  padding: 0.3rem 0;
  list-style: none;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--ink) 16%, transparent);
  z-index: 60;
}

.field .combo-list li {
  padding: 0.55rem 1.05rem;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
}

.field .combo-list li:hover,
.field .combo-list li[aria-selected="true"] {
  background: color-mix(in srgb, var(--red) 10%, transparent);
}

.field .combo-list mark {
  background: none;
  color: var(--red);
  font-weight: 700;
}

.newsletter {
  display: flex;
  gap: 0.6rem;
  max-width: 380px;
}

.newsletter input {
  flex: 1;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.95rem;
}

.newsletter input:focus {
  outline: none;
  border-color: var(--amber);
}

/* ---------- Tables ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

thead th {
  text-align: left;
  padding: 1.05rem 1.3rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  background: color-mix(in srgb, var(--red) 6%, var(--surface));
  border-bottom: 1px solid var(--line);
}

tbody td {
  padding: 1.05rem 1.3rem;
  font-size: 0.96rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr {
  transition: background 0.2s ease;
}

tbody tr:hover {
  background: color-mix(in srgb, var(--amber) 7%, transparent);
}

td b {
  color: var(--ink);
}

.delta {
  font-weight: 700;
  color: var(--red);
}

.pill {
  display: inline-block;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--red-soft);
  color: var(--red);
}

.pill.amber {
  background: color-mix(in srgb, var(--amber) 16%, transparent);
  color: var(--gold);
}

.pill.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

/* ---------- Info cards (contact) ---------- */

.info-card {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.info-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--amber));
  color: #fff;
}

.info-card b {
  display: block;
  margin-bottom: 0.2rem;
}

.info-card p {
  color: var(--muted);
  font-size: 0.93rem;
}

.info-card a {
  color: var(--red);
  font-weight: 600;
}

.info-card a:hover {
  text-decoration: underline;
}

/* ---------- City cards ---------- */

.city-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.city-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.city-sky {
  position: relative;
  height: 150px;
  overflow: hidden;
}

.city-sky svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.city-body {
  padding: 1.5rem;
}

.city-body h3 {
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.city-body h3::after {
  content: "📍";
  font-size: 1rem;
}

.city-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.9rem 0;
}

.city-body p {
  font-size: 0.93rem;
  color: var(--muted);
}

/* ---------- Timeline (about) ---------- */

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  max-width: 720px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--red), var(--amber));
  opacity: 0.5;
}

.tl-item {
  position: relative;
  padding-left: 3.4rem;
}

.tl-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 2px solid var(--red);
  color: var(--red);
  font-weight: 700;
  font-size: 0.82rem;
}

.tl-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
}

.tl-date {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
  margin-bottom: 0.5rem;
}

.tl-item p {
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------- Logo cloud ---------- */

.logo-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.logo-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ---------- Banner split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split-art {
  position: relative;
  padding: 2.4rem;
  border-radius: 28px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--blue) 16%, var(--surface)), color-mix(in srgb, var(--red) 12%, var(--surface)));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.split-art svg {
  width: 100%;
  height: auto;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 55%, var(--bg));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 2.4rem;
  padding: 3.4rem 0 2.6rem;
}

.footer-brand p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 30ch;
}

.footer-brand .footer-org {
  margin-top: 0.6rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* CICC regulator badge shown above the footer on Canada pages */
.cicc-band {
  display: flex;
  justify-content: center;
  padding: 0 0 clamp(2rem, 4vw, 3rem);
}

.cicc-logo {
  width: min(440px, 80vw);
  height: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.1rem;
  box-shadow: var(--shadow-sm);
}

.socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.3rem;
}

.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.socials a:hover {
  transform: translateY(-3px);
  color: var(--red);
  border-color: var(--red);
}

.footer-col h4 {
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}

.footer-col ul {
  display: grid;
  gap: 0.6rem;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.94rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-col a:hover {
  color: var(--red);
  padding-left: 4px;
}

.footer-col p {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 1rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-bottom a {
  color: var(--ink-soft);
  font-weight: 600;
}

.footer-bottom a:hover {
  color: var(--red);
}

/* ---------- Utilities ---------- */

.center {
  text-align: center;
}

.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.spread {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}

/* ---------- Mobile nav ---------- */

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.8rem 1.2rem 1.2rem;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink-soft);
  transition: color 0.2s ease, background 0.2s ease;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--red);
  background: var(--red-soft);
}

.mobile-nav .btn {
  margin-top: 0.6rem;
  justify-content: center;
}

@media (max-width: 1000px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .steps,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .step::after {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .main-nav {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-toggle {
    display: flex;
    order: 99;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  h1,
  h2,
  h3,
  h4 {
    letter-spacing: -0.015em;
  }

  .h-display {
    font-size: clamp(1.9rem, 7.5vw, 2.4rem);
  }

  .h-section {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }

  .lead {
    font-size: 0.95rem;
  }

  .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
  }

  .hero,
  .page-hero {
    padding-top: 2rem;
  }

  .section {
    padding: 2.6rem 0;
  }

  .section-tight {
    padding: 2rem 0;
  }

  .section-head {
    margin-bottom: 1.6rem;
  }

  .section-head h2 {
    margin-bottom: 0.6rem;
  }

  .draw-stats {
    grid-template-columns: 1fr;
  }

  .container {
    width: 90%;
  }

  .btn-lg {
    padding: 0.9rem 1.4rem;
    font-size: 0.95rem;
  }

  .card {
    padding: 1.3rem;
  }

  .card h3 {
    font-size: 1.15rem;
  }

  .card-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 0.9rem;
  }

  .card-grid {
    gap: 1rem;
  }

  .draw-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .updates-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .updates-summary .btn {
    width: 100%;
    justify-content: center;
  }

  .stat-card {
    padding: 1.1rem;
  }

  .stat-num {
    font-size: 1.65rem;
  }

  .stat-label {
    font-size: 0.82rem;
  }

  .stat-sub {
    font-size: 0.74rem;
  }

  .hero-card {
    padding: 1.2rem;
    border-radius: 18px;
    transform: none;
  }

  .hero-card-stack {
    display: none;
  }

  .hero-card h3 {
    font-size: 1.25rem;
  }

  .flag-row {
    margin-bottom: 1rem;
  }

  .progress-track {
    gap: 0.85rem;
    margin-top: 1.1rem;
  }

  .progress-num {
    width: 28px;
    height: 28px;
    font-size: 0.76rem;
  }

  .progress-step b {
    font-size: 0.88rem;
  }

  .progress-step p {
    font-size: 0.8rem;
  }

  .score-bar {
    margin-top: 1rem;
    padding-top: 0.9rem;
  }

  .hero-note {
    margin-top: 1rem;
    font-size: 0.76rem;
  }

  .hero-copy .lead {
    margin: 1rem 0 1.3rem;
  }

  .hero-ticks {
    margin-top: 1.4rem;
    font-size: 0.84rem;
  }

  .marquee {
    margin-top: 2rem;
    padding: 0.7rem 0;
  }

  .marquee-top {
    display: none;
  }

  .marquee-mid {
    display: block;
  }

  .marquee-track span {
    font-size: 1rem;
    gap: 1.6rem;
    padding-right: 1.6rem;
  }

  .brand {
    font-size: 1.2rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .steps,
  .stats-grid,
  .cols-2,
  .cols-3,
  .cols-4,
  .feature-list,
  .form-row {
    grid-template-columns: 1fr;
  }

  .steps {
    gap: 1rem;
  }

  .step {
    padding: 1.4rem 1.2rem 1.3rem;
  }

  .step::before {
    font-size: 2.4rem;
  }

  .feature {
    padding: 1.1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    padding: 2.4rem 0 2rem;
  }

  .split {
    gap: 1.6rem;
  }

  .split-art {
    padding: 1.4rem;
    border-radius: 20px;
  }

  .cta-banner {
    padding: 2rem 1.3rem;
    border-radius: 20px;
  }

  .cta-banner::before {
    font-size: 7rem;
  }

  .cta-inner .btn {
    width: 100%;
    justify-content: center;
  }

  .faq summary {
    padding: 1rem 1.1rem;
    font-size: 0.95rem;
  }

  .faq-body {
    padding: 0 1.1rem 1rem;
    font-size: 0.9rem;
  }

  .form-row {
    gap: 0.9rem;
  }

  .nav-wrap {
    gap: 0.7rem;
  }

  .nav-actions {
    gap: 0.3rem;
  }

  .nav-actions .btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.72rem;
  }

  .theme-link {
    padding: 0.45rem 0.55rem;
    font-size: 0;
  }

  .theme-link svg {
    width: 16px;
    height: 16px;
  }

  .clock-widget {
    display: none;
  }

  .clock-banner {
    display: block;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
    margin-left: -0.2rem;
  }



  .clock-panel {
    width: min(320px, 92vw);
    right: -0.5rem;
  }

  .clock-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .newsletter {
    flex-wrap: wrap;
    max-width: 100%;
  }

  .newsletter .btn {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .container {
    width: 92%;
  }

  .nav-wrap {
    gap: 0.8rem;
  }

  .brand {
    font-size: 1.05rem;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .nav-actions {
    gap: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Shared subdomain components (gateway + assessment pages) ---------- */

.grid {
  display: grid;
  gap: 1.4rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.hero-center {
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 840px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.9rem);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 1.3rem auto 2rem;
}

.hero-center .hero-actions {
  justify-content: center;
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

.cta-box {
  position: relative;
  border-radius: 28px;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  background: linear-gradient(130deg, color-mix(in srgb, var(--red) 22%, var(--surface)), color-mix(in srgb, var(--amber) 16%, var(--surface)) 60%, var(--surface));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: center;
}

.cta-box h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  margin-bottom: 0.7rem;
}

.cta-box p {
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 auto 1.8rem;
}

/* Destination picker cards on the gateway home page */
.dest-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.dest-card .dest-flag {
  font-size: 2rem;
  line-height: 1;
}

.dest-card h3 {
  font-size: 1.35rem;
}

.dest-card p {
  flex: 1;
}

.dest-card .btn {
  margin-top: 0.9rem;
}

@media (max-width: 1000px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid {
    gap: 1rem;
  }
}
