/* NOMAN RMNN — "Gen 5" theme layer.
   Loaded after site.css. It only restyles: every id, class and behaviour of site.css / site.js stays.
   Living sky behind the page, glass panels with a light running round the rim, glowing buttons,
   pointer spotlight and 3D tilt on cards, sections that rise into view, and a scroll-progress line. */

:root {
  --t5-glass: rgba(12, 32, 52, .52);
  --t5-glass-2: rgba(16, 42, 66, .62);
  --t5-rim: rgba(120, 200, 255, .16);
  --t5-glow-o: 255, 154, 61;   /* orange */
  --t5-glow-c: 88, 210, 255;   /* sky */
  --t5-glow-v: 150, 110, 255;  /* violet */
  --t5-ease: cubic-bezier(.2, .8, .2, 1);
}
@property --t5-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* ---------- living sky (layers made by theme5.js) ---------- */
html.t5 body::before { display: none; }
html.t5 body { background: transparent; }
.t5-sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: radial-gradient(120% 80% at 50% -10%, #0a1d33 0%, #040b16 55%, #02060d 100%); }
.t5-sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.t5-orb { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(80px); opacity: .34;
  mix-blend-mode: screen; will-change: transform; animation: t5-drift 28s ease-in-out infinite alternate; }
.t5-orb.o1 { background: radial-gradient(circle, rgba(var(--t5-glow-o), .9), transparent 62%); left: -14vmax; top: 8vh; }
.t5-orb.o2 { background: radial-gradient(circle, rgba(var(--t5-glow-c), .8), transparent 62%); right: -16vmax; top: 30vh; animation-duration: 34s; animation-delay: -9s; }
.t5-orb.o3 { background: radial-gradient(circle, rgba(var(--t5-glow-v), .75), transparent 62%); left: 26vw; bottom: -24vmax; animation-duration: 40s; animation-delay: -17s; opacity: .26; }
@keyframes t5-drift { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(6vw, -4vh, 0) scale(1.12); } 100% { transform: translate3d(-4vw, 5vh, 0) scale(.94); } }
.t5-grid { position: absolute; left: -50%; right: -50%; bottom: -8vh; height: 46vh; opacity: .22;
  background-image: linear-gradient(rgba(var(--t5-glow-c), .5) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--t5-glow-c), .5) 1px, transparent 1px);
  background-size: 64px 64px; transform: perspective(420px) rotateX(64deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%); mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  animation: t5-grid 6s linear infinite; }
@keyframes t5-grid { to { background-position: 0 64px, 0 0; } }

/* scroll progress line + cursor light */
.t5-progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 60; pointer-events: none;
  transform-origin: 0 50%; transform: scaleX(var(--t5-p, 0));
  background: linear-gradient(90deg, rgb(var(--t5-glow-o)), rgb(var(--t5-glow-c)), rgb(var(--t5-glow-v)));
  box-shadow: 0 0 12px rgba(var(--t5-glow-c), .7); }
.t5-cursor { position: fixed; left: 0; top: 0; width: 460px; height: 460px; margin: -230px 0 0 -230px; border-radius: 50%;
  pointer-events: none; z-index: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle, rgba(var(--t5-glow-c), .09), transparent 60%);
  transform: translate3d(var(--cx, -999px), var(--cy, -999px), 0); }
html.t5.t5-pointer .t5-cursor { opacity: 1; }

/* ---------- header ---------- */
html.t5 .site-header { background: rgba(4, 12, 22, .42); border-bottom-color: rgba(120, 200, 255, .08);
  -webkit-backdrop-filter: saturate(170%) blur(20px); backdrop-filter: saturate(170%) blur(20px);
  transition: background-color .35s, box-shadow .35s, border-color .35s; }
html.t5.t5-scrolled .site-header { background: rgba(4, 12, 22, .78); border-bottom-color: rgba(120, 200, 255, .16);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .45); }
html.t5 .site-nav a { position: relative; }
html.t5 .site-nav a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 4px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgb(var(--t5-glow-o)), rgb(var(--t5-glow-c))); transition: left .3s var(--t5-ease), right .3s var(--t5-ease); }
html.t5 .site-nav a:hover::after, html.t5 .site-nav a:focus-visible::after { left: 12px; right: 12px; }

