/* ==========================================================================
   Jessie-Claire Immigration Services — futuristic showcase
   No external dependencies. Fonts self-hosted (SIL OFL).
   ========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #070b18;
  --bg-2: #0b1226;
  --surface: rgba(18, 28, 58, 0.55);
  --surface-strong: rgba(22, 34, 70, 0.8);
  --border: rgba(120, 160, 230, 0.18);
  --border-strong: rgba(140, 180, 255, 0.4);
  --text: #eef2fb;
  --text-muted: #a9b5d1;          /* 8.6:1 on --bg */
  --blue: #5480bd;                /* brand blue */
  --blue-bright: #7fb0ff;
  --cyan: #6be4ff;
  --orange: #e68a41;              /* brand orange */
  --orange-bright: #ffb070;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-glow: 0 0 0 1px var(--border), 0 20px 60px -20px rgba(40, 90, 200, 0.45);
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  background-image:
    radial-gradient(1200px 700px at 85% -10%, rgba(84, 128, 189, 0.28), transparent 60%),
    radial-gradient(900px 600px at -10% 40%, rgba(230, 138, 65, 0.12), transparent 60%),
    radial-gradient(900px 700px at 110% 90%, rgba(107, 228, 255, 0.10), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font: 400 1rem/1.65 var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-bright); text-underline-offset: .2em; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
::selection { background: rgba(230, 138, 65, .45); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  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: fixed; left: 16px; top: -60px; z-index: 1000;
  background: var(--orange); color: #111; padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 16px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Icons ---------- */
.icon {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  color: var(--blue-bright);
  display: inline-block; vertical-align: middle;
}
.icon--lg { width: 30px; height: 30px; filter: drop-shadow(0 0 8px rgba(127, 176, 255, .55)); }
.icon--xs { width: 13px; height: 13px; }
.icon--orange { color: var(--orange-bright); filter: drop-shadow(0 0 8px rgba(255, 176, 112, .5)); }

/* ---------- Background layers ---------- */
.cosmos {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -2; pointer-events: none;
}
.grid-overlay {
  position: fixed; inset: auto 0 0 0; height: 55vh; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(127, 176, 255, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 176, 255, .09) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(600px) rotateX(62deg);
  transform-origin: bottom;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  animation: grid-move 6s linear infinite;
}
@keyframes grid-move { to { background-position: 0 60px, 0 0; } }

.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200; }
.progress__bar {
  display: block; height: 100%; width: 100%;
  transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--orange), var(--blue-bright), var(--cyan));
  box-shadow: 0 0 12px var(--cyan);
}

