/* ==========================================================================
   GreatLight v2 — layout structure inspired by longly-group.com
   (topbar · mega menu · hero slider · statband · gallery · process · aside)
   Loaded after style.css; all v1 component classes remain compatible.
   ========================================================================== */

/* ---------- Topbar ---------- */
.gl-topbar {
  background: #0B1120;
  color: #94A3B8;
  font-size: 13px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.gl-topbar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 26px;
  flex-wrap: wrap;
}
.gl-topbar__tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #C7D0DF;
}
.gl-topbar__meta {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.gl-topbar__meta > a,
.gl-topbar__meta > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #94A3B8;
  text-decoration: none;
  white-space: nowrap;
}
.gl-topbar__meta > a:hover { color: #fff; text-decoration: none; }
.gl-topbar__meta svg { color: #8F79FF; flex: 0 0 auto; }
@media (max-width: 960px) { .gl-topbar__tag { display: none; } }
@media (max-width: 640px) { .gl-topbar__meta > span { display: none; } }

/* ---------- Header refinements ---------- */
.gl-header__aside { margin-left: 8px; }

.gl-sub--mega {
  min-width: 590px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 10px;
}
.gl-sub--mega a { padding: 9px 12px; }
.gl-sub--mega .gl-sub__all {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 4px;
  border-top: 1px solid var(--gl-line);
}
.gl-sub--mega .gl-sub__all a {
  color: var(--gl-primary);
  font-weight: 700;
}

/* ---------- Hero v2 (auto-fading background) ---------- */
.gl-hero--v2 {
  min-height: min(94vh, 920px);
  padding: clamp(110px, 15vh, 180px) 0 clamp(80px, 11vh, 140px);
}
.gl-hero--v2 .gl-hero__bg {
  opacity: 0;
  animation: glHeroFade 21s linear infinite;
}
.gl-hero--v2 .gl-hero__bg:nth-child(2) { animation-delay: 7s; }
.gl-hero--v2 .gl-hero__bg:nth-child(3) { animation-delay: 14s; }
@keyframes glHeroFade {
  0% { opacity: 0; }
  5% { opacity: .5; }
  27% { opacity: .5; }
  33% { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .gl-hero--v2 .gl-hero__bg { animation: none; opacity: .45; }
  .gl-hero--v2 .gl-hero__bg:nth-child(n+2) { display: none; }
}
.gl-hero--v2 h1 { font-size: clamp(40px, 5.4vw, 70px); letter-spacing: -0.02em; }
.gl-hero--v2 .gl-hero__sub { font-size: clamp(17px, 1.6vw, 20px); }
.gl-hero__stats {
  display: flex;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.gl-hero__stat {
  padding-right: 34px;
  margin-right: 34px;
  border-right: 1px solid rgba(255, 255, 255, .14);
}
.gl-hero__stat:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.gl-hero__stat b {
  display: block;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.gl-hero__stat span {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #8E9BB2;
}
@media (max-width: 720px) {
  .gl-hero__stat { border-right: 0; padding-right: 0; margin-right: 28px; }
}

/* ---------- Statband ---------- */
.gl-statband {
  background: #fff;
  border-bottom: 1px solid var(--gl-line);
}
.gl-statband__in {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.gl-statband__item {
  padding: 34px 20px;
  text-align: center;
  border-right: 1px solid var(--gl-line);
}
.gl-statband__item:last-child { border-right: 0; }
.gl-statband__num {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  color: var(--gl-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}
.gl-statband__label {
  margin-top: 9px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gl-muted);
}
@media (max-width: 860px) {
  .gl-statband__in { grid-template-columns: repeat(2, 1fr); }
  .gl-statband__item:nth-child(2n) { border-right: 0; }
  .gl-statband__item:nth-child(-n+2) { border-bottom: 1px solid var(--gl-line); }
}

/* ---------- Kicker with line ---------- */
.gl-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gl-kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  flex: 0 0 auto;
  background: var(--gl-primary);
}
.gl-section__head--center .gl-kicker { justify-content: center; }
.gl-section--dark .gl-kicker::before { background: #8F79FF; }

/* ---------- Process steps ---------- */
.gl-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: glp;
}
.gl-process__step {
  position: relative;
  counter-increment: glp;
  padding: 30px 26px;
  background: #fff;
  border: 1px solid var(--gl-line);
  border-radius: var(--gl-card-r);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.gl-process__step:hover {
  transform: translateY(-4px);
  box-shadow: var(--gl-shadow);
  border-color: var(--gl-line-strong);
}
.gl-process__step::before {
  content: "0" counter(glp);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--gl-primary);
}
.gl-process__step h3 { margin: 12px 0 8px; font-size: 18px; }
.gl-process__step p { margin: 0; color: var(--gl-muted); font-size: 14.5px; }
@media (max-width: 1000px) { .gl-process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gl-process { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gl-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gl-gallery a {
  display: block;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #0F172A;
}
.gl-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gl-gallery a:hover img { transform: scale(1.06); }
.gl-gallery a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, .45));
  opacity: 0;
  transition: opacity .3s;
}
.gl-gallery a:hover::after { opacity: 1; }
@media (max-width: 900px) { .gl-gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Certification strip ---------- */
.gl-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.gl-certs span {
  padding: 9px 20px;
  border: 1px solid var(--gl-line);
  border-radius: 99px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  color: #3B3663;
}

/* ---------- Footer v2 (5 columns) ---------- */
.gl-footer__grid--v2 {
  grid-template-columns: 1.55fr 1fr 1fr 1fr 1.3fr;
}
@media (max-width: 1120px) {
  .gl-footer__grid--v2 { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 720px) {
  .gl-footer__grid--v2 { grid-template-columns: 1fr; }
}

/* ---------- Floating quick-contact aside ---------- */
.gl-aside {
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gl-aside a {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .03em;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .28);
  transition: transform .2s, box-shadow .2s;
}
.gl-aside a:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(15, 23, 42, .34); }
.gl-aside__wa { background: #22C55E; }
.gl-aside__mail { background: #5804FA; }
.gl-aside__top { background: #0F172A; }
@media (max-width: 700px) { .gl-aside { display: none; } }

/* ---------- Small refinements ---------- */
.gl-title { letter-spacing: -0.02em; }
.gl-card--media > img { transition: transform .5s ease; }
.gl-card--media:hover > img { transform: scale(1.04); }
.gl-card--media { overflow: hidden; }
.gl-section--tight { padding: clamp(48px, 5vw, 72px) 0; }

/* Solution cards (4 business lines) */
.gl-solutions .gl-card--media > img { height: 230px; }
.gl-solutions .gl-badge { background: #fff; border: 1px solid var(--gl-line); }

/* ==========================================================================
   Header v2.1 — layered depth, tech accents, sticky behaviour
   ========================================================================== */

/* Topbar: deep gradient + hairline glow, internal links */
.gl-topbar {
  position: relative;
  background: linear-gradient(90deg, #070B16 0%, #0B1120 42%, #130C2A 100%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .05);
}
.gl-topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, .55) 22%, rgba(124, 58, 237, .18) 60%, transparent 92%);
  pointer-events: none;
}
.gl-topbar__tag { font-size: 11px; letter-spacing: .06em; }
.gl-topbar__tag a {
  color: #D6DDEC;
  text-decoration: underline;
  text-decoration-color: rgba(167, 139, 250, .40);
  text-underline-offset: 2px;
  border-bottom: 1px solid transparent;
  transition: color .18s, border-color .18s, text-decoration-color .18s;
}
.gl-topbar__tag a:hover {
  color: #fff;
  text-decoration-color: #A78BFA;
  border-bottom-color: rgba(167, 139, 250, .8);
  text-decoration: none;
}
.gl-topbar__dot { margin: 0 7px; color: #5C6B84; }

/* Header shell: soft glass, inset highlight, gradient accent rule */
.gl-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(250, 248, 255, .95));
  border-bottom: 1px solid rgba(88, 4, 250, .10);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 14px 30px -26px rgba(15, 23, 42, .55);
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.gl-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, rgba(88, 4, 250, 0), rgba(88, 4, 250, .55) 16%, rgba(124, 58, 237, .30) 50%, rgba(88, 4, 250, .55) 84%, rgba(88, 4, 250, 0));
  opacity: .55;
  pointer-events: none;
}
.gl-header.is-stuck {
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .95) inset, 0 22px 44px -28px rgba(15, 23, 42, .62);
  backdrop-filter: saturate(180%) blur(16px);
}
.gl-header.is-stuck::after { opacity: .95; }
.gl-header__in { min-height: 80px; }

/* The template-part wrapper only contains the header; let it dissolve so the
   sticky header is constrained by the page instead of a 121px-tall wrapper. */
.wp-block-template-part:has(> .gl-header) { display: contents; }

/* Primary nav: raised plate on hover, animated accent bar */
.gl-nav > ul { gap: 4px; }
.gl-nav > ul > li > a {
  position: relative;
  padding: 11px 15px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(88, 4, 250, .035));
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.gl-nav > ul > li > a::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #7C3AED, #5804FA);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.gl-nav > ul > li > a:hover,
.gl-nav > ul > li:focus-within > a {
  color: var(--gl-primary);
  background: linear-gradient(180deg, #fff, #F3EFFF);
  border-color: rgba(88, 4, 250, .16);
  box-shadow: 0 1px 0 #fff inset, 0 8px 18px -12px rgba(88, 4, 250, .55);
  transform: translateY(-1px);
}
.gl-nav > ul > li > a:hover::before,
.gl-nav > ul > li:focus-within > a::before { transform: scaleX(1); }

/* Get a Quote: bevelled gradient button */
.gl-header__aside .gl-btn {
  background: linear-gradient(135deg, #7C3AED 0%, #5804FA 48%, #4302C4 100%);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .40) inset, 0 -2px 0 rgba(0, 0, 0, .18) inset, 0 12px 24px -12px rgba(88, 4, 250, .75);
}
.gl-header__aside .gl-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 -2px 0 rgba(0, 0, 0, .18) inset, 0 18px 32px -14px rgba(88, 4, 250, .90);
}

/* Dropdowns: floating glass panel + invisible hover bridge (stays open while moving cursor) */
.gl-sub {
  top: calc(100% + 10px);
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(88, 4, 250, .14);
  background: linear-gradient(180deg, #fff, #FCFBFF);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .95) inset, 0 34px 64px -24px rgba(15, 23, 42, .32), 0 0 0 6px rgba(88, 4, 250, .03);
}
.gl-sub::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
.gl-sub a {
  border-radius: 10px;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.gl-sub a:hover {
  background: linear-gradient(90deg, rgba(88, 4, 250, .10), rgba(88, 4, 250, .02));
  color: var(--gl-primary);
  transform: translateX(2px);
  text-decoration: none;
}
.gl-sub--mega { min-width: 640px; }

/* Breathing room between sticky header and the H1 block + anchor offset */
.gl-hero--v2 { padding-top: clamp(120px, 16vh, 190px); }
.gl-pagehead { padding-top: clamp(84px, 9vw, 120px); }
h1, h2, h3, section[id], .gl-hero, .gl-pagehead { scroll-margin-top: 100px; }

/* Footer bottom line: smaller type, linked service phrases */
.gl-footer__bottom { font-size: 12.5px; align-items: center; }
.gl-footer__bottom a {
  color: #D6DDEC;
  text-decoration: underline;
  text-decoration-color: rgba(167, 139, 250, .45);
  text-underline-offset: 2px;
}
.gl-footer__bottom a:hover { color: #fff; text-decoration-color: #A78BFA; }
.gl-footer__bottom .gl-dot { margin: 0 7px; color: #5C6B84; }

@media (max-width: 1120px) {
  .gl-header__in { min-height: 72px; }
}
@media (min-width: 1121px) and (max-width: 1299px) {
  .gl-header__in { gap: 16px; }
  .gl-nav > ul > li > a { padding: 10px 12px; font-size: 14.5px; }
  .gl-header__aside { margin-left: 2px; }
  .gl-header__aside .gl-btn { padding: 10px 18px; font-size: 14px; }
}

/* ==========================================================================
   Remove inter-block gutters (header → banner → sections → footer)
   ========================================================================== */
.wp-site-blocks { --wp--style--block-gap: 0px; }
.wp-site-blocks > * { margin-block-start: 0 !important; }
/* Only the landing-page sections lose their 24px flow gutter; blog typography keeps its rhythm. */
.wp-block-post-content > section { margin-block-start: 0 !important; }

/* ==========================================================================
   Rectangular media → 16:9
   ========================================================================== */
.gl-card--media > img,
.gl-card--media .gl-card__img img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.gl-solutions .gl-card--media > img { height: auto; aspect-ratio: 16 / 9; }
.gl-gallery a { aspect-ratio: 16 / 9; }
.gl-media-row img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.gl-split img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ==========================================================================
   Solutions showcase (homepage) — reference-style band + overlay cards
   ========================================================================== */
.gl-solv3 { background: #fff; }
.gl-solv3__band {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 7vw, 100px) 0 clamp(150px, 13vw, 210px);
  color: #C7D0DF;
  background:
    radial-gradient(1000px 460px at 82% -10%, rgba(88, 4, 250, .50), transparent 62%),
    radial-gradient(700px 320px at 6% 110%, rgba(124, 58, 237, .22), transparent 60%),
    linear-gradient(135deg, #0B1120 0%, #120A2A 55%, #0B1120 100%);
}
.gl-solv3__band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 78%);
  pointer-events: none;
}
.gl-solv3__band .gl-wrap { position: relative; z-index: 2; }
.gl-solv3__band .gl-kicker { color: #B9A6FF; }
.gl-solv3__band .gl-kicker::before { background: #8F79FF; }
.gl-solv3__band h2 { color: #fff; }
.gl-solv3__head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: end;
}
.gl-solv3__head .gl-lead { color: #A9B4C7; max-width: 640px; }
.gl-solv3__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-bottom: 6px;
}
.gl-solv3__stat b {
  display: block;
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #fff;
}
.gl-solv3__stat span {
  display: block;
  margin-top: 7px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #93A1B5;
}
.gl-solv3__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  margin-top: clamp(30px, 3vw, 44px);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.gl-solv3__chips a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #D6DDEC;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color .18s;
}
.gl-solv3__chips a:hover { color: #fff; text-decoration: none; }
.gl-solv3__chips svg { color: #A78BFA; flex: 0 0 auto; }
.gl-solv3__grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: clamp(-170px, -9vw, -120px);
}
.gl-solv3__card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #0F172A;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 28px 56px -28px rgba(15, 23, 42, .65);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gl-solv3__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 36px 68px -30px rgba(15, 23, 42, .75);
  text-decoration: none;
}
.gl-solv3__card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gl-solv3__card:hover img { transform: scale(1.05); }
.gl-solv3__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 17, 32, .05) 0%, rgba(11, 17, 32, .45) 52%, rgba(11, 17, 32, .93) 100%);
}
.gl-solv3__body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: clamp(18px, 1.6vw, 26px);
  padding-right: clamp(52px, 4vw, 64px);
}
.gl-solv3__body h3 {
  color: #fff;
  font-size: clamp(17px, 1.45vw, 22px);
  margin: 0 0 6px;
}
.gl-solv3__body p {
  margin: 0 0 12px;
  font-size: clamp(12.5px, 1vw, 14px);
  line-height: 1.5;
  color: #C7D0DF;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gl-solv3__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .10);
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(6px);
}
.gl-solv3__plus {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .40);
  backdrop-filter: blur(6px);
  transition: background .18s, transform .18s;
}
.gl-solv3__card:hover .gl-solv3__plus { background: rgba(88, 4, 250, .75); transform: rotate(90deg); }

@media (max-width: 900px) {
  .gl-solv3__grid { grid-template-columns: 1fr; margin-top: -100px; gap: 18px; }
  .gl-solv3__head { grid-template-columns: 1fr; align-items: start; }
  .gl-solv3__band { padding-bottom: clamp(120px, 14vw, 170px); }
}
@media (max-width: 640px) {
  .gl-solv3__grid { margin-top: -80px; }
  .gl-solv3__band { padding-bottom: 110px; }
  .gl-solv3__stats { grid-template-columns: 1fr 1fr; }
  .gl-solv3__plus { display: none; }
  .gl-solv3__body { padding-right: 18px; }
  .gl-solv3__body p { display: none; }
}

/* ==========================================================================
   Quote modal + compact form
   ========================================================================== */
.gl-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.gl-modal[hidden] { display: none; }
.gl-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 22, .74);
  backdrop-filter: blur(8px);
}
.gl-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(840px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 22px;
  padding: clamp(22px, 3vw, 38px);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6);
}
.gl-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--gl-line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gl-ink);
  cursor: pointer;
}
.gl-modal__close:hover { background: var(--gl-tint); color: var(--gl-primary); }
.gl-modal .gl-title { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 16px; }
.gl-modal__form .wpcf7 { max-width: none; }
.gl-modal__note { margin-top: 14px; }
body.gl-modal-open { overflow: hidden; }

