/* Sigma Design & Solutions — v1 base styles */

:root {
  --brand-teal: #78b0a8;
  --brand-teal-dark: #5a968f;
  --brand-teal-light: #e8f3f1;
  --brand-dark: #0f1419;
  --brand-navy: #1a2a3a;
  --text: #1f2937;
  --text-muted: #5e6b7a;
  --border: #e2e8f0;
  --bg: #ffffff;
  --bg-subtle: #f6f8fa;
  --bg-hero: linear-gradient(135deg, #f0f7f6 0%, #ffffff 55%, #f6f8fa 100%);
  --max-width: 1200px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(15, 20, 25, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 20, 25, 0.1);
  --font-sans: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --font-serif: "DM Serif Display", Georgia, serif;
  --header-h: 80px;
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--brand-teal);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--brand-navy);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.5rem; font-family: var(--font-sans); font-weight: 600; }
h4 { font-size: 1.05rem; margin: 0 0 0.5rem; font-family: var(--font-sans); font-weight: 600; }

.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 42rem;
  margin: 0 0 1.5rem;
}

.section-intro {
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0 0 2.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn-primary {
  background: var(--brand-navy);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-outline {
  background: transparent;
  color: var(--brand-navy);
  border: 2px solid var(--brand-navy);
}

.btn-outline:hover {
  background: var(--brand-navy);
  color: #fff;
}

.btn-teal {
  background: var(--brand-teal);
  color: #fff;
}

.btn-teal:hover {
  background: var(--brand-teal-dark);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  overflow: visible;
}

body.is-nav-open .site-header {
  z-index: 100001;
  backdrop-filter: none;
  background: var(--bg);
}

body.is-nav-open .site-header .header-inner {
  background: var(--bg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}

.logo-link {
  flex-shrink: 0;
}

.logo-link img {
  height: 52px;
  width: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--brand-teal-dark);
}

.nav-desktop .btn {
  padding: 0.6rem 1.25rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brand-navy);
  transition: transform var(--transition), opacity var(--transition);
}

/* Full-screen mobile menu (moved to body by main.js) */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: var(--bg);
  padding: calc(var(--header-h) + 1rem) 1.5rem 2rem;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: none;
  border: none;
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  padding: 0.875rem 0;
  font-size: 1.0625rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.nav-mobile .btn {
  margin-top: 1rem;
  width: 100%;
}

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
}

/* Hero */
.hero {
  padding: 4.5rem 0 5rem;
  background: var(--bg-hero);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-teal-dark);
  background: var(--brand-teal-light);
  border-radius: 999px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.hero-panel h3 {
  margin-top: 0;
  color: var(--brand-navy);
}

.hero-panel ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.hero-panel li {
  margin-bottom: 0.5rem;
}

.hero-panel li::marker {
  color: var(--brand-teal);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-subtle);
}

.section-dark {
  background: var(--brand-navy);
  color: #c8d4e0;
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-dark .section-intro {
  color: #9fb0c0;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header.center {
  text-align: center;
}

.section-header.center .section-intro {
  margin-left: auto;
  margin-right: auto;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  box-shadow: var(--shadow);
  border-color: var(--brand-teal);
}

.card a {
  color: var(--brand-teal-dark);
  font-weight: 500;
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}

.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-teal-light);
  color: var(--brand-teal-dark);
  border-radius: 8px;
  font-size: 1.25rem;
  font-weight: 700;
}

.card h3 {
  color: var(--brand-navy);
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-teal-dark);
}

.card-link:hover {
  text-decoration: underline;
}

/* Industries */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.industry-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}

.industry-card:hover {
  border-color: var(--brand-teal);
  transform: translateY(-2px);
}

.industry-card.featured {
  grid-column: span 1;
  border-color: var(--brand-teal);
  background: var(--brand-teal-light);
}

.industry-card.featured h3 {
  color: var(--brand-teal-dark);
}

.industry-card h3 {
  font-size: 1rem;
  margin: 0;
}