/* ---------- Layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { position: relative; padding: clamp(72px, 11vw, 140px) 0; }
.section--alt::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(11, 18, 38, .75) 18%, rgba(11, 18, 38, .75) 82%, transparent);
}
.section__head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 780px; }
.section__title { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; margin-bottom: .5em; }
.section__title--center { text-align: center; margin-inline: auto; max-width: 860px; }

.kicker {
  font: 600 .8rem/1 var(--font-display); letter-spacing: .22em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 18px; display: flex; align-items: center; gap: 12px;
}
.kicker::before { content: ""; width: 36px; height: 1px; background: currentColor; box-shadow: 0 0 8px currentColor; }
.kicker--orange { color: var(--orange-bright); }
.kicker--center { justify-content: center; }

.gradient-text {
  background: linear-gradient(100deg, var(--blue-bright) 0%, var(--cyan) 45%, var(--blue-bright) 90%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite;
}
.gradient-text--warm { background-image: linear-gradient(100deg, var(--orange) 0%, var(--orange-bright) 45%, var(--orange) 90%); }
@keyframes shine { to { background-position: 200% center; } }

/* ---------- Glass ---------- */
.glass {
  position: relative;
  background: linear-gradient(160deg, rgba(30, 46, 92, .55), rgba(12, 18, 40, .55));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .9);
  isolation: isolate;
}
.glass::after { /* pointer-follow highlight, driven by --mx/--my from JS */
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, -40%), rgba(127, 176, 255, .16), transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.glass:hover::after { opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font: 600 1rem/1 var(--font-display); letter-spacing: .01em; text-decoration: none;
  color: var(--text); border: 1px solid var(--b); cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn .icon { color: currentColor; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn--primary {
  color: #10131d;
  background: linear-gradient(100deg, var(--orange), var(--orange-bright));
  border-color: transparent;
  box-shadow: 0 10px 30px -10px rgba(230, 138, 65, .8), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(230, 138, 65, .95); }
.btn--ghost { background: rgba(127, 176, 255, .06); }
.btn--ghost:hover { background: rgba(127, 176, 255, .14); transform: translateY(-2px); box-shadow: 0 0 24px -6px var(--blue-bright); }
.btn--small { min-height: 42px; padding: 10px 18px; font-size: .92rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(7, 11, 24, .72);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--border);
}
.nav {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto;
}
.nav__brand { display: block; border-radius: 8px; }
.nav__actions { display: flex; align-items: center; gap: 10px; order: 2; }
.nav__menu { order: 1; margin-left: auto; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 12px; border-radius: 12px;
  border: 1px solid var(--border); background: rgba(127, 176, 255, .06);
  color: var(--text); text-decoration: none; font: 600 .9rem/1 var(--font-display); letter-spacing: .06em;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.lang-switch .icon { width: 18px; height: 18px; color: var(--cyan); }
.lang-switch:hover { border-color: var(--border-strong); background: rgba(127, 176, 255, .14); box-shadow: 0 0 18px -6px var(--cyan); }
.nav__logo { width: 150px; height: auto; }
.nav__menu { display: flex; align-items: center; gap: 6px; }
.nav__menu a:not(.btn) {
  position: relative; display: inline-block; padding: 10px 14px; border-radius: 10px;
  color: var(--text-muted); text-decoration: none; font: 500 .95rem/1 var(--font-display);
  transition: color .2s;
}
.nav__menu a:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), var(--cyan));
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__menu a:not(.btn):hover, .nav__menu a.is-active { color: var(--text); }
.nav__menu a:not(.btn):hover::after, .nav__menu a.is-active::after { transform: scaleX(1); }
.nav__menu .btn { margin-left: 10px; }

.nav__toggle {
  display: none; width: 48px; height: 48px; border-radius: 12px;
  background: rgba(127, 176, 255, .08); border: 1px solid var(--border); cursor: pointer; position: relative;
}
.nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after {
  position: absolute; left: 13px; width: 22px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform .3s var(--ease), top .3s var(--ease), opacity .2s;
}
.nav__toggle-bars { top: 23px; }
.nav__toggle-bars::before, .nav__toggle-bars::after { content: ""; left: 0; }
.nav__toggle-bars::before { top: -7px; }
.nav__toggle-bars::after { top: 7px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1100px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px var(--gutter) 24px;
    max-height: calc(100svh - var(--header-h)); overflow-y: auto;
    background: #070b18;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .3s var(--ease), opacity .3s, visibility 0s .3s;
  }
  .nav__menu.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav__menu a:not(.btn) { padding: 14px 8px; font-size: 1.1rem; }
  .nav__menu a:not(.btn)::after { left: 8px; right: auto; width: 40px; }
  .nav__menu .btn { margin: 10px 0 0; }
  .nav__logo { width: 124px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px;
  width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto;
  padding: calc(var(--header-h) + 40px) 0 90px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(127, 176, 255, .06);
  font: 500 .82rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(230, 138, 65, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(230, 138, 65, 0); } 100% { box-shadow: 0 0 0 0 rgba(230, 138, 65, 0); } }
