:root {
  --accent: #C8262A;
  --dark-red: #A90100;
  --navy: #002768;
  --ink: #0A0F1C;
  --white: #FFFFFF;
  --gray: #282828;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { font-family: "Archivo", sans-serif; color: var(--ink); background: var(--white); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 12px; }

/* Sections */
main section {
  padding-block: 100px;
  position: relative;
}

/* Type scale (extracted from repeated clamp() values) */
:root {
  --display-hero: clamp(64px, 9vw, 132px);
  --display-lg: clamp(48px, 6vw, 86px);
  --display-md: clamp(40px, 5vw, 72px);
  --display-sm: clamp(40px, 5vw, 64px);
  --muted-88: rgba(255,255,255,.88);
}
.display-hero { font-size: var(--display-hero); }
.display-lg { font-size: var(--display-lg); }
.display-md { font-size: var(--display-md); }
.display-sm { font-size: var(--display-sm); }

/* Shared section-content wrapper (position:relative;z-index:2 — was inline on 4 sections) */
.section-inner { position: relative; z-index: 2; }
.container-narrow { max-width: 900px; margin: 0 auto; }

/* Per-section one-off layout, hooked off existing data-screen-label attr instead of new classes */
section[data-screen-label="hero"] { overflow: hidden; position: relative; }
section[data-screen-label="philosophy"] { text-align: center; }
section[data-screen-label="CTA-1"] { overflow: hidden; }

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  color: var(--accent);
}

.display {
  font-family: "Archivo Black", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.01em;
}

.hero-section h1 {
  font-size: clamp(56px, 5vw, 76px) !important;
}

.about-hero-figure {
  position: relative;
  isolation: isolate;
  flex: 0 0 min(42vw, 440px);
  height: 560px;
  display: grid;
  place-items: end center;
}

.about-hero-figure::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 38px 4px 18px 24px;
  background: linear-gradient(200deg, #0B3E8F 0%, #002768 58%, #001A4A 100%);
  border: 1px solid rgba(255, 255, 255, .34);
  border-top: 4px solid #C8262A;
  clip-path: polygon(14% 0, 100% 0, 100% 84%, 83% 100%, 0 100%, 0 14%);
}

.about-hero-figure::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 62px;
  right: 18px;
  width: 74px;
  height: 220px;
  opacity: .85;
  background: repeating-linear-gradient(
    135deg,
    rgba(200, 38, 42, 1) 0 5px,
    transparent 5px 13px
  );
  clip-path: polygon(34% 0, 100% 0, 66% 100%, 0 100%);
}

.about-hero-registration {
  position: absolute;
  z-index: -1;
  left: 18px;
  bottom: 54px;
  width: 152px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
}

.about-hero-registration::before,
.about-hero-registration::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, .16);
}

.about-hero-registration::before {
  left: -24px;
  right: -24px;
  top: 50%;
  height: 1px;
}

.about-hero-registration::after {
  top: -24px;
  bottom: -24px;
  left: 50%;
  width: 1px;
}

.about-hero-figure img {
  position: relative;
  z-index: 2;
  height: 88%;
  max-height: 560px;
  width: auto;
  max-width: 100%;
  pointer-events: none;
  object-fit: contain;
}

.bg-blueprint-dark {
  background: var(--ink) url('../../assets/blueprint-background.webp') center/cover;
  background-attachment: fixed;
  color: var(--white);
}

.bg-blueprint-red {
  background: var(--accent);
  color: var(--white);
}

.bg-blueprint-light {
  background: var(--white) url('../../assets/white-engineering-background.webp') center/cover;
  background-attachment: fixed;
  color: var(--ink);
}

.bg-blueprint-navy {
  background: var(--navy) url('../../assets/engineering-schematics.webp') center/cover;
  background-attachment: fixed;
  color: var(--white);
}

main section p {
  font-size: 16px;
  line-height: 1.6;
}

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

.capability-card {
  background: var(--ink);
  padding: 32px 28px;
  color: var(--white);
}

.capability-card h3 {
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 700;
}

.capability-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.capability-card li {
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.88;
  padding-left: 20px;
  position: relative;
}

.capability-card li:before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.reason-card {
  background: rgba(255,255,255,.06);
  padding: 32px;
  border: 1px solid rgba(255,255,255,.12);
}

.reason-card h3 {
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 700;
}

.reason-card p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  opacity: 0.85;
  color: var(--muted-88);
}

.highlight-box {
  background: var(--accent);
  padding: 40px;
  max-width: 800px;
  margin: 64px auto 0;
  text-align: center;
}

.highlight-box p {
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
  font-weight: 500;
  color: var(--white);
}

@media (max-width: 820px) {
  section[data-screen-label="hero"] > div {
    flex-direction: column;
    align-items: flex-start !important;
    padding: 96px 24px 64px !important;
  }

  section[data-screen-label="hero"] > div > div {
    width: 100%;
    min-width: 0;
  }

  section[data-screen-label="hero"] h1 {
    font-size: clamp(42px, 12vw, 48px) !important;
    line-height: 0.92;
  }

  section[data-screen-label="hero"] > div > img {
    width: min(100%, 420px) !important;
    height: auto !important;
    max-height: 420px !important;
    align-self: center;
  }

  .about-hero-figure {
    flex: 0 0 auto;
    width: min(100%, 420px);
    height: 420px;
    align-self: center;
  }

  .about-hero-figure::before {
    inset: 28px 6px 12px 18px;
  }

  .about-hero-figure::after {
    top: 46px;
    right: 14px;
    height: 170px;
    opacity: .35;
  }

  .about-hero-registration {
    width: 116px;
    left: 12px;
    bottom: 40px;
  }

  .about-hero-figure img {
    height: 96%;
    max-height: 420px;
  }

  .capabilities-grid,
  .reasons-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

#philosophy-section {
  position: relative;
  isolation: isolate;
  background: var(--navy) !important;
}
/* Same workers photo as before, re-tinted navy/blue via filter (was a red duotone) so the
   image stays but the bright-red full-section background rule is no longer broken. */