.industry-card p {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Approach / split */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.feature-block {
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.feature-block h3 {
  margin-top: 0;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat {
  text-align: center;
  padding: 1.5rem;
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--brand-teal);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* CTA band */
.cta-band {
  padding: 4rem 0;
  text-align: center;
  background: var(--brand-navy);
  color: #fff;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta-band p {
  color: #9fb0c0;
  max-width: 36rem;
  margin: 0 auto 1.75rem;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 3.5rem 0 3rem;
  background: var(--bg-hero);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin-bottom: 0.75rem;
}

.breadcrumb {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumb a:hover {
  color: var(--brand-teal-dark);
}

/* Services detail */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--brand-teal);
  line-height: 1;
  opacity: 0.85;
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-block {
  padding: 1.5rem;
  background: var(--bg-subtle);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.contact-info-block h4 {
  margin-top: 0;
  color: var(--brand-navy);
}

.contact-info-block p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.contact-info-block a {
  color: var(--brand-teal-dark);
  font-weight: 500;
  text-decoration: none;
}

.contact-info-block a:hover {
  text-decoration: underline;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--brand-navy);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Lifecycle steps */
.lifecycle {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  counter-reset: step;
}

.lifecycle-item {
  position: relative;
  padding: 1.25rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.lifecycle-item::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto 0.75rem;
  line-height: 28px;
  font-size: 0.8125rem;
  font-weight: 700;
  background: var(--brand-teal);
  color: #fff;
  border-radius: 50%;
}

.lifecycle-item h4 {
  font-size: 0.875rem;
  margin: 0;
}

.lifecycle-item p {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--brand-dark);
  color: #9aa8b8;
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand img {
  height: 48px;
  margin-bottom: 1rem;
  filter: brightness(1.1);
}

.footer-brand p {
  font-size: 0.875rem;
  max-width: 22rem;
  margin: 0;
  line-height: 1.6;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--brand-teal);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

/* ——— Homepage: HH Angus–style hero & sections ——— */

.page-home {
  --hero-h: min(100vh, 900px);
}

.page-home .site-header--overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.page-home .site-header--overlay.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.page-home .site-header--overlay:not(.is-scrolled) {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.page-home .site-header--overlay:not(.is-scrolled) .logo-link img {
  filter: none;
}

.page-home .site-header--overlay:not(.is-scrolled) .nav-desktop a:not(.btn) {
  color: var(--text);
}

.page-home .site-header--overlay:not(.is-scrolled) .nav-desktop a:not(.btn):hover,
.page-home .site-header--overlay:not(.is-scrolled) .nav-desktop a[aria-current="page"] {
  color: var(--brand-teal-dark);
}

.page-home .site-header--overlay:not(.is-scrolled) .nav-desktop .btn-primary {
  background: var(--brand-teal);
  color: #fff;
}

.page-home .site-header--overlay:not(.is-scrolled) .nav-toggle span {
  background: var(--brand-navy);
}

/* Full-viewport hero carousel */
.hero-showcase {
  position: relative;
  height: var(--hero-h);
  min-height: 560px;
  overflow: hidden;
  background: var(--brand-dark);
}

.hero-showcase__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
  z-index: 0;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 8s ease-out;
}

.hero-slide__media--tone-1 {
  background: linear-gradient(135deg, #1a2a3a 0%, #2d4a52 50%, #1a2a3a 100%);
}
.hero-slide__media--tone-2 {
  background: linear-gradient(135deg, #1a2838 0%, #3a5a68 55%, #152028 100%);
}
.hero-slide__media--tone-3 {
  background: linear-gradient(135deg, #152028 0%, #4a6a62 50%, #1a2a3a 100%);
}
.hero-slide__media--tone-4 {
  background: linear-gradient(135deg, #1f2d3d 0%, #3d5a6e 45%, #1a2a3a 100%);
}
.hero-slide__media--tone-5 {
  background: linear-gradient(135deg, #252525 0%, #4a5a5a 50%, #1a2a3a 100%);
}
.hero-slide__media--tone-6 {
  background: linear-gradient(135deg, #1a2a3a 0%, #5a7a72 48%, #243040 100%);
}
.hero-slide__media--tone-7 {
  background: linear-gradient(135deg, #1a2430 0%, #3a5060 55%, #2a3a48 100%);
}
.hero-slide__media.has-photo {
  background-color: #1a2a3a;
}

.hero-slide.is-active .hero-slide__media {
  transform: scale(1);
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 15, 20, 0.88) 0%,
    rgba(10, 15, 20, 0.55) 45%,
    rgba(10, 15, 20, 0.35) 100%
  );
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding-bottom: 7.5rem;
  padding-top: calc(var(--header-h) + 2rem);
  max-width: 820px;
}

.hero-slide__eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-teal);
}

.hero-slide__content--compact {
  padding-bottom: 6.5rem;
  max-width: 640px;
}

.hero-slide__content--compact .hero-slide__title {
  margin-bottom: 1.25rem;
  font-size: clamp(2.5rem, 6vw, 4rem);
}

.hero-slide__title {
  margin: 0 0 1.75rem;
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.12;
  color: #fff;
}

.hero-slide__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  border-bottom: 2px solid var(--brand-teal);
  padding-bottom: 0.25rem;
  width: fit-content;
  transition: color var(--transition), border-color var(--transition), gap var(--transition);
}

.hero-slide__link:hover {
  color: var(--brand-teal);
  border-color: #fff;
  gap: 0.75rem;
}

.hero-showcase__ui {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  pointer-events: none;
}

.hero-showcase__ui > * {
  pointer-events: auto;
}

.hero-showcase__nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-showcase__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.hero-showcase__btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-showcase__counter {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  min-width: 3.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.hero-showcase__dots {
  display: flex;
  gap: 0.5rem;
}

.hero-showcase__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.hero-showcase__dot.is-active {
  background: var(--brand-teal);
  transform: scale(1.2);
}

.hero-showcase__bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 10;
}

.hero-showcase__progress {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--brand-teal);
  transition: width 0.1s linear;
}

/* Who we are */
.who-we-are {
  padding: 5.5rem 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.who-we-are__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.who-we-are h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1.25rem;
}

.who-we-are__lead {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 36rem;
}

.who-we-are__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.who-we-are__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.who-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.75rem 1.25rem;
  background: var(--bg-subtle);
  min-height: 120px;
}

.who-stat__value {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--brand-navy);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.who-stat__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Featured projects strip */
.featured-projects {
  padding: 5rem 0;
  background: var(--brand-dark);
}

.featured-projects__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.featured-projects h2 {
  color: #fff;
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.featured-projects__all {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand-teal);
  white-space: nowrap;
}

.featured-projects__all:hover {
  color: #fff;
}

.featured-projects__scroll {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.project-tile {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
}

.project-tile__bg {
  position: absolute;
  inset: 0;
  background-image: var(--tile-image);
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.project-tile:hover .project-tile__bg {
  transform: scale(1.06);
}

.project-tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 15, 20, 0.92) 0%, rgba(10, 15, 20, 0.2) 55%, transparent 100%);
}

.project-tile__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 1;
}

.project-tile__content h3 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.project-tile__content p {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
}

.project-tile__content a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-teal);
}

