/* ============================================================
   TechMEPi — Extended components (Luxe-inspired, navy/gold)
   Loaded AFTER main.css (tokens live there)
   ============================================================ */

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  height: 40px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1001;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar-group { display: flex; align-items: center; gap: 22px; min-width: 0; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: rgba(255,255,255,.78); }
.topbar-item svg { width: 14px; height: 14px; color: var(--gold-light); flex: 0 0 auto; }
.topbar-item a { color: inherit; }
.topbar-item a:hover { color: var(--gold-light); }
@media (max-width: 900px) { .topbar-group--extra { display: none; } }
@media (max-width: 560px) { .topbar-item--hours { display: none; } }

/* Header sits under topbar; both scroll away, header re-sticks */
.site-shell .site-header { position: sticky; top: 0; }

/* Stacked topbar+header layout: the header sits ON a light strip above the hero
   (it does not overlay the hero), so it must always render solid — never the
   transparent white-on-dark state, which would make nav text invisible. */
body.site-shell .site-header.header-on-dark:not(.is-open) {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(11, 24, 57, 0.08), var(--shadow-sm);
}
body.site-shell .site-header.header-on-dark:not(.is-solid):not(.is-open) .nav a { color: var(--navy-ink); }
body.site-shell .site-header.header-on-dark:not(.is-solid):not(.is-open) .nav a.active { color: var(--navy); }
body.site-shell .site-header.header-on-dark:not(.is-solid):not(.is-open) .nav-toggle span { background: var(--navy); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 4000;
  background: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader svg { height: 64px; animation: preloader-pulse 1.1s ease-in-out infinite; }
@keyframes preloader-pulse { 0%, 100% { opacity: 0.55; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .preloader { display: none; } }

/* ---------- Hero slider ---------- */
.hero-slider { position: relative; min-height: min(92vh, 900px); overflow: hidden; background: var(--navy-deep); display: flex; align-items: center; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; pointer-events: none; }
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-slide.is-active .bg { animation: kenburns 7.5s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .hero-slide.is-active .bg { animation: none; } }
.hero-slide .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11, 24, 57, 0.93) 8%, rgba(19, 38, 92, 0.66) 52%, rgba(11, 24, 57, 0.28));
}
.hero-slider .container { position: relative; z-index: 5; width: 100%; }
.hero-copy { max-width: 760px; padding: 140px 0 120px; }
.hero-copy h1, .hero-copy .h1 {
  font-family: var(--font-display);
  color: #fff; font-size: clamp(2.4rem, 5.4vw, 4rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 22px;
}
.hero-copy .gold { color: var(--gold-light); }
.hero-copy h1, .hero-copy .h1, .hero-copy > p { text-shadow: 0 2px 26px rgba(6, 14, 38, 0.45); }
.hero-copy p { color: rgba(255, 255, 255, 0.82); font-size: 1.12rem; max-width: 560px; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-trust { margin-top: 46px; color: rgba(255, 255, 255, 0.6); font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase; }
.slider-ui { position: absolute; z-index: 6; right: 40px; bottom: 40px; display: flex; align-items: center; gap: 18px; }
.slide-counter { font-family: var(--font-display); color: #fff; font-size: 0.9rem; letter-spacing: 0.15em; }
.slide-counter .total { color: rgba(255, 255, 255, 0.5); }
.slider-arrows { display: flex; gap: 10px; }
.slider-arrow {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35); background: transparent; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: 0.25s;
}
.slider-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.slider-arrow svg { width: 18px; height: 18px; }
.slider-dots { position: absolute; z-index: 6; left: 40px; bottom: 46px; display: flex; gap: 10px; }
.slider-dot { width: 34px; height: 3px; border: 0; padding: 0; background: rgba(255, 255, 255, 0.3); cursor: pointer; transition: background 0.3s; }
.slider-dot.is-active { background: var(--gold); }
.slide-progress { position: absolute; z-index: 6; left: 0; bottom: 0; height: 3px; background: var(--gold); width: 0; }
.slide-progress.animating { transition: width linear; }
@media (max-width: 700px) {
  .slider-ui { right: 20px; bottom: 24px; }
  .slider-dots { left: 20px; bottom: 30px; }
  .hero-copy { padding: 120px 0 110px; }
}

/* ---------- Mega menu (premium) ---------- */
.nav-item-mega { position: static; }
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white);
  border-top: 2px solid var(--gold);
  box-shadow: 0 40px 80px -20px rgba(11, 24, 57, 0.28);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease), visibility 0.32s;
  z-index: 999; overflow: hidden;
}
.nav-item-mega.open .mega, .nav-item-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
/* faint blueprint grid wash on the panel */
.mega::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(rgba(19, 38, 92, 0.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(19, 38, 92, 0.035) 1px, transparent 1px);
  background-size: 30px 30px;
}
.mega-inner { position: relative; display: grid; grid-template-columns: repeat(3, 1fr) minmax(280px, 340px); gap: 30px; padding: 34px 0 30px; align-items: start; }
.mega-col { display: flex; flex-direction: column; gap: 22px; align-self: start; }
.mega-group-title {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 12px; font-family: var(--font-display);
  font-weight: 700; line-height: 1.15;
}
.mega-group-title .mega-cat-ic {
  width: 24px; height: 24px; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: 7px; background: var(--gold-pale); color: var(--navy);
}
.mega-group-title .mega-cat-ic svg { width: 14px; height: 14px; }
.mega-group-title .mega-count {
  margin-left: auto; font-size: 0.62rem; letter-spacing: 0.05em; color: var(--grey-500);
  background: var(--off-white); border: 1px solid var(--grey-100);
  border-radius: 20px; padding: 1px 8px; font-weight: 600;
}
.mega-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega-group li a {
  display: flex; align-items: center; gap: 11px;
  font-size: 0.9rem; color: var(--navy-ink); font-weight: 500; line-height: 1.25;
  padding: 7px 9px; border-radius: 9px; margin: 0 -9px;
  transition: background 0.2s var(--ease), color 0.2s, transform 0.2s var(--ease);
}
.mega-group li a .mi {
  width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: 8px; background: var(--off-white); border: 1px solid var(--grey-100);
  color: var(--navy); transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.mega-group li a .mi svg { width: 16px; height: 16px; }
.mega-group li a:hover { background: var(--off-white); color: var(--navy); transform: translateX(3px); }
.mega-group li a:hover .mi { background: var(--navy); border-color: var(--navy); color: var(--gold-light); }

/* Feature card */
.mega-feature {
  border-radius: var(--radius); overflow: hidden; position: relative; min-height: 300px;
  align-self: stretch;
  display: flex; flex-direction: column; justify-content: flex-end; background: var(--navy-deep);
  isolation: isolate;
}
.mega-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.mega-feature::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11, 24, 57, 0.15) 0%, rgba(11, 24, 57, 0.72) 52%, rgba(9, 17, 38, 0.96) 100%);
}
.mega-feature .mf-body { position: relative; padding: 22px 22px 20px; }
.mega-feature .mf-tag {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px;
  font-family: var(--font-display); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--navy-deep); background: var(--gold); border-radius: 20px; padding: 4px 11px;
}
.mega-feature h4, .mega-feature .mega-feature-title {
  color: #fff; margin: 0 0 8px; font-family: var(--font-display);
  font-size: 1.16rem; font-weight: 700; line-height: 1.18; letter-spacing: -0.015em;
}
.mega-feature p { color: rgba(255, 255, 255, 0.82); font-size: 0.86rem; line-height: 1.5; margin: 0 0 14px; }
.mega-feature .mf-stats { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.mega-feature .mf-stats span {
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px; padding: 5px 9px;
}
.mega-feature .mf-stats b { color: var(--gold-light); font-weight: 800; }

/* Foot bar */
.mega-foot { position: relative; border-top: 1px solid var(--grey-100); background: var(--off-white); }
.mega-foot-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 15px 0; flex-wrap: wrap;
}
.mega-foot-all {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; color: var(--navy);
}
.mega-foot-all svg { width: 17px; height: 17px; color: var(--gold); transition: transform 0.25s var(--ease); }
.mega-foot-all:hover svg { transform: translateX(4px); }
.mega-foot-help { font-size: 0.86rem; color: var(--grey-700); display: inline-flex; align-items: center; gap: 8px; }
.mega-foot-help svg { width: 16px; height: 16px; color: var(--gold); }
.mega-foot-help a { color: var(--navy); font-weight: 700; font-family: var(--font-display); }
.mega-foot-help a:hover { color: var(--gold); }
@media (max-width: 900px) { .mega { display: none; } }

