/* ============================================================
   EnerTech Solutions — Design System
   Palette and components derived from EnerTech_Website_Design v1
   Navy #1A2B3C / #13293D · Orange #E87722 · Slate #5B6B7A
   Type: IBM Plex Serif (display) · IBM Plex Sans (body)
   ============================================================ */

:root {
  --navy-900: #0E1F30;
  --navy-800: #13293D;
  --navy-700: #1A2B3C;
  --navy-600: #24405C;
  --slate: #5B6B7A;
  --slate-light: #9FB3C4;
  --orange: #E87722;
  --orange-bright: #F08A3C;
  --orange-dark: #C96212;
  /* AA-compliant orange for small text on white/light backgrounds (~5.4:1) */
  --orange-text: #A8520A;
  --orange-deep: #8A4308;
  --orange-tint: #FDF1E6;
  --amber: #E8B931;
  --bg: #F5F7FA;
  --bg-alt: #E9EEF3;
  --line: #DCE6EE;
  --white: #FFFFFF;

  --font-display: "IBM Plex Serif", Cambria, Georgia, serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --shadow-sm: 0 1px 3px rgba(19, 41, 61, 0.08), 0 1px 2px rgba(19, 41, 61, 0.05);
  --shadow-md: 0 6px 18px rgba(19, 41, 61, 0.10), 0 2px 6px rgba(19, 41, 61, 0.06);
  --shadow-lg: 0 18px 44px rgba(19, 41, 61, 0.16);

  --radius: 10px;
  --radius-lg: 14px;
  --container: 1180px;
  --header-h: 76px;
}

/* ---------- Reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--slate);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--orange); color: var(--white); }

img { max-width: 100%; display: block; }

a { color: var(--orange-text); text-decoration: none; }
a:hover { color: var(--orange-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-800);
  line-height: 1.18;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); letter-spacing: -0.01em; }
h3 { font-size: 1.22rem; }

p { margin: 0 0 1em; }

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

/* Letter-spaced uppercase label — signature element from the deck */
.overline {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--orange-text);
  display: block;
  margin-bottom: 14px;
}
/* on navy surfaces the bright orange already passes contrast */
.snapshot .overline, .info-card .overline, .process-band .overline { color: var(--orange); }
h2.overline, h3.overline { font-weight: 600; }

.section { padding: 88px 0; }
.section--tight { padding: 64px 0; }
.section--intro { padding: 72px 0 0; }
.section--intro .section-head { margin-bottom: 8px; }
.section--alt { background: var(--white); border-block: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { font-size: 1.06rem; }

/* Subtle blueprint grid texture for light sections */
.blueprint {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
}
.blueprint > .container { position: relative; }
.blueprint { position: relative; }
.blueprint::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(245,247,250,0.55) 30%, rgba(245,247,250,0.55) 70%, var(--bg) 100%);
  pointer-events: none;
}
.blueprint .container { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--orange);
  color: var(--navy-800);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(232, 119, 34, 0.32);
}
.btn--primary:hover {
  background: var(--orange-bright);
  color: var(--navy-800);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(232, 119, 34, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.85);
}
.btn--ghost:hover {
  background: var(--white);
  color: var(--navy-800);
  transform: translateY(-2px);
}

.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.logo {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.42rem;
  letter-spacing: 0.12em;
  color: var(--navy-800);
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}
.logo:hover { color: var(--navy-800); }
.logo .logo-accent { color: var(--orange); }
.logo .logo-mark {
  width: 11px; height: 11px;
  background: var(--orange);
  display: inline-block;
  margin-left: 7px;
  align-self: center;
  clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%);
}

.main-nav { display: flex; align-items: center; gap: 6px; }

