/* ==========================================================================
   Migration Vision — v3 visual layer
   Category colours, subclass ticker, characters, stamp detail, motion,
   tinted sections to reduce white. Loaded after components.css.
   ========================================================================== */

:root {
  /* Category accents on the Migration Vision palette: blue family + teal + neutrals */
  --cat-study: #095ae9;
  --cat-skilled: #1a56db;
  --cat-employer: #0b192d;
  --cat-family: #0d9488;   /* teal */
  --cat-other: #6b7280;
  --sun: #f5b942;
}

/* ---------- tighter, tinted sections (less white) ---------- */
.section { padding: 76px 0; }
#about.section {
  background:
    radial-gradient(700px 360px at 105% 0%, rgba(161, 205, 219, 0.28), transparent 60%),
    linear-gradient(180deg, #fff, var(--mist-10));
}
#visas.section {
  background:
    radial-gradient(800px 400px at -5% 100%, rgba(13, 148, 136, 0.08), transparent 55%),
    radial-gradient(900px 420px at 105% 0%, rgba(9, 90, 233, 0.12), transparent 60%),
    var(--cloud);
}
#team.section {
  background:
    radial-gradient(700px 380px at -5% 0%, rgba(9, 90, 233, 0.1), transparent 55%),
    linear-gradient(180deg, var(--mist-10), #fff);
}
#contact.section { background: linear-gradient(180deg, #fff, var(--mist-10) 80%); }

/* ---------- subclass ticker (all visas, scrolling route board) ---------- */
.ticker {
  background: var(--navy-ink);
  border-top: 1px solid rgba(161, 205, 219, 0.18);
  padding: 18px 0;
  overflow: hidden;
  position: relative;
}
.ticker::before, .ticker::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--navy-ink), transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, var(--navy-ink), transparent); }
.ticker-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 14px;
}
.ticker-label .blink {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 8px;
  animation: blink 1.6s ease infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.ticker-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: ticker-scroll 48s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tk {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(161, 205, 219, 0.25);
  font-size: 13.5px;
  font-weight: 600;
  color: #d8e8f2;
  transition: transform 0.15s ease, background 0.15s ease;
}
.tk:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.12); color: #fff; }
.tk .tkc {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 6px;
  color: #fff;
}
.tk[data-cat="study"] .tkc { background: var(--cat-study); }
.tk[data-cat="skilled"] .tkc { background: var(--cat-skilled); }
.tk[data-cat="employer"] .tkc { background: #4a5f93; }
.tk[data-cat="family"] .tkc { background: var(--cat-family); }
.tk[data-cat="other"] .tkc { background: var(--cat-other); }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .ticker-track .tk-dup { display: none; }
}
/* ticker sits between hero and stats band — cancel the hero-overlap pull */
.ticker + .wrap .stats-band { margin-top: 30px; }

/* ---------- service cards: icon tiles + colour accents ---------- */
.svc { padding-top: 26px; }
.svc::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--accent, var(--sky));
}
.svc .svc-ico {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 26px;
  margin-bottom: 16px;
  background: color-mix(in srgb, var(--accent, var(--sky)) 13%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent, var(--sky)) 28%, #fff);
  transition: transform 0.2s ease;
}
.svc:hover .svc-ico { transform: scale(1.08) rotate(-4deg); }
.svc[data-accent="study"] { --accent: var(--cat-study); }
.svc[data-accent="skilled"] { --accent: var(--cat-skilled); }
.svc[data-accent="family"] { --accent: var(--cat-family); }
.svc[data-accent="employer"] { --accent: var(--cat-employer); }
.svc[data-accent="parent"] { --accent: var(--sun); }
.svc[data-accent="other"] { --accent: var(--cat-other); }