/* Compact CF7 spacing (contact page + modal) */
.wpcf7 p { margin: 0 0 12px; }
.wpcf7 label { margin-bottom: 6px; font-size: 13.5px; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="file"],
.wpcf7 select,
.wpcf7 textarea { padding: 11px 14px; font-size: 15px; border-radius: 10px; }
.wpcf7 textarea { min-height: 104px; }
.wpcf7 .gl-form-row { gap: 14px; }
.wpcf7 input[type="submit"] { padding: 13px 30px; font-size: 15px; }
.gl-form-note { margin: 0 0 14px; font-size: 12.5px; color: var(--gl-muted); }

@media (max-width: 640px) {
  .gl-modal { padding: 10px; }
  .gl-modal__dialog { max-height: 94vh; border-radius: 16px; }
}

/* Tighter textarea height (rows attribute would otherwise double it) */
.wpcf7 textarea { height: 104px; min-height: 104px; }
.gl-modal .wpcf7 p { margin-bottom: 10px; }
.gl-modal .wpcf7 textarea { height: 88px; min-height: 88px; }
.gl-modal__dialog { padding: clamp(20px, 2.5vw, 32px); }

/* Keep control text normal weight inside wrapping labels + underline inline notes */
.wpcf7 label input,
.wpcf7 label select,
.wpcf7 label textarea { font-weight: 400; }
.gl-note a,
.gl-prose a { text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   Solutions: three-card reference layout
   ========================================================================== */
.gl-solv3__grid { grid-template-columns: repeat(3, 1fr); }
.gl-solv3__stats { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) {
  .gl-solv3__grid { grid-template-columns: 1fr; margin-top: -100px; }
}
@media (max-width: 640px) {
  .gl-solv3__stats { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Capability media + company video
   ========================================================================== */
.gl-media__frame { position: relative; border-radius: 18px; overflow: hidden; }
.gl-media__frame > img { display: block; width: 100%; height: auto; }
.gl-vplay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(88, 4, 250, .92);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 18px 44px rgba(88, 4, 250, .45);
  backdrop-filter: blur(4px);
  transition: transform .2s ease, background .2s ease;
  z-index: 2;
}
.gl-vplay:hover { transform: translate(-50%, -50%) scale(1.06); background: rgba(88, 4, 250, 1); }
.gl-vplay svg { margin-left: 3px; }
.gl-vplay::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  animation: glPulse 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes glPulse {
  0% { transform: scale(.9); opacity: .8; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .gl-vplay::after { animation: none; display: none; }
}
@media (max-width: 640px) {
  .gl-vplay { width: 60px; height: 60px; }
}

/* Video lightbox */
.gl-modal--video .gl-modal__dialog {
  width: min(1000px, 100%);
  padding: 0;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
}
.gl-video__frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.gl-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gl-modal--video .gl-modal__close {
  background: rgba(0, 0, 0, .55);
  color: #fff;
  border-color: rgba(255, 255, 255, .25);
}
.gl-modal--video .gl-modal__close:hover { background: rgba(0, 0, 0, .8); color: #fff; }

/* ==========================================================================
   Page header product cutout (transparent AVIF)
   ========================================================================== */
.gl-pagehead__art {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: max(24px, calc((100% - 1800px) / 2 + 48px));
  transform: translateY(-50%);
  width: clamp(260px, 26vw, 420px);
  height: auto;
  max-height: 400px;
  object-fit: contain;
  filter: drop-shadow(0 28px 44px rgba(0, 0, 0, .5));
  pointer-events: none;
}
@media (max-width: 1100px) { .gl-pagehead__art { display: none; } }
@media (min-width: 1101px) { .gl-pagehead .gl-wrap > * { max-width: 64%; } }

/* Contact page: 4 / 6 split */
@media (min-width: 1021px) {
  .gl-split--contact { grid-template-columns: 4fr 6fr; }
}

.gl-video__player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

/* Pagehead cutout: keep inside the header band */
.gl-pagehead__art {
  width: auto;
  height: clamp(220px, 22vw, 320px);
  max-height: none;
}

/* Contact form fills the 6/10 column */
.gl-split--contact .wpcf7 { max-width: none; }

/* Tighter solution card overlay so more of the 16:9 image stays visible */
.gl-solv3__body { padding: 18px 20px; padding-right: 56px; }
.gl-solv3__body h3 { font-size: clamp(16px, 1.2vw, 20px); margin-bottom: 4px; }
.gl-solv3__body p { font-size: 12.5px; line-height: 1.45; margin-bottom: 9px; }
.gl-solv3__cta { padding: 6px 13px; font-size: 12px; }

/* Service / industry / blog media card tuning */
.gl-service .gl-card__body { padding: 20px 22px 22px; gap: 8px; }
.gl-service .gl-card__body h3 { font-size: 18px; margin: 0; }
.gl-service .gl-card__body p { font-size: 14px; margin: 0; }
.gl-service .gl-icon { width: 44px; height: 44px; }
.gl-service .gl-card__more { margin-top: 2px; }

.gl-industry .gl-card__body { padding: 16px 16px 20px; gap: 6px; align-items: center; text-align: center; }
.gl-industry .gl-card__body h3 { font-size: 16px; margin: 0; }
.gl-industry .gl-card__body p { font-size: 13px; margin: 0; color: var(--gl-muted); }
.gl-industry .gl-icon { width: 40px; height: 40px; margin-inline: auto; }

.gl-blog .gl-card__body { padding: 18px 20px; }
.gl-blog h3 { font-size: 18px; margin: 0 0 6px; }
.gl-blog p { margin: 0; font-size: 14px; color: var(--gl-muted); }

/* Industry hub grid + "all industries" tile */
.gl-industry-more { justify-content: center; }
.gl-industry .gl-card__body h3 { color: var(--gl-ink); }

/* Industries mega menu aligns to the right edge so it never widens the page */
.gl-sub--industries { left: auto; right: 0; min-width: 600px; }

/* Case study (1) + latest posts (3), equal-height columns */
.gl-caseblog {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 3vw, 48px);
  align-items: stretch;
}
.gl-caseblog__col { display: flex; flex-direction: column; min-width: 0; }
.gl-caseblog__col > .gl-title { margin-bottom: 22px; }
.gl-caseblog__case {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-top: 0 !important;
}
.gl-caseblog__case > img {
  flex: 1;
  width: 100%;
  min-height: 260px;
  height: auto;
  object-fit: cover;
}
.gl-caseblog__case .gl-card__body { flex: 0 0 auto; }
.gl-caseblog__posts {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}
.gl-postcard {
  flex: 1;
  display: grid;
  grid-template-columns: 42% 1fr;
  border: 1px solid var(--gl-line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  color: inherit;
  text-decoration: none;
  min-height: 0;
  transition: border-color .2s, box-shadow .2s;
}
.gl-postcard:hover { border-color: var(--gl-line-strong); box-shadow: var(--gl-shadow-sm); text-decoration: none; }
.gl-postcard img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gl-postcard__body {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}
.gl-postcard h3 {
  margin: 0;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.3;
  color: var(--gl-ink);
}
.gl-postcard p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--gl-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 1020px) {
  .gl-caseblog { grid-template-columns: 1fr; }
  .gl-caseblog__case { flex: none; }
  .gl-caseblog__case > img { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .gl-caseblog__posts { flex: none; }
  .gl-postcard { min-height: 130px; }
}

/* Larger tap targets + stronger contrast for small links (mobile audits) */
@media (max-width: 1020px) {
  .gl-footer a { display: inline-block; padding: 4px 0; min-height: 24px; }
  .gl-footer__bottom a { padding: 5px 2px; }
  .gl-topbar__meta > a,
  .gl-topbar__tag a { display: inline-block; padding: 3px 0; }
  .gl-mobile__panel a { min-height: 44px; display: flex; align-items: center; }
}
.gl-footer__bottom { color: #A6B4C8; }
.gl-footer p { color: #A6B4C8; }
.gl-topbar__meta > a,
.gl-topbar__meta > span { color: #A9B5C6; }
.gl-topbar__tag a { color: #E2E8F0; }
.gl-solv3__stat span { color: #A9B4C7; }
.gl-note a,
.gl-prose a,
.gl-card p a,
.gl-lead a { text-decoration: underline; text-underline-offset: 2px; }

/* Image framing: subtle border + layered shadow */
.gl-gallery a {
  border: 1px solid rgba(15, 23, 42, .12);
  background: #fff;
  box-shadow: 0 20px 40px -24px rgba(15, 23, 42, .38), 0 2px 5px rgba(15, 23, 42, .06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.gl-gallery a:hover {
  transform: translateY(-3px);
  border-color: var(--gl-line-strong);
  box-shadow: 0 28px 54px -26px rgba(15, 23, 42, .48), 0 3px 8px rgba(15, 23, 42, .08);
}
.gl-card--media {
  box-shadow: 0 18px 38px -28px rgba(15, 23, 42, .38), 0 1px 3px rgba(15, 23, 42, .05);
  transition: box-shadow .25s ease, transform .25s ease;
}
.gl-card--media:hover {
  box-shadow: 0 28px 54px -30px rgba(15, 23, 42, .48), 0 2px 6px rgba(15, 23, 42, .07);
}
.gl-caseblog__case { box-shadow: 0 24px 48px -30px rgba(15, 23, 42, .45); }
.gl-postcard { box-shadow: 0 10px 26px -22px rgba(15, 23, 42, .38); }
.gl-postcard:hover { box-shadow: 0 18px 36px -24px rgba(15, 23, 42, .48); }
