/* ============================================================
   HAVEN FORCE Technical Services L.L.C
   BUILD · MAINTAIN · PROTECT
   Core stylesheet — brand system, motifs & motion
   ============================================================ */

:root{
  --navy:#062B52; --navy-deep:#031D3A; --royal:#087AC1; --bright:#009FE3;
  --silver:#BFC7CE; --ink:#172B3A; --mist:#F4F8FB;
  /* Bright #009FE3 is only 2.97:1 on white — use these for text on light surfaces */
  --accent:#0075A8;        /* small text / labels on light  (5.11:1 white, 4.79:1 mist) */
  --accent-lg:#0095D6;     /* large display text on light   (3.35:1 white, 3.14:1 mist) */
  --ink-soft:#5A6B75;      /* muted body text               (5.53:1 white, 5.18:1 mist) */
  --danger:#D92D20;        /* problem labels                (4.83:1 white) */
  --grad:linear-gradient(120deg,#062B52 0%,#087AC1 55%,#009FE3 100%);
  --ease:cubic-bezier(.22,1,.36,1);
  --nav-h:72px;
  --font-display:"Plus Jakarta Sans",Inter,system-ui,sans-serif;
  --radius:16px; --radius-sm:12px;
  --shadow-soft:0 1px 2px rgba(6,43,82,.05),0 10px 30px -14px rgba(6,43,82,.18);
  --shadow-lift:0 2px 6px rgba(6,43,82,.06),0 24px 48px -22px rgba(6,43,82,.34);
}

*{ -webkit-tap-highlight-color:transparent; }

html{ scroll-behavior:smooth; scroll-padding-top:var(--nav-h); }
@media (prefers-reduced-motion:reduce){ html{ scroll-behavior:auto; } }

body{
  font-family:Inter,system-ui,-apple-system,sans-serif;
  color:var(--ink); background:#fff;
  -webkit-font-smoothing:antialiased; overflow-x:hidden;
}

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

/* Scrollbar ------------------------------------------------ */
::-webkit-scrollbar{ width:11px; height:11px; }
::-webkit-scrollbar-track{ background:var(--mist); }
::-webkit-scrollbar-thumb{ background:linear-gradient(var(--royal),var(--navy)); border-radius:99px; border:2px solid var(--mist); }
::-webkit-scrollbar-thumb:hover{ background:var(--bright); }

/* ============================================================
   1. TYPE
   ============================================================ */
.font-display,h1,h2,h3,.h-display{ font-family:var(--font-display); }
h1,h2,h3{ letter-spacing:-.02em; }

/* Section label — a small pill with a status dot */
.eyebrow{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.34rem .8rem .34rem .68rem; border-radius:99px;
  font-size:.74rem; font-weight:600; letter-spacing:.01em; line-height:1.2;
  color:var(--accent); background:rgba(0,117,168,.07); border:1px solid rgba(0,117,168,.14);
}
.eyebrow::before{
  content:''; flex:none; width:6px; height:6px; border-radius:99px;
  background:currentColor; box-shadow:0 0 0 3px rgba(0,159,227,.16);
}
.eyebrow:has(svg)::before{ display:none; }
.eyebrow svg{ width:14px; height:14px; }
.eyebrow-light{ color:#7FD3F5; background:rgba(0,159,227,.1); border-color:rgba(0,159,227,.26); }

/* Two-tone headline */
.title-xl{
  font-family:var(--font-display); font-weight:700;
  line-height:1.08; letter-spacing:-.03em;
  font-size:clamp(1.95rem,4.1vw,3.2rem);
}
.title-lg{
  font-family:var(--font-display); font-weight:700;
  line-height:1.16; letter-spacing:-.025em;
  font-size:clamp(1.5rem,2.4vw,2.15rem);
}
.tone-a{ color:var(--navy); display:block; }
.tone-b{ color:var(--accent-lg); display:block; }
/* section titles read as one sentence; only the hero keeps the stacked lines */
.title-lg .tone-a,.title-lg .tone-b{ display:inline; }
.tone-b-dark{ color:var(--bright); }          /* 4.79:1 on navy — safe on dark blocks */
.text-grad{
  background:linear-gradient(120deg,#062B52 0%,#0870B0 55%,#0075A8 100%); -webkit-background-clip:text; background-clip:text;
  color:transparent;
}
.text-grad-light{
  background:linear-gradient(100deg,#fff 10%,#9FE0F7 55%,#009FE3 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

.lede{ font-size:clamp(.92rem,.95vw,1rem); line-height:1.7; color:#4A5B69; }

/* Brand strapline BUILD · MAINTAIN · PROTECT */
.strapline{
  display:inline-flex; align-items:center; flex-wrap:wrap;
  gap:clamp(.5rem,1.6vw,1.1rem);
  font-family:var(--font-display); font-weight:600;
  letter-spacing:.2em; text-transform:uppercase;
}
.strapline span{ display:inline-flex; align-items:center; gap:clamp(.5rem,1.6vw,1.1rem); }
.strapline span:not(:last-child)::after{
  content:''; width:5px; height:5px; rotate:45deg;
  background:var(--bright); display:inline-block;
}

/* ============================================================
   2. BRAND MOTIF — diagonal slashes (from the HAVEN FORCE posters)
   ============================================================ */
.slash-r{ clip-path:polygon(0 0,100% 0,100% 100%,7% 100%); }
.slash-l{ clip-path:polygon(0 0,93% 0,100% 100%,0 100%); }
.slash-panel{ clip-path:polygon(12% 0,100% 0,100% 100%,0 100%); }
.slash-media{ clip-path:polygon(14% 0,100% 0,100% 86%,86% 100%,0 100%); }
@media (max-width:767px){
  .slash-panel,.slash-media{ clip-path:none; }
}

/* Angled brand ribbon */
.ribbon{ position:relative; overflow:hidden; background:var(--navy-deep); }
.ribbon::before,.ribbon::after{
  content:''; position:absolute; inset-block:-40%; width:46%;
  transform:skewX(-18deg); pointer-events:none;
}
.ribbon::before{ left:-16%; background:linear-gradient(90deg,rgba(8,122,193,.55),transparent); }
.ribbon::after{ right:-20%; background:linear-gradient(270deg,rgba(0,159,227,.42),transparent); }
.ribbon > .relative{ z-index:1; }      /* keep content above the decorative slashes */

/* Corner chevron accent used on dark blocks */
.corner-chevron{ position:relative; overflow:hidden; }
.corner-chevron::after{
  content:''; position:absolute; top:0; right:0; width:170px; height:170px;
  background:linear-gradient(225deg,rgba(0,159,227,.5),transparent 62%);
  clip-path:polygon(100% 0,100% 100%,0 0); pointer-events:none;
}

/* Blueprint grid + dot field */
.bg-grid{
  background-image:linear-gradient(rgba(8,122,193,.075) 1px,transparent 1px),
                   linear-gradient(90deg,rgba(8,122,193,.075) 1px,transparent 1px);
  background-size:56px 56px;
}
.bg-grid-dark{
  background-image:linear-gradient(rgba(255,255,255,.055) 1px,transparent 1px),
                   linear-gradient(90deg,rgba(255,255,255,.055) 1px,transparent 1px);
  background-size:56px 56px;
}
.bg-dots{
  background-image:radial-gradient(rgba(8,122,193,.16) 1.4px,transparent 1.4px);
  background-size:22px 22px;
}

/* ============================================================
   3. BUTTONS
   ============================================================ */
.btn{
  position:relative; display:inline-flex; align-items:center; justify-content:center;
  gap:.5rem; padding:.7rem 1.25rem; border-radius:12px; min-height:44px;
  font-family:var(--font-display); font-size:.9rem; font-weight:600;
  letter-spacing:-.005em; white-space:nowrap;
  cursor:pointer; overflow:hidden; isolation:isolate;
  transition:transform .35s var(--ease),box-shadow .35s var(--ease),color .3s,border-color .3s,background-color .3s;
}
.btn:active{ transform:translateY(1px) scale(.99); }
.btn svg{ width:1.05em; height:1.05em; flex:none; transition:transform .35s var(--ease); }
.btn:hover svg{ transform:translateX(4px); }

.btn-primary{ color:#fff; background:var(--grad); background-size:200% 100%; box-shadow:0 10px 24px -12px rgba(8,122,193,.7); }
.btn-primary::before{
  content:''; position:absolute; inset:0; z-index:-1; opacity:0;
  background:linear-gradient(120deg,#009FE3,#087AC1 60%,#062B52);
  transition:opacity .45s var(--ease);
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 16px 32px -14px rgba(0,159,227,.75); }
.btn-primary:hover::before{ opacity:1; }

.btn-ghost{ color:var(--navy); border:1.5px solid #D5DEE6; background:#fff; }
.btn-ghost:hover{ color:var(--royal); border-color:var(--bright); transform:translateY(-2px); box-shadow:0 14px 30px -18px rgba(6,43,82,.45); }

.btn-light{ color:#fff; border:1.5px solid rgba(255,255,255,.3); background:rgba(255,255,255,.08); backdrop-filter:blur(8px); }
.btn-light:hover{ background:#fff; color:var(--navy); border-color:#fff; transform:translateY(-2px); }

.btn-accent{ color:var(--navy); background:#fff; box-shadow:0 10px 24px -14px rgba(0,0,0,.55); }
.btn-accent:hover{ transform:translateY(-2px); box-shadow:0 16px 32px -16px rgba(0,0,0,.6); }

/* Sheen sweep */
.btn::after{
  content:''; position:absolute; top:0; left:-120%; width:55%; height:100%;
  background:linear-gradient(105deg,transparent,rgba(255,255,255,.28),transparent);
  transform:skewX(-22deg); transition:left .75s var(--ease);
}
.btn:hover::after{ left:150%; }

/* Text link with sliding rule */
.link-underline{
  position:relative; display:inline-flex; align-items:center; gap:.45rem;
  padding-block:.3rem; min-height:26px;
}
.link-underline::after{
  content:''; position:absolute; left:0; bottom:.05rem; width:100%; height:2px;
  background:var(--bright); transform:scaleX(0); transform-origin:right;
  transition:transform .45s var(--ease);
}
.link-underline:hover::after{ transform:scaleX(1); transform-origin:left; }

/* ============================================================
   4. HEADER / NAV
   ============================================================ */
.site-header{
  position:fixed; inset-inline:0; top:0; z-index:70;
  transition:background .45s var(--ease),box-shadow .45s var(--ease),
             backdrop-filter .45s,padding .45s var(--ease);
}
.site-header .bar{ height:var(--nav-h); transition:height .4s var(--ease); }
.site-header.scrolled{ background:rgba(255,255,255,.93); backdrop-filter:blur(18px) saturate(160%); box-shadow:0 1px 0 rgba(6,43,82,.09),0 12px 34px -22px rgba(6,43,82,.55); }
.site-header.scrolled .bar{ height:64px; }
.site-header.scrolled .nav-link{ color:var(--ink); }
.site-header.scrolled .logo-light{ opacity:0; }
.site-header.scrolled .logo-dark{ opacity:1; }
.site-header.solid{ background:rgba(255,255,255,.93); backdrop-filter:blur(18px) saturate(160%); box-shadow:0 1px 0 rgba(6,43,82,.09); }
.site-header.solid .nav-link{ color:var(--ink); }
.site-header.solid .logo-light{ opacity:0; }
.site-header.solid .logo-dark{ opacity:1; }

.logo-stack{ position:relative; display:block; }
.logo-stack img{ transition:opacity .4s var(--ease); display:block; }
.logo-dark{ position:absolute; inset:0; opacity:0; }

.nav-link{
  position:relative; white-space:nowrap; font-size:.875rem; font-weight:500; letter-spacing:-.005em;
  color:#fff; padding:.7rem 0;
  transition:color .3s;
}
.nav-link::after{
  content:''; position:absolute; left:0; bottom:2px; height:2px; width:100%; border-radius:2px;
  background:var(--bright); transform:scaleX(0); transform-origin:right;
  transition:transform .4s var(--ease);
}
.nav-link:hover::after,.nav-link.active::after{ transform:scaleX(1); transform-origin:left; }
.nav-link.active{ color:var(--accent); }                      /* 5.11:1 on the white header */
.site-header:not(.solid):not(.scrolled) .nav-link.active{ color:var(--bright); }  /* over the dark hero */

/* Mega/drop menu */
.has-drop > .drop{
  position:absolute; top:calc(100% + 14px); left:50%; translate:-50% 0;
  opacity:0; visibility:hidden; transform:translateY(12px);
  transition:opacity .35s var(--ease),transform .35s var(--ease),visibility .35s;
}
.has-drop:hover > .drop,.has-drop:focus-within > .drop{ opacity:1; visibility:visible; transform:translateY(0); }
.has-drop > .drop{ border-radius:var(--radius); }
/* invisible bridge across the gap, so the menu doesn't close on the way down to it */
.has-drop > .drop::before{ content:''; position:absolute; left:0; right:0; top:-18px; height:18px; }
.drop-item{ transition:background .25s,padding-left .3s var(--ease); }
.drop-item:hover{ background:var(--mist); padding-left:1.45rem; }

/* Mobile drawer */
.burger{ color:var(--navy); transition:color .3s,background-color .3s; }
.burger:hover{ background:rgba(6,43,82,.06); }
.site-header:not(.solid):not(.scrolled) .burger{ color:#fff; }
.site-header:not(.solid):not(.scrolled) .burger:hover{ background:rgba(255,255,255,.1); }
.burger span{ transition:transform .4s var(--ease),opacity .25s; transform-origin:center; }
.burger.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2){ opacity:0; transform:scaleX(0); }
.burger.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.drawer{
  position:fixed; top:0; right:0; bottom:0; z-index:90; width:min(400px,100vw); height:100dvh;
  display:flex; flex-direction:column; background:#fff;
  box-shadow:-30px 0 70px -30px rgba(3,29,58,.55);
  transform:translateX(100%); visibility:hidden;
  transition:transform .5s var(--ease),visibility 0s .5s;
  overscroll-behavior:contain;
}
.drawer.open{ transform:none; visibility:visible; transition:transform .5s var(--ease),visibility 0s; }
@media (min-width:420px){ .drawer{ border-radius:22px 0 0 22px; } }

.drawer-backdrop{
  position:fixed; inset:0; z-index:85; background:rgba(3,29,58,.55);
  backdrop-filter:blur(4px); opacity:0; visibility:hidden; transition:opacity .4s,visibility .4s;
}
.drawer-backdrop.open{ opacity:1; visibility:visible; }

.drawer-head{
  flex:none; display:flex; align-items:center; justify-content:space-between;
  height:68px; padding:0 1rem 0 1.25rem; border-bottom:1px solid #EDF1F4;
}
.drawer-close{
  display:grid; place-items:center; width:42px; height:42px; border-radius:12px;
  background:var(--mist); color:var(--navy); transition:background .25s,color .25s,transform .3s var(--ease);
}
.drawer-close:hover{ background:var(--navy); color:#fff; transform:rotate(90deg); }
.drawer-body{ flex:1; min-height:0; overflow-y:auto; padding:.85rem .85rem calc(1.25rem + env(safe-area-inset-bottom)); }

.drawer-link{ opacity:0; transform:translateX(18px); transition:opacity .45s var(--ease),transform .45s var(--ease); }
.drawer.open .drawer-link{ opacity:1; transform:none; }

/* rows */
.m-list{ display:grid; gap:2px; }
.m-row{
  width:100%; min-height:50px; display:flex; align-items:center; gap:.8rem;
  padding:.5rem .6rem; border-radius:14px; cursor:pointer;
  font-family:var(--font-display); font-weight:600; font-size:.97rem; letter-spacing:-.01em;
  color:var(--navy); transition:background .25s,color .25s;
}
.m-row:hover{ background:var(--mist); }
.m-row.is-active{ color:var(--accent); background:rgba(0,117,168,.06); }
.m-ico{
  display:grid; place-items:center; width:36px; height:36px; border-radius:11px; flex:none;
  background:var(--mist); color:var(--accent); transition:background .3s,color .3s;
}
.m-row.is-active .m-ico,.m-group.is-open > .m-row .m-ico{ background:var(--grad); color:#fff; }
.m-go{ color:#A5B3BE; transition:transform .3s var(--ease),color .3s; }
.m-row:hover .m-go{ color:var(--accent); transform:translateX(3px); }
.m-chev{ color:#8193A0; flex:none; transition:transform .35s var(--ease),color .3s; }
.m-group.is-open .m-chev{ transform:rotate(180deg); color:var(--accent); }

/* expandable groups — grid-rows animates to the content's own height */
.m-sub{ display:grid; grid-template-rows:0fr; transition:grid-template-rows .4s var(--ease); }
.m-sub-inner{ min-height:0; overflow:hidden; visibility:hidden; transition:visibility 0s .4s; }
.m-group.is-open .m-sub{ grid-template-rows:1fr; }
.m-group.is-open .m-sub-inner{ visibility:visible; transition-delay:0s; }
.m-sub-panel{ margin:.3rem 0 .5rem; padding:.4rem; border-radius:16px; background:var(--mist); }

.m-sub-link{
  display:flex; align-items:center; gap:.55rem; min-height:42px; padding:.5rem .6rem; border-radius:11px;
  font-size:.85rem; font-weight:500; line-height:1.25; color:var(--ink);
  transition:background .25s,color .25s;
}
.m-sub-link svg{ color:var(--accent); flex:none; }
.m-sub-link:hover{ background:#fff; color:var(--accent); }
.m-sub-link[aria-current="page"]{ background:#fff; color:var(--accent); font-weight:600; box-shadow:0 1px 2px rgba(6,43,82,.06); }
.m-svc small{ font-size:.72rem; color:var(--ink-soft); white-space:nowrap; }
.m-sub-all{
  display:flex; align-items:center; justify-content:space-between; gap:.5rem;
  margin-top:.3rem; padding:.65rem .6rem .45rem; border-top:1px solid #E1E8EE;
  font-size:.84rem; font-weight:600; color:var(--accent);
}
.m-sub-all svg{ transition:transform .3s var(--ease); }
.m-sub-all:hover svg{ transform:translateX(3px); }

/* actions + contact card */
.m-cta{ display:grid; gap:.6rem; margin-top:1.1rem; padding-top:1.1rem; border-top:1px solid #EDF1F4; }
.m-contact{ display:grid; margin-top:1rem; padding:.35rem; border-radius:18px; background:var(--mist); }
.m-contact-row{
  display:flex; align-items:center; gap:.75rem; padding:.55rem .6rem; border-radius:12px;
  font-size:.86rem; font-weight:500; color:var(--ink); line-height:1.3; min-width:0;
  transition:background .25s;
}
a.m-contact-row:hover{ background:#fff; }
.m-contact-row small{ display:block; font-size:.7rem; font-weight:500; color:var(--ink-soft); }
.m-contact-row > span:last-child{ min-width:0; overflow-wrap:anywhere; }
.m-contact-ico{
  display:grid; place-items:center; width:34px; height:34px; border-radius:10px; flex:none;
  background:var(--grad); color:#fff;
}
.m-contact-ico.is-wa{ background:#1DA851; }

@media (prefers-reduced-motion:reduce){
  .drawer,.drawer-link,.m-sub,.m-sub-inner{ transition:none !important; }
}

/* Reading progress */
.progress-bar{
  position:fixed; top:0; left:0; height:3px; z-index:95; width:0;
  background:linear-gradient(90deg,var(--royal),var(--bright)); transition:width .12s linear;
}

/* ============================================================
   5. MOTION — scroll reveal
   ============================================================ */
[data-reveal]{
  opacity:0; transform:translateY(34px);
  transition:opacity .85s var(--ease),transform .85s var(--ease);
  will-change:opacity,transform;
}
[data-reveal="left"]{ transform:translateX(-46px); }
[data-reveal="right"]{ transform:translateX(46px); }
[data-reveal="zoom"]{ transform:scale(.9); }
[data-reveal="clip"]{ opacity:1; clip-path:inset(0 100% 0 0); transform:none; transition:clip-path 1.05s var(--ease); }
[data-reveal="flip"]{ transform:perspective(900px) rotateX(16deg) translateY(30px); }
[data-reveal].in{ opacity:1; transform:none; clip-path:inset(0 0 0 0); }

@media (prefers-reduced-motion:reduce){
  [data-reveal]{ opacity:1 !important; transform:none !important; clip-path:none !important; transition:none !important; }
}

/* Keyframes */
@keyframes kenburns{ 0%{ transform:scale(1.06) translate3d(0,0,0);} 100%{ transform:scale(1.2) translate3d(-1.6%,-1.6%,0);} }
@keyframes floaty{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(-14px);} }
@keyframes pulse-ring{ 0%{ transform:scale(.85); opacity:.75;} 70%{ transform:scale(1.5); opacity:0;} 100%{ opacity:0;} }
@keyframes marquee{ from{ transform:translateX(0);} to{ transform:translateX(-50%);} }
@keyframes shimmer{ 0%{ background-position:-200% 0;} 100%{ background-position:200% 0;} }
@keyframes scan{ 0%{ top:0; opacity:0;} 12%{opacity:1;} 88%{opacity:1;} 100%{ top:100%; opacity:0;} }
@keyframes spin-slow{ to{ transform:rotate(360deg);} }
@keyframes bob{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(6px);} }
@keyframes rise{ from{opacity:0; transform:translateY(26px);} to{opacity:1; transform:none;} }

.anim-kenburns{ animation:kenburns 22s ease-in-out infinite alternate; }
.anim-float{ animation:floaty 6.5s ease-in-out infinite; }
.anim-bob{ animation:bob 2.4s ease-in-out infinite; }
.anim-spin-slow{ animation:spin-slow 26s linear infinite; }
.anim-rise{ animation:rise .9s var(--ease) both; }

/* Hero staged entrance */
.hero-stage > *{ animation:rise 1s var(--ease) both; }
.hero-stage > *:nth-child(1){ animation-delay:.15s; }
.hero-stage > *:nth-child(2){ animation-delay:.3s; }
.hero-stage > *:nth-child(3){ animation-delay:.45s; }
.hero-stage > *:nth-child(4){ animation-delay:.6s; }
.hero-stage > *:nth-child(5){ animation-delay:.75s; }
.hero-stage > *:nth-child(6){ animation-delay:.9s; }

/* Marquee */
.marquee{ overflow:hidden; mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent); }
.marquee-track{ display:flex; width:max-content; animation:marquee 34s linear infinite; }
.marquee:hover .marquee-track{ animation-play-state:paused; }

/* Live pulse dot */
.pulse-dot{ position:relative; }
.pulse-dot::after{
  content:''; position:absolute; inset:-6px; border-radius:99px;
  border:2px solid currentColor; animation:pulse-ring 2.1s ease-out infinite;
}

/* ============================================================
   6. CARDS & SURFACES
   ============================================================ */
.card{
  position:relative; background:#fff; border:1px solid #E6ECF1; border-radius:var(--radius);
  overflow:hidden; isolation:isolate;
  transition:transform .5s var(--ease),box-shadow .5s var(--ease),border-color .4s;
}
.card::before{
  content:''; position:absolute; top:0; left:0; height:3px; width:100%;
  background:var(--grad); transform:scaleX(0); transform-origin:left;
  transition:transform .55s var(--ease);
}
.card:hover{ transform:translateY(-5px); box-shadow:var(--shadow-lift); border-color:#DCE6EE; }
.card:hover::before{ transform:scaleX(1); }

.card-media{ overflow:hidden; }
.card-media img{ transition:transform 1.05s var(--ease),filter .6s; }
.card:hover .card-media img{ transform:scale(1.05); }

/* Icon tile (poster style) */
.icon-tile{
  display:grid; place-items:center; width:44px; height:44px; border-radius:12px;
  background:var(--grad); color:#fff; flex:none;
  box-shadow:0 8px 20px -12px rgba(8,122,193,.8);
  transition:transform .5s var(--ease),box-shadow .5s;
}
.icon-tile svg{ width:20px; height:20px; }
.card:hover .icon-tile,.group:hover .icon-tile{ transform:translateY(-2px) scale(1.05); }

.icon-tile-lg{ width:52px; height:52px; border-radius:14px; }
.icon-tile-lg svg{ width:24px; height:24px; }

/* Heavier glass — for panels that sit over bright parts of a photo */
.glass-strong{
  background:rgba(3,29,58,.86); border:1px solid rgba(255,255,255,.2);
  backdrop-filter:blur(16px) saturate(140%); border-radius:var(--radius);
  transition:background .45s,border-color .45s,transform .5s var(--ease);
}
.glass-strong:hover{ background:rgba(3,29,58,.9); border-color:rgba(0,159,227,.55); }

/* Glass card on dark */
.glass{
  background:rgba(255,255,255,.075); border:1px solid rgba(255,255,255,.155);
  backdrop-filter:blur(14px); border-radius:var(--radius);
  transition:background .45s,border-color .45s,transform .5s var(--ease);
}
.glass:hover{ background:rgba(255,255,255,.12); border-color:rgba(0,159,227,.5); transform:translateY(-4px); }

/* Poster-style panel header bar */
.panel-head{
  background:linear-gradient(90deg,var(--navy) 0%,var(--royal) 78%,rgba(8,122,193,.15) 100%);
  color:#fff; font-family:var(--font-display); font-weight:600;
  letter-spacing:-.005em; font-size:.92rem;
  padding:.62rem 1rem; border-radius:12px;
}

/* Check list (poster style) */
.check-list li{
  display:flex; gap:.8rem; align-items:flex-start;
  padding:.36rem 0; font-size:.88rem; line-height:1.45;
  border-bottom:1px dashed #E2E9EF;
}
.check-list li:last-child{ border-bottom:0; }
.check-list li::before{
  content:''; flex:none; width:17px; height:17px; margin-top:.1rem; border-radius:99px;
  background:var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
  transition:background-color .3s,transform .3s var(--ease);
}
.check-list li:hover::before{ background-color:var(--bright); transform:scale(1.15); }

/* Stat counter */
.stat-num{ font-family:var(--font-display); font-weight:700; line-height:1; letter-spacing:-.04em; }

/* ============================================================
   7. PROCESS / TIMELINE
   ============================================================ */
.step-rail{ position:relative; }
.step-rail::before{
  content:''; position:absolute; left:50%; top:0; bottom:0; width:2px; translate:-50% 0;
  background:linear-gradient(180deg,transparent,var(--bright) 12%,var(--royal) 88%,transparent);
  opacity:.28;
}
@media (max-width:1023px){ .step-rail::before{ left:26px; } }

.step-node{
  display:grid; place-items:center; width:46px; height:46px; border-radius:99px;
  background:#fff; border:2px solid var(--silver); color:var(--navy);
  font-family:var(--font-display); font-weight:700; font-size:1rem;
  transition:all .5s var(--ease); flex:none;
}
.step-item.in .step-node{ background:var(--grad); border-color:transparent; color:#fff; box-shadow:0 0 0 7px rgba(0,159,227,.14); }

/* Arrow connector for the horizontal process strip */
.proc-arrow{
  position:absolute; top:50%; right:-17px; translate:0 -50%; z-index:2;
  width:0; height:0; border-top:11px solid transparent; border-bottom:11px solid transparent;
  border-left:15px solid var(--royal);
}

/* ============================================================
   8. ACCORDION / TABS / FILTERS
   ============================================================ */
.acc-body{ max-height:0; overflow:hidden; transition:max-height .6s var(--ease),opacity .45s; opacity:0; }
.acc.open .acc-body{ opacity:1; }
.acc-icon{ transition:transform .45s var(--ease),background .35s,color .35s; }
.acc.open .acc-icon{ transform:rotate(45deg); background:var(--grad); color:#fff; border-color:transparent; }
.acc.open .acc-q{ color:var(--royal); }
.acc{ border-radius:14px !important; transition:border-color .4s,box-shadow .4s,background .4s; }
.acc.open{ border-color:rgba(0,159,227,.42); box-shadow:0 18px 44px -26px rgba(6,43,82,.5); }

.chip{
  font-family:var(--font-display); font-weight:600; font-size:.85rem;
  letter-spacing:-.005em;
  padding:.5rem 1.05rem; border-radius:99px; border:1.5px solid #DCE4EA;
  color:var(--ink); background:#fff; cursor:pointer;
  transition:all .38s var(--ease); white-space:nowrap;
}
.chip:hover{ border-color:var(--bright); color:var(--royal); transform:translateY(-2px); }
.chip.active{ background:var(--grad); border-color:transparent; color:#fff; box-shadow:0 12px 26px -14px rgba(8,122,193,.85); }

.filter-item{ transition:opacity .5s var(--ease),transform .5s var(--ease); }
.filter-item.hide{ display:none; }
.filter-item.fade{ opacity:0; transform:scale(.94) translateY(14px); }

/* ============================================================
   9. BEFORE / AFTER SLIDER
   ============================================================ */
.ba{ position:relative; overflow:hidden; border-radius:var(--radius); cursor:ew-resize; user-select:none; touch-action:pan-y; }
.ba img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; pointer-events:none; }
.ba .ba-clip{ position:absolute; inset:0; z-index:2; width:50%; overflow:hidden; will-change:width; }
.ba .ba-clip img{ width:var(--ba-w,100%); max-width:none; }
.ba-handle{
  position:absolute; top:0; bottom:0; width:3px; background:#fff; left:50%;
  translate:-50% 0; box-shadow:0 0 22px rgba(0,0,0,.5); pointer-events:none; z-index:3;
}
.ba-knob{
  position:absolute; top:50%; left:50%; translate:-50% -50%;
  width:52px; height:52px; border-radius:99px; background:#fff; color:var(--navy);
  display:grid; place-items:center; box-shadow:0 8px 26px rgba(0,0,0,.42);
  transition:transform .3s var(--ease);
}
.ba:hover .ba-knob{ transform:translate(-50%,-50%) scale(1.1); }
.ba-tag{
  position:absolute; top:14px; z-index:4; padding:.3rem .75rem; border-radius:99px;
  font-family:var(--font-display); font-weight:600; font-size:.74rem;
  letter-spacing:.01em; backdrop-filter:blur(6px);
}
.ba > .ba-tag{ z-index:1; }      /* the base layer's tag slides under the clipped layer */

/* compact teaser cards */
.ba-sm .ba-knob{ width:40px; height:40px; }
.ba-sm .ba-knob svg{ width:16px; height:16px; }
.ba-sm .ba-tag{ top:10px; padding:.22rem .6rem; font-size:.72rem; }

/* ============================================================
   10. GALLERY / LIGHTBOX
   ============================================================ */
.tile{ position:relative; overflow:hidden; border-radius:14px; cursor:pointer; background:var(--navy); }
.tile img{ width:100%; height:100%; object-fit:cover; transition:transform 1s var(--ease),opacity .6s; }
.tile:hover img{ transform:scale(1.06); }
.tile-veil{
  position:absolute; inset:0; display:flex; flex-direction:column; justify-content:flex-end;
  padding:1.15rem; color:#fff;
  background:linear-gradient(0deg,rgba(3,29,58,.9) 0%,rgba(6,43,82,.35) 45%,transparent 75%);
  opacity:0; transition:opacity .5s var(--ease);
}
.tile:hover .tile-veil{ opacity:1; }
.tile-veil > *{ transform:translateY(14px); transition:transform .5s var(--ease); }
.tile:hover .tile-veil > *{ transform:translateY(0); }

.lightbox{
  position:fixed; inset:0; z-index:110; background:rgba(3,15,30,.96);
  display:flex; align-items:center; justify-content:center; padding:clamp(1rem,4vw,3rem);
  opacity:0; visibility:hidden; transition:opacity .4s,visibility .4s;
}
.lightbox.open{ opacity:1; visibility:visible; }
.lightbox img{ max-width:100%; max-height:82vh; object-fit:contain; border-radius:12px; animation:rise .5s var(--ease) both; }
.lb-btn{
  display:grid; place-items:center; width:46px; height:46px; border-radius:99px;
  background:rgba(255,255,255,.1); color:#fff; border:1px solid rgba(255,255,255,.22);
  transition:all .3s var(--ease);
}
.lb-btn:hover{ background:var(--bright); border-color:transparent; transform:scale(1.09); }

/* ============================================================
   11. FORMS
   ============================================================ */
.field{ position:relative; }
.field label{
  font-size:.82rem; font-weight:600; letter-spacing:-.005em;
  color:var(--ink); margin-bottom:.4rem; display:block;
}
.field label .req{ color:var(--danger); }
/* element+class so these beat the Tailwind forms plugin's [type=...] resets */
input.input,select.select,textarea.textarea,.input,.select,.textarea{
  width:100%; padding:.7rem .95rem; border:1.5px solid #DCE4EA; border-radius:12px;
  background:#fff; font-size:.9rem; color:var(--ink);
  transition:border-color .32s,box-shadow .32s,background .32s;
}
input.input:focus,select.select:focus,textarea.textarea:focus,.input:focus,.select:focus,.textarea:focus{
  outline:none; border-color:var(--bright); box-shadow:0 0 0 4px rgba(0,159,227,.14);
}
.input::placeholder,.textarea::placeholder{ color:#9AAAB6; }
.textarea{ resize:vertical; min-height:110px; }
.select{ appearance:none; cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23062B52' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 1rem center; background-size:16px; padding-right:2.6rem;
}
.input.err,.select.err,.textarea.err{ border-color:#E0364F; box-shadow:0 0 0 4px rgba(224,54,79,.12); }
.err-msg{ color:var(--danger); font-size:.75rem; margin-top:.35rem; display:none; }
.err-msg.show{ display:block; animation:rise .3s var(--ease) both; }

.dropzone{
  border:2px dashed #C6D3DE; border-radius:var(--radius); background:var(--mist);
  padding:1.5rem 1.1rem; text-align:center; cursor:pointer;
  transition:all .38s var(--ease);
}
.dropzone:hover,.dropzone.drag{ border-color:var(--bright); background:#EAF6FD; transform:translateY(-2px); }
.dropzone.drag{ box-shadow:0 0 0 5px rgba(0,159,227,.12); }

/* ============================================================
   12. AI SITE INSPECTION
   ============================================================ */
.ai-shell{ background:linear-gradient(160deg,#031D3A,#062B52 48%,#0A3A6B); }

.scan-frame{ position:relative; overflow:hidden; }
.scan-line{
  position:absolute; left:0; right:0; height:3px;
  background:linear-gradient(90deg,transparent,#00E5FF,#009FE3,transparent);
  box-shadow:0 0 22px 5px rgba(0,229,255,.55); animation:scan 2.1s ease-in-out infinite;
}
.scan-grid::after{
  content:''; position:absolute; inset:0; pointer-events:none;
  background-image:linear-gradient(rgba(0,229,255,.16) 1px,transparent 1px),
                   linear-gradient(90deg,rgba(0,229,255,.16) 1px,transparent 1px);
  background-size:30px 30px;
}

.ai-step{ transition:all .45s var(--ease); }
.ai-dot{
  display:grid; place-items:center; width:38px; height:38px; border-radius:99px;
  border:2px solid rgba(255,255,255,.28); color:rgba(255,255,255,.55);
  font-weight:700; font-size:.85rem; transition:all .45s var(--ease); flex:none;
}
.ai-step.active .ai-dot{ background:var(--bright); border-color:var(--bright); color:#fff; box-shadow:0 0 0 6px rgba(0,159,227,.22); }
.ai-step.done .ai-dot{ background:#12B76A; border-color:#12B76A; color:#fff; }
.ai-step.active .ai-label,.ai-step.done .ai-label{ color:#fff; }

.ai-bar{ height:5px; border-radius:99px; background:rgba(255,255,255,.14); overflow:hidden; }
.ai-bar span{ display:block; height:100%; width:0; border-radius:99px;
  background:linear-gradient(90deg,#087AC1,#00E5FF); transition:width .5s var(--ease); }

.sev{ font-family:var(--font-display); font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
.sev-low{ color:#12B76A; } .sev-mod{ color:#F59E0B; } .sev-high{ color:#F04438; }
.sev-pill-low{ background:rgba(18,183,106,.16); color:#4ADE80; border-color:rgba(18,183,106,.4); }
.sev-pill-mod{ background:rgba(245,158,11,.16); color:#FBBF24; border-color:rgba(245,158,11,.4); }
.sev-pill-high{ background:rgba(240,68,56,.16); color:#FB7185; border-color:rgba(240,68,56,.4); }

.thumb-cell{ position:relative; border-radius:10px; overflow:hidden; aspect-ratio:1; background:rgba(255,255,255,.06); }
.thumb-cell img{ width:100%; height:100%; object-fit:cover; }
.thumb-x{
  position:absolute; top:5px; right:5px; width:24px; height:24px; border-radius:99px;
  background:rgba(3,29,58,.8); color:#fff; display:grid; place-items:center;
  opacity:0; transition:opacity .3s,transform .3s var(--ease);
}
.thumb-cell:hover .thumb-x{ opacity:1; }
.thumb-x:hover{ transform:scale(1.12); background:#F04438; }

/* Skeleton shimmer */
.shimmer{
  background:linear-gradient(90deg,rgba(255,255,255,.05) 25%,rgba(255,255,255,.14) 50%,rgba(255,255,255,.05) 75%);
  background-size:200% 100%; animation:shimmer 1.5s linear infinite;
}

/* ============================================================
   13. FLOATING ACTIONS
   ============================================================ */
.fab-stack{ position:fixed; right:18px; bottom:18px; z-index:65; display:flex; flex-direction:column; gap:.7rem; align-items:flex-end; }
.fab{
  display:grid; place-items:center; width:54px; height:54px; border-radius:99px;
  color:#fff; box-shadow:0 12px 30px -10px rgba(0,0,0,.55);
  transition:transform .4s var(--ease),box-shadow .4s; position:relative;
}
.fab:hover{ transform:scale(1.11) translateY(-2px); }
.fab svg{ width:25px; height:25px; }
.fab-wa{ background:#1DA851; }   /* darkened from #25D366 so the white glyph reaches 3:1 */
.fab-call{ background:var(--grad); }
.fab-top{ background:var(--navy-deep); opacity:0; visibility:hidden; transform:translateY(14px); }
.fab-top.show{ opacity:1; visibility:visible; transform:none; }
.fab-label{
  position:absolute; right:calc(100% + 12px); top:50%; translate:0 -50%;
  background:var(--navy-deep); color:#fff; font-size:.76rem; font-weight:600;
  padding:.4rem .75rem; border-radius:8px;
  white-space:nowrap; opacity:0; pointer-events:none; transition:opacity .3s,transform .3s var(--ease);
  transform:translateX(8px) translateY(-50%);
}
.fab:hover .fab-label{ opacity:1; transform:translateX(0) translateY(-50%); }


/* ============================================================
   14. FOOTER
   ============================================================ */
.footer-link{
  position:relative; display:inline-block; padding-block:.22rem; min-height:25px;
  transition:color .3s,transform .35s var(--ease);
}
.footer-link:hover{ color:var(--bright); transform:translateX(6px); }
.footer-link::before{
  content:'›'; position:absolute; left:-14px; opacity:0; color:var(--bright);
  transition:opacity .3s,transform .3s var(--ease); transform:translateX(-5px);
}
.footer-link:hover::before{ opacity:1; transform:translateX(0); }

/* ============================================================
   15. UTIL
   ============================================================ */
.no-scroll{ overflow:hidden; }
html.no-scroll{ overscroll-behavior:none; }
.aspect-poster{ aspect-ratio:2/3; }
.line-clamp-2{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.line-clamp-3{ display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.toast{
  position:fixed; left:50%; bottom:32px; translate:-50% 0; z-index:120;
  background:var(--navy-deep); color:#fff; padding:.95rem 1.5rem; border-radius:14px;
  box-shadow:0 20px 50px -18px rgba(0,0,0,.7); display:flex; align-items:center; gap:.7rem;
  opacity:0; visibility:hidden; transform:translate(-50%,18px); transition:all .45s var(--ease);
  font-size:.9rem; max-width:min(92vw,460px);
}
.toast.show{ opacity:1; visibility:visible; transform:translate(-50%,0); }

.img-ph{ background-color:#EDF1F4; }

/* ============================================================
   16. ACCESSIBILITY FLOORS
   ============================================================ */
.label-xs{ font-size:.72rem; letter-spacing:.16em; text-transform:uppercase; font-weight:700; }
.text-accent{ color:var(--accent); }
.text-danger{ color:var(--danger); }
.muted{ color:var(--ink-soft); }

/* keep decorative bright blue off small text on light surfaces */
.on-light .text-bright-safe{ color:var(--accent); }

/* inline anchors inside body copy get a usable hit area */
.prose-link{ display:inline-block; padding-block:.15rem; min-height:24px; }

/* Slider dots keep their visual size but gain a 24px touch target */
.slider-dot{ position:relative; }
.slider-dot::after{ content:''; position:absolute; inset:-8px -4px; }

/* Skip link — keyboard users land past the nav */
.skip-link{
  position:absolute; left:-9999px; top:0; z-index:200;
  background:var(--navy-deep); color:#fff; padding:.85rem 1.4rem;
  font-family:var(--font-display); font-weight:600; border-radius:0 0 12px 0;
}
.skip-link:focus{ left:0; outline:3px solid var(--bright); outline-offset:2px; }

/* Visible focus ring for keyboard navigation */
a:focus-visible,button:focus-visible,input:focus-visible,
select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{
  outline:3px solid var(--bright); outline-offset:3px; border-radius:2px;
}
.site-header a:focus-visible,.drawer a:focus-visible{ outline-offset:1px; }

/* Sub-page section navigation (About / Service divisions) */
.subnav{
  display:flex; gap:.5rem; overflow-x:auto; scrollbar-width:none;
  scroll-snap-type:x proximity; padding-right:1.5rem;
  /* fade the right edge so it reads as scrollable */
  mask-image:linear-gradient(90deg,#000 calc(100% - 44px),transparent);
  -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 44px),transparent);
}
.subnav::-webkit-scrollbar{ display:none; }
.subnav a{ scroll-snap-align:start; }
/* no fade needed once everything fits */
@media (min-width:1280px){
  .subnav:not(.is-overflowing){ mask-image:none; -webkit-mask-image:none; }
}
.subnav a{
  flex:none; padding:.5rem 1rem; border-radius:99px;
  font-family:var(--font-display); font-weight:600; font-size:.84rem;
  letter-spacing:-.005em; white-space:nowrap;
  border:1.5px solid #DCE4EA; color:var(--ink); background:#fff;
  transition:all .35s var(--ease);
}
.subnav a:hover{ border-color:var(--bright); color:var(--accent); }
.subnav a[aria-current="page"]{ background:var(--grad); border-color:transparent; color:#fff; }

/* Prev / next pager between sibling pages */
.pager{ display:grid; gap:1rem; }
@media (min-width:640px){ .pager{ grid-template-columns:1fr 1fr; } }
.pager a{
  display:flex; align-items:center; gap:.85rem; padding:.9rem 1.1rem;
  border:1px solid #E6ECF1; border-radius:14px; background:#fff;
  transition:all .4s var(--ease);
}
.pager a:hover{ border-color:var(--bright); box-shadow:0 16px 38px -22px rgba(6,43,82,.5); transform:translateY(-2px); }
.pager .dir{ font-size:.74rem; font-weight:600; color:var(--ink-soft); }
.pager .ttl{ font-family:var(--font-display); font-weight:600;
  color:var(--navy); font-size:.92rem; line-height:1.3; }
.pager .next{ justify-content:flex-end; text-align:right; }

/* ============================================================
   17. CAROUSEL
   Native scroll-snap track (real momentum + swipe on touch),
   driven programmatically by the arrows and autoplay.
   ============================================================ */
.carousel{ position:relative; }

.carousel-viewport{
  overflow:hidden;
  /* let cards breathe outside the gutter without clipping their shadow */
  margin-inline:-.75rem; padding-inline:.75rem;
}

.carousel-track{
  display:flex; gap:1.25rem;
  overflow-x:auto; overflow-y:hidden;
  scroll-snap-type:x mandatory;
  /* no scroll-behavior here on purpose: CSS 'smooth' would override the
     behavior passed to scrollTo(), so reduced-motion users could not opt out. */
  scrollbar-width:none; -ms-overflow-style:none;
  padding-block:.75rem;              /* room for the hover lift */
  touch-action:pan-x pan-y;
  overscroll-behavior-x:contain;
}
.carousel-track::-webkit-scrollbar{ display:none; }

.carousel-slide{
  flex:0 0 calc((100% - 2.5rem) / 3);
  scroll-snap-align:start;
  min-width:0;
}
@media (max-width:1023px){ .carousel-slide{ flex-basis:calc((100% - 1.25rem) / 2); } }
@media (max-width:639px){
  .carousel-track{ gap:1rem; }
  .carousel-slide{ flex-basis:86%; }   /* a peek of the next card invites the swipe */
}

/* --- controls ------------------------------------------------ */
.carousel-ctrl{
  display:inline-grid; place-items:center;
  width:44px; height:44px; border-radius:99px;
  border:1.5px solid #D5DEE6; background:#fff; color:var(--navy);
  position:relative; overflow:hidden; isolation:isolate; flex:none;
  transition:color .35s var(--ease),border-color .35s var(--ease),
             transform .35s var(--ease),box-shadow .35s var(--ease);
}
.carousel-ctrl::before{
  content:''; position:absolute; inset:0; z-index:-1; border-radius:inherit;
  background:var(--grad); transform:scale(0); transition:transform .45s var(--ease);
}
.carousel-ctrl:hover:not(:disabled){
  color:#fff; border-color:transparent; transform:translateY(-2px);
  box-shadow:0 14px 30px -12px rgba(8,122,193,.75);
}
.carousel-ctrl:hover:not(:disabled)::before{ transform:scale(1); }
.carousel-ctrl:active:not(:disabled){ transform:translateY(0) scale(.96); }
.carousel-ctrl:disabled{ opacity:.35; cursor:not-allowed; }
.carousel-ctrl svg{ width:17px; height:17px; }

/* on dark blocks */
.carousel-ctrl-light{ border-color:rgba(255,255,255,.28); background:rgba(255,255,255,.07); color:#fff; backdrop-filter:blur(8px); }
.carousel-ctrl-light:hover:not(:disabled){ color:#fff; border-color:transparent; }

/* --- segmented progress (Stories-style) ---------------------- */
.carousel-dots{ display:flex; align-items:center; gap:6px; }
.carousel-dot{
  position:relative; height:4px; width:26px; border-radius:99px;
  background:#D5DEE6; cursor:pointer; flex:none;
  transition:width .5s var(--ease),background .35s;
  padding:0; border:0;
  /* no overflow:hidden here — it would clip the ::after hit area below.
     The fill clips itself with its own border-radius instead. */
}
.carousel-dot::after{           /* invisible 24px+ touch target */
  content:''; position:absolute; inset:-11px -2px;
}
.carousel-dot:hover{ background:var(--silver); }
.carousel-dot[aria-current="true"]{ width:58px; background:#D5DEE6; }
.carousel-dot > i{
  display:block; height:100%; width:0; border-radius:99px;
  background:var(--grad);
}
.carousel-dot[aria-current="true"] > i{ width:100%; }
.carousel-dot[aria-current="true"].is-timing > i{
  width:0; animation:dot-fill var(--dot-dur,6000ms) linear forwards;
}
@keyframes dot-fill{ from{ width:0; } to{ width:100%; } }
@media (prefers-reduced-motion:reduce){
  .carousel-dot[aria-current="true"].is-timing > i{ animation:none; width:100%; }
}

.carousel-dots-light .carousel-dot{ background:rgba(255,255,255,.22); }
.carousel-dots-light .carousel-dot[aria-current="true"]{ background:rgba(255,255,255,.22); }
.carousel-dots-light .carousel-dot > i{ background:linear-gradient(90deg,#087AC1,#00E5FF); }

/* --- counter -------------------------------------------------- */
.carousel-count{
  font-family:var(--font-display); font-weight:600;
  letter-spacing:.04em; font-size:.84rem; color:var(--ink-soft);
  font-variant-numeric:tabular-nums; white-space:nowrap;
}
.carousel-count b{ color:var(--navy); font-weight:700; }
.carousel-count-light{ color:rgba(255,255,255,.6); }
.carousel-count-light b{ color:#fff; }

/* hide the whole control bar when everything already fits */
.carousel:not(.is-scrollable) .carousel-bar{ display:none; }

/* ============================================================
   HERO SHOWCASE — cross-fading division photos in the brand slash
   ============================================================ */
.hero-show{ position:relative; padding:1.5rem 1.5rem 4.5rem 2.25rem; }

.hero-show-media{
  position:relative; aspect-ratio:5/6; max-height:470px;
  overflow:hidden; background:var(--navy-deep);
  box-shadow:0 40px 80px -40px rgba(0,0,0,.7);
}
.show-slide{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  opacity:0; visibility:hidden; transform:scale(1.1);
  transition:opacity 1.1s var(--ease),transform 6.5s ease-out,visibility 0s 1.1s;
}
.show-slide.is-active{
  opacity:1; visibility:visible; transform:scale(1);
  transition:opacity 1.1s var(--ease),transform 6.5s ease-out,visibility 0s;
}

/* offset outline echoing the slash, and a dot field behind the frame */
.hero-show-frame{
  position:absolute; top:0; right:0; width:calc(100% - 3.75rem); height:calc(100% - 6rem);
  fill:none; stroke:rgba(0,159,227,.55); stroke-width:1.5; pointer-events:none;
}
.hero-show-dots{
  position:absolute; right:0; bottom:2.25rem; width:150px; height:150px; opacity:.9;
  background-image:radial-gradient(rgba(0,159,227,.45) 1.4px,transparent 1.4px);
  -webkit-mask-image:linear-gradient(135deg,transparent 10%,#000 60%);
          mask-image:linear-gradient(135deg,transparent 10%,#000 60%);
}

.hero-show-badge{
  position:absolute; top:3.25rem; right:0; z-index:2;
  display:flex; align-items:center; gap:.85rem; padding:.8rem 1.1rem .8rem .8rem;
}

.hero-show-caption{
  position:absolute; left:0; bottom:0; z-index:2; width:min(84%,400px);
  padding:1.25rem 1.35rem 1.1rem;
  border-left:3px solid var(--bright);
  box-shadow:0 30px 60px -30px rgba(0,0,0,.8);
}

/* captions share one grid cell so the card keeps the height of the longest */
.show-caps{ display:grid; }
.show-cap{
  grid-area:1/1; display:flex; align-items:center; justify-content:space-between; gap:1rem;
  opacity:0; visibility:hidden; transform:translateY(10px);
  transition:opacity .45s var(--ease),transform .6s var(--ease),visibility 0s .45s;
}
.show-cap.is-active{
  opacity:1; visibility:visible; transform:none;
  transition:opacity .55s var(--ease) .15s,transform .7s var(--ease) .15s,visibility 0s;
}

.show-tab{
  position:relative; display:grid; place-items:center; width:40px; height:40px;
  border-radius:10px; border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.7); cursor:pointer; overflow:hidden;
  transition:background .35s,color .35s,border-color .35s,transform .4s var(--ease);
}
.show-tab:hover{ color:#fff; border-color:rgba(0,159,227,.6); transform:translateY(-2px); }
.show-tab[aria-current="true"]{ background:var(--grad); border-color:transparent; color:#fff; }
.show-tab > i{
  position:absolute; left:0; bottom:0; height:2px; width:0;
  background:linear-gradient(90deg,#fff,#00E5FF);
}
.show-tab[aria-current="true"].is-timing > i{ animation:dot-fill var(--dot-dur,5500ms) linear forwards; }

@media (prefers-reduced-motion:reduce){
  .show-slide,.show-slide.is-active{ transform:none; }
  .hero-show-badge{ animation:none; }
}

/* ============================================================
   PHONE LAYOUT TIDY-UPS
   ============================================================ */
@media (max-width:639px){
  /* button rows: stack full width instead of wrapping at mixed widths */
  .flex.flex-wrap:has(> .btn){ display:grid; grid-template-columns:1fr; justify-items:stretch; }
  .flex.flex-wrap:has(> .btn) > .btn{ width:100%; }

  /* filter chips: one swipeable row rather than three centred ones */
  [data-filter-group].flex-wrap{          /* doubled up to outrank Tailwind's .flex-wrap/.justify-center */
    flex-wrap:nowrap; justify-content:flex-start; overflow-x:auto; scrollbar-width:none;
    margin-inline:-1.5rem; padding:.25rem 1.5rem; scroll-padding-inline:1.5rem;
    -webkit-mask-image:linear-gradient(90deg,transparent,#000 1.25rem,#000 calc(100% - 2rem),transparent);
            mask-image:linear-gradient(90deg,transparent,#000 1.25rem,#000 calc(100% - 2rem),transparent);
  }
  [data-filter-group]::-webkit-scrollbar{ display:none; }
  [data-filter-group] .chip{ flex:none; }

  /* floating actions: a little smaller so they cover less content */
  .fab{ width:48px; height:48px; }
  .fab svg{ width:22px; height:22px; }
}

/* ============================================================
   SMALL SCREENS — keep every section, in a layout that fits
   ============================================================ */
/* card rows (method steps, related projects / insights) become a swipe row on phones */
@media (max-width:639px){
  .m-rail{
    grid-auto-flow:column; grid-auto-columns:80%; grid-template-columns:none;
    gap:.85rem; overflow-x:auto; overscroll-behavior-x:contain;
    scroll-snap-type:x mandatory; scrollbar-width:none;
    margin-inline:-1.5rem; padding:.25rem 1.5rem 1rem; scroll-padding-inline:1.5rem;
  }
  .m-rail::-webkit-scrollbar{ display:none; }
  .m-rail > *{ scroll-snap-align:start; min-width:0; }
  .m-rail > [data-reveal]{ opacity:1; transform:none; }   /* off-screen cards are already visible when swiped in */
  .m-rail .proc-arrow{ display:none; }
}

/* hero division showcase below the headline on phones and tablets */
@media (max-width:1023px){
  .hero-show{ padding:0; max-width:560px; margin-top:.5rem; }
  .hero-show-frame,.hero-show-dots{ display:none; }
  .hero-show-media{ aspect-ratio:16/11; max-height:none; border-radius:var(--radius); clip-path:none; }
  .hero-show-badge{ top:.8rem; right:.8rem; padding:.5rem .8rem .5rem .5rem; gap:.6rem; }
  .hero-show-badge .icon-tile{ width:32px !important; height:32px !important; }
  .hero-show-caption{ position:relative; left:auto; bottom:auto; width:auto; margin:-3.25rem .75rem 0; padding:1rem 1.1rem .95rem; }
}
@media (max-width:639px){
  .hero-show-badge > span:last-child > span:last-child{ display:none; }   /* keep the badge to one line */
}

/* reveal motion: shorter and quicker on small screens so sections never sit blank */
@media (max-width:767px){
  [data-reveal]{ transform:translateY(16px); transition-duration:.5s; }
  [data-reveal="left"],[data-reveal="right"]{ transform:translateY(16px); }
  [data-reveal="zoom"]{ transform:scale(.97); }
  [data-reveal="flip"]{ transform:translateY(16px); }
}