/* ---------- tickets: category colour coding ---------- */
.ticket { border-left: 4px solid var(--tcat, var(--line)); }
.ticket[data-cat="study"] { --tcat: var(--cat-study); }
.ticket[data-cat="skilled"] { --tcat: var(--cat-skilled); }
.ticket[data-cat="employer"] { --tcat: var(--cat-employer); }
.ticket[data-cat="family"] { --tcat: var(--cat-family); }
.ticket[data-cat="other"] { --tcat: var(--cat-other); }
.ticket .code-chip {
  background: color-mix(in srgb, var(--tcat, var(--blue)) 12%, #fff);
  border-color: color-mix(in srgb, var(--tcat, var(--blue)) 30%, #fff);
  color: color-mix(in srgb, var(--tcat, var(--blue)) 80%, #000);
}
.visa-tab[data-cat="study"].active { background: var(--cat-study); border-color: var(--cat-study); }
.visa-tab[data-cat="skilled"].active { background: var(--cat-skilled); border-color: var(--cat-skilled); }
.visa-tab[data-cat="employer"].active { background: var(--cat-employer); border-color: var(--cat-employer); }
.visa-tab[data-cat="family"].active { background: var(--cat-family); border-color: var(--cat-family); }
.visa-tab[data-cat="other"].active { background: var(--cat-other); border-color: var(--cat-other); }

/* ---------- trust strip: coloured icon tiles ---------- */
.strip { background: linear-gradient(180deg, var(--mist-10), #fff); }
.strip .s-item:nth-child(1) .ico { background: rgba(13, 148, 136, 0.14); color: var(--green-dark); }
.strip .s-item:nth-child(2) .ico { background: rgba(9, 90, 233, 0.14); color: var(--blue); }
.strip .s-item:nth-child(3) .ico { background: rgba(245, 185, 66, 0.18); color: #b07d14; }
.strip .s-item:nth-child(4) .ico { background: rgba(49, 66, 105, 0.1); color: var(--navy); }

/* ---------- characters: bird mascot ---------- */
.mv-bird { position: absolute; pointer-events: none; }
.mv-bird .wing { transform-origin: 55% 45%; animation: flap 2.6s ease-in-out infinite; }
.bob { animation: bob 5s ease-in-out infinite; }
@keyframes flap { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-16deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) {
  .mv-bird .wing, .bob, .stamp { animation: none !important; }
}

/* about bird perch */
.about-bird { top: -34px; right: 36px; width: 92px; height: 92px; }
@media (max-width: 700px) { .about-bird { width: 64px; height: 64px; top: -22px; right: 14px; } }

/* ---------- passport stamp ---------- */
.stamp {
  position: absolute;
  width: 118px; height: 118px;
  opacity: 0.9;
  animation: stamp-spin 26s linear infinite;
}
@keyframes stamp-spin { to { transform: rotate(360deg); } }
.commit-card { position: relative; overflow: hidden; }
.commit-card .stamp { right: -16px; top: -16px; opacity: 0.5; }
.cta-band .stamp { right: 26px; bottom: -34px; top: auto; opacity: 0.35; width: 150px; height: 150px; }

/* ---------- hero polish: aurora + plane window glow ---------- */
.hero { isolation: isolate; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 320px at 18% 18%, rgba(9, 90, 233, 0.16), transparent 60%),
    radial-gradient(420px 280px at 70% 80%, rgba(13, 148, 136, 0.1), transparent 60%);
  z-index: -1;
  animation: aurora 12s ease-in-out infinite alternate;
}
@keyframes aurora { from { opacity: 0.5; } to { opacity: 1; } }

/* pass card subtle hover lift */
.pass { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.pass:hover { transform: translateY(-4px) rotate(-0.4deg); box-shadow: 0 26px 60px rgba(10, 20, 40, 0.4); }

/* ---------- section heads: stamp-style eyebrow chip ---------- */
.section-head .eyebrow {
  background: #fff;
  border: 1.5px dashed var(--mist);
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
}
.section.navy .section-head .eyebrow,
.section.navy .eyebrow {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px dashed rgba(161, 205, 219, 0.4);
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
}

/* ---------- team cards: colour halo behind photos ---------- */
.member .photo { position: relative; }
.member .photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(49, 66, 105, 0.18));
}
.member:nth-child(1) { border-top: 5px solid var(--cat-skilled); }
.member:nth-child(2) { border-top: 5px solid var(--cat-family); }
.member:nth-child(3) { border-top: 5px solid var(--sun); }

/* ---------- post cards: coloured spine ---------- */
.post-card { border-left: 5px solid var(--sky); }
.post-card:nth-child(2n) { border-left-color: var(--green); }

/* ---------- why-list ticks: alternate colours ---------- */
.why-list li:nth-child(2n) .tick { background: rgba(9, 90, 233, 0.12); color: var(--blue); }
.why-list li:nth-child(3n) .tick { background: rgba(245, 185, 66, 0.18); color: #b07d14; }

/* ---------- steps: coloured nodes ---------- */
.step:nth-child(1) .node { border-color: var(--cat-study); }
.step:nth-child(1) .node svg { stroke: var(--cat-study); }
.step:nth-child(2) .node { border-color: var(--sun); }
.step:nth-child(2) .node svg { stroke: var(--sun); }
.step:nth-child(3) .node { border-color: var(--blue-soft); }
.step:nth-child(3) .node svg { stroke: var(--blue-soft); }
.step:nth-child(4) .node { border-color: var(--green); }
.step:nth-child(4) .node svg { stroke: var(--green); }
.step .node { animation: bob 6s ease-in-out infinite; }
.step:nth-child(2) .node { animation-delay: 0.7s; }
.step:nth-child(3) .node { animation-delay: 1.4s; }
.step:nth-child(4) .node { animation-delay: 2.1s; }

/* ---------- faq: colour dots ---------- */
.faq-item { border-left: 4px solid var(--mist); }
.faq-item.open { border-left-color: var(--green); }

/* ---------- inner page hero: floating codes ---------- */
.page-hero .code-chip { animation: bob 7s ease-in-out infinite; }
.page-hero .code-chip:nth-child(2) { animation-delay: 0.9s; }
.page-hero .code-chip:nth-child(3) { animation-delay: 1.8s; }

/* ---------- aside cards: colour spines ---------- */
.aside-card:not(.navy) { border-top: 4px solid var(--sky); }
.aside-card:not(.navy):last-child { border-top-color: var(--green); }

/* ---------- blog index: weekly cadence ---------- */
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-soft);
}
.post-meta .pm-date::before { content: "📅 "; }
.post-meta .pm-read::before { content: "· "; color: var(--mist); }
.post-card[hidden] { display: none; }
.follow-band {
  margin-top: 40px;
  background: linear-gradient(120deg, var(--mist-10), #fff 60%);
  border: 1.5px dashed var(--mist);
  border-radius: var(--radius-lg);
  padding: 26px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.follow-band h3 { font-size: 19px; margin-bottom: 2px; }
.follow-band p { margin: 0; color: var(--text-soft); font-size: 14.5px; }
.follow-band .socials { margin-top: 0; }

/* ---------- typography polish ---------- */
.article { font-size: 17px; line-height: 1.75; }
.article h2 { letter-spacing: 0; }
.article li { margin-bottom: 8px; }
.section-head h2 { letter-spacing: 0; }
.hero h1 { letter-spacing: 0; }

/* ---------- footer divider wave ---------- */
.footer { position: relative; }
.footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--cat-study), var(--cat-skilled), var(--cat-family), var(--sun), var(--cat-study));
  background-size: 300% 100%;
  animation: rainbow-slide 14s linear infinite;
}
@keyframes rainbow-slide { to { background-position: 300% 0; } }
@media (prefers-reduced-motion: reduce) { .footer::before { animation: none; } }

/* ==========================================================================
   v4 — photography (service banners, destinations band, CTA background)
   ========================================================================== */

/* service card photo banner */
.svc { padding-top: 0; }
.svc .svc-photo {
  position: relative;
  height: 158px;
  margin: 0 -30px 22px;
  overflow: hidden;
}
.svc .svc-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.svc:hover .svc-photo img { transform: scale(1.06); }
.svc .svc-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,25,45,0) 40%, rgba(11,25,45,0.45));
}
.svc .svc-photo .svc-ico {
  position: absolute;
  left: 24px; bottom: -26px;
  margin: 0;
  z-index: 2;
  background: #fff;
  box-shadow: var(--shadow-md);
}
.svc::before { z-index: 3; }
.svc-body { padding: 30px 30px 32px; }
.svc-body .codes { margin-top: 8px; }

