/* ============================================================
   CQS Pakistan — Design System
   Brand: Navy #14213d / Orange #e6720b
   Font: Manrope (400 body, 500 buttons+nav, 700/800 headings)
   ============================================================ */

:root {
  --navy: #14213d;
  --navy-dark: #0e1930;
  --navy-deep: #080e1c;
  --blue: #2d3a5c;
  --cyan: #e6720b;
  --cyan-soft: #f28c3c;
  --ink: #363636;
  --muted: #6b7280;
  --line: #e5e9f2;
  --bg: #ffffff;
  --bg-soft: #f4f7fc;
  --bg-tint: #fdf1e6;
  --white: #ffffff;
  --shadow-sm: 0 2px 10px rgba(20, 33, 61, 0.06);
  --shadow-md: 0 10px 30px rgba(20, 33, 61, 0.10);
  --shadow-lg: 0 24px 60px rgba(20, 33, 61, 0.16);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-btn: 4px;
  --container: 1320px;
  --font-head: "Manrope", sans-serif;
  --font-body: "Manrope", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 100px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1 {
  font-family: var(--font-head);
  color: var(--navy);
  font-size: 46px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -1px;
}
h2 {
  font-family: var(--font-head);
  color: var(--navy);
  font-size: 32px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.5px;
}
h3 {
  font-family: var(--font-head);
  color: var(--navy);
  font-size: 24px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.5px;
}
h4, h5 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.4;
  font-weight: 700;
}
h4 { font-size: 18px; }
h5 { font-size: 14px; }
@media screen and (max-width: 480px) {
  h1 { font-size: 28px; line-height: 1.3; }
  h2 { font-size: 24px; line-height: 1.3; }
  h3 { font-size: 20px; }
}

.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
}

section { padding: 60px 0; }

/* ---------- Eyebrow / section headers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--cyan-soft);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 46px); letter-spacing: -1px; margin-bottom: 18px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.3s ease-in-out, color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}
.btn svg { transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background-image: linear-gradient(-120deg, var(--cyan-soft) 0%, var(--cyan) 100%);
  color: var(--white);
  border-color: transparent;
}
.btn-primary:hover { background-image: linear-gradient(120deg, var(--cyan-soft) 0%, var(--cyan) 100%); }

/* minimal underlined-link secondary CTA (matches reference hero secondary button) */
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 0;
  padding: 4px 2px 6px;
}
.btn-ghost:hover { background: transparent; border-bottom-color: var(--cyan-soft); color: var(--cyan-soft); transform: none; }

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover { background: var(--blue); color: var(--white); transform: translateY(-3px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  transition: background 0.35s, box-shadow 0.35s, padding 0.35s;
  padding: 18px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
}
.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(20, 33, 61, 0.24);
  flex-shrink: 0;
  transition: box-shadow 0.35s, transform 0.35s;
}
.brand-logo img {
  height: 100%;
  max-height: 58px;
  width: auto;
  max-width: 160px;
  display: block;
}
.site-header.scrolled .brand-logo { box-shadow: 0 4px 14px rgba(20, 33, 61, 0.14); }
.brand:hover .brand-logo { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(20, 33, 61, 0.28); }
@media (max-width: 640px) {
  .brand-logo { height: 42px; padding: 6px 10px; border-radius: 9px; }
  .brand-logo img { max-height: 42px; max-width: 120px; }
}
.brand-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.2; }
.brand-name { font-size: 14px; font-weight: 700; color: var(--white); transition: color 0.35s; white-space: nowrap; }
.brand-tag { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); font-weight: 500; }
.site-header.scrolled .brand-name,
.site-header.light .brand-name { color: var(--navy); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-menu > li { position: relative; }
.nav-menu a.nav-link {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  padding: 8px 0;
  position: relative;
  transition: color 0.3s;
}
.site-header.scrolled .nav-menu a.nav-link,
.site-header.light .nav-menu a.nav-link { color: var(--ink); }
.nav-menu a.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: width 0.3s var(--ease);
}
.nav-menu a.nav-link:hover::after,
.nav-menu a.nav-link.active::after { width: 100%; }
.nav-menu a.nav-link:hover,
.nav-menu a.nav-link.active { color: var(--cyan); }