.project-tile__content a:hover {
  color: #fff;
}

.services-showcase {
  padding-top: 5.5rem;
}

/* Value proposition (home) */
.value-prop {
  padding: 4.5rem 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.value-prop__inner {
  max-width: 52rem;
  margin: 0 auto;
}

.value-prop__tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: var(--brand-navy);
  margin: 0 0 1.25rem;
  line-height: 1.3;
}

.value-prop__text {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  line-height: 1.7;
  text-align: left;
}

.value-prop__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: var(--brand-navy);
  margin: 0 0 1rem;
  line-height: 1.3;
  text-align: center;
}

.value-prop__text p {
  margin: 0;
}

.value-prop__link {
  font-weight: 600;
  color: var(--brand-teal-dark);
}

.value-prop__link:hover {
  text-decoration: underline;
}

/* Homepage experience stats */
.home-experience {
  padding: 4.5rem 0;
  background: var(--brand-dark);
  color: #fff;
}

.home-experience__intro {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3rem;
}

.home-experience__intro h2 {
  color: #fff;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  margin: 0 0 0.75rem;
}

.home-experience__intro p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.home-experience__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.home-experience-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: rgba(26, 42, 58, 0.65);
  min-height: 160px;
}

.home-experience-stat__value {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1;
  color: var(--brand-teal);
  font-variant-numeric: tabular-nums;
}

