/* ============================================================================
   G1 GRAPHICS — Design System
   Brand-compliant (Helvetica Neue, #1C1F4D navy, #1872FA bright blue, #808082 gray)
   Aesthetic: Industrial-modern editorial. Confident typography. Generous whitespace.
   ============================================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand colors */
  --navy: #1C1F4D;
  --navy-deep: #0F1130;          /* richer dark for backgrounds */
  --navy-soft: #2A2E6A;          /* slightly lifted navy for layered surfaces */
  --blue: #1872FA;
  --blue-bright: #3A8AFF;
  --gray: #808082;
  --gray-light: #E8E8EA;
  --gray-mist: #F4F4F6;
  --white: #FFFFFF;
  --black: #0A0B1A;

  /* Semantic */
  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: rgba(255, 255, 255, 0.72);
  --text-on-dark-subtle: rgba(255, 255, 255, 0.5);
  --text-on-light: #1C1F4D;
  --text-on-light-muted: #545670;
  --border-on-dark: rgba(255, 255, 255, 0.14);
  --border-on-light: rgba(28, 31, 77, 0.14);

  /* Typography */
  --font-sans: "Helvetica Neue", "Helvetica", "Arial", sans-serif;

  /* Type scale — modular, bold at top end */
  --fs-xs: 0.75rem;       /* 12px — eyebrow / caps */
  --fs-sm: 0.875rem;      /* 14px — small */
  --fs-base: 1rem;        /* 16px — body */
  --fs-md: 1.125rem;      /* 18px — lead */
  --fs-lg: 1.375rem;      /* 22px — subhead */
  --fs-xl: 1.75rem;       /* 28px — h3 */
  --fs-2xl: 2.5rem;       /* 40px — h2 */
  --fs-3xl: 3.75rem;      /* 60px — h1 small */
  --fs-4xl: 5.5rem;       /* 88px — display */
  --fs-5xl: 8rem;         /* 128px — hero */

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --space-11: 12rem;

  /* Layout */
  --container-max: 1440px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur-med: 340ms;
  --dur-slow: 640ms;
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--text-on-light);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

/* ---------- 3. Typography system ---------- */