/* dropdown */
.has-dropdown .dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: -18px;
  min-width: 260px;
  background:
    radial-gradient(320px 200px at 100% 0%, rgba(230, 114, 11, 0.16), transparent 60%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.25s, color 0.25s, padding-left 0.25s;
}
.dropdown a::before {
  content: "";
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.55;
  transition: opacity 0.25s, transform 0.25s var(--ease);
}
.dropdown a:hover { background: rgba(230, 114, 11, 0.16); color: var(--white); padding-left: 20px; }
.dropdown a:hover::before { opacity: 1; transform: scale(1.35); }

.nav-cta { flex-shrink: 0; }
.nav-cta .btn { padding: 12px 20px; font-size: 16px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 3px auto;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.site-header.scrolled .nav-toggle span,
.site-header.light .nav-toggle span { background: var(--navy); }
.nav-toggle.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }


/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 170px 0 120px;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(230, 114, 11, 0.22), transparent 60%),
    radial-gradient(700px 500px at 10% 85%, rgba(45, 58, 92, 0.28), transparent 60%),
    linear-gradient(140deg, var(--navy-deep) 0%, var(--navy) 55%, #2a3c66 100%);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 40%, transparent 100%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }

.hero-inner { max-width: 860px; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(230, 114, 11, 0.12);
  border: 1px solid rgba(230, 114, 11, 0.35);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero-kicker .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 114, 11, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(230, 114, 11, 0); }
}

.hero h1 {
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -1px;
  color: var(--white);
  margin-bottom: 8px;
}