/* Mobile services accordion inside drawer nav */
.nav-acc-toggle { display: none; }
.nav-acc-panel { display: none; }
@media (max-width: 900px) {
  .nav-acc-toggle {
    display: flex; width: 100%; justify-content: space-between; align-items: center;
    background: none; border: 0; font: inherit; font-family: var(--font-display); font-weight: 600;
    padding: 13px 0; border-bottom: 1px solid var(--grey-100); cursor: pointer; color: var(--navy-ink);
  }
  .nav-acc-panel { display: none; padding: 6px 0 10px 14px; }
  .nav-acc-panel.open { display: grid; gap: 2px; }
  .nav-acc-panel a { font-size: 0.9rem; border-bottom: 0 !important; padding: 8px 0 !important; }
}

/* ---------- Checkerboard projects ---------- */
.checker { display: grid; grid-template-columns: 1fr; }              /* now a stack of full-width project pairs */
.checker-pair { display: grid; grid-template-columns: 1fr 1fr; }
.checker-pair--flip .checker-cell--img { order: 2; }                 /* image to the right on alternating rows (desktop) */
.checker-cell { min-height: 340px; position: relative; overflow: hidden; }
.checker-cell--img { background: var(--navy-deep); }                 /* placeholder so an undecoded/lazy image never flashes white */
.checker-cell--img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform 0.8s var(--ease); }
.checker-cell--img:hover img { transform: scale(1.05); }
.checker-cell--text {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: clamp(40px, 5vw, 52px) 44px; background: var(--off-white);
}
.checker-cell--text.alt { background: var(--navy-deep); }
.checker-cell--text.alt h3 a { color: #fff; }
.checker-cell--text.alt p { color: rgba(255, 255, 255, 0.7); }
.checker-year { font-family: var(--font-display); color: var(--gold-ink); font-size: 0.8rem; letter-spacing: 0.2em; position: relative; padding-top: 18px; margin-bottom: 14px; }
.checker-cell--text.alt .checker-year { color: var(--gold-light); }  /* alt cell is navy — bright gold is legible there */
.checker-year::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 2px; height: 12px; background: var(--gold); }
.checker-cell--text h3 { margin-bottom: 6px; }
.checker-cell--text h3 a:hover { color: var(--gold); }
.checker-loc { color: var(--grey-700); font-size: 0.9rem; margin-bottom: 14px; }
.checker-cell--text p { font-size: 0.94rem; max-width: 420px; }
@media (max-width: 760px) {
  .checker-pair { grid-template-columns: 1fr; }
  .checker-cell--img { min-height: 260px; }
  /* image above its OWN caption, per project pair (order is scoped to the pair, not the whole grid) */
  .checker-pair .checker-cell--img { order: 0; }
  .checker-pair .checker-cell--text { order: 1; }
}