.eyebrow {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow--gray { color: var(--gray); }
.eyebrow--white { color: rgba(255, 255, 255, 0.7); }

h1, .h1 {
  font-size: clamp(var(--fs-3xl), 7vw, var(--fs-5xl));
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

h2, .h2 {
  font-size: clamp(var(--fs-2xl), 4.5vw, var(--fs-4xl));
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.025em;
}

h3, .h3 {
  font-size: clamp(var(--fs-xl), 2.5vw, var(--fs-2xl));
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h4, .h4 {
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(var(--fs-md), 1.5vw, var(--fs-lg));
  line-height: 1.5;
  color: var(--text-on-light-muted);
  font-weight: 400;
}

.lead--on-dark { color: var(--text-on-dark-muted); }

p { line-height: 1.65; }
p + p { margin-top: var(--space-4); }

/* Rule under a heading — editorial style */
.rule {
  width: 3rem;
  height: 3px;
  background: var(--blue);
  margin: var(--space-5) 0;
}

.rule--gold { background: var(--blue); }
.rule--white { background: var(--white); }

/* ---------- 4. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding-block: clamp(var(--space-8), 10vw, var(--space-11)); }
.section--tight { padding-block: clamp(var(--space-7), 6vw, var(--space-9)); }

.section--dark {
  background: var(--navy);
  color: var(--text-on-dark);
}

.section--deep {
  background: var(--navy-deep);
  color: var(--text-on-dark);
}

.section--mist { background: var(--gray-mist); }

/* ---------- 5. Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--space-4) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--dur-med) var(--ease),
              backdrop-filter var(--dur-med) var(--ease),
              border-color var(--dur-med) var(--ease);
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-on-light);
}

.nav__logo img { height: 38px; width: auto; }

.nav--scrolled .nav__logo--white { display: none; }
.nav__logo--navy { display: none; }
.nav--scrolled .nav__logo--navy { display: block; }
.nav:not(.nav--scrolled) .nav__logo--white { display: block; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-7);
}

.nav__link {
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-on-dark);
  position: relative;
  padding: var(--space-2) 0;
  transition: color var(--dur-fast) var(--ease);
}

.nav--scrolled .nav__link { color: var(--text-on-light); }

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--dur-med) var(--ease);
}

.nav__link:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.nav__cta {
  background: var(--blue);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.nav__cta:hover { background: var(--blue-bright); transform: translateY(-1px); }

.nav__toggle { display: none; }

@media (max-width: 960px) {
  .nav__menu { display: none; }
  .nav__toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
  }
  .nav__toggle span {
    width: 24px; height: 2px;
    background: var(--white);
    transition: background var(--dur-fast) var(--ease);
  }
  .nav--scrolled .nav__toggle span { background: var(--navy); }

  .nav__menu--open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-5);
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy-deep);
    padding: var(--space-6) var(--gutter);
  }
  .nav__menu--open .nav__link { color: var(--white); font-size: var(--fs-md); }
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 1rem 1.75rem;
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--dur-fast) var(--ease);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--blue-bright);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.btn--ghost-dark {
  background: transparent;
  color: var(--navy);
  border-color: rgba(28, 31, 77, 0.25);
}

.btn--ghost-dark:hover {
  border-color: var(--navy);
  background: rgba(28, 31, 77, 0.05);
}

.btn .arrow {
  transition: transform var(--dur-fast) var(--ease);
  display: inline-block;
}

.btn:hover .arrow { transform: translateX(4px); }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: var(--space-9);
  background: var(--navy-deep);
  color: var(--text-on-dark);
  overflow: hidden;
}

/* Giant G-monogram as background element */
.hero__mark {
  position: absolute;
  right: -8%;
  top: -5%;
  width: 80vh;
  max-width: 1000px;
  height: 110vh;
  opacity: 0.06;
  pointer-events: none;
}

.hero__mark svg { width: 100%; height: 100%; }

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 72rem;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.hero__eyebrow-dot {
  width: 8px; height: 8px;
  background: var(--blue);
  border-radius: 50%;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero__title {
  margin-bottom: var(--space-6);
  max-width: 20ch;
}

.hero__title .accent { color: var(--blue); }

.hero__sub {
  font-size: clamp(var(--fs-md), 1.8vw, var(--fs-lg));
  color: var(--text-on-dark-muted);
  max-width: 56ch;
  line-height: 1.55;
  margin-bottom: var(--space-8);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.hero__credentials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-8);
  align-items: center;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-on-dark);
}

.hero__cred {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-on-dark-muted);
}

.hero__cred-dot {
  width: 6px; height: 6px;
  background: var(--blue);
}

/* ---------- 8. Logo wall ---------- */
.logowall {
  padding: var(--space-7) 0;
  background: var(--white);
  border-bottom: 1px solid var(--border-on-light);
}

.logowall__label {
  text-align: center;
  margin-bottom: var(--space-5);
}

.logowall__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-6);
  align-items: center;
  justify-items: center;
}

.logowall__item {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  text-align: center;
  transition: color var(--dur-fast) var(--ease);
  padding: var(--space-3);
  line-height: 1.2;
}

.logowall__item:hover { color: var(--navy); }

@media (max-width: 800px) {
  .logowall__grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
}

/* ---------- 9. Section intro ---------- */
.section-intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
  align-items: end;
}

.section-intro__label {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.section-intro__num {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--blue);
}

@media (max-width: 900px) {
  .section-intro { grid-template-columns: 1fr; gap: var(--space-5); }
}

