/* ===================================================================
   OneDream Engineering — Corporate Website
   =================================================================== */

/* --- Design Tokens --- */
:root {
  --navy:        #0c1220;
  --navy-light:  #162036;
  --navy-mid:    #1e2d4a;
  --accent:      #3b7dd8;
  --accent-hover:#2b6bc4;
  --accent-soft: rgba(59,125,216,.08);
  --text:        #1e293b;
  --text-mid:    #475569;
  --text-light:  #94a3b8;
  --bg:          #ffffff;
  --bg-alt:      #f8fafc;
  --border:      #e2e8f0;
  --border-light:#f1f5f9;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:        'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
  --max-w:       1200px;
  --section-py:  clamp(80px, 10vw, 128px);
  --radius:      6px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06);
  --shadow-md:   0 4px 16px rgba(0,0,0,.08);
  --transition:  .25s cubic-bezier(.4,0,.2,1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font: inherit; }

/* --- Typography --- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.125rem; font-weight: 600; }

.label {
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 48px);
}

section {
  padding: var(--section-py) 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: .9375rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59,125,216,.3);
}
.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,.9);
  border-color: rgba(255,255,255,.25);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.05);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}
.btn svg { width: 16px; height: 16px; }

/* ===================================================================
   HEADER / NAV
   =================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all var(--transition);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(24px, 5vw, 48px);
  max-width: var(--max-w);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: .875rem;
  font-weight: 450;
  color: rgba(255,255,255,.7);
  transition: color var(--transition);
  position: relative;
}
.nav-links a:hover { color: #fff; }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover::after { width: 100%; }

.header.scrolled {
  background: rgba(12,18,32,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header.scrolled .header-inner { padding-top: 14px; padding-bottom: 14px; }

/* Mobile nav close button — hidden by default */
.nav-close {
  display: none;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: all var(--transition);
}

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--navy);
  overflow: hidden;
  padding: 0;
}

/* Hero slideshow */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: scale(1.2);
  /* leaving: fade out 1.5s, hold transform until invisible then reset */
  transition: opacity 1.5s ease-in-out, transform 0s 1.6s;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  /* entering: fade in 1.5s, zoom-out over 5s */
  transition: opacity 1.5s ease-in-out, transform 5s ease-out;
}
/* Dark navy overlay on top of all slides */
.hero-slideshow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 32, .7);
  z-index: 1;
}

/* Blueprint grid pattern — sits above the image overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(59,125,216,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,125,216,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 70%);
}

/* Subtle gradient accent — sits above grid */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  z-index: 1;
  background: radial-gradient(ellipse at 80% 30%, rgba(59,125,216,.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding-top: 120px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-subtitle {
  color: rgba(255,255,255,.65);
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 48px;
}

.hero-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 48px;
}
.hero-capabilities li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.55);
  font-size: .875rem;
  font-weight: 450;
}
.hero-capabilities li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1px;
  flex-shrink: 0;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.scroll-indicator span {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
}
.scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(255,255,255,.3), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

/* ===================================================================
   ABOUT / POSITIONING
   =================================================================== */
.about {
  background: var(--bg);
}
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-text {
  max-width: 640px;
}
.about .label { margin-bottom: 16px; }
.about h2 { margin-bottom: 32px; color: var(--text); }
.about p {
  color: var(--text-mid);
  font-size: 1.0625rem;
  line-height: 1.8;
}
.about p + p { margin-top: 20px; }
.about-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(59,125,216,.2);
}
.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}
.about-link {
  margin-top: 32px;
}

/* ===================================================================
   SERVICES
   =================================================================== */
.services {
  background: var(--bg-alt);
}
.services .label { margin-bottom: 16px; }
.services h2 { margin-bottom: 56px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  transition: all var(--transition);
}
.service-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--accent);
  transform: translateY(-2px);
}
.service-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: var(--radius);
  margin-bottom: 24px;
  color: var(--accent);
}
.service-icon svg { width: 22px; height: 22px; }