/* ---------- Parallax band ---------- */
.parallax-band {
  position: relative; min-height: 380px; display: flex; align-items: center;
  background-size: cover; background-position: center; background-attachment: fixed;
}
@media (max-width: 1024px), (prefers-reduced-motion: reduce) { .parallax-band { background-attachment: scroll; } }
.parallax-band::before { content: ""; position: absolute; inset: 0; background: rgba(11, 24, 57, 0.78); }
.parallax-band .container { position: relative; }

/* ---------- Numbered capabilities ---------- */
.numbered { text-align: center; padding: 10px 18px; position: relative; }
.numbered .icon-badge { margin: 0 auto 18px; background: transparent; border: 1.5px solid var(--grey-300); color: var(--gold); }
.numbered .num-label {
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 800;
  color: transparent; -webkit-text-stroke: 1.5px var(--grey-300); line-height: 1; display: block; margin-top: 18px;
}
.section--dark .numbered .icon-badge { border-color: rgba(255,255,255,.25); }
.section--dark .numbered .num-label { -webkit-text-stroke-color: rgba(255,255,255,.3); }

/* ---------- Hotspot image map ---------- */
.hotspot-map { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.hotspot-map > img { width: 100%; display: block; }
.hotspot {
  position: absolute; width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold); border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-deep); font-weight: 700; font-family: var(--font-display); font-size: 0.9rem;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 6px rgba(199, 154, 46, 0.35);
  transition: transform 0.2s;
}
.hotspot:hover { transform: translate(-50%, -50%) scale(1.12); }
.hotspot::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid rgba(199, 154, 46, 0.6); animation: hotspot-ping 2s ease-out infinite;
}
@keyframes hotspot-ping { 0% { transform: scale(0.8); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hotspot::after { animation: none; } }
.hotspot-card {
  position: absolute; z-index: 20; width: min(270px, 74vw);
  background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 18px 18px 16px; transform: translate(-50%, 12px);
  opacity: 0; visibility: hidden; transition: 0.25s;
}
.hotspot-card.open { opacity: 1; visibility: visible; }
.hotspot-card h3 { margin-bottom: 6px; font-size: 0.98rem; }
.hotspot-card p { font-size: 0.85rem; color: var(--grey-700); margin-bottom: 10px; }
.hotspot-card a { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--gold); }