/* ---------- type ---------- */
html.t5 .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
html.t5 .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--t5-glow-o));
  box-shadow: 0 0 0 4px rgba(var(--t5-glow-o), .16), 0 0 14px rgba(var(--t5-glow-o), .9); animation: t5-beat 2.4s ease-in-out infinite; }
@keyframes t5-beat { 50% { box-shadow: 0 0 0 7px rgba(var(--t5-glow-o), 0), 0 0 20px rgba(var(--t5-glow-o), 1); } }
html.t5 .section-head h2, html.t5 .hero h1 {
  background: linear-gradient(100deg, #ffffff 0%, #e6f4ff 40%, #9fdcff 70%, #ffd2a6 100%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: t5-sheen 9s ease-in-out infinite; }
@keyframes t5-sheen { 50% { background-position: 100% 0; } }
html.t5 .section-alt { background: linear-gradient(to bottom, transparent, rgba(8, 24, 42, .38) 14%, rgba(8, 24, 42, .38) 86%, transparent); }

/* ---------- glass panels with a running rim ---------- */
html.t5 :is(.card, .service-card, .visa-card, .faq-item, .step, .social-tile, .video-card, .finder, .contact-aside, .status-box, .visa-picker) {
  position: relative; isolation: isolate;
  background: linear-gradient(160deg, var(--t5-glass-2), var(--t5-glass));
  border: 1px solid var(--t5-rim);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 18px 50px rgba(0, 0, 0, .38);
  transition: transform .45s var(--t5-ease), border-color .3s, box-shadow .45s var(--t5-ease);
}
/* the running light */
html.t5 :is(.card, .service-card, .visa-card, .step, .social-tile, .video-card, .finder)::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--t5-a), transparent 0 62%, rgba(var(--t5-glow-c), .95) 72%, rgba(var(--t5-glow-o), .95) 80%, transparent 90% 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .4s; animation: t5-spin 4.5s linear infinite;
}
html.t5 .finder::before { opacity: .85; }
@keyframes t5-spin { to { --t5-a: 360deg; } }
/* pointer spotlight */
html.t5 :is(.card, .service-card, .visa-card, .step, .social-tile, .video-card, .faq-item)::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--t5-glow-c), .14), transparent 60%);
}
@media (hover: hover) {
  html.t5 :is(.card, .service-card, .visa-card, .step, .social-tile, .video-card):hover {
    border-color: rgba(var(--t5-glow-c), .35);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 28px 70px rgba(0, 0, 0, .5), 0 0 40px rgba(var(--t5-glow-c), .12);
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px);
  }
  html.t5 :is(.card, .service-card, .visa-card, .step, .social-tile, .video-card):hover::before,
  html.t5 :is(.card, .service-card, .visa-card, .step, .social-tile, .video-card, .faq-item):hover::after { opacity: 1; }
}
html.t5 .card-media img { transition: transform 1.2s var(--t5-ease), filter .6s; }
html.t5 .card:hover .card-media img { transform: scale(1.08); filter: saturate(1.15) contrast(1.05); }
html.t5 .card-media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(4, 12, 22, .55), transparent 45%); }
html.t5 .service-icon, html.t5 .step-icon { filter: drop-shadow(0 0 10px rgba(var(--t5-glow-o), .6)); }

/* ---------- buttons, chips, fields ---------- */
html.t5 .btn { position: relative; overflow: hidden; isolation: isolate;
  background: rgba(16, 42, 66, .55); border-color: rgba(120, 200, 255, .22);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .3s var(--t5-ease), box-shadow .3s, border-color .3s, background-color .3s; }