.service-card h3 {
  margin-bottom: 6px;
  font-size: 1.125rem;
}
.service-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-card li {
  color: var(--text-mid);
  font-size: .9375rem;
  padding-left: 18px;
  position: relative;
}
.service-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 1.5px;
  background: var(--accent);
}

.services-more {
  text-align: center;
  margin-top: 48px;
}

/* ===================================================================
   STANDARDS
   =================================================================== */
.standards {
  background: var(--bg);
}
.standards-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.standards-text {
  max-width: 640px;
}
.standards .label { margin-bottom: 16px; }
.standards h2 { margin-bottom: 28px; }
.standards p {
  color: var(--text-mid);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 40px;
}

.standards-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.standards-tags span {
  font-family: var(--mono);
  font-size: .8125rem;
  font-weight: 500;
  padding: 8px 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-mid);
  letter-spacing: .02em;
}
.standards-link {
  margin-top: 32px;
}
.standards-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(59,125,216,.2);
}
.standards-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

/* ===================================================================
   PROCESS
   =================================================================== */
.process {
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}
/* Background image for process section */
.process-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.process-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Light overlay so content stays readable on the dark/blue image */
.process-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(248, 250, 252, .88);
}
.process > .container {
  position: relative;
  z-index: 1;
}
.process .label { margin-bottom: 16px; }
.process h2 { margin-bottom: 56px; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

/* Connecting line */
.process-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 1px;
  background: var(--border);
}

.process-step {
  text-align: center;
  padding: 0 20px;
  position: relative;
}
.step-number {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: var(--mono);
  font-size: .875rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  position: relative;
  z-index: 2;
  transition: all var(--transition);
}
.process-step:hover .step-number {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.process-step {
  cursor: pointer;
}
.process-step h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}
.process-step p {
  color: var(--text-light);
  font-size: .875rem;
  line-height: 1.6;
}

/* Expand toggle */
.step-toggle {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .04em;
  cursor: pointer;
  transition: color var(--transition);
}
.step-toggle:hover { color: var(--accent-hover); }
.process-step.open .step-toggle { color: var(--text-light); }

/* Expandable detail panel */
.step-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, opacity .3s ease;
  opacity: 0;
}
.process-step.open .step-detail {
  max-height: 300px;
  opacity: 1;
  margin-top: 16px;
}
.step-detail ul {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-detail li {
  color: var(--text-mid);
  font-size: .8125rem;
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}
.step-detail li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 4px;
  height: 1.5px;
  background: var(--accent);
}

.process-note {
  margin-top: 56px;
  text-align: center;
  font-style: italic;
  color: var(--text-light);
  font-size: .9375rem;
}

/* ===================================================================
   TEAM
   =================================================================== */
.team {
  background: var(--bg);
  border-top: 1px solid var(--border-light);
}
.team-inner {
  max-width: 760px;
}
.team .label { margin-bottom: 16px; }
.team h2 { margin-bottom: 28px; }
.team p {
  color: var(--text-mid);
  font-size: 1.0625rem;
  line-height: 1.8;
}
.team p + p { margin-top: 20px; }

/* ===================================================================
   GLOBAL
   =================================================================== */
.global {
  background: var(--bg-alt);
}
.global-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.global-text {
  max-width: 640px;
}
.global .label { margin-bottom: 16px; }
.global h2 { margin-bottom: 28px; }
.global p {
  color: var(--text-mid);
  font-size: 1.0625rem;
  line-height: 1.8;
}
.global-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(59,125,216,.2);
}
.global-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

/* ===================================================================
   CONTACT
   =================================================================== */
.contact {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,125,216,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,125,216,.03) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .5;
}

.contact-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}