/* ---------- 10. Service grid ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-on-light);
}

.service {
  grid-column: span 4;
  padding: var(--space-7) var(--space-6);
  border-right: 1px solid var(--border-on-light);
  border-bottom: 1px solid var(--border-on-light);
  position: relative;
  transition: background var(--dur-med) var(--ease);
  display: flex;
  flex-direction: column;
  min-height: 380px;
  color: var(--navy);
}

.service:hover { background: var(--gray-mist); }

.service--featured {
  grid-column: span 12;
  background: var(--navy);
  color: var(--white);
  flex-direction: row;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-7) var(--space-8);
}

.service--featured:hover { background: var(--navy-deep); }

.service__num {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--blue);
  margin-bottom: var(--space-5);
}

.service__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.service--featured .service__title { font-size: var(--fs-2xl); flex: 1; }

.service__desc {
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text-on-light-muted);
  margin-bottom: var(--space-5);
}

.service--featured .service__desc {
  color: var(--text-on-dark-muted);
  flex: 1;
  margin-bottom: 0;
}

.service__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  transition: color var(--dur-fast) var(--ease);
}

.service--featured .service__link { color: var(--white); }

.service__link .arrow {
  transition: transform var(--dur-fast) var(--ease);
}

.service:hover .service__link .arrow { transform: translateX(6px); }

@media (max-width: 960px) {
  .service { grid-column: span 6; min-height: 300px; padding: var(--space-6); }
  .service--featured { grid-column: span 12; flex-direction: column; align-items: flex-start; gap: var(--space-5); }
}

@media (max-width: 600px) {
  .service { grid-column: span 12; min-height: auto; }
}

/* ---------- 11. Industries ---------- */
.industries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border-on-dark);
}

.industry {
  position: relative;
  background: var(--navy-deep);
  color: var(--white);
  padding: var(--space-7) var(--space-6) var(--space-6);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background var(--dur-med) var(--ease);
  overflow: hidden;
}

.industry:hover { background: var(--navy-soft); }

.industry__num {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--blue);
  margin-bottom: var(--space-4);
}

.industry__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: var(--space-3);
}

.industry__proof {
  font-size: var(--fs-sm);
  color: var(--text-on-dark-muted);
  line-height: 1.5;
  margin-bottom: var(--space-4);
}

.industry__proof strong { color: var(--text-on-dark); font-weight: 600; }

.industry__cta {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-bright);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  transition: gap var(--dur-fast) var(--ease);
}

.industry:hover .industry__cta { gap: var(--space-3); }

@media (max-width: 900px) {
  .industries { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .industries { grid-template-columns: 1fr; }
}

/* ---------- 12. Feature / case study ---------- */
.feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
  min-height: 540px;
  background: var(--navy);
  color: var(--white);
}

.feature__visual {
  position: relative;
  background: linear-gradient(135deg, var(--navy-soft), var(--navy-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.feature__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-3);
  color: rgba(255, 255, 255, 0.3);
  padding: var(--space-6);
  text-align: center;
}

.feature__placeholder-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.feature__placeholder-desc {
  font-size: var(--fs-sm);
  max-width: 28ch;
  line-height: 1.4;
}

.feature__body {
  padding: clamp(var(--space-6), 5vw, var(--space-9));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature__client {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: var(--space-5);
}

.feature__title {
  font-size: clamp(var(--fs-xl), 3vw, var(--fs-2xl));
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-5);
  max-width: 20ch;
}

.feature__desc {
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--text-on-dark-muted);
  margin-bottom: var(--space-7);
  max-width: 46ch;
}

.feature__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-on-dark);
}