.main-nav a {
  position: relative;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy-700);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2.5px;
  background: var(--orange);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.main-nav a:hover { color: var(--orange-text); }
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--orange-text); font-weight: 600; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  background: var(--navy-800);
  color: var(--white);
  overflow: hidden;
}
.hero__art {
  position: absolute;
  inset: 0;
  background: url("../assets/img/hero-industrial.png") center bottom / cover no-repeat;
}
.hero__art::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(14, 31, 48, 0.94) 0%, rgba(14, 31, 48, 0.78) 42%, rgba(14, 31, 48, 0.28) 78%, rgba(14, 31, 48, 0.45) 100%);
}
.hero .container {
  position: relative;
  z-index: 1;
  padding: 130px 0 150px;
  max-width: 760px;
  margin-left: max(calc((100vw - var(--container)) / 2), 24px);
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  margin-bottom: 22px;
}
.hero p {
  font-size: 1.14rem;
  color: var(--slate-light);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* soft flare glow that breathes over the plant */
.hero__glow {
  position: absolute;
  width: 520px; height: 520px;
  right: 6%; bottom: -10%;
  background: radial-gradient(circle, rgba(244, 162, 73, 0.34) 0%, transparent 62%);
  animation: glow 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glow {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

/* ---------- Interior page hero ---------- */

.page-hero {
  position: relative;
  background: var(--navy-800);
  color: var(--white);
  overflow: hidden;
}
.page-hero__art {
  position: absolute; inset: 0;
  background: url("../assets/img/hero-industrial.png") center 70% / cover no-repeat;
}
.page-hero--city .page-hero__art {
  background-image: url("../assets/img/hero-city.png");
  background-position: center bottom;
}
.page-hero__art::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(14, 31, 48, 0.92) 0%, rgba(14, 31, 48, 0.62) 55%, rgba(26, 43, 60, 0.38) 100%);
}
.page-hero .container {
  position: relative;
  z-index: 1;
  padding: 96px 0 104px;
}
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero p {
  color: var(--slate-light);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0;
}

/* Navy chip with letterspaced orange text — from the deck banners */
.badge {
  display: inline-block;
  background: var(--navy-800);
  border: 1px solid rgba(232, 119, 34, 0.45);
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 6px;
  margin-bottom: 20px;
}

/* ---------- Cards ---------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.cards-grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card:hover::before { transform: scaleX(1); }

.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; margin: 0; }

.card__icon {
  width: 54px; height: 54px;
  border-radius: 12px;
  background: var(--orange-tint);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}
.card__icon svg { width: 28px; height: 28px; }
.card:hover .card__icon {
  background: var(--orange);
  color: var(--white);
  transform: scale(1.06) rotate(-3deg);
}

.card--link { display: block; color: inherit; }
.card--link:hover { color: inherit; }
.card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--orange-text);
}
.card--link:hover .card__more { color: var(--orange-deep); }

/* ---------- Home: services + industries layout ---------- */

.services-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
.industries-panel {
  background: var(--navy-800);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-md);
}
.industries-panel h3 {
  color: var(--white);
  font-size: 1.18rem;
  margin-bottom: 18px;
}
.industries-panel ul { list-style: none; margin: 0; padding: 0; }
.industries-panel li {
  position: relative;
  padding: 9px 0 9px 24px;
  font-size: 0.95rem;
  color: var(--slate-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: color 0.18s ease, padding-left 0.18s ease;
}
.industries-panel li:last-child { border-bottom: none; }
.industries-panel li::before {
  content: "";
  position: absolute;
  left: 2px; top: 17px;
  width: 8px; height: 8px;
  background: var(--orange);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.industries-panel li:hover { color: var(--white); padding-left: 28px; }

/* ---------- Stats band ---------- */

.stats-band {
  background: var(--navy-800);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(640px 200px at 85% 120%, rgba(232, 119, 34, 0.16), transparent 70%),
    radial-gradient(520px 180px at 8% -30%, rgba(36, 64, 92, 0.55), transparent 70%);
}
.stats-band .container {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-block: 64px;
}
.stat { text-align: left; }
.stat__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  color: var(--orange);
  line-height: 1.1;
  display: block;
}
.stat__label {
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--slate-light);
  letter-spacing: 0.04em;
}

/* ---------- Service rows (Engineering page) ---------- */

.engineering-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

.service-rows { display: grid; gap: 22px; }

.service-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.service-row:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.service-row h3 { margin-bottom: 8px; }
.service-row p { margin: 0; font-size: 0.97rem; }

.service-row__icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--orange-tint);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-row__icon svg { width: 30px; height: 30px; }

/* Capability snapshot sidebar */
.snapshot {
  background: var(--navy-800);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.snapshot .overline { margin-bottom: 20px; }
.snapshot ul { list-style: none; margin: 0; padding: 0; }
.snapshot li {
  position: relative;
  padding: 9px 0 9px 26px;
  font-size: 0.95rem;
  color: #E2E8EE;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.snapshot li:last-child { border-bottom: none; }
.snapshot li::before {
  content: "";
  position: absolute;
  left: 0; top: 15px;
  width: 12px; height: 12px;
  background: none;
  border: 2.5px solid var(--orange);
  border-left: none;
  border-top: none;
  transform: rotate(45deg) translateY(-2px);
  width: 7px; height: 11px;
}

/* ---------- Process band (Consulting page) ---------- */

.process-band {
  background: var(--navy-800);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 46px 48px 50px;
  margin-top: 56px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.process-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(560px 220px at 92% -40%, rgba(232, 119, 34, 0.14), transparent 70%);
}
.process-band h2 {
  color: var(--white);
  position: relative;
  font-size: 1.6rem;
  margin-bottom: 34px;
}

.process-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.process-step { position: relative; padding-right: 28px; }
.process-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: 2px; top: 4px;
  color: var(--orange);
  font-size: 1.3rem;
  font-weight: 700;
}
.process-step__num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 8px;
}
.process-step__title {
  font-weight: 600;
  color: var(--white);
  font-size: 1.02rem;
}