.contact .label {
  margin-bottom: 16px;
  color: var(--accent);
}
.contact h2 {
  margin-bottom: 28px;
  color: #fff;
}
.contact-intro {
  color: rgba(255,255,255,.55);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 40px;
}
.contact-details p {
  color: rgba(255,255,255,.45);
  font-size: .875rem;
  line-height: 1.8;
}
.contact-details a {
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.contact-details a:hover { color: var(--accent); }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: .8125rem;
  font-weight: 500;
  color: rgba(255,255,255,.5);
  letter-spacing: .02em;
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  color: #fff;
  font-size: .9375rem;
  transition: all var(--transition);
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,.25);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(59,125,216,.05);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--navy); color: #fff; }

.form-submit {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.form-submit .btn-primary {
  padding: 14px 40px;
}
.form-submit span {
  font-size: .8125rem;
  color: rgba(255,255,255,.3);
}
.form-success {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(255,255,255,.8);
  font-size: 1.125rem;
  padding: 48px 0;
}

/* ===================================================================
   FOOTER
   =================================================================== */
.footer {
  background: #080e1a;
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer p {
  color: rgba(255,255,255,.3);
  font-size: .8125rem;
  line-height: 1.6;
}
.footer-legal {
  max-width: 560px;
  text-align: right;
  font-size: .75rem !important;
  color: rgba(255,255,255,.2) !important;
}

/* ===================================================================
   SERVICES PAGE (services.html)
   =================================================================== */

/* Page hero (subpage banner) */
.page-hero {
  background: var(--navy);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,125,216,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,125,216,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .label { margin-bottom: 16px; }
.page-hero h1 { color: #fff; margin-bottom: 24px; }
.page-hero-sub {
  color: rgba(255,255,255,.55);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.8;
  max-width: 640px;
}

/* Active nav link */
.nav-links a.active { color: #fff; }
.nav-links a.active::after { width: 100%; }

/* Service sections */
.svc-section {
  background: var(--bg);
  padding: var(--section-py) 0;
}
.svc-section.svc-alt {
  background: var(--bg-alt);
}

.svc-block {
  max-width: 1000px;
}

.svc-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 48px;
}
.svc-header .svc-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: 1.5px solid rgba(59,125,216,.15);
  border-radius: var(--radius);
  color: var(--accent);
  margin-top: 4px;
}
.svc-header .svc-icon svg { width: 24px; height: 24px; }
.svc-header h2 { margin-bottom: 8px; }
.svc-tagline {
  color: var(--text-mid);
  font-size: 1rem;
}

.svc-description {
  margin-bottom: 48px;
}
.svc-description p {
  color: var(--text-mid);
  font-size: 1.0625rem;
  line-height: 1.8;
}
.svc-description p + p { margin-top: 16px; }

.svc-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.svc-detail-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.svc-alt .svc-detail-card {
  background: var(--bg);
}
.svc-detail-card h4 {
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.svc-detail-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.svc-detail-card li {
  color: var(--text-mid);
  font-size: .9375rem;
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}
.svc-detail-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 1.5px;
  background: var(--accent);
}

/* Industries section */
.svc-industries {
  background: var(--bg);
  padding: var(--section-py) 0;
  border-top: 1px solid var(--border-light);
}
.svc-industries .label { margin-bottom: 16px; }
.svc-industries h2 { margin-bottom: 56px; }

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.industry-item {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.industry-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.industry-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.industry-item p {
  color: var(--text-light);
  font-size: .875rem;
  line-height: 1.6;
}
.industry-grid-2col {
  grid-template-columns: repeat(2, 1fr);
}

/* Services page CTA */
.svc-cta {
  background: var(--navy);
  padding: var(--section-py) 0;
}
.svc-cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.svc-cta h2 {
  color: #fff;
  margin-bottom: 20px;
}
.svc-cta p {
  color: rgba(255,255,255,.5);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 40px;
}
.svc-cta-legal {
  font-size: .8125rem;
  color: rgba(255,255,255,.3);
  margin-bottom: 32px;
}

/* ===================================================================
   STANDARDS PAGE (standards.html)
   =================================================================== */

/* Approach section (image + text split) */
.std-approach {
  background: var(--bg);
  padding: var(--section-py) 0;
}
.std-approach-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.std-approach-text h2 { margin-bottom: 28px; }
.std-approach-text p {
  color: var(--text-mid);
  font-size: 1.0625rem;
  line-height: 1.8;
}
.std-approach-text p + p { margin-top: 16px; }
.std-approach-image {
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(59,125,216,.2);
}
.std-approach-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

/* Standards code cards grid */
.std-codes {
  background: var(--bg-alt);
  padding: var(--section-py) 0;
}
.std-codes .label { margin-bottom: 16px; }
.std-codes h2 { margin-bottom: 56px; }

.std-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.std-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: all var(--transition);
}
.std-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--accent);
  transform: translateY(-2px);
}
.std-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.std-card-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: var(--radius);
  color: var(--accent);
}
.std-card-icon svg { width: 20px; height: 20px; }
.std-card h3 { font-size: 1.0625rem; }
.std-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.std-card li {
  color: var(--text-mid);
  font-size: .9375rem;
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}
.std-card li strong {
  color: var(--text);
  font-weight: 550;
}
.std-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 1.5px;
  background: var(--accent);
}