/* rotating word — per-letter 3D swirl, matches reference animated-headline widget */
.rotator {
  display: block;
  min-height: 1.2em;
  color: var(--cyan);
  perspective: 300px;
  white-space: nowrap;
}
.rotator .letter {
  display: inline-block;
  backface-visibility: hidden;
  opacity: 0;
  transform: translateZ(-20px) rotateX(90deg);
  animation: swirlIn 0.4s forwards;
}
@keyframes swirlIn {
  0% { opacity: 0; transform: translateZ(-20px) rotateX(90deg); }
  60% { opacity: 1; transform: translateZ(-20px) rotateX(-10deg); }
  100% { opacity: 1; transform: translateZ(-20px) rotateX(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .rotator .letter { animation: none; opacity: 1; transform: none; }
}

.hero p.lead {
  font-size: 18.5px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 640px;
  margin: 22px 0 38px;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

/* hero stats band — 2x2 glass panel of icon + text rows, matches reference info-box band */
.hero-stats {
  position: relative;
  z-index: 2;
  margin-top: 84px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius) var(--radius) 0 0;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.stat {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.stat:nth-child(2n) { border-right: none; }
.stat:nth-last-child(-n+2) { border-bottom: none; }
.stat-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin-top: 3px;
  display: grid;
  place-items: center;
  color: var(--white);
}
.stat-text { flex: 1; min-width: 0; }
.stat .num {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}
.stat .num .suffix { color: var(--cyan); }
.stat .label { font-size: 16px; font-weight: 400; line-height: 1.6; color: rgba(255, 255, 255, 0.85); }
@media (max-width: 767px) {
  .stat { padding: 14px; gap: 10px; }
  .stat-icon { width: 26px; height: 26px; }
  .stat .num { font-size: 18px; }
  .stat .label { font-size: 14px; line-height: 1.5; }
}

/* light-background stat band variant (used outside a dark hero) */
.stat-band-light {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-band-light .stat {
  background: var(--white);
  border-color: var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
}
.stat-band-light .stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); z-index: 1; }
.stat-band-light .stat-icon { color: var(--cyan); }
.stat-band-light .stat .num { color: var(--navy); }
.stat-band-light .stat .num .suffix { color: var(--cyan); }
.stat-band-light .stat .label { color: var(--muted); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: 190px 0 110px;
  background:
    radial-gradient(700px 400px at 80% 30%, rgba(230, 114, 11, 0.2), transparent 60%),
    linear-gradient(140deg, var(--navy-deep) 0%, var(--navy) 60%, #2a3c66 100%);
  color: var(--white);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 30%, #000 40%, transparent 100%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); font-size: clamp(34px, 4.6vw, 54px); margin: 10px 0 16px; }
.page-hero p { color: rgba(255, 255, 255, 0.8); max-width: 660px; font-size: 17.5px; }
.crumbs {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
}
.crumbs a:hover { color: var(--cyan); }
.crumbs .sep { color: var(--cyan); }

/* ---------- Cards / services ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid rgba(20, 33, 61, 0.10);
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.card:hover { border-color: var(--cyan); }

.card .card-photo {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 20px;
}
.card .card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.card:hover .card-photo img { transform: scale(1.08); }

.card .icon {
  width: 68px;
  height: 68px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  color: var(--cyan);
  margin-bottom: 24px;
  transition: background 0.3s, color 0.3s;
}
.card:hover .icon {
  background: var(--bg-tint);
  color: var(--cyan);
}
.card h3 { font-size: 26px; margin-bottom: 14px; letter-spacing: -0.6px; }
.card p { color: var(--muted); font-size: 16px; line-height: 1.6; margin-bottom: 18px; }

.card .feature-list { margin: 0 0 22px; }
.card .feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--ink);
  padding: 5px 0;
}
.card .feature-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
}

.link-more {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.link-more svg { transition: transform 0.3s var(--ease); }
.link-more:hover svg { transform: translateX(5px); }

.card .tech-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.card .tech-logo {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.card .tech-logo img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: filter 0.3s, opacity 0.3s;
}
.card:hover .tech-logo { border-color: var(--line); background: var(--white); }
.card .tech-logo:hover { transform: translateY(-2px); border-color: var(--cyan); }
.card:hover .tech-logo img,
.card .tech-logo:hover img { filter: grayscale(0%); opacity: 1; }

.card .tech-chip-text {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--muted);
  text-align: center;
  line-height: 1.1;
  transition: color 0.3s, border-color 0.3s;
}
.card .tech-chip-text:hover { color: var(--cyan); border-color: var(--cyan); }

/* ---------- About / split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.split h2 { font-size: clamp(28px, 4vw, 46px); letter-spacing: -1px; margin-bottom: 20px; }
.split p { color: var(--muted); margin-bottom: 16px; }

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 26px;
  margin: 26px 0 34px;
}
.check-grid li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 15.5px;
  color: var(--navy);
}
.check-grid li svg { flex-shrink: 0; color: var(--cyan); }

.visual-panel {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--navy) 0%, #2a3c66 70%, var(--blue) 130%);
  min-height: 460px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-end;
}
.visual-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
}
.visual-panel .panel-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.visual-panel.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(8, 14, 28, 0.35) 0%, rgba(20, 33, 61, 0.72) 55%, rgba(6, 14, 64, 0.88) 100%);
}
.visual-panel .panel-badge {
  z-index: 2;
  position: absolute;
  top: 30px;
  right: 30px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-family: var(--font-head);
  border-radius: 12px;
  padding: 14px 20px;
  text-align: center;
}
.visual-panel .panel-badge .big { font-size: 30px; font-weight: 700; color: var(--cyan); line-height: 1.1; }
.visual-panel .panel-badge .small { font-size: 12.5px; font-weight: 500; opacity: 0.85; }
.visual-panel .panel-content {
  position: relative;
  z-index: 2;
  padding: 34px;
  color: var(--white);
}

/* photo helpers */
.hero .hero-photo,
.page-hero .hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  pointer-events: none;
}

/* overlap card — pulls a white content card up over the page-hero (matches reference about-page mission block) */
.overlap-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 60px;
  margin-top: -110px;
  position: relative;
  z-index: 3;
}
@media (max-width: 1024px) {
  .overlap-card { padding: 40px; margin-top: -70px; }
}
@media (max-width: 767px) {
  .overlap-card { padding: 30px 20px; margin-top: -40px; }
}

/* image-hover-caption gallery (matches reference about-page photo band) */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.photo-gallery figure {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
}
.photo-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.photo-gallery figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px 18px 18px;
  background: linear-gradient(0deg, rgba(8, 14, 28, 0.85), transparent);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.photo-gallery figure:hover img { transform: scale(1.08); }
.photo-gallery figure:hover figcaption { opacity: 1; transform: translateY(0); }
@media (max-width: 1024px) {
  .photo-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .photo-gallery { grid-template-columns: 1fr; }
  .photo-gallery figure { aspect-ratio: 16 / 10; }
}
.photo-frame {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.photo-band { position: relative; overflow: hidden; }
.photo-band .band-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.13;
  pointer-events: none;
}
.photo-band .container { position: relative; z-index: 2; }

/* small 1-tall + 2-stacked image mosaic (matches reference's 3-image split-section gallery) */
.mini-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  height: 100%;
}
.mini-gallery .photo-frame {
  max-height: none;
  height: 100%;
}
.mini-gallery .tall { grid-row: span 2; }
@media (max-width: 640px) {
  .mini-gallery { grid-template-columns: 1fr; }
  .mini-gallery .tall { grid-row: auto; }
}

/* pill-style eyebrow badge (matches reference's Core Values section label) */
.eyebrow-pill {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  background: var(--cyan);
  padding: 9px 20px;
  border-radius: 5px;
  margin-bottom: 22px;
}

.why-card .icon { color: var(--cyan); margin-bottom: 16px; display: block; }
.visual-panel .panel-content .q {
  font-family: var(--font-head);
  font-size: 21px;
  line-height: 1.45;
  font-weight: 500;
}
.visual-panel .panel-content .a { margin-top: 12px; font-size: 14px; color: rgba(255,255,255,0.75); }

.callout-call {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
}
.callout-call .phone-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-tint);
  color: var(--blue);
  flex-shrink: 0;
}
.callout-call .lbl { font-size: 13.5px; font-weight: 500; color: var(--muted); }
.callout-call .val { font-family: var(--font-head); font-weight: 700; font-size: 19px; color: var(--navy); }