.feature__stat-num {
  font-size: clamp(var(--fs-xl), 2.5vw, var(--fs-2xl));
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

.feature__stat-label {
  font-size: var(--fs-xs);
  color: var(--text-on-dark-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; min-height: auto; }
  .feature__visual { min-height: 320px; }
}

/* ---------- 13. Differentiators (Why G1) ---------- */
.differentiators {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  background: var(--border-on-light);
  border: 1px solid var(--border-on-light);
}

.diff {
  background: var(--white);
  padding: var(--space-6) var(--space-5);
  min-height: 240px;
  display: flex;
  flex-direction: column;
}

.diff__num {
  font-size: var(--fs-4xl);
  font-weight: 800;
  color: var(--gray-light);
  line-height: 1;
  margin-bottom: var(--space-4);
  letter-spacing: -0.04em;
}

.diff__title {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.diff__desc {
  font-size: var(--fs-sm);
  color: var(--text-on-light-muted);
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .differentiators { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .differentiators { grid-template-columns: 1fr; }
  .diff { min-height: auto; }
}

/* ---------- 14. CTA block ---------- */
.cta-block {
  background: var(--navy-deep);
  color: var(--white);
  padding: clamp(var(--space-9), 12vw, var(--space-11)) 0;
  position: relative;
  overflow: hidden;
}

.cta-block__mark {
  position: absolute;
  left: -10%;
  bottom: -30%;
  width: 60vh;
  max-width: 600px;
  opacity: 0.05;
  pointer-events: none;
}

.cta-block__content {
  position: relative;
  z-index: 1;
  text-align: left;
  max-width: 64rem;
}

.cta-block__title {
  margin-bottom: var(--space-6);
  letter-spacing: -0.03em;
}

.cta-block__sub {
  font-size: clamp(var(--fs-md), 1.8vw, var(--fs-lg));
  color: var(--text-on-dark-muted);
  margin-bottom: var(--space-8);
  max-width: 56ch;
  line-height: 1.5;
}

.cta-block__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.cta-block__phone {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: var(--space-5);
}

.cta-block__phone-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-on-dark-subtle);
}

@media (max-width: 700px) {
  .cta-block__phone { margin-left: 0; }
  .cta-block__actions { flex-direction: column; align-items: flex-start; }
}

/* ---------- 15. Footer ---------- */
.footer {
  background: var(--black);
  color: var(--text-on-dark);
  padding-top: var(--space-9);
  padding-bottom: var(--space-5);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-7);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--border-on-dark);
}

.footer__brand-logo {
  height: 50px;
  width: auto;
  margin-bottom: var(--space-5);
}

.footer__about {
  color: var(--text-on-dark-muted);
  line-height: 1.6;
  max-width: 44ch;
  margin-bottom: var(--space-5);
  font-size: var(--fs-sm);
}

.footer__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--text-on-dark-subtle);
}

.footer__meta strong { color: var(--text-on-dark); font-weight: 600; }

.footer__col-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: var(--space-5);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  color: var(--text-on-dark-muted);
  font-size: var(--fs-sm);
  transition: color var(--dur-fast) var(--ease);
}

.footer__link:hover { color: var(--white); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-5);
  gap: var(--space-4);
}

.footer__copy, .footer__legal-links {
  font-size: var(--fs-xs);
  color: var(--text-on-dark-subtle);
  letter-spacing: 0.04em;
}

.footer__legal-links {
  display: flex;
  gap: var(--space-5);
}

.footer__legal-link { transition: color var(--dur-fast) var(--ease); }
.footer__legal-link:hover { color: var(--white); }

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
}

@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- 16. Utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > * { opacity: 0; transform: translateY(16px); }
.stagger.in-view > * {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.stagger.in-view > *:nth-child(1) { transition-delay: 80ms; }
.stagger.in-view > *:nth-child(2) { transition-delay: 160ms; }
.stagger.in-view > *:nth-child(3) { transition-delay: 240ms; }
.stagger.in-view > *:nth-child(4) { transition-delay: 320ms; }
.stagger.in-view > *:nth-child(5) { transition-delay: 400ms; }
.stagger.in-view > *:nth-child(6) { transition-delay: 480ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================================
   EXTENDED COMPONENTS — service/industry/portfolio/contact pages
   ============================================================================ */

/* ---------- Page hero (used on About, services, industries) ---------- */
.page-hero {
  background: var(--navy-deep);
  color: var(--text-on-dark);
  padding-top: 180px;
  padding-bottom: clamp(var(--space-7), 8vw, var(--space-9));
  position: relative;
  overflow: hidden;
}

.page-hero__mark {
  position: absolute;
  right: -15%;
  top: -20%;
  width: 60vh;
  max-width: 800px;
  opacity: 0.05;
  pointer-events: none;
}

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-on-dark-subtle);
  margin-bottom: var(--space-5);
}

