/* ═══════════════════════════════════════════════════════════════════
   IT INSPECTORS — Site chrome: preloader, header, cursor, footer
   Palette: ink · white / light grey · indigo. Flat colour only.
   Loaded in <head> after theme.css. Owned by the site-header /
   site-footer elements; behaviour lives in assets/js/site.js.
   ═══════════════════════════════════════════════════════════════════ */

/* ═══════════ PRELOADER — counting curtain ═══════════ */
.preloader { position: fixed; inset: 0; z-index: 9999; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; transition: none; }
.preloader.done { opacity: 1; visibility: visible; }      /* app.js's fade is overridden; site.js wipes it instead */
.preloader.is-gone { display: none; }
.pre-in { text-align: center; }
.pre-word { display: block; font-family: var(--font-h); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.6rem); letter-spacing: -.03em; opacity: 0; transform: translateY(14px); }
.pre-line { display: block; width: 120px; height: 2px; background: rgba(255,255,255,.12); margin: 1.2rem auto 0; overflow: hidden; }
.pre-line i { display: block; height: 100%; width: 100%; background: var(--acc-bright); transform: scaleX(0); transform-origin: left; }
.pre-num { position: absolute; right: 40px; bottom: 28px; font-family: var(--font-h); font-weight: 700; font-size: clamp(3rem, 9vw, 7rem); letter-spacing: -.05em; line-height: 1; color: rgba(255,255,255,.9); }
.pre-num::after { content: none; }
@media (max-width: 575.98px) { .pre-num { right: 20px; bottom: 18px; } }

/* ═══════════ CURSOR RING (desktop, pointer devices) ═══════════ */
.cur { position: fixed; left: 0; top: 0; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 1.5px solid #fff; mix-blend-mode: difference; pointer-events: none; z-index: 10000; opacity: 0; will-change: transform; }
.cur.is-link { background: #fff; }
.cur.is-view::after { content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-m); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: #000; }

/* ═══════════ HEADER — transparent at the top, glass once scrolled,
   light or dark depending on the section beneath it ═══════════ */
.hdr { position: sticky; top: 0; z-index: 1030; --hdr-fg: var(--ink); --hdr-fg-soft: rgba(12,10,29,.55); --hdr-line: rgba(12,10,29,.1); --hdr-glass: rgba(255,255,255,.72); }
.hdr.over-dark { --hdr-fg: #fff; --hdr-fg-soft: rgba(255,255,255,.62); --hdr-line: rgba(255,255,255,.14); --hdr-glass: rgba(12,10,29,.55); }
.hdr-bar { color: var(--hdr-fg); background: transparent; border-bottom: 1px solid transparent; transition: background .35s, border-color .35s, color .3s; }
.hdr.is-scrolled .hdr-bar { background: var(--hdr-glass); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border-bottom-color: var(--hdr-line); }
.hdr-in { display: flex; align-items: center; gap: 1.5rem; height: var(--hdr-h); }

/* brand */
.hdr-brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--hdr-fg); flex: none; }
.hdr-brand:hover { color: var(--hdr-fg); }
.brand-logo { height: 40px; width: auto; display: block; }
.hdr-brand.has-logo .brand-mark, .hdr-brand.has-logo .brand-text { display: none; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--hdr-fg); color: var(--navy); display: grid; place-items: center; flex: none; transition: background .3s, color .3s; }
.hdr.over-dark .brand-mark { color: var(--navy); }
.hdr:not(.over-dark) .brand-mark { color: #fff; }
.brand-mark svg { width: 22px; height: 22px; display: block; }
.brand-text { font-family: var(--font-h); font-weight: 800; font-size: 1.2rem; letter-spacing: -.035em; line-height: 1; color: inherit; }
.brand-text b { color: var(--acc); font-weight: 800; }
.hdr.over-dark .brand-text b { color: var(--acc-bright); }
.brand-text small { display: block; font-family: var(--font-b); font-size: .58rem; font-weight: 600; letter-spacing: .16em; color: var(--hdr-fg-soft); text-transform: uppercase; margin-top: .3rem; }

/* nav: rolling-text links + sliding underline */
.hdr-nav { display: flex; align-items: center; margin: 0 auto; position: relative; gap: .2rem; padding: 0; list-style: none; }
.hdr-nav > li { position: static; }
.hdr-link { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-h); font-weight: 600; font-size: .95rem; color: var(--hdr-fg); padding: .6rem .8rem; position: relative; z-index: 1; white-space: nowrap; }
.hdr-link:hover, .hdr-link[aria-current="page"], .has-mega.is-open > .hdr-link { color: var(--hdr-fg); }
.rt { position: relative; display: inline-block; overflow: hidden; line-height: 1.25; }
.rt > span { display: block; transition: transform .5s cubic-bezier(.76, 0, .24, 1); }
.rt::after { content: attr(data-text); position: absolute; left: 0; top: 100%; display: block; color: var(--acc); transition: transform .5s cubic-bezier(.76, 0, .24, 1); }
.hdr.over-dark .rt::after { color: var(--acc-bright); }
.hdr-link:hover .rt > span, .hdr-link:hover .rt::after { transform: translateY(-100%); }
.hdr-link .caret { font-size: .56rem; transition: transform .25s; opacity: .7; }
.has-mega.is-open .caret { transform: rotate(180deg); }
.hdr-ind { position: absolute; bottom: 4px; left: 0; height: 2px; width: 0; border-radius: 2px; background: var(--acc); opacity: 0; pointer-events: none; }
.hdr.over-dark .hdr-ind { background: var(--acc-bright); }
.hdr-nav.has-ind .hdr-ind { opacity: 1; }