.hero__title { font-size: clamp(2.6rem, 7vw, 5.6rem); font-weight: 700; letter-spacing: -0.035em; margin-bottom: 28px; }
.hero__line { display: block; }
.hero__line--muted { color: var(--text-muted); font-weight: 400; font-size: .62em; margin-top: .25em; letter-spacing: -0.02em; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-muted); max-width: 580px; margin-bottom: 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__chips li {
  font-size: .88rem; color: var(--text-muted);
  padding: 8px 14px; border-radius: 10px; border: 1px dashed var(--border-strong);
}

.hero__visual { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; }
.hex-orbit { position: absolute; inset: 0; display: grid; place-items: center; transform-style: preserve-3d; }
.hex-rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring { fill: none; stroke: url(#g-ring); stroke-linejoin: round; transform-origin: 100px 100px; transform-box: view-box; }
.ring--1 { stroke-width: 1.2; stroke-dasharray: 60 22; opacity: .9; animation: spin 36s linear infinite, dash 9s linear infinite; filter: drop-shadow(0 0 4px rgba(230, 138, 65, .7)); }
.ring--2 { stroke-width: .8; stroke-dasharray: 4 6; opacity: .55; animation: spin 28s linear infinite reverse; }
.ring--3 { stroke-width: 2; opacity: .18; animation: spin 60s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -164; } }
@keyframes spin { to { transform: rotate(360deg); } }
.hex-orbit picture { position: relative; width: 70%; z-index: 1; }
.hex-orbit__logo {
  position: relative; width: 100%; height: auto;
  filter: drop-shadow(0 10px 40px rgba(84, 128, 189, .55));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-14px); } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; translate: -50% 0;
  width: 28px; height: 46px; border-radius: 16px; border: 1.5px solid var(--border-strong);
}
.scroll-cue__dot { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cyan); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: left; padding-top: calc(var(--header-h) + 24px); }
  .hero__visual { order: -1; max-width: 340px; }
  .scroll-cue { display: none; }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; border-block: 1px solid var(--border);
  background: rgba(11, 18, 38, .6);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track span {
  padding: 22px 28px; white-space: nowrap;
  font: 600 clamp(1rem, 2vw, 1.35rem)/1 var(--font-display); letter-spacing: .02em; color: var(--text-muted);
}
.marquee__track span::after { content: "⬡"; margin-left: 56px; color: var(--orange); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split__text p { color: var(--text-muted); font-size: 1.08rem; }
.about__fig { margin: 0; padding: 10px; overflow: hidden; }
.about__fig img { width: 100%; height: auto; border-radius: calc(var(--radius) - 6px); }
.stack { display: grid; gap: 16px; }
.stack--row { grid-template-columns: repeat(3, 1fr); margin-top: clamp(32px, 5vw, 56px); }
.stack li { display: flex; gap: 18px; align-items: flex-start; padding: 24px; }
.stack h3 { font-size: 1.2rem; margin-bottom: 6px; }
.stack p { margin: 0; color: var(--text-muted); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .stack--row { grid-template-columns: 1fr; } }

/* ---------- Journey (illustrations) ---------- */
.journey { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.journey__card { overflow: hidden; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.journey__card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-glow); }
.journey__fig { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.journey__fig img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.journey__card:hover .journey__fig img { transform: scale(1.05); }
.journey__body { position: relative; padding: 24px 24px 28px; }
.journey__step { position: absolute; top: -22px; right: 20px; width: 44px; height: 44px; display: grid; place-items: center;
  clip-path: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
  background: linear-gradient(140deg, var(--orange), var(--blue)); font: 700 .95rem/1 var(--font-display); color: #fff; }
.journey__body h3 { font-size: 1.35rem; margin-bottom: 8px; }
.journey__body p { margin: 0; color: var(--text-muted); }
@media (max-width: 900px) { .journey { grid-template-columns: 1fr; max-width: 560px; } }

/* ---------- Mission ---------- */
.mission { text-align: center; }
.mission__quote { margin: 0 auto; max-width: 1000px; }
.mission__quote p {
  font: 500 clamp(1.5rem, 3.4vw, 2.6rem)/1.3 var(--font-display); letter-spacing: -0.02em; margin: 0;
}
.mission__quote em { font-style: normal; color: var(--orange-bright); text-shadow: 0 0 24px rgba(230, 138, 65, .45); }
.mission__tagline {
  margin-top: 36px; display: inline-block; padding: 12px 22px; border-radius: 999px;
  border: 1px solid var(--border-strong); color: var(--cyan);
  font: 600 .9rem/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase;
}

/* ---------- Services grid ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.services--4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.service {
  display: flex; flex-direction: column; gap: 18px; padding: 24px 22px; min-height: 150px;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.service .icon {
  width: 46px; height: 46px; padding: 11px; border-radius: 14px;
  background: rgba(127, 176, 255, .1); border: 1px solid var(--border);
  box-shadow: inset 0 0 18px rgba(127, 176, 255, .15);
}
.service--warm .icon { color: var(--orange-bright); background: rgba(230, 138, 65, .1); box-shadow: inset 0 0 18px rgba(230, 138, 65, .15); }
.service h3 { font-size: 1.08rem; font-weight: 600; margin-top: auto; }
.service:hover { border-color: var(--border-strong); box-shadow: var(--shadow-glow); }
.service--warm:hover { box-shadow: 0 0 0 1px rgba(230, 138, 65, .35), 0 20px 60px -20px rgba(230, 138, 65, .45); }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature { padding: 30px 26px; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.feature:hover { border-color: var(--border-strong); box-shadow: var(--shadow-glow); }
.feature__num { position: absolute; top: 20px; right: 22px; font: 700 .85rem/1 var(--font-display); color: rgba(127, 176, 255, .45); letter-spacing: .1em; }
.feature .icon { margin-bottom: 22px; }
.feature h3 { font-size: 1.25rem; margin-bottom: 10px; }
.feature p { color: var(--text-muted); margin: 0; }

/* ---------- Expertise ---------- */
.expertise { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.exp { display: flex; gap: 20px; padding: 30px; align-items: flex-start; }
.exp h3 { font-size: 1.3rem; margin-bottom: 8px; }
.exp p { margin: 0; color: var(--text-muted); }
@media (max-width: 760px) { .expertise { grid-template-columns: 1fr; } }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; gap: 22px; max-width: 860px; isolation: isolate; }
.timeline::before, .timeline::after {
  content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; z-index: 0;
}
.timeline::before { background: var(--border); }
.timeline::after {
  background: linear-gradient(var(--orange), var(--cyan));
  box-shadow: 0 0 14px var(--cyan);
  transform-origin: top; transform: scaleY(var(--line, 0));
}
.timeline__step { position: relative; z-index: 1; display: grid; grid-template-columns: 56px 1fr; gap: 22px; align-items: start; }
.timeline__node {
  position: relative; z-index: 1; width: 56px; height: 56px; display: grid; place-items: center;
  clip-path: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
  background: linear-gradient(140deg, var(--orange), var(--blue));
  font: 700 1.2rem/1 var(--font-display); color: #fff;
}
.timeline__card { padding: 24px 26px; }
.timeline__card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.timeline__card p { margin: 0; color: var(--text-muted); }

/* ---------- Contact ---------- */
.contact__panel { padding: 0 0 clamp(28px, 5vw, 56px); overflow: hidden; border-color: var(--border-strong); }
.contact__panel::before {
  content: ""; position: absolute; inset: -40%; z-index: -2;
  background: conic-gradient(from 90deg, rgba(230, 138, 65, .14), transparent 25%, rgba(107, 228, 255, .12) 50%, transparent 75%, rgba(230, 138, 65, .14));
  animation: spin 30s linear infinite;
}
.contact__banner { position: relative; height: clamp(160px, 26vw, 300px); overflow: hidden; }
.contact__banner img { width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 45%, transparent 100%); }
.contact__head { text-align: center; padding: 0 clamp(20px, 5vw, 64px); margin-top: -40px; position: relative; }
.contact__lead { color: var(--text-muted); max-width: 720px; margin: 0 auto 40px; font-size: 1.08rem; }
.contact__layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(20px, 3vw, 40px); padding: 0 clamp(20px, 5vw, 56px); align-items: start; }
.contact__subtitle { font-size: 1.3rem; margin-bottom: 18px; }
.contact__side { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 960px) { .contact__side { position: static; } }
.contact__grid { display: grid; gap: 14px; }
.contact__item {
  display: flex; align-items: center; gap: 16px; padding: 20px 20px;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: rgba(7, 11, 24, .55); color: var(--text); text-decoration: none;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.contact__item > span, .contact__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.contact__item:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-glow); }