.page-hero__breadcrumb a {
  color: var(--text-on-dark-muted);
  transition: color var(--dur-fast) var(--ease);
}

.page-hero__breadcrumb a:hover { color: var(--blue-bright); }

.page-hero__breadcrumb .sep { color: var(--text-on-dark-subtle); }

.page-hero__title {
  font-size: clamp(var(--fs-3xl), 6vw, var(--fs-4xl));
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  max-width: 22ch;
  margin-bottom: var(--space-5);
}

.page-hero__title .accent { color: var(--blue-bright); }

.page-hero__sub {
  font-size: clamp(var(--fs-md), 1.6vw, var(--fs-lg));
  color: var(--text-on-dark-muted);
  max-width: 60ch;
  line-height: 1.55;
}

/* ---------- Jump nav (sticky in-page navigation for long pages) ---------- */
.jumpnav {
  position: sticky;
  top: 72px;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border-on-light);
  padding: var(--space-4) 0;
}

.jumpnav__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  list-style: none;
  align-items: center;
}

.jumpnav__num {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gray);
  margin-right: var(--space-6);
}

.jumpnav__link {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-on-light-muted);
  letter-spacing: 0.02em;
  transition: color var(--dur-fast) var(--ease);
  position: relative;
  padding-bottom: var(--space-2);
}

.jumpnav__link:hover { color: var(--navy); }

.jumpnav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform var(--dur-fast) var(--ease);
  transform-origin: left;
}

.jumpnav__link:hover::after { transform: scaleX(1); }

@media (max-width: 700px) {
  .jumpnav { display: none; }
}

/* ---------- Two-column intro (label left, content right) ---------- */
.col-intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(var(--space-6), 6vw, var(--space-9));
  margin-bottom: var(--space-7);
  align-items: start;
}

.col-intro__label {
  position: sticky;
  top: 160px;
}

.col-intro__body p {
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--text-on-light);
  margin-bottom: var(--space-4);
}

.col-intro--on-dark .col-intro__body p { color: var(--text-on-dark-muted); }

@media (max-width: 900px) {
  .col-intro { grid-template-columns: 1fr; }
  .col-intro__label { position: static; }
}

/* ---------- Offerings grid (what we offer) ---------- */
.offerings {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-on-light);
  border: 1px solid var(--border-on-light);
}

.offering {
  background: var(--white);
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
}

.offering__icon {
  width: 32px; height: 32px;
  background: var(--blue);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: 800;
}