/* ---------- Before / After ---------- */
.ba { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); user-select: none; }
.ba img { width: 100%; display: block; pointer-events: none; }
.ba .ba-top { position: absolute; inset: 0; overflow: hidden; width: 50%; }
.ba .ba-top img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; max-width: none; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; width: 3px; background: var(--gold); left: 50%;
  cursor: ew-resize; z-index: 5;
}
.ba-handle::after {
  content: "↔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; background: var(--gold); color: var(--navy-deep);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700; box-shadow: var(--shadow-md);
}
.ba-label {
  position: absolute; top: 16px; z-index: 4;
  font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  background: rgba(11, 24, 57, 0.75); color: #fff; padding: 6px 12px; border-radius: 999px;
}
.ba-label--l { left: 16px; } .ba-label--r { right: 16px; }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 6; margin: 0; }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--grey-300); }
.section--dark .timeline::before { background: rgba(255, 255, 255, 0.18); }
.tl-item { position: relative; padding: 0 0 34px 64px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 12px; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(199, 154, 46, 0.25);
}
.tl-item .tl-step { font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.2em; color: var(--gold-ink); text-transform: uppercase; margin-bottom: 4px; }
.section--dark .tl-item .tl-step { color: var(--gold-light); }
.tl-item h4 { margin-bottom: 6px; }
.tl-item p { font-size: 0.95rem; margin: 0; }

/* ---------- Masonry ---------- */
.masonry { columns: 3 300px; column-gap: 22px; }
.masonry > * { break-inside: avoid; margin-bottom: 22px; }

/* ---------- Filter chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem;
  border: 1.5px solid var(--grey-300); background: #fff; color: var(--navy-ink);
  padding: 9px 20px; border-radius: 999px; cursor: pointer; transition: 0.25s;
}
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter-hide { display: none !important; }

/* ---------- Wizard (Request a Quote) ---------- */
.wizard-steps { display: flex; gap: 0; margin-bottom: 34px; counter-reset: wstep; }
.wstep { flex: 1; text-align: center; position: relative; padding-top: 34px; color: var(--grey-500); font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; }
.wstep::before {
  counter-increment: wstep; content: counter(wstep);
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--grey-100); color: var(--grey-500); font-size: 0.85rem;
  transition: 0.3s;
}
.wstep::after { content: ""; position: absolute; top: 15px; left: calc(50% + 22px); right: calc(-50% + 22px); height: 2px; background: var(--grey-300); }
.wstep:last-child::after { display: none; }
.wstep.is-active { color: var(--navy); }
.wstep.is-active::before { background: var(--gold); color: var(--navy-deep); }
.wstep.is-done::before { background: var(--navy); color: #fff; content: "✓"; }
.wpanel { display: none; }
.wpanel.is-active { display: block; animation: wfade 0.35s var(--ease); }
@keyframes wfade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.wizard-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 26px; }

/* ---------- Insights / posts ---------- */
.post-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.post-card .thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--navy-deep); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.06); }
.post-card .body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { font-family: var(--font-display); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); display: flex; gap: 14px; }
.section--dark .post-meta { color: var(--gold-light); }
.post-meta .dot::before { content: "·"; margin-right: 14px; color: var(--grey-300); }
.post-card h3 { font-size: 1.12rem; margin: 0; }
.post-card h3 a:hover { color: var(--gold); }
.post-card .excerpt { font-size: 0.93rem; color: var(--grey-700); margin: 0; }