.home-experience-stat__suffix {
  color: var(--brand-teal);
}

.home-experience-stat__label {
  margin: 0;
  max-width: 14rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

/* Clients teaser (home) */
.clients-teaser {
  padding: 4rem 0;
  background: var(--bg-subtle);
}

.clients-teaser__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.clients-teaser__head h2 {
  margin: 0;
  font-size: 1.5rem;
}

.clients-teaser__head a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand-teal-dark);
  white-space: nowrap;
}

.clients-teaser__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem 2.5rem;
}

.clients-teaser__logo {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity var(--transition);
}

.clients-teaser__logo:hover {
  opacity: 1;
}

.clients-teaser__logo img {
  max-height: 48px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.clients-teaser__initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--brand-navy);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.client-card__initial,
.service-clients__initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  color: #fff;
  background: var(--brand-teal-dark);
}

.client-card__initial {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  font-size: 1.125rem;
}

.client-card__services {
  margin: 0.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
}

.client-card__service-tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--brand-teal-dark);
  background: var(--brand-teal-light);
  border-radius: 4px;
  line-height: 1.3;
}

.client-card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.service-clients {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.service-clients__heading {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand-navy);
  margin: 0 0 1rem;
}

.service-clients__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem 1rem;
}

.service-clients__list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--text);
}

.service-clients__initial {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 0.75rem;
}