#philosophy-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to bottom, rgba(0,20,60,.45) 0%, rgba(0,20,60,.1) 25%), url('../../assets/home-services-pop-art-2.webp') center/cover;
  background-attachment: fixed;
  filter: hue-rotate(195deg) saturate(1.3) brightness(.95);
}
/* Consolidated from inline styles on the two philosophy paragraphs */
#philosophy-section p { max-width: 700px; }
#philosophy-section p:first-of-type {
  font-size: 16px;
  line-height: 1.65;
  color: #ffffff;
  font-weight: 700;
  -webkit-text-stroke: 1px #000000;
  paint-order: stroke fill;
  margin: 0 auto 32px;
}
#philosophy-section p:last-of-type {
  font-size: 15px;
  line-height: 1.6;
  color: #ffffff;
  font-weight: 700;
  -webkit-text-stroke: 1px #000000;
  paint-order: stroke fill;
  margin: 0 auto;
  font-style: italic;
}

@media (max-width: 640px) {
  #philosophy-section::before {
    background: var(--navy);
    background-image: none;
    background-attachment: scroll;
    filter: none;
  }
}

/* About page section styles (moved from inline style attributes) */
.about-white { color: var(--white); }
.about-accent { color: var(--accent); }
.ab-icon-img { width: 100%; height: 100%; object-fit: contain; }

.about-hero-section {
  padding-block: 0;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-hero-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 100px 32px;
}
.section-inner.about-hero-col {
  max-width: 520px;
  margin: 0;
  padding: 0;
}
.display.about-hero-h1 {
  margin: 20px 0 32px;
  font-size: clamp(56px, 6vw, 92px);
}
.about-hero-lede {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

/* Light-blue blueprint across the whole hero (overrides .bg-blueprint-dark), so hero text flips to ink. */
.about-hero-section {
  background: #bcd8f7 url('../../assets/mechanical-background-ltblue.webp') center/cover fixed;
}
.about-hero-section .about-white { color: var(--ink); }
.about-hero-section .about-hero-lede { color: rgba(10, 15, 28, 0.75); }
.about-hero-section .about-accent,
.about-hero-section .eyebrow { text-shadow: 1px 1px 2px rgba(10, 15, 28, 0.45); }

.about-story-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: stretch;
}
.about-story-left {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.display.about-story-h2 {
  margin: 20px 0 0;
  font-size: clamp(40px, 4.4vw, 68px);
  line-height: 0.98;
}
.about-founder-info {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 2px solid rgba(200, 38, 42, 0.55);
}
/* Story is light: it sits between the dark hero and the red philosophy band */
.about-story-section .about-white { color: var(--ink); }
.about-founder-name {
  color: var(--ink);
  font-weight: 700;
  margin: 0;
  font-size: 17px;
}
.about-founder-title {
  color: rgba(10, 15, 28, 0.6);
  margin: 4px 0 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
}
.about-mission-quote {
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin-top: 32px;
  margin-bottom: 24px;
}
.about-logo-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  margin-top: 8px;
}
.about-logo-img {
  width: 320px;
  height: auto;
  display: block;
}
.about-logo-caption {
  color: var(--ink);
  font-size: 14px;
  font-style: italic;
  font-weight: 600;
  margin: 10px 0 0;
}
.about-story-right {
  color: #3A4250;
}
.about-story-right p.about-mb24 {
  margin-bottom: 24px;
}

.section-inner.about-phil-inner {
  position: relative;
  z-index: 1;
}
.display.about-phil-h2 {
  margin-bottom: 40px;
  color: var(--white);
}
/* Accent half pinned to red for contrast against the navy/blue-tinted photo background. */
.about-phil-h2 .about-phil-accent-black {
  color: var(--accent);
}

.about-cap-section {
  box-shadow:
    inset 0 16px 32px -8px rgba(0, 0, 0, 0.5),
    inset 0 -16px 32px -8px rgba(0, 0, 0, 0.5);
}
.display.about-cap-h2 {
  margin-bottom: 56px;
  max-width: 800px;
  color: var(--ink);
}
.display.about-why-h2 {
  margin-bottom: 48px;
  max-width: 900px;
  color: var(--white);
}

.about-llc-section {
  background: #ffffff url("../../assets/white-engineering-background.webp")
    center/cover;
  position: relative;
  overflow: hidden;
  padding: 100px 24px;
  text-align: center;
}
.about-llc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0.75)
  );
  z-index: 0;
}
.about-llc-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.about-llc-badge {
  font-family: Archivo, sans-serif;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
  color: #c8262a;
  border: 2px solid #c8262a;
  padding: 6px 16px;
  border-radius: 999px;
}
.about-llc-h2 {
  font-family: "Archivo Black", sans-serif;
  text-transform: uppercase;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  color: #0a0f1c;
  margin: 0;
}
.about-llc-p {
  font-family: Archivo, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #0a0f1c;
  max-width: 56ch;
  margin: 0;
}
.about-llc-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #c8262a;
  color: #ffffff;
  font-family: Archivo, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 16px;
  padding: 18px 40px;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(200, 38, 42, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.about-llc-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(200, 38, 42, 0.45);
}