.contact__label { display: inline-flex; align-items: center; gap: 6px; font: 600 .72rem/1 var(--font-display); letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); }
.contact__label .icon { color: currentColor; }
.contact__value { font: 600 1.05rem/1.4 var(--font-display); }
.contact__value--wrap { overflow-wrap: anywhere; }
@media (max-width: 960px) { .contact__layout { grid-template-columns: 1fr; } }

/* ---------- Contact form ---------- */
.cform {
  position: relative; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius);
  background: rgba(7, 11, 24, .6); border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.cform__intro { color: var(--text-muted); font-size: .9rem; margin: -8px 0 20px; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .cform__row { grid-template-columns: 1fr; } }
.cform__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field { position: relative; margin-bottom: 14px; }
.field__input {
  width: 100%; min-height: 58px; padding: 24px 16px 8px;
  font: 500 1rem/1.4 var(--font-body); color: var(--text);
  background: rgba(18, 28, 58, .55); border: 1px solid var(--border); border-radius: 12px;
  outline: none; appearance: none; -webkit-appearance: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field__input:hover { border-color: rgba(140, 180, 255, .32); }
.field__input:focus { border-color: var(--cyan); background: rgba(22, 34, 70, .75); box-shadow: 0 0 0 3px rgba(107, 228, 255, .18), 0 0 24px -6px var(--cyan); }
textarea.field__input { min-height: 150px; resize: vertical; padding-top: 28px; }
.field__label {
  position: absolute; left: 17px; top: 19px; pointer-events: none;
  color: var(--text-muted); font: 500 1rem/1.2 var(--font-body);
  transform-origin: left top; transition: transform .2s var(--ease), color .2s;
}
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label,
.field__label--static { transform: translateY(-11px) scale(.78); color: var(--cyan); }
.field__label span { color: var(--orange-bright); }
.field--select .field__input { padding-right: 44px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--cyan) 50%), linear-gradient(135deg, var(--cyan) 50%, transparent 50%);
  background-position: calc(100% - 22px) 27px, calc(100% - 16px) 27px; background-size: 6px 6px; background-repeat: no-repeat; }