/* ---------- Why choose us ---------- */
.section-soft { background: var(--bg-soft); }
.section-dark {
  background:
    radial-gradient(800px 400px at 15% 15%, rgba(230, 114, 11, 0.15), transparent 60%),
    linear-gradient(160deg, var(--navy-deep), var(--navy) 70%);
  color: var(--white);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .section-head p { color: rgba(255, 255, 255, 0.75); }

.why-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: border-color 0.3s;
}
.why-card:hover { border-color: var(--cyan); }
.why-card .n {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.1em;
}
.why-card h3 { font-size: 20px; margin: 12px 0 10px; }
.why-card p { color: rgba(255, 255, 255, 0.72); font-size: 15px; }

/* ---------- Industries / footprint ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 14px; }
.chip {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 12px 22px;
  border-radius: 999px;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}
.chip:hover {
  background: linear-gradient(100deg, var(--blue), var(--cyan));
  color: var(--white);
  border-color: transparent;
  transform: translateY(-3px);
}

/* ---------- Testimonials ---------- */
.slider { position: relative; overflow: hidden; }
.slider-track {
  display: flex;
  gap: 30px;
  transition: transform 1s var(--ease);
}
.t-slide { flex: 0 0 calc((100% - 60px) / 3); }
@media (max-width: 1023px) {
  .slider-track { gap: 10px; }
  .t-slide { flex: 0 0 calc((100% - 10px) / 2); }
}
@media (max-width: 767px) {
  .t-slide { flex: 0 0 100%; }
}
.t-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 30px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  height: 100%;
  transition: border-color 0.3s;
}
.t-card:hover { border-color: var(--cyan); }
.t-card .quote-mark {
  font-family: var(--font-head);
  font-size: 64px;
  line-height: 0.6;
  color: var(--cyan);
  display: block;
  margin-bottom: 22px;
}
.t-card blockquote { font-size: 18px; color: var(--ink); line-height: 1.8; }
.t-card .who { margin-top: 26px; }
.t-card .who .name { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 17px; }
.t-card .who .role { font-size: 14px; font-weight: 500; color: var(--muted); }

