:root {
  --ink: #071016;
  --black: #030507;
  --blue: #06447c;
  --blue-2: #0c5d9b;
  --red: #df0707;
  --steel: #5b6a74;
  --mist: #eef3f5;
  --line: #d8e0e5;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(7, 16, 22, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, min-height 180ms ease;
}

.site-header.is-scrolled {
  min-height: 70px;
  background: rgba(3, 5, 7, 0.94);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

.brand {
  display: block;
  width: clamp(132px, 16vw, 196px);
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 6px;
}

.brand img {
  width: 100%;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  padding: 8px 0;
}

.nav a:not(.nav-cta)::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  content: "";
  transition: width 180ms ease;
}

.nav a:hover::after {
  width: 100%;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 850;
  letter-spacing: 0;
}

.nav-cta {
  background: var(--red);
  color: var(--white);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 86vh;
  padding: 178px clamp(20px, 5vw, 72px) 48px;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 5, 7, 0.88) 0%, rgba(3, 5, 7, 0.68) 42%, rgba(3, 5, 7, 0.22) 100%),
    linear-gradient(180deg, rgba(3, 5, 7, 0.18) 0%, rgba(3, 5, 7, 0.78) 100%);
}

.hero-content {
  align-self: center;
  max-width: 790px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

#cycle .section-kicker {
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.intro h2,
.split-copy h2,
.manufacturing-grid h2,
.support-grid h2,
.contact-grid h2 {
  margin: 0;
  line-height: 1.03;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.8rem, 5.8vw, 5.6rem);
  text-wrap: balance;
}