/* destinations band */
.destinations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dest {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
  box-shadow: var(--shadow-sm);
}
.dest img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.dest:hover img { transform: scale(1.07); }
.dest::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,25,45,0.05) 30%, rgba(11,25,45,0.82));
}
.dest .dest-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 24px 26px;
  color: #fff;
}
.dest .dest-cap b { font-family: var(--font-display); font-size: 22px; display: block; }
.dest .dest-cap span { font-size: 14px; color: #cfe0f5; }
.dest .dest-tag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(255,255,255,0.92); color: var(--navy-ink);
  padding: 5px 12px; border-radius: 999px;
}

/* CTA band background image */
.cta-band.has-photo { position: relative; overflow: hidden; }
.cta-band.has-photo .cta-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.cta-band.has-photo::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(120deg, rgba(11,25,45,0.92), rgba(9,90,233,0.72));
}
.cta-band.has-photo > * { position: relative; z-index: 2; }

/* page-hero background image (visa/blog heroes) */
.page-hero.has-photo { position: relative; }
.page-hero.has-photo .ph-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; opacity: 0.28;
}
.page-hero.has-photo .wrap { position: relative; z-index: 2; }

@media (max-width: 900px) { .destinations { grid-template-columns: 1fr; } }

/* ==========================================================================
   v5 - floating mascot companion (fixed, flies with scroll)
   ========================================================================== */