.service-clients__empty {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.home-cta {
  padding: 4rem 0;
  background: var(--brand-navy);
  text-align: center;
}

.home-cta h2 {
  color: #fff;
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* Clients page */
.clients-section {
  padding-top: 2rem;
}

.clients-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.clients-filter {
  padding: 0.5rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.clients-filter:hover {
  border-color: var(--brand-teal);
}

.clients-filter.is-active {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #fff;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
}

.client-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.client-card:hover {
  border-color: var(--brand-teal);
  box-shadow: var(--shadow);
}

.client-card__logo {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.client-card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.client-card__name {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-navy);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.client-card__industry {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.2rem 0.5rem;
  background: var(--brand-teal-light);
  color: var(--brand-teal-dark);
  border-radius: 4px;
}

.client-card__rank {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.6;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.cta-band--split .cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  text-align: left;
}

.cta-band--split h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
}

.cta-band--split p {
  margin: 0;
  max-width: none;
}

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.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;
}

/* Responsive */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .lifecycle { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .who-we-are__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .who-we-are__stats { grid-template-columns: repeat(2, 1fr); }
  .featured-projects__scroll { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-grid,
  .split-grid,
  .contact-grid,
  .service-detail {
    grid-template-columns: 1fr;
  }

  .cards-grid,
  .industries-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .lifecycle {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero-slide__content {
    padding-bottom: 6.5rem;
  }

  .hero-showcase__ui {
    flex-direction: column-reverse;
    align-items: flex-start;
    bottom: 1.75rem;
  }

  .featured-projects__scroll {
    grid-template-columns: 1fr;
  }

  .featured-projects__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-band--split .cta-band__inner {
    flex-direction: column;
    text-align: center;
  }

  .who-we-are__stats {
    grid-template-columns: 1fr 1fr;
  }

  .home-experience__stats {
    grid-template-columns: 1fr;
  }
}

/* ——— Build a Project wizard ——— */

.page-hero--compact {
  padding-bottom: 2rem;
}

.bp-section {
  padding-top: 2rem;
}

.bp-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

.bp-main {
  min-width: 0;
}

.bp-progress {
  margin-bottom: 2rem;
}

.bp-progress__track {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.bp-progress__fill {
  height: 100%;
  width: 0;
  background: var(--brand-teal);
  border-radius: 2px;
  transition: width 0.35s ease;
}

.bp-progress__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.bp-progress-step {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.bp-progress-step.is-active {
  color: var(--brand-teal-dark);
}

.bp-progress-step.is-done {
  color: var(--brand-navy);
}

.bp-step__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
}

.bp-step__intro {
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  max-width: 36rem;
}

.bp-hint {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.bp-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.bp-card-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.bp-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 1.25rem 1.5rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
  width: 100%;
}

.bp-card:hover {
  border-color: var(--brand-teal);
  box-shadow: var(--shadow);
}

.bp-card.is-selected {
  border-color: var(--brand-teal);
  background: var(--brand-teal-light);
  box-shadow: 0 0 0 1px var(--brand-teal);
}

.bp-card__badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-teal-dark);
  background: rgba(120, 176, 168, 0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.bp-card__title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--brand-navy);
  line-height: 1.3;
}

.bp-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.45;
}

.bp-check-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bp-check {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.bp-check:hover {
  border-color: var(--brand-teal);
}

.bp-check:has(input:checked) {
  border-color: var(--brand-teal);
  background: var(--brand-teal-light);
}

.bp-check--full {
  background: var(--bg-subtle);
  margin-bottom: 0.5rem;
}

.bp-check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.bp-check__box {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  position: relative;
}

.bp-check input:checked + .bp-check__box {
  background: var(--brand-teal);
  border-color: var(--brand-teal);
}

.bp-check input:checked + .bp-check__box::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.bp-check input:disabled + .bp-check__box {
  opacity: 0.6;
}

.bp-check__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.bp-check__text strong {
  font-size: 0.9375rem;
  color: var(--brand-navy);
}

.bp-check__text span {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.bp-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.bp-tier {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 1.5rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.bp-tier:hover {
  border-color: var(--brand-teal);
}

.bp-tier.is-selected {
  border-color: var(--brand-teal);
  background: var(--brand-teal-light);
  box-shadow: var(--shadow);
}

.bp-tier__name {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  color: var(--brand-navy);
  margin-bottom: 0.35rem;
}

.bp-tier__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.45;
}

.bp-tier__list {
  margin: 0;
  padding-left: 1.125rem;
  font-size: 0.8125rem;
  color: var(--text);
  line-height: 1.5;
}

.bp-tier__list li {
  margin-bottom: 0.35rem;
}

.bp-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.bp-nav__next {
  margin-left: auto;
}

.bp-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.bp-sidebar__inner {
  background: var(--brand-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.bp-sidebar__title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  margin: 0 0 1rem;
  color: #fff;
}

.bp-summary-dl {
  margin: 0 0 1.25rem;
}

.bp-summary-row {
  margin-bottom: 0.75rem;
}

.bp-summary-row dt {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.15rem;
}

.bp-summary-row dd {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
}

.bp-estimate {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.bp-estimate__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 0.35rem;
}

.bp-estimate__value {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--brand-teal);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.bp-estimate__note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  line-height: 1.45;
}

.bp-final-summary {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 1rem;
}

.bp-disclaimer {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.bp-contact-form {
  max-width: 32rem;
}

.bp-success {
  padding: 1.5rem;
  background: var(--brand-teal-light);
  border: 1px solid var(--brand-teal);
  border-radius: var(--radius-lg);
}

.bp-success h3 {
  margin-top: 0;
}

.bp-success__text {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 280px;
  overflow-y: auto;
  margin: 1rem 0;
}

.bp-success__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.bp-form-block {
  max-width: 40rem;
}

.bp-field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.bp-field-grow {
  flex: 1;
  min-width: 12rem;
}

.bp-select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.bp-field-label {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--brand-navy);
  margin: 1.5rem 0 0.75rem;
}

.bp-estimate__sub {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1rem;
  line-height: 1.35;
}

.bp-estimate-breakdown {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.bp-estimate-breakdown p {
  margin: 0 0 0.5rem;
}

.bp-estimate-breakdown p:last-child {
  margin-bottom: 0;
}

.bp-final-summary {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.8125rem;
  max-height: 240px;
  overflow-y: auto;
}

@media (max-width: 900px) {
  .bp-layout {
    grid-template-columns: 1fr;
  }

  .bp-sidebar {
    order: -1;
    position: static;
  }

  .bp-tier-grid {
    grid-template-columns: 1fr;
  }
}