/* ---------- Footer CTA row ---------- */
.footer-cta { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-cta .container {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 54px; padding-bottom: 54px; flex-wrap: wrap;
}
.footer-cta h2 { color: #fff; margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.footer-cta p { margin: 6px 0 0; color: rgba(255, 255, 255, 0.65); }

/* ---------- Testimonials ---------- */
.tst-slider { position: relative; max-width: 760px; margin: 0 auto; text-align: center; min-height: 200px; }
.tst { display: none; }
.tst.is-active { display: block; animation: wfade 0.5s var(--ease); }
.tst blockquote { font-size: 1.2rem; line-height: 1.7; color: var(--navy-ink); margin: 0 0 22px; font-style: italic; }
.section--dark .tst blockquote { color: rgba(255, 255, 255, 0.88); }
.tst .who { font-family: var(--font-display); font-weight: 700; color: var(--gold-ink); }
.section--dark .tst .who { color: var(--gold-light); }
.tst .role { font-size: 0.85rem; color: var(--grey-500); }

/* ---------- Breadcrumb page-hero image variant ---------- */
.page-hero--img { background-size: cover; background-position: center; position: relative; }
.page-hero--img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11,24,57,.92), rgba(11,24,57,.55)); }
.page-hero--img .container { position: relative; z-index: 2; }

/* ---------- Specs sidebar (case study) ---------- */
.specs { border: var(--card-bd); border-radius: var(--radius); box-shadow: var(--card-shadow); overflow: hidden; }
.specs dl { margin: 0; }
.specs .row { display: flex; justify-content: space-between; gap: 16px; padding: 15px 22px; border-bottom: 1px solid var(--grey-100); }
.specs .row:last-child { border-bottom: 0; }
.specs dt { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--grey-700); text-transform: uppercase; letter-spacing: 0.08em; }
.specs dd { margin: 0; font-weight: 600; color: var(--navy); text-align: right; }

/* ---------- WhatsApp widget panel ---------- */
.wa-widget { position: fixed; right: 22px; bottom: 22px; z-index: 950; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wa-widget .wa-float { position: static; border: 0; cursor: pointer; }
.wa-panel {
  width: min(300px, 86vw);
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: 0.25s var(--ease);
}
.wa-panel.open { opacity: 1; visibility: visible; transform: none; }
.wa-panel-head { background: var(--navy-deep); color: #fff; padding: 16px 18px; display: grid; gap: 4px; }
.wa-panel-head span { font-size: 0.78rem; color: rgba(255, 255, 255, 0.65); }
.wa-panel > a {
  display: block; padding: 13px 18px; font-size: 0.92rem; font-weight: 500;
  color: var(--navy-ink); border-bottom: 1px solid var(--grey-100);
}
.wa-panel > a:last-child { border-bottom: 0; }
.wa-panel > a:hover { background: var(--off-white); color: var(--navy); }

/* ---------- Pagination / prev-next ---------- */
.pn-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pn-nav a { border: var(--card-bd); border-radius: var(--radius); padding: 22px 26px; transition: 0.25s; }
.pn-nav a:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.pn-nav .lbl { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); font-family: var(--font-display); }
.section--dark .pn-nav .lbl { color: var(--gold-light); }
.pn-nav h3 { margin: 6px 0 0; font-size: 1.05rem; }
.pn-next { text-align: right; }

/* ============================================================
   MEP building-systems blueprint diagram (interactive)
   ============================================================ */
.mep-diagram {
  display: grid; grid-template-columns: 1.18fr 0.82fr; gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
@media (max-width: 900px) { .mep-diagram { grid-template-columns: 1fr; gap: 28px; } }

.mep-figure {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(150, 185, 235, 0.22);
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255,255,255,.02);
  background: #0a1330;
}
.mep-figure svg { display: block; width: 100%; height: auto; }
/* declutter the finest drafting annotations on small screens (legend below carries the detail) */
@media (max-width: 560px) { .mep-fine { display: none; } }

/* riser states */
.mep-riser { cursor: pointer; transition: opacity 0.3s var(--ease); }
.mep-riser-line, .mep-riser-glow, .mep-node, .mep-cap { transition: stroke-width 0.25s var(--ease), opacity 0.25s var(--ease), r 0.25s var(--ease); }
.mep-diagram.is-focusing .mep-riser.is-dim { opacity: 0.16; }
.mep-riser.is-active .mep-riser-glow { opacity: 0.42 !important; }
.mep-riser.is-active .mep-riser-line {
  stroke-width: 3.6;
  stroke-dasharray: 10 8; animation: mepFlow 0.9s linear infinite;
}
.mep-riser.is-active .mep-cap { r: 5.6; }
@keyframes mepFlow { to { stroke-dashoffset: -18; } }
/* idle cap pulse */
.mep-cap { animation: mepPulse 3.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes mepPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .mep-cap, .mep-riser.is-active .mep-riser-line { animation: none; } }

/* legend */
.mep-legend-lead { color: var(--grey-700); font-size: 0.98rem; margin: 0 0 20px; }
.section--dark .mep-legend-lead, .section--tech.section--dark .mep-legend-lead { color: rgba(255,255,255,.72); }
.mep-legend ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mep-chip {
  --rc: #38bdf8;
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border-radius: 12px; border: var(--card-bd); background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.mep-chip-dot {
  width: 12px; height: 12px; flex: 0 0 auto; border-radius: 50%;
  background: var(--rc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rc) 20%, transparent);
}
.mep-chip-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mep-chip-name { font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; color: var(--navy); line-height: 1.15; }
.mep-chip-note { font-size: 0.82rem; color: var(--grey-700); line-height: 1.25; }
.mep-chip-arr { width: 18px; height: 18px; flex: 0 0 auto; margin-left: auto; color: var(--grey-500); transition: transform 0.25s var(--ease), color 0.25s; }
.mep-chip:hover, .mep-chip:focus-visible {
  transform: translateY(-2px); border-color: var(--rc);
  box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--rc) 45%, transparent);
  outline: none;
}
.mep-chip:hover .mep-chip-arr, .mep-chip:focus-visible .mep-chip-arr { color: var(--rc); transform: translateX(4px); }