.slider-nav { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.slider-dot {
  width: 10px; height: 10px;
  border-radius: 999px;
  border: 0;
  background: #c8d4ea;
  cursor: pointer;
  transition: width 0.3s var(--ease), background 0.3s;
}
.slider-dot.active { width: 30px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }

/* ---------- Clients ---------- */
.client-cat h3 {
  font-size: 19px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.client-cat h3 .count {
  font-size: 12.5px;
  background: var(--bg-tint);
  color: var(--blue);
  border-radius: 999px;
  padding: 3px 12px;
  font-weight: 500;
}
.client-cat { margin-bottom: 46px; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: calc(var(--radius) + 8px);
  padding: 70px 60px;
  background:
    radial-gradient(500px 300px at 90% 10%, rgba(230, 114, 11, 0.35), transparent 60%),
    linear-gradient(120deg, var(--navy-deep), var(--navy) 55%, #2a3c66);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  overflow: hidden;
  position: relative;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--white); font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, 0.78); max-width: 520px; }

/* ---------- Team — member carousel (matches reference oew-member widget) ---------- */
.member-carousel { position: relative; overflow: hidden; }
.member-track {
  display: flex;
  gap: 30px;
  transition: transform 0.5s var(--ease);
}
.member-slide { flex: 0 0 calc((100% - 90px) / 4); }
@media (max-width: 1023px) {
  .member-track { gap: 20px; }
  .member-slide { flex: 0 0 calc((100% - 20px) / 2); }
}
@media (max-width: 640px) {
  .member-slide { flex: 0 0 100%; }
}
.member-card { text-align: left; }
.member-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  margin-bottom: 30px;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 44px;
  letter-spacing: 0.02em;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--blue));
}
.member-slide:nth-child(4n+2) .member-photo { background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.member-slide:nth-child(4n+3) .member-photo { background: linear-gradient(135deg, #2a3c66, var(--cyan-soft)); }
.member-slide:nth-child(4n+4) .member-photo { background: linear-gradient(135deg, var(--navy), var(--cyan)); }
.member-card h3 { font-size: 26px; font-weight: 500; letter-spacing: -1px; margin-bottom: 5px; }
.member-card .role { font-size: 16px; font-weight: 400; color: var(--muted); margin-bottom: 10px; }

/* ---------- Workshops ---------- */
.ws-item {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.ws-item:hover { transform: translateX(6px); box-shadow: var(--shadow-md); border-color: rgba(1,175,239,0.5); }
.ws-item .ws-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--bg-tint);
  color: var(--blue);
}
.ws-item h4 { font-size: 16.5px; font-weight: 600; }

.workshop-cat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  margin-bottom: 24px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.workshop-cat:hover { border-color: var(--cyan); box-shadow: var(--shadow-md); }
.workshop-cat > h3 {
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.workshop-cat .cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--bg-tint);
  color: var(--cyan);
  flex-shrink: 0;
}
.workshop-cat h3 .count {
  margin-left: auto;
  font-size: 12.5px;
  background: var(--bg-tint);
  color: var(--blue);
  border-radius: 999px;
  padding: 3px 12px;
  font-weight: 500;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }

.info-tile {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.info-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.info-tile .icon {
  width: 52px; height: 52px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--bg-tint);
  color: var(--blue);
}
.info-tile h4 { font-size: 16px; margin-bottom: 4px; }
.info-tile p, .info-tile a { font-size: 15px; color: var(--muted); }
.info-tile a:hover { color: var(--blue); }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: var(--shadow-md);
}
.form-card h3 { font-size: 24px; margin-bottom: 8px; }
.form-card > p { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--cyan);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(230, 114, 11, 0.12);
}