/* ---------- About page ---------- */

.story-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.story-copy p { font-size: 1.08rem; line-height: 1.8; }
.story-copy .lead-cap::first-letter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.2em;
  float: left;
  line-height: 0.85;
  margin: 4px 10px 0 0;
  color: var(--orange);
}

.story-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 48px;
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.story-stat__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 1.1;
  color: var(--orange-dark);
}
.story-stat__label {
  display: block;
  margin-top: 5px;
  font-size: 0.85rem;
  color: var(--slate);
  letter-spacing: 0.03em;
}

/* ---------- Contact page ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px 36px;
  box-shadow: var(--shadow-md);
}
.form-card .overline { margin-bottom: 26px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-700);
  letter-spacing: 0.02em;
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--navy-800);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  width: 100%;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 119, 34, 0.16);
}
.form-actions { grid-column: 1 / -1; margin-top: 6px; }
.form-note {
  grid-column: 1 / -1;
  font-size: 0.84rem;
  color: var(--slate);
  margin: 4px 0 0;
}

/* honeypot field — moved off-screen, never display:none so bots still fill it */
.form-field--hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-status {
  grid-column: 1 / -1;
  display: none;
  margin: 4px 0 0;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
}
.form-status.is-pending { display: block; background: var(--bg-alt); color: var(--slate); }
.form-status.is-done { display: block; background: #E8F5EC; color: #16613A; }
.form-status.is-error { display: block; background: #FBEAE8; color: #9C2317; }

.contact-aside { display: grid; gap: 28px; }
.contact-aside .office-photo {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.info-card {
  background: var(--navy-800);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 30px;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 16px;
}
.info-card__row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.97rem;
  color: #E2E8EE;
}
.info-card__row a { color: #E2E8EE; }
.info-card__row a:hover { color: var(--orange); }
.info-card__row svg {
  width: 20px; height: 20px;
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ---------- CTA band (shared) ---------- */

.cta-band {
  background: var(--navy-800);
  position: relative;
  overflow: hidden;
  color: var(--white);
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 260px at 90% 130%, rgba(232, 119, 34, 0.2), transparent 70%),
    url("../assets/img/hero-city.png") center bottom / cover no-repeat;
  opacity: 0.28;
}
.cta-band .container {
  position: relative;
  padding-block: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin: 0; max-width: 620px; }
.cta-band p { color: var(--slate-light); margin: 10px 0 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-900);
  color: var(--slate-light);
  font-size: 0.9rem;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-block: 28px;
}
.site-footer .logo { font-size: 1.05rem; color: var(--white); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer-nav a { color: var(--slate-light); font-size: 0.88rem; }
.footer-nav a:hover { color: var(--orange); }
.site-footer .copyright { color: #7E92A5; }

/* ---------- Reveal animations ----------
   Hidden states are scoped to html.js (set by js/main.js) so content
   stays fully visible if JavaScript is disabled or fails to load. */

html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

html.js .reveal-stagger > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
html.js .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
html.js .reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
html.js .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
html.js .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.25s; }
html.js .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.35s; }
html.js .reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal, html.js .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  .hero__glow { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- 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;
}

.skip-link {
  position: absolute;
  top: -60px; left: 16px;
  z-index: 200;
  background: var(--navy-800);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: var(--white); }

.process-steps { list-style: none; margin: 0; padding: 0; }

/* ---------- Focus visibility ---------- */

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .services-layout { grid-template-columns: 1fr; }
  .engineering-layout { grid-template-columns: 1fr; }
  .snapshot { position: static; }
  .cards-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 12px 24px 22px;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px 6px; font-size: 1.05rem; border-bottom: 1px solid var(--bg-alt); }
  .main-nav a::after { display: none; }

  .cards-grid { grid-template-columns: 1fr 1fr; }
  .story-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-layout { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 26px; }
  .process-step:nth-child(2)::after { display: none; }
  .stats-band .container { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .hero .container { padding: 96px 0 120px; }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .cards-grid, .cards-grid--4 { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .process-step::after { display: none !important; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .container { width: calc(100% - 40px); }
  .form-card { padding: 28px 22px; }
  .process-band { padding: 34px 26px 38px; }
}