.offering__title {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.offering__desc {
  font-size: var(--fs-sm);
  color: var(--text-on-light-muted);
  line-height: 1.55;
}

@media (max-width: 700px) {
  .offerings { grid-template-columns: 1fr; }
}

/* ---------- Process steps ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.step {
  position: relative;
  padding-top: var(--space-5);
  border-top: 2px solid var(--border-on-light);
  padding-right: var(--space-3);
}

.step--on-dark { border-top-color: var(--border-on-dark); }

.step__num {
  position: absolute;
  top: -16px;
  left: 0;
  background: var(--white);
  padding-right: var(--space-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--blue);
}

.step--on-dark .step__num {
  background: var(--navy-deep);
  color: var(--blue-bright);
}

.step__title {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.step--on-dark .step__title { color: var(--white); }

.step__desc {
  font-size: var(--fs-sm);
  color: var(--text-on-light-muted);
  line-height: 1.55;
}

.step--on-dark .step__desc { color: var(--text-on-dark-muted); }

@media (max-width: 1100px) {
  .process { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .process { grid-template-columns: 1fr; }
}

/* ---------- Materials / spec grid ---------- */
.specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.spec {
  background: var(--gray-mist);
  padding: var(--space-5) var(--space-5);
  border-left: 3px solid var(--blue);
}

.spec__name {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.spec__detail {
  font-size: var(--fs-sm);
  color: var(--text-on-light-muted);
  line-height: 1.55;
}

@media (max-width: 900px) { .specs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .specs { grid-template-columns: 1fr; } }

/* ---------- Inline project cards ---------- */
.projects-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.project-card {
  background: var(--navy-deep);
  color: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 320px;
  transition: background var(--dur-med) var(--ease);
}

.project-card:hover { background: var(--navy-soft); }

.project-card__visual {
  background: linear-gradient(135deg, var(--navy-soft), var(--navy-deep));
  flex: 1;
  min-height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.25);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  padding: var(--space-4);
}

.project-card__body {
  padding: var(--space-5);
}

.project-card__client {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: var(--space-3);
}

.project-card__title {
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

@media (max-width: 900px) {
  .projects-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .projects-row { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq {
  border-top: 1px solid var(--border-on-light);
}

.faq__item {
  border-bottom: 1px solid var(--border-on-light);
  padding: var(--space-5) 0;
}

.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-5);
  cursor: pointer;
  list-style: none;
}

.faq__q::-webkit-details-marker { display: none; }

.faq__q-text {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.faq__icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border: 2px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--navy);
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.faq__item[open] .faq__icon {
  transform: rotate(45deg);
  background: var(--navy);
  color: var(--white);
}

.faq__a {
  margin-top: var(--space-4);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text-on-light-muted);
  max-width: 70ch;
}

.faq__a p + p { margin-top: var(--space-3); }

/* ---------- Related items strip ---------- */
.related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-on-light);
  border: 1px solid var(--border-on-light);
}

.related__item {
  background: var(--white);
  padding: var(--space-5);
  transition: background var(--dur-fast) var(--ease);
  display: flex;
  flex-direction: column;
}

.related__item:hover { background: var(--gray-mist); }

.related__num {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--blue);
  margin-bottom: var(--space-3);
}

.related__title {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
  line-height: 1.25;
}

.related__desc {
  font-size: var(--fs-sm);
  color: var(--text-on-light-muted);
  line-height: 1.5;
  margin-bottom: var(--space-4);
}

.related__link {
  margin-top: auto;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

@media (max-width: 800px) { .related { grid-template-columns: 1fr; } }

/* ---------- Hub page (services index, industries index) ---------- */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border-on-light);
  border: 1px solid var(--border-on-light);
}

.hub-card {
  background: var(--white);
  padding: clamp(var(--space-5), 4vw, var(--space-7));
  display: flex;
  flex-direction: column;
  min-height: 280px;
  transition: background var(--dur-med) var(--ease);
  position: relative;
}

.hub-card:hover { background: var(--gray-mist); }

.hub-card__num {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--gray-light);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-4);
}

.hub-card__title {
  font-size: clamp(var(--fs-xl), 2.5vw, var(--fs-2xl));
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: var(--space-4);
}

.hub-card__desc {
  font-size: var(--fs-base);
  color: var(--text-on-light-muted);
  line-height: 1.6;
  margin-bottom: var(--space-5);
  max-width: 50ch;
}

.hub-card__proof {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-on-light);
  font-size: var(--fs-sm);
  color: var(--gray);
}

.hub-card__proof strong { color: var(--navy); font-weight: 600; }

.hub-card__cta {
  margin-top: var(--space-4);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

@media (max-width: 800px) { .hub-grid { grid-template-columns: 1fr; } }

/* ---------- Section header alt (centered, bigger) ---------- */
.section-header-center {
  text-align: center;
  max-width: 56rem;
  margin: 0 auto var(--space-8);
}

.section-header-center .rule { margin: var(--space-4) auto; }