.map-embed {
  border: 0;
  width: 100%;
  height: 380px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(170deg, var(--navy-deep), #030818);
  color: rgba(255, 255, 255, 0.75);
  padding: 80px 0 0;
  border-top: 4px solid var(--cyan);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 114, 11, 0.12), transparent 65%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  position: relative;
}
.site-footer h4 {
  color: var(--white);
  font-size: 17px;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 12px;
}
.site-footer h4::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 30px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}
.footer-about p { font-size: 14.5px; margin: 18px 0 24px; line-height: 1.8; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.75);
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.footer-social a:hover { background: var(--cyan); border-color: var(--cyan); color: var(--white); transform: translateY(-3px); }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
  font-size: 14.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s, gap 0.3s var(--ease);
}
.footer-links a::before { content: "›"; color: var(--cyan); font-weight: 700; }
.footer-links a:hover { color: var(--cyan); gap: 12px; }

.footer-contact li {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 500;
  margin-bottom: 16px;
  align-items: flex-start;
}
.footer-contact svg { flex-shrink: 0; color: var(--cyan); margin-top: 3px; }
.footer-contact a:hover { color: var(--cyan); }

.footer-bottom {
  margin-top: 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  font-weight: 500;
}
.footer-bottom a:hover { color: var(--cyan); }

/* ---------- Animated tab bar (reused across CQS Consulting / Services) ---------- */
.tabs-wrap {
  position: sticky;
  top: 70px;
  z-index: 500;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(20,33,61,0.06);
}
.tabs-bar {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-bar::-webkit-scrollbar { display: none; }
.tab-indicator {
  position: absolute;
  top: 12px;
  height: calc(100% - 24px);
  border-radius: 999px;
  background: linear-gradient(120deg, var(--cyan-soft), var(--cyan));
  box-shadow: 0 8px 20px rgba(230, 114, 11, 0.35);
  transition: left 0.45s cubic-bezier(0.65, 0, 0.35, 1), width 0.45s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 0;
}
.tab-btn {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 11px 22px;
  border-radius: 999px;
  transition: color 0.35s;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--cyan); }
.tab-btn.active { color: var(--white); }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: tabIn 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes tabIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .tab-panel.active { animation: none; }
  .tab-indicator { transition: none; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: none; }
.d-1 { transition-delay: 0.1s; }
.d-2 { transition-delay: 0.2s; }
.d-3 { transition-delay: 0.3s; }
.d-4 { transition-delay: 0.4s; }
.d-5 { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: var(--white);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.35s, transform 0.35s var(--ease), visibility 0.35s;
  z-index: 900;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-4px); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  section { padding: 40px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 140px 0 90px; min-height: 0; }
  .hero-stats { grid-template-columns: 1fr 1fr; margin-top: 60px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 54px 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 38px; }

  .nav-toggle { display: grid; }
  .nav-cta { display: none; }
  .nav-menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 84vw);
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    background: var(--navy-deep);
    padding: 110px 34px 40px;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.35);
    overflow-y: auto;
    z-index: -1;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu > li { width: 100%; }
  .nav-menu a.nav-link {
    display: block;
    padding: 13px 0;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.92) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .has-dropdown .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    box-shadow: none;
    padding: 0 0 6px 16px;
    min-width: 0;
  }
  .dropdown a { color: rgba(255, 255, 255, 0.65); padding: 9px 0; }
  .dropdown a:hover { background: transparent; color: var(--cyan); padding-left: 6px; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }
  .stat { border-right: none !important; }
  .stat:last-child { border-bottom: none; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