.field--select option, .field--select optgroup { background: #0b1226; color: var(--text); }
.field__meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 6px; }
.field__hint { margin: 0; font-size: .82rem; color: var(--text-muted); }
.field__count { font-size: .78rem; color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.field__error { margin: 6px 2px 0; font-size: .84rem; color: #ff9a8a; min-height: 0; }
.field__error:empty { display: none; }
.field.is-invalid .field__input, .check.is-invalid .check__box { border-color: #ff7a66; box-shadow: 0 0 0 3px rgba(255, 122, 102, .15); }
.field.is-valid .field__input { border-color: rgba(94, 227, 154, .55); }

.pills { border: 0; margin: 4px 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pills__legend { padding: 0; margin-bottom: 10px; font: 500 .9rem/1.2 var(--font-body); color: var(--text-muted); width: 100%; }
.pills__legend span { color: var(--orange-bright); }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill > span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(18, 28, 58, .55); color: var(--text-muted);
  font: 500 .95rem/1 var(--font-display); transition: all .2s var(--ease);
}
.pill > span .icon { width: 18px; height: 18px; color: currentColor; }
.pill:hover > span { border-color: var(--border-strong); color: var(--text); }
.pill input:checked + span { color: #10131d; background: linear-gradient(100deg, var(--blue-bright), var(--cyan)); border-color: transparent; box-shadow: 0 8px 24px -10px var(--cyan); }
.pill input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 3px; }
.pills--small .pill > span { min-height: 40px; padding: 8px 14px; font-size: .88rem; }

.check { position: relative; margin: 6px 0 22px; }
.check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.check label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; color: var(--text-muted); font-size: .92rem; line-height: 1.5; }
.check .req { color: var(--orange-bright); }
.check__box { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; border: 1px solid var(--border-strong); background: rgba(18, 28, 58, .55); display: grid; place-items: center; transition: all .2s; }
.check__box .icon { width: 14px; height: 14px; color: #10131d; stroke-width: 3; opacity: 0; transform: scale(.4); transition: all .2s var(--ease); }
.check input:checked + label .check__box { background: linear-gradient(135deg, var(--orange), var(--orange-bright)); border-color: transparent; }
.check input:checked + label .check__box .icon { opacity: 1; transform: none; }
.check input:focus-visible + label .check__box { outline: 2px solid var(--cyan); outline-offset: 3px; }

.cform__submit { width: 100%; min-height: 54px; font-size: 1.05rem; }
.cform__submit .icon { color: currentColor; }
.cform__submit[disabled] { opacity: .75; cursor: progress; }
.cform__submit.is-loading .icon { animation: send 1s var(--ease) infinite; }
@keyframes send { 50% { transform: translate(4px, -4px); } }
.cform__status { margin-top: 16px; }
.cform__status:empty { display: none; }
.cform__status .notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: .95rem; }
.cform__status .notice .icon { width: 20px; height: 20px; color: currentColor; margin-top: 1px; }
.notice--ok { color: #9ff0c4; background: rgba(94, 227, 154, .1); border: 1px solid rgba(94, 227, 154, .35); }
.notice--err { color: #ffb4a8; background: rgba(255, 122, 102, .1); border: 1px solid rgba(255, 122, 102, .35); }
.notice--info { color: var(--blue-bright); background: rgba(127, 176, 255, .1); border: 1px solid rgba(127, 176, 255, .35); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 48px 0 40px; background: rgba(7, 11, 24, .8); }
.footer__inner { display: grid; grid-template-columns: auto 1fr; gap: 24px 40px; align-items: center; }
.footer__logo { width: 150px; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 20px; }
.footer__links a { color: var(--text-muted); text-decoration: none; padding: 6px 0; display: inline-block; }
.footer__links a:hover { color: var(--text); }
.footer__legal { grid-column: 1 / -1; margin: 0; padding-top: 24px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--text-muted); }
@media (max-width: 640px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { justify-content: flex-start; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px var(--gutter); }
.notfound__code { font: 700 clamp(5rem, 20vw, 11rem)/1 var(--font-display); letter-spacing: -0.05em; margin-bottom: 10px; }
.notfound p { color: var(--text-muted); margin-bottom: 30px; }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.card-tilt { transform-style: preserve-3d; will-change: transform; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

/* ---------- Print ---------- */
@media print {
  .cosmos, .grid-overlay, .progress, .site-header, .marquee, .scroll-cue, .hero__visual { display: none !important; }
  body { background: #fff; color: #000; }
  .glass { background: none; border: 1px solid #ccc; box-shadow: none; backdrop-filter: none; }
  .gradient-text { color: #000; background: none; }
  .js .reveal { opacity: 1; transform: none; }
}
.notfound__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Photos ---------- */
.about__fig picture, .journey__fig picture, .contact__banner picture { display: block; width: 100%; height: 100%; }
.about__fig img { aspect-ratio: 4 / 3; object-fit: cover; }
.contact__banner { height: clamp(180px, 30vw, 380px); }
.contact__banner img { object-position: 50% 45%; }
.journey__fig { position: relative; }
.journey__fig::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(12, 18, 40, .55)); }

/* ---------- Dual logo (one per theme) ---------- */
.logo-v { display: block; }
[data-theme="light"] .logo-v--dark, [data-theme="dark"] .logo-v--light, html:not([data-theme]) .logo-v--dark { display: none; }
.hex-orbit .logo-v { position: relative; width: 70%; z-index: 1; }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  position: relative; width: 44px; height: 42px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--border); background: rgba(127, 176, 255, .06); color: var(--text);
  display: grid; place-items: center; transition: border-color .2s, background .2s, box-shadow .2s;
}
.theme-toggle:hover { border-color: var(--border-strong); box-shadow: 0 0 18px -6px var(--cyan); }
.theme-toggle .icon { position: absolute; width: 20px; height: 20px; transition: transform .45s var(--ease), opacity .3s; }
.theme-toggle__moon { color: #2f63b5; }
.theme-toggle__sun { color: #ffc93c; }
[data-theme="light"] .theme-toggle__sun, [data-theme="dark"] .theme-toggle__moon { opacity: 0; transform: rotate(-90deg) scale(.5); }

/* ---------- Canada section ---------- */
.section__lead { color: var(--text-muted); font-size: 1.1rem; max-width: 720px; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat { padding: 26px 22px; display: flex; flex-direction: column; gap: 8px; }
.stat__num { font: 700 clamp(2rem, 3.6vw, 2.8rem)/1 var(--font-display); letter-spacing: -0.03em;
  background: linear-gradient(100deg, var(--orange), var(--orange-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { color: var(--text); font-weight: 500; line-height: 1.45; }
.stat__src { margin-top: auto; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.perk { padding: 28px 26px; }
.perk .icon { margin-bottom: 18px; }
.perk h3 { font-size: 1.2rem; margin-bottom: 8px; }
.perk p { margin: 0; color: var(--text-muted); }
.cta-band {
  margin-top: 28px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius);
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  background: linear-gradient(120deg, rgba(230, 138, 65, .22), rgba(84, 128, 189, .22));
  border: 1px solid var(--border-strong);
}
.cta-band__title { font: 700 clamp(1.4rem, 2.6vw, 2rem)/1.15 var(--font-display); margin-bottom: 8px; }
.cta-band__text p:last-child { margin: 0; color: var(--text-muted); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.cta-band__actions .icon { color: currentColor; }
.canada__sources { margin-top: 18px; color: var(--text-muted); font-size: .88rem; }
.canada__sources summary { cursor: pointer; display: inline-block; padding: 6px 0; font-weight: 600; }
.canada__sources ul { list-style: disc; padding-left: 20px; margin: 8px 0 0; display: grid; gap: 4px; }
.canada__sources a { color: var(--blue-bright); }
.canada__note { margin: 8px 0 0; }
@media (max-width: 1000px) { .stats { grid-template-columns: repeat(2, 1fr); } .perks { grid-template-columns: repeat(2, 1fr); } .cta-band { grid-template-columns: 1fr; } .cta-band__actions { justify-content: flex-start; } }
@media (max-width: 600px) { .stats, .perks { grid-template-columns: 1fr; } .cta-band__actions .btn { width: 100%; } }

/* ---------- Contact banner maple leaf ---------- */
.contact__banner { position: relative; }
.contact__leaf {
  position: absolute; left: 50%; top: 42%; width: clamp(64px, 9vw, 110px); height: auto; translate: -50% -50%;
  fill: #e5352b; filter: drop-shadow(0 0 18px rgba(255, 90, 60, .75)) drop-shadow(0 6px 14px rgba(0, 0, 0, .35));
  animation: leaf-glow 4s ease-in-out infinite;
}
@keyframes leaf-glow { 50% { filter: drop-shadow(0 0 30px rgba(255, 90, 60, .95)) drop-shadow(0 6px 14px rgba(0, 0, 0, .35)); transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .contact__leaf { animation: none; } }