/* actions */
.hdr-actions { display: flex; align-items: center; gap: 1.2rem; flex: none; }
.hdr-phone { display: inline-flex; align-items: center; gap: .5rem; color: var(--hdr-fg); font-family: var(--font-h); font-weight: 600; font-size: .9rem; white-space: nowrap; opacity: .85; transition: opacity .2s; }
.hdr-phone i { color: var(--acc); font-size: .76rem; }
.hdr.over-dark .hdr-phone i { color: var(--acc-bright); }
.hdr-phone:hover { opacity: 1; color: var(--hdr-fg); }
.hdr-cta { display: inline-flex; align-items: center; gap: .6rem; padding: .3rem .3rem .3rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--hdr-fg); color: var(--hdr-fg); font-family: var(--font-h); font-weight: 700; font-size: .88rem; white-space: nowrap; transition: background .3s, color .3s, border-color .3s; }
.hdr.over-dark .hdr-cta { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.hdr.over-dark .hdr-cta .ic { background: var(--ink); color: var(--lime); }
.hdr.over-dark .hdr-cta:hover { background: #fff; border-color: #fff; color: var(--ink); }
.hdr-cta .ic { width: 34px; height: 34px; border-radius: 50%; background: var(--hdr-fg); color: var(--navy); display: grid; place-items: center; font-size: .72rem; transition: transform .35s cubic-bezier(.2,.8,.2,1), background .3s, color .3s; }
.hdr:not(.over-dark) .hdr-cta .ic { color: #fff; }
.hdr-cta:hover { background: var(--hdr-fg); color: var(--navy); }
.hdr:not(.over-dark) .hdr-cta:hover { color: #fff; }
.hdr-cta:hover .ic { transform: rotate(-45deg); }

/* burger */
.hdr-burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--hdr-line); background: transparent; position: relative; flex: none; cursor: pointer; padding: 0; color: var(--hdr-fg); }
.hdr-burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s, top .3s, opacity .2s; }
.hdr-burger span:nth-child(1) { top: 16px; }
.hdr-burger span:nth-child(2) { top: 21px; }
.hdr-burger span:nth-child(3) { top: 26px; }
.hdr-burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hdr-burger.is-open span:nth-child(2) { opacity: 0; }
.hdr-burger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ═══════════ MEGA MENU ═══════════ */
.mega {
  position: absolute; left: 50%; top: calc(100% + 8px); transform: translate(-50%, 6px);
  width: min(1100px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--sh-lg); padding: 1rem; color: var(--ink);
  display: grid; grid-template-columns: 1.55fr .9fr; gap: 1rem;
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .22s, visibility .2s; z-index: 1040;
}
.has-mega.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .25rem; align-content: start; }
.mega-item { display: flex; gap: .85rem; align-items: flex-start; padding: .85rem .9rem; border-radius: 14px; transition: background .2s; position: relative; }
.mega-item:hover { background: var(--paper); }
.mega-item .mi-ico { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--acc); font-size: 1rem; background: var(--acc-soft); }
.mega-item b { display: block; font-family: var(--font-h); font-size: .95rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.mega-item small { color: var(--body); font-size: .8rem; line-height: 1.45; display: block; margin-top: 2px; }
.mega-item .mi-go { margin-left: auto; align-self: center; color: var(--muted); font-size: .75rem; opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s; }
.mega-item:hover .mi-go { opacity: 1; transform: none; color: var(--acc); }
.mega-side { background: var(--navy); border-radius: 16px; padding: 1.4rem; color: #fff; display: flex; flex-direction: column; gap: .5rem; }
.ms-kicker { font-family: var(--font-m); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--acc-bright); }
.ms-title { font-family: var(--font-h); font-weight: 700; font-size: 1.15rem; color: #fff; letter-spacing: -.02em; line-height: 1.2; }
.ms-text { font-size: .85rem; color: var(--on-dark); line-height: 1.6; margin: 0; }
.ms-score { display: flex; align-items: center; gap: .9rem; margin: .4rem 0 .6rem; padding: .8rem .9rem; background: var(--navy-2); border-radius: 12px; }
.ms-ring { width: 54px; height: 54px; position: relative; flex: none; }
.ms-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ms-ring .trk { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 6; }
.ms-ring .val { fill: none; stroke: var(--acc-bright); stroke-width: 6; stroke-linecap: round; }
.ms-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-m); font-size: .82rem; font-weight: 700; color: #fff; }
.ms-score .t b { font-family: var(--font-h); font-size: .9rem; color: #fff; display: block; }
.ms-score .t small { font-family: var(--font-m); font-size: .66rem; line-height: 1.5; color: rgba(255,255,255,.6); display: block; }
.mega-side .btn { align-self: flex-start; margin-top: .2rem; }

/* ═══════════ MOBILE OVERLAY ═══════════ */
.ovl { position: fixed; inset: 0; z-index: 1029; background: var(--navy); color: #fff; display: none; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch; clip-path: circle(0% at calc(100% - 44px) 44px); }
.ovl.is-open { display: flex; }
.ovl-in { padding: calc(var(--hdr-h) + 24px) 24px 40px; display: flex; flex-direction: column; min-height: 100%; }
.ovl-eyebrow { font-family: var(--font-m); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 1rem; }
.ovl-nav { list-style: none; padding: 0; margin: 0 0 2rem; }
.ovl-nav > li { border-bottom: 1px solid rgba(255,255,255,.1); }
.ovl-link { display: flex; align-items: center; padding: .95rem 0; font-family: var(--font-h); font-weight: 700; font-size: clamp(1.7rem, 7vw, 2.4rem); letter-spacing: -.03em; color: #fff; line-height: 1.1; background: none; border: 0; width: 100%; text-align: left; }
.ovl-link:hover, .ovl-link[aria-current="page"] { color: var(--acc-bright); }
.ovl-link .n { font-family: var(--font-m); font-size: .68rem; color: rgba(255,255,255,.35); font-weight: 500; margin-right: 1rem; letter-spacing: .1em; }
.ovl-link .caret { font-size: .8rem; opacity: .6; transition: transform .25s; margin-left: auto; }
.ovl-sub { display: none; padding: 0 0 1rem 2.4rem; }
.ovl-sub a { display: flex; align-items: center; gap: .7rem; padding: .5rem 0; color: rgba(255,255,255,.78); font-size: .98rem; }
.ovl-sub a i { color: var(--acc-bright); width: 18px; text-align: center; font-size: .85rem; }
.ovl-sub a:hover { color: #fff; }
li.is-open > .ovl-sub { display: block; }
li.is-open > .ovl-link .caret { transform: rotate(180deg); }
.ovl-foot { margin-top: auto; display: grid; gap: 1rem; }
.ovl-foot .btn { justify-content: center; }
.ovl-contact { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-family: var(--font-m); font-size: .78rem; }
.ovl-contact a { color: rgba(255,255,255,.7); display: inline-flex; align-items: center; gap: .45rem; }
.ovl-contact a i { color: var(--acc-bright); }
.ovl-contact a:hover { color: #fff; }
body.ovl-lock { overflow: hidden; }

@media (max-width: 991.98px) {
  :root { --hdr-h: 66px; }
  .hdr-nav, .hdr-phone, .hdr-cta { display: none; }
  .hdr-burger { display: block; }
  .hdr-actions { margin-left: auto; }
  .brand-mark { width: 36px; height: 36px; }
  .hdr.menu-open { --hdr-fg: #fff; --hdr-fg-soft: rgba(255,255,255,.62); --hdr-line: rgba(255,255,255,.2); }
  .hdr.menu-open .hdr-bar { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hdr.menu-open .brand-mark { color: var(--navy) !important; }
  .hdr.menu-open .brand-text b { color: var(--acc-bright); }
}
@media (min-width: 992px) and (max-width: 1299.98px) {
  .hdr-link { font-size: .88rem; padding: .55rem .6rem; }
  .hdr-phone { display: none; }
}

/* ═══════════ FOOTER ═══════════ */
.ftr { background: var(--navy); color: var(--on-dark); position: relative; overflow: hidden; }
.ftr .container { position: relative; z-index: 2; }
.ftr-call { padding: 96px 0 72px; border-bottom: 1px solid rgba(255,255,255,.1); position: relative; }
.ftr-kicker { font-family: var(--font-m); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.5); display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.4rem; }
.ftr-kicker::before { content: ""; width: 28px; height: 2px; background: var(--acc-bright); }
.ftr-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; }
.ftr-line h2 { font-family: var(--font-h); font-weight: 800; font-size: clamp(2.4rem, 6.4vw, 5.6rem); line-height: .98; letter-spacing: -.04em; color: #fff; margin: 0; max-width: 14ch; }
.ftr-line h2 em { font-style: normal; color: var(--acc-bright); }
.ftr-go { display: inline-flex; align-items: center; gap: 1rem; color: #fff; font-family: var(--font-h); font-weight: 700; font-size: 1.05rem; }
.ftr-go .ring { width: 88px; height: 88px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.3); display: grid; place-items: center; font-size: 1.2rem; position: relative; transition: background .3s, border-color .3s, transform .3s, color .3s; }
.ftr-go:hover { color: #fff; }
.ftr-go:hover .ring { background: var(--acc); border-color: var(--acc); color: #fff; transform: scale(1.06); }
.ftr-go .ring i { transition: transform .3s; }
.ftr-go:hover .ring i { transform: rotate(-45deg); }
.ftr-go small { display: block; font-family: var(--font-m); font-size: .68rem; font-weight: 500; color: rgba(255,255,255,.5); letter-spacing: .1em; text-transform: uppercase; margin-top: .3rem; }

.ftr-main { padding: 72px 0 40px; border-top: 1px solid rgba(255,255,255,.08); }
.ftr-brand { display: inline-flex; align-items: center; gap: .7rem; color: #fff; margin-bottom: 1rem; }
.ftr-brand:hover { color: #fff; }
.ftr-brand .brand-mark { background: #fff; color: var(--navy); }
.ftr-brand .brand-text { color: #fff; }
.ftr-brand .brand-text b { color: var(--acc-bright); }
.ftr-brand .brand-text small { color: rgba(255,255,255,.5); }
.ftr-blurb { font-size: .93rem; line-height: 1.8; max-width: 320px; margin-bottom: 1.2rem; }
.ftr-status { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-m); font-size: .7rem; letter-spacing: .06em; color: #fff; background: var(--navy-2); border-radius: 999px; padding: .42rem .85rem .42rem .6rem; margin-bottom: 1.2rem; }
.sig-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acc-bright); }
.ftr-social { display: flex; gap: .5rem; }
.ftr-social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-2); color: #fff; transition: background .25s, transform .25s; }
.ftr-social a:hover { background: var(--acc); color: #fff; transform: translateY(-3px); }
.ftr-title { font-family: var(--font-m); font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 1.1rem; }
.ftr-links { list-style: none; padding: 0; margin: 0; }
.ftr-links li { margin-bottom: .55rem; }
.ftr-links a { color: rgba(255,255,255,.78); font-size: .95rem; display: inline-flex; align-items: center; gap: .5rem; transition: color .2s; }
.ftr-links a::before { content: ""; width: 0; height: 1.5px; background: var(--acc-bright); transition: width .25s; }
.ftr-links a:hover { color: #fff; }
.ftr-links a:hover::before { width: 14px; }
.ftr-contact { list-style: none; padding: 0; margin: 0; }
.ftr-contact li { display: flex; gap: .7rem; margin-bottom: .85rem; font-size: .93rem; line-height: 1.5; }
.ftr-contact i { color: var(--acc-bright); margin-top: .3rem; width: 14px; text-align: center; flex: none; }
.ftr-contact a { color: rgba(255,255,255,.82); }
.ftr-contact a:hover { color: #fff; }
.ftr-contact span { color: rgba(255,255,255,.62); }

.ftr-health { border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
.ftr-health .row-h { display: grid; grid-template-columns: repeat(4, 1fr); }
.fh { padding: 1.35rem 1.2rem; display: flex; align-items: center; gap: .9rem; font-family: var(--font-m); }
.fh + .fh { border-left: 1px solid rgba(255,255,255,.1); }
.fh .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--navy-2); color: var(--acc-bright); font-size: .8rem; flex: none; }
.fh b { display: block; color: #fff; font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; }
.fh small { display: block; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-top: .15rem; }
.fh-cur { display: inline-block; width: 7px; height: 1em; background: var(--acc-bright); vertical-align: -2px; margin-left: 3px; animation: fhBlink 1.1s steps(2) infinite; }
@keyframes fhBlink { to { opacity: 0; } }

.ftr-ghost { overflow: hidden; padding: 26px 0 0; pointer-events: none; }
.ftr-ghost-track { display: flex; gap: 3rem; width: max-content; white-space: nowrap; font-family: var(--font-h); font-weight: 800; font-size: clamp(5rem, 15vw, 13rem); line-height: 1; letter-spacing: -.045em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.14); transform: translateY(.18em); }
.ftr-ghost-track span em { font-style: normal; -webkit-text-stroke: 1px rgba(167,139,250,.5); }

.ftr-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; justify-content: space-between; align-items: center; font-size: .82rem; color: rgba(255,255,255,.55); }
.ftr-bottom nav { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.ftr-bottom a { color: rgba(255,255,255,.66); }
.ftr-bottom a:hover { color: var(--acc-bright); }

.totop { position: fixed; right: 18px; bottom: 20px; z-index: 1050; width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--sh-md); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s, visibility .3s, background .2s; padding: 0; }
.totop.show { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--acc); }
.totop svg { position: absolute; inset: -2px; width: calc(100% + 4px); height: calc(100% + 4px); transform: rotate(-90deg); }
.totop svg circle { fill: none; stroke: var(--acc-bright); stroke-width: 2.5; stroke-linecap: round; }
.totop:hover svg circle { stroke: #fff; }
.totop i { position: relative; font-size: .95rem; }

@media (max-width: 991.98px) {
  .ftr-call { padding: 70px 0 54px; }
  .ftr-health .row-h { grid-template-columns: repeat(2, 1fr); }
  .fh:nth-child(3) { border-left: 0; }
  .fh:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }
  .ftr-main { padding: 50px 0 30px; }
}
@media (max-width: 575.98px) {
  .ftr-health .row-h { grid-template-columns: 1fr; }
  .fh + .fh { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .ftr-go .ring { width: 64px; height: 64px; }
  .ftr-bottom { flex-direction: column; text-align: center; }
  .ftr-bottom nav { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .fh-cur { animation: none; } .rt > span, .rt::after { transition: none; } }