html.t5 .btn:hover { border-color: rgba(var(--t5-glow-c), .55); background: rgba(20, 52, 80, .7); box-shadow: 0 0 22px rgba(var(--t5-glow-c), .2); transform: translateY(-2px); }
html.t5 .btn:active { transform: translateY(0) scale(.97); }
html.t5 .btn-primary { color: #1a0e02; border-color: transparent;
  background: linear-gradient(135deg, #ffc07a 0%, #ff9a3d 45%, #ef7a1a 100%);
  box-shadow: 0 8px 26px rgba(var(--t5-glow-o), .38), 0 1px 0 rgba(255, 255, 255, .4) inset; }
html.t5 .btn-primary:hover { background: linear-gradient(135deg, #ffcf96 0%, #ffab5a 45%, #f58a2c 100%); color: #1a0e02;
  border-color: transparent; box-shadow: 0 12px 34px rgba(var(--t5-glow-o), .55), 0 1px 0 rgba(255, 255, 255, .5) inset; }
html.t5 .btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  transform: translateX(-120%); animation: t5-shine 3.8s ease-in-out infinite; }
@keyframes t5-shine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
html.t5 .btn-wa { background: linear-gradient(135deg, #22a35f, #167041); border-color: transparent; box-shadow: 0 8px 24px rgba(34, 163, 95, .35); }
html.t5 :is(.chip, .pill) { background: rgba(14, 36, 58, .5); border-color: rgba(120, 200, 255, .18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: all .3s var(--t5-ease); }
html.t5 :is(.chip, .pill):hover { border-color: rgba(var(--t5-glow-c), .5); box-shadow: 0 0 18px rgba(var(--t5-glow-c), .18); transform: translateY(-1px); }
html.t5 .chip[aria-pressed="true"] { background: linear-gradient(135deg, #ffc07a, #ff9a3d 55%, #ef7a1a); border-color: transparent;
  box-shadow: 0 6px 22px rgba(var(--t5-glow-o), .45); }
html.t5 :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]) {
  background-color: rgba(4, 14, 26, .6); border-color: rgba(120, 200, 255, .2);
  transition: border-color .25s, box-shadow .25s, background-color .25s; }
html.t5 :is(input, select, textarea):focus { border-color: rgba(var(--t5-glow-c), .8);
  box-shadow: 0 0 0 4px rgba(var(--t5-glow-c), .14), 0 0 24px rgba(var(--t5-glow-c), .2); background-color: rgba(4, 14, 26, .8); }
html.t5 .badge { box-shadow: 0 0 14px rgba(var(--t5-glow-o), .45); }
html.t5 .wa-float { box-shadow: 0 0 0 0 rgba(34, 163, 95, .5), 0 10px 30px rgba(0, 0, 0, .45); animation: t5-ping 2.6s ease-out infinite; }
@keyframes t5-ping { 0% { box-shadow: 0 0 0 0 rgba(34, 163, 95, .55), 0 10px 30px rgba(0, 0, 0, .45); } 80%, 100% { box-shadow: 0 0 0 18px rgba(34, 163, 95, 0), 0 10px 30px rgba(0, 0, 0, .45); } }

/* ---------- footer ---------- */
html.t5 .site-footer { position: relative; background: rgba(2, 8, 16, .6); }
html.t5 .site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--t5-glow-c), .7), rgba(var(--t5-glow-o), .7), transparent); }

/* ---------- rise into view ---------- */
html.t5 .t5-r { opacity: 0; transform: translate3d(0, 24px, 0);
  transition: opacity .6s var(--t5-ease), transform .7s var(--t5-ease); transition-delay: var(--t5-d, 0s); }
html.t5 .t5-r.t5-in { opacity: 1; transform: none; }
html.t5 .t5-r.t5-in:hover { transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  .t5-orb, .t5-grid, html.t5 .eyebrow::before, html.t5 .section-head h2, html.t5 .hero h1,
  html.t5 .btn-primary::after, html.t5 .wa-float, html.t5 :is(.card, .service-card, .visa-card, .step, .social-tile, .video-card, .finder)::before { animation: none; }
  html.t5 .t5-r { opacity: 1; transform: none; filter: none; transition: none; }
  html.t5 :is(.card, .service-card, .visa-card, .step, .social-tile, .video-card):hover { transform: translateY(-3px); }
  .t5-cursor { display: none; }
}

/* the globe draws no sky of its own inside the site: it floats in the living sky, nothing to fade */
html.t5 .globe-frame { background: transparent; }
html.t5 .globe-frame::after { display: none; }