.hero-copy {
  max-width: 670px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button.primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(223, 7, 7, 0.28);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: end;
  max-width: 880px;
  margin-top: 38px;
  border-left: 4px solid var(--red);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.hero-panel div {
  padding: 18px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-panel div:last-child {
  border-right: 0;
}

.stat {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  font-weight: 900;
  line-height: 1;
}

.label {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.section,
.section-band {
  padding: clamp(70px, 9vw, 126px) clamp(20px, 5vw, 72px);
}

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

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.8fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: end;
}

.intro h2,
.section-heading h2,
.split-copy h2,
.manufacturing-grid h2,
.support-grid h2,
.contact-grid h2 {
  font-size: clamp(2.1rem, 4vw, 4.4rem);
}

.intro p:last-child,
.split-copy p:not(.section-kicker),
.support-grid > div > p:not(.section-kicker),
.contact-grid > div > p {
  margin: 0;
  color: var(--steel);
  font-size: 1.05rem;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 42px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.segment-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.capability,
.feature-list article,
.support-cards article,
.cycle-map article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(7, 16, 22, 0.06);
}

.capability {
  position: relative;
  padding: 32px;
  overflow: hidden;
}

.capability-mark {
  display: block;
  width: 58px;
  height: 6px;
  margin-bottom: 28px;
  border-radius: 99px;
}

.capability-mark.red {
  background: var(--red);
}

.capability-mark.blue {
  background: var(--blue);
}

.capability-mark.black {
  background: var(--black);
}

.capability h3,
.feature-list h3,
.support-cards h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.capability p,
.feature-list p,
.support-cards p {
  margin: 0;
  color: var(--steel);
}

.capability ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.capability li {
  position: relative;
  padding-left: 18px;
  font-weight: 750;
  color: #24313a;
}

.capability li::before {
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  content: "";
}

.split-grid,
.manufacturing-grid,
.support-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(34px, 6vw, 92px);
  align-items: start;
}

.split-grid .section-photo,
.manufacturing-grid .section-photo {
  grid-column: 1 / -1;
}

.split-copy p:not(.section-kicker) {
  margin-top: 22px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.check-list span {
  position: relative;
  padding: 14px 16px 14px 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  font-weight: 800;
}

.check-list span::before {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 14px;
  height: 14px;
  border: 4px solid var(--blue);
  border-top-color: var(--red);
  border-radius: 50%;
  content: "";
}

.cycle-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cycle-map article {
  min-height: 172px;
  padding: 24px;
  background: var(--ink);
  color: var(--white);
  box-shadow: none;
}

.cycle-map span {
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 900;
}

.cycle-map strong {
  display: block;
  margin-top: 22px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.cycle-map p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.section-photo {
  position: relative;
  margin: clamp(28px, 4vw, 46px) 0 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section-photo img {
  width: 100%;
  height: clamp(250px, 34vw, 430px);
  object-fit: cover;
}

.cycle-photo img {
  object-position: center center;
}

.lab-photo img {
  object-position: center center;
}

.section-photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 18px clamp(18px, 3vw, 30px);
  background: linear-gradient(90deg, rgba(3, 5, 7, 0.9), rgba(3, 5, 7, 0.52));
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  font-weight: 750;
}

.section-heading.compact {
  position: sticky;
  top: 110px;
  margin-bottom: 0;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-list article {
  min-height: 190px;
  padding: 26px;
}

.lab-intro {
  margin: 24px 0 0;
  color: var(--steel);
  font-size: 1.05rem;
}

.lab-services-list article {
  min-height: 170px;
}

.dark {
  background:
    linear-gradient(135deg, rgba(3, 5, 7, 0.94), rgba(7, 16, 22, 0.96)),
    radial-gradient(circle at 78% 25%, rgba(6, 68, 124, 0.5), transparent 36%);
  color: var(--white);
}

.support-grid > div > p:not(.section-kicker) {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.72);
}

.support-cards {
  display: grid;
  gap: 16px;
}

.support-cards article {
  padding: 26px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.support-cards span {
  display: inline-block;
  margin-bottom: 18px;
  color: #ff4b4b;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.support-cards p {
  color: rgba(255, 255, 255, 0.7);
}

.contact-grid > div > p {
  margin-top: 22px;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.contact-details a {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--blue);
  font-weight: 850;
}

.rfq-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.rfq-form label {
  display: grid;
  gap: 7px;
  color: #24313a;
  font-size: 0.84rem;
  font-weight: 850;
}

.rfq-form .full {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd6dc;
  border-radius: 5px;
  padding: 13px 12px;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.rfq-form .button {
  width: 100%;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
}

.site-footer {
  padding: 34px clamp(20px, 5vw, 72px);
  background: var(--black);
  color: rgba(255, 255, 255, 0.74);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.footer-inner img {
  width: 150px;
  padding: 8px;
  border-radius: 5px;
  background: var(--white);
}

.footer-inner p {
  max-width: 560px;
  margin: 0;
  text-align: right;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: grid;
    gap: 5px;
    width: 44px;
    height: 44px;
    place-content: center;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.18);
    cursor: pointer;
  }

  .nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--white);
  }

  .nav {
    position: absolute;
    top: calc(100% - 1px);
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border-radius: 8px;
    background: rgba(3, 5, 7, 0.98);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 14px;
  }

  .nav-cta {
    margin-top: 8px;
  }

  .hero {
    min-height: auto;
    padding-top: 132px;
  }

  .hero-panel,
  .intro-grid,
  .capability-grid,
  .segment-grid,
  .split-grid,
  .manufacturing-grid,
  .support-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-heading.compact {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 74px;
    padding-inline: 16px;
  }

  .brand {
    width: 132px;
  }

  .hero {
    padding: 118px 18px 34px;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 11vw, 3.35rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-media img {
    object-position: 58% center;
  }

  .hero-panel {
    display: none;
  }

  .hero-panel,
  .cycle-map,
  .feature-list,
  .rfq-form {
    grid-template-columns: 1fr;
  }

  .hero-panel div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .hero-panel div:last-child {
    border-bottom: 0;
  }

  .section,
  .section-band {
    padding-inline: 18px;
  }

  .capability,
  .feature-list article,
  .support-cards article,
  .rfq-form {
    padding: 22px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner p {
    text-align: left;
  }

  .section-photo img {
    height: 250px;
  }

  .section-photo figcaption {
    position: static;
    background: var(--ink);
  }
}