/* Standards support services */
.std-services {
  background: var(--bg);
  padding: var(--section-py) 0;
  border-top: 1px solid var(--border-light);
}
.std-services .label { margin-bottom: 16px; }
.std-services h2 { margin-bottom: 56px; }

.std-svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.std-svc-item {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.std-svc-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.std-svc-num {
  font-family: var(--mono);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}
.std-svc-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}
.std-svc-item p {
  color: var(--text-mid);
  font-size: .9375rem;
  line-height: 1.7;
}

/* ===================================================================
   ANIMATIONS (scroll reveal)
   =================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal-children > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-children.visible > *:nth-child(1) { transition-delay: .05s; }
.reveal-children.visible > *:nth-child(2) { transition-delay: .1s; }
.reveal-children.visible > *:nth-child(3) { transition-delay: .15s; }
.reveal-children.visible > *:nth-child(4) { transition-delay: .2s; }
.reveal-children.visible > *:nth-child(5) { transition-delay: .25s; }
.reveal-children.visible > *:nth-child(6) { transition-delay: .3s; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .process-grid::before { display: none; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-split,
  .standards-split,
  .global-split { gap: 48px; }
  .svc-details-grid { grid-template-columns: 1fr 1fr; }
  .industry-grid { grid-template-columns: 1fr 1fr; }
  .std-svc-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }

  /* When mobile nav is open, remove backdrop-filter from header
     so that fixed positioning on .nav-links works correctly */
  .header.nav-open,
  .header:has(.nav-links.open) {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(12,18,32,.98);
    backdrop-filter: blur(16px);
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 9999;
  }
  .nav-links.open a {
    font-size: 1.25rem;
    color: rgba(255,255,255,.8);
  }
  .nav-close {
    display: none;
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
  }
  .nav-links.open ~ .nav-close,
  .nav-close.show { display: block; }

  .services-grid { grid-template-columns: 1fr; }

  .hero-content { padding-top: 100px; }
  .hero h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); }
  .hero-capabilities { gap: 8px 20px; }

  /* Two-column sections stack on mobile */
  .about-split,
  .standards-split,
  .global-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-image img,
  .standards-image img,
  .global-image img {
    height: 280px;
  }

  .contact-form { grid-template-columns: 1fr; }
  .contact-inner { gap: 40px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-legal { text-align: center; }

  .scroll-indicator { display: none; }

  /* Subpage responsive */
  .page-hero { padding: 120px 0 60px; }
  .svc-header { flex-direction: column; gap: 16px; }
  .svc-details-grid { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: 1fr; }
  .std-approach-inner { grid-template-columns: 1fr; gap: 40px; }
  .std-approach-image img { height: 280px; }
  .std-grid { grid-template-columns: 1fr; }
  .std-svc-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .process-grid { grid-template-columns: 1fr; }
  .service-card { padding: 28px 24px; }
  .svc-detail-card { padding: 24px 20px; }
  .industry-item { padding: 24px 20px; }
}