/* dark-section variant for the chips */
.section--dark .mep-chip { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); box-shadow: none; }
.section--dark .mep-chip-name { color: #fff; }
.section--dark .mep-chip-note { color: rgba(255,255,255,.62); }

/* ============================================================
   Per-service system schematic (process flow)
   ============================================================ */
.svc-schematic {
  position: relative; border-radius: var(--radius); overflow: hidden;
  padding: clamp(24px, 3.4vw, 40px);
  background:
    radial-gradient(120% 140% at 15% 0%, #14285e 0%, #0b1839 55%, #0a1330 100%);
  border: 1px solid rgba(150, 185, 235, 0.18);
  box-shadow: var(--shadow-lg);
}
.svc-schematic::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.6;
  background-image: linear-gradient(rgba(120,160,220,.07) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(120,160,220,.07) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 40%, transparent 100%);
          mask-image: radial-gradient(120% 100% at 50% 0%, #000 40%, transparent 100%);
}
.ss-head { position: relative; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.ss-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-light); background: rgba(199,154,46,.12); border: 1px solid rgba(199,154,46,.4);
  border-radius: 20px; padding: 6px 14px;
}
.ss-badge svg { width: 15px; height: 15px; }
.ss-lead { margin: 0; color: rgba(255,255,255,.82); font-size: 0.98rem; }

.ss-flow { position: relative; display: flex; align-items: stretch; }
.ss-node {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 5px;
  padding: 16px 15px; border-radius: 12px;
  background: rgba(255,255,255,.045); border: 1px solid rgba(150,185,235,.2);
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.ss-node:hover { transform: translateY(-4px); border-color: rgba(199,154,46,.55); background: rgba(255,255,255,.07); }
.ss-node-idx { font-family: var(--font-display); font-weight: 800; font-size: 0.74rem; color: var(--gold); letter-spacing: 0.08em; }
.ss-node-title { font-family: var(--font-display); font-weight: 700; font-size: 0.96rem; color: #fff; line-height: 1.2; overflow-wrap: anywhere; }
.ss-node-sub { font-size: 0.78rem; color: rgba(180,200,235,.72); line-height: 1.3; }

.ss-link { flex: 0 0 30px; display: flex; align-items: center; justify-content: center; position: relative; color: var(--gold); }
.ss-link-line {
  position: absolute; left: -2px; right: -2px; top: 50%; height: 2px; transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, rgba(199,154,46,.7) 0 6px, transparent 6px 12px);
  background-size: 12px 2px; animation: ssFlow 0.7s linear infinite;
}
.ss-link svg { position: relative; width: 18px; height: 18px; }
@keyframes ssFlow { to { background-position: 12px 0; } }
@media (prefers-reduced-motion: reduce) { .ss-link-line { animation: none; } }

@media (max-width: 900px) {
  .ss-flow { flex-direction: column; }
  .ss-node { flex: none; }
  .ss-link { flex: 0 0 26px; transform: rotate(90deg); }
  .ss-link-line { left: -1px; right: -1px; }
}