.mv-mascot {
  --m-face: -1;
  --m-drift: 0px;
  --m-tilt: 0deg;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  width: 108px;
  height: 108px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transform: translateY(var(--m-drift)) rotate(var(--m-tilt));
  transition: filter 0.25s ease;
  filter: drop-shadow(0 10px 18px rgba(11, 25, 45, 0.24));
  animation: m-hover 3.4s ease-in-out infinite;
}
.mv-mascot svg { width: 100%; height: 100%; display: block; transform: scaleX(var(--m-face)); transition: transform 0.3s ease; overflow: visible; }
.mv-mascot:hover { filter: drop-shadow(0 16px 26px rgba(37, 82, 230, 0.34)); }
.mv-mascot:hover svg { transform: scaleX(var(--m-face)) scale(1.06); }
.mv-mascot:active svg { transform: scaleX(var(--m-face)) scale(0.96); }
.mv-mascot:focus-visible { outline: 3px solid var(--sky); outline-offset: 6px; border-radius: 50%; }

@keyframes m-hover { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

.mv-mascot .m-halo { transform-origin: 70px 66px; animation: m-halo 3.4s ease-in-out infinite; }
@keyframes m-halo { 0%, 100% { transform: scale(0.92); opacity: 0.7; } 50% { transform: scale(1.08); opacity: 1; } }

.mv-mascot .m-wing { transform-origin: 62px 64px; animation: m-flap 0.95s ease-in-out infinite; }
.mv-mascot.is-flying .m-wing { animation-duration: 0.3s; }
@keyframes m-flap { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-30deg) translateY(-2px); } }

.mv-mascot .m-pupil { transform-origin: 87.5px 57px; animation: m-blink 5.5s ease-in-out infinite; }
@keyframes m-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }

.mv-mascot .m-legs { transition: transform 0.2s ease; }
.mv-mascot.is-flying .m-legs { transform: translateY(-5px); }

.mv-mascot .m-shadow { transition: opacity 0.2s ease; }
.mv-mascot.is-flying .m-shadow { opacity: 0.5; }

.mv-mascot-bubble {
  position: absolute;
  right: 4px;
  bottom: calc(100% + 8px);
  transform: translateY(8px);
  white-space: nowrap;
  background: var(--navy-ink);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12.5px;
  padding: 8px 14px;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.mv-mascot-bubble::after {
  content: "";
  position: absolute;
  top: 100%; right: 36px;
  border: 6px solid transparent;
  border-top-color: var(--navy-ink);
}
.mv-mascot:hover .mv-mascot-bubble,
.mv-mascot:focus-visible .mv-mascot-bubble { opacity: 1; visibility: visible; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .mv-mascot { animation: none; transform: none; }
  .mv-mascot .m-wing, .mv-mascot .m-legs, .mv-mascot .m-halo, .mv-mascot .m-pupil { animation: none; }
}
@media (max-width: 600px) {
  .mv-mascot { width: 74px; height: 74px; right: 14px; bottom: 14px; }
  .mv-mascot-bubble { display: none; }
}
