
:root {
  --bg: #07111d;
  --bg-deep: #02070d;
  --panel: #0d1a29;
  --panel-2: #101f31;
  --blue: #304dff;
  --blue-bright: #5b70ff;
  --blue-soft: #98a6ff;
  --white: #f7f9fc;
  --muted: #aeb8c7;
  --line: rgba(255,255,255,.10);
  --orange: #f04a1f;
  --shadow: 0 30px 70px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(232, 237, 244, .97);
  backdrop-filter: blur(16px);
  border-bottom: 0;
  box-shadow: 0 3px 10px rgba(2, 7, 13, .12);
  overflow: hidden;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7px;
  background:
    linear-gradient(to bottom,
      #f8fafc 0%,
      #c9d0d8 18%,
      #7d8792 46%,
      #dfe4e9 67%,
      #8b959f 84%,
      #cbd2d9 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    inset 0 -1px 0 rgba(18,31,45,.35),
    0 2px 4px rgba(2,7,13,.20);
  pointer-events: none;
  z-index: 3;
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 90px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  padding-bottom: 0;
}

.brand {
  padding: 0;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
}

.brand img {
  width: min(610px, 54vw);
  height: 104px;
  margin-bottom: 0;
  object-fit: contain;
  object-position: left bottom;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .02em;
}

.primary-nav a:not(.nav-cta) { color: #172235; }
.primary-nav a:hover { color: #304dff; }

.nav-cta {
  padding: 10px 18px;
  border: 1px solid #142c8f;
  background: linear-gradient(135deg, #132b83, #1e3eb5);
  color: white !important;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(19, 43, 131, .30);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.nav-cta:hover {
  color: white !important;
  background: linear-gradient(135deg, #0e226e, #18349c);
  box-shadow: 0 8px 20px rgba(19, 43, 131, .38);
  transform: translateY(4.49px);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #172235;
  margin: 5px 0;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 75% 42%, rgba(43, 74, 165, .34), transparent 28%),
    radial-gradient(circle at 12% 20%, rgba(48, 77, 255, .10), transparent 25%),
    linear-gradient(135deg, #02070d 0%, #07111d 48%, #07101a 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

.hero-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow, .section-kicker {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .19em;
  font-weight: 800;
  font-size: .78rem;
  color: var(--blue-soft);
}

.hero h1 {
  margin: 0;
  font-size: clamp(4.6rem, 8vw, 8.5rem);
  line-height: .82;
  letter-spacing: -.07em;
  font-weight: 950;
}

.hero h1 span {
  color: transparent;
  -webkit-text-stroke: 2px var(--blue-bright);
  text-shadow: 0 0 34px rgba(48,77,255,.24);
}

.hero-lead {
  max-width: 650px;
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
  color: #c5cfdb;
  margin: 28px 0 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 7px;
  font-weight: 850;
  letter-spacing: .02em;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  color: white;
  box-shadow: 0 16px 32px rgba(48,77,255,.24);
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.05);
  color: white;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 30px;
}

.hero-meta span {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  border-radius: 999px;
  padding: 7px 11px;
  color: #bcc6d3;
  font-size: .8rem;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 650px;
  display: grid;
  place-items: center;
}

.product-glow {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62,94,255,.28), rgba(33,54,125,.08) 44%, transparent 70%);
  filter: blur(8px);
}

.hero-visual img {
  position: relative;
  width: min(600px, 100%);
  max-height: 680px;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  box-shadow: var(--shadow);
  mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
}

.section { padding: 92px 0; }

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

.intro-strip {
  background: #f4f6f9;
  color: #101826;
}

.intro-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
  align-items: start;
}

.intro-grid h2,
.section-heading h2,
.capabilities-copy h2,
.about-section h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.intro-grid p:last-child {
  margin: 4px 0 0;
  font-size: 1.12rem;
  color: #4f5b6d;
}

.products-section {
  background: linear-gradient(180deg, #07111d, #091421);
}

.section-heading { max-width: 760px; }
.section-heading > p:last-child {
  color: var(--muted);
  max-width: 650px;
  font-size: 1.05rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 46px;
}

.product-card {
  min-height: 330px;
  padding: 30px;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 42px rgba(0,0,0,.16);
}

.product-card.featured-card {
  border-color: rgba(71,95,255,.55);
  box-shadow: inset 0 0 0 1px rgba(71,95,255,.12), 0 20px 55px rgba(18,37,119,.2);
}

.card-number {
  color: #7282ff;
  font-weight: 900;
  letter-spacing: .14em;
  font-size: .78rem;
}

.product-card h3 {
  font-size: 2.15rem;
  margin: 30px 0 10px;
  letter-spacing: -.04em;
}

.product-card p {
  color: var(--muted);
  margin: 0 0 24px;
}

.product-card a {
  margin-top: auto;
  font-weight: 800;
  color: #d7ddff;
}

.product-card a span,
.text-link span { color: var(--blue-soft); }

.capabilities-section {
  background:
    radial-gradient(circle at 8% 38%, rgba(48,77,255,.12), transparent 20%),
    #02070d;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 70px;
  align-items: start;
}

.capabilities-copy p:not(.section-kicker) {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 850;
}

.capability-list {
  border-top: 1px solid var(--line);
}

.capability-item {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.capability-item span {
  font-weight: 850;
  font-size: 1.08rem;
}

.capability-item small {
  color: var(--muted);
  font-size: .95rem;
}

.about-section {
  background: #f4f6f9;
  color: #101826;
}

.about-grid {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 70px;
  align-items: center;
}

.about-badge {
  min-height: 360px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  background:
    radial-gradient(circle at 40% 30%, rgba(68,93,255,.35), transparent 35%),
    linear-gradient(145deg, #0a1522, #02070d);
  box-shadow: 0 25px 60px rgba(2,7,13,.22);
}

.about-badge span {
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: .8;
  font-weight: 950;
  letter-spacing: -.08em;
  color: white;
}

.about-badge strong {
  margin-top: 18px;
  color: #aebaff;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
}

.about-section .section-kicker { color: #4059e9; }
.about-section p:not(.section-kicker) {
  color: #526071;
  font-size: 1.05rem;
}

.contact-section {
  background:
    radial-gradient(circle at 22% 26%, rgba(48,77,255,.13), transparent 26%),
    #07111d;
}

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

.contact-copy > p:not(.section-kicker) {
  color: var(--muted);
  max-width: 620px;
  font-size: 1.06rem;
}

.contact-panel {
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 24px 26px;
  border-bottom: 1px solid var(--line);
}

.contact-block:last-child { border-bottom: 0; }

.contact-label {
  color: #8494ff;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.contact-block strong { font-size: 1.15rem; }
.contact-block small,
.contact-block address {
  color: var(--muted);
  font-style: normal;
  margin-bottom: 4px;
}
.contact-block a { color: #dde3ff; }

.site-footer {
  border-top: 1px solid var(--line);
  background: #02070d;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  min-height: 66px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  color: #8490a0;
  font-size: .82rem;
}

.footer-inner img {
  width: 205px;
  max-height: 48px;
  object-fit: contain;
  padding: 0;
}

.copyright { text-align: right; }

@media (max-width: 900px) {
  .primary-nav {
    position: absolute;
    top: 82px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: #08121e;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }

  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 13px 12px; }
  .menu-toggle { display: block; }

  .hero { min-height: auto; padding: 72px 0 50px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; }
  .hero-visual img { width: min(620px, 94%); }

  .intro-grid,
  .capabilities-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .card-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 250px; }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .copyright { text-align: center; }
}

@media (max-width: 560px) {
  .brand img { width: 250px; }
  .hero h1 { font-size: clamp(4rem, 19vw, 5.5rem); }
  .section { padding: 70px 0; }
  .hero-actions .btn,
  .contact-actions .btn { width: 100%; }
  .capability-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .about-badge { min-height: 280px; }
}

.two-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-list {
  list-style: none; padding: 0; margin: 2px 0 26px;
  display: grid; gap: 8px; color: #dce3ee; font-weight: 700;
}
.product-list li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.product-intro { margin-bottom: 14px !important; }
@media (max-width: 900px) { .two-card-grid { grid-template-columns: 1fr; } }

.primary-nav {
  align-self: center;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .nav-wrap { min-height: 96px; padding-bottom: 0; }
  .brand img { width: min(445px, 70vw); height: 92px; }
  .primary-nav { top: 96px; }
}

@media (max-width: 560px) {
  .brand img { width: min(340px, 78vw); height: 84px; }
}


/* FINAL HEADER ALIGNMENT OVERRIDE */
.site-header {
  overflow: hidden !important;
}

.site-header::after {
  bottom: 0 !important;
  z-index: 10 !important;
}

.brand img {
  transform: translateY(17px) !important;
}


/* SHORT HEADER — LOGO LEFT IN ITS NATURAL POSITION */
.brand img {
  transform: none !important;
}

.nav-wrap {
  min-height: 90px !important;
}

.site-header {
  overflow: hidden !important;
}

.site-header::after {
  bottom: 0 !important;
  z-index: 10 !important;
}

@media (max-width: 900px) {
  .nav-wrap {
    min-height: 79px !important;
  }
  .primary-nav {
    top: 79px !important;
  }
}


/* TRUE SHORTER HEADER — LOGO ARTWORK NOT REPOSITIONED */
.site-header {
  height: 93px !important;
  min-height: 93px !important;
  overflow: hidden !important;
}

.nav-wrap {
  height: 93px !important;
  min-height: 93px !important;
  padding-bottom: 0 !important;
  align-items: center !important;
}

.brand {
  height: 104px !important;
  align-self: flex-start !important;
  margin: 0 !important;
  padding: 0 !important;
}

.brand img {
  width: min(610px, 54vw) !important;
  height: 104px !important;
  transform: none !important;
  object-fit: contain !important;
  object-position: left top !important;
}

.site-header::after {
  bottom: 0 !important;
  z-index: 10 !important;
}

.primary-nav {
  align-self: center !important;
  margin: 0 !important;
}

@media (max-width: 900px) {
  .site-header,
  .nav-wrap {
    height: 82px !important;
    min-height: 82px !important;
  }

  .brand {
    height: 92px !important;
  }

  .brand img {
    width: min(445px, 70vw) !important;
    height: 92px !important;
  }

  .primary-nav {
    top: 82px !important;
  }
}

@media (max-width: 560px) {
  .site-header,
  .nav-wrap {
    height: 75px !important;
    min-height: 75px !important;
  }

  .brand {
    height: 84px !important;
  }

  .brand img {
    width: min(340px, 78vw) !important;
    height: 84px !important;
  }

  .primary-nav {
    top: 75px !important;
  }
}


/* FINAL 5PX HEADER TRIM */
@media (min-width: 901px) {
  .site-header,
  .nav-wrap {
    height: 88px !important;
    min-height: 88px !important;
  }
}

/* Product card image layout */
.product-card-with-image {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 24px;
  align-items: center;
}

.product-card-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.product-card-image {
  width: 100%;
  max-width: 240px;
  max-height: 300px;
  object-fit: contain;
  display: block;
}

.product-card-content {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

@media (max-width: 900px) {
  .product-card-with-image {
    grid-template-columns: 1fr;
  }

  .product-card-image {
    max-width: 220px;
    max-height: 260px;
    margin: 0 auto;
  }
}


/* Subs card — text left, product image right */
.product-card-with-image {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 210px !important;
  gap: 18px !important;
  align-items: center !important;
  overflow: hidden !important;
}

.product-card-content {
  grid-column: 1 !important;
  grid-row: 1 !important;
  position: relative;
  z-index: 2;
}

.product-card-image-wrap {
  grid-column: 2 !important;
  grid-row: 1 !important;
  position: relative;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: stretch !important;
  min-height: 300px !important;
  margin: -20px -12px -20px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 52%,
      rgba(22, 91, 175, .20) 0%,
      rgba(8, 32, 58, .13) 38%,
      rgba(3, 12, 21, 0) 72%);
}

.product-card-image-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(3, 10, 17, 1) 0%,
      rgba(3, 10, 17, .42) 18%,
      rgba(3, 10, 17, 0) 46%);
  z-index: 1;
  pointer-events: none;
}

.product-card-image {
  position: relative;
  z-index: 0;
  width: 190px !important;
  max-width: 190px !important;
  height: 290px !important;
  max-height: 290px !important;
  object-fit: contain !important;
  display: block !important;
  mix-blend-mode: screen;
  filter: contrast(1.03) brightness(.96);
}

@media (max-width: 900px) {
  .product-card-with-image {
    grid-template-columns: minmax(0, 1fr) 150px !important;
  }

  .product-card-image-wrap {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-height: 245px !important;
    margin: -12px -8px -12px 0;
  }

  .product-card-image {
    width: 140px !important;
    max-width: 140px !important;
    height: 235px !important;
    max-height: 235px !important;
  }
}

@media (max-width: 620px) {
  .product-card-with-image {
    grid-template-columns: 1fr !important;
  }

  .product-card-content {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .product-card-image-wrap {
    grid-column: 1 !important;
    grid-row: 2 !important;
    min-height: 220px !important;
    margin: 8px 0 -8px !important;
  }

  .product-card-image {
    width: 150px !important;
    max-width: 150px !important;
    height: 210px !important;
    max-height: 210px !important;
  }

  .product-card-image-wrap::before {
    display: none;
  }
}


/* FINAL SUBS CARD LAYOUT — reuse the existing reference image, positioned to the right of the sub list */
.subs-card-reference {
  overflow: hidden;
}

.subs-card-reference h3 {
  margin-bottom: 10px;
}

.subs-card-reference .product-intro {
  margin-bottom: 16px !important;
}

.subs-card-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 205px;
  gap: 22px;
  align-items: center;
  flex: 1;
}

.subs-card-list {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.subs-card-list .product-list {
  margin-bottom: 18px;
}

.subs-card-list > a {
  margin-top: auto;
  font-weight: 800;
  color: #d7ddff;
}

.subs-card-image {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(36, 74, 145, .15) 0%,
      rgba(15, 34, 58, .07) 42%,
      rgba(7, 17, 29, 0) 74%);
}

.subs-card-image .product-card-image {
  width: 180px !important;
  max-width: 180px !important;
  height: 250px !important;
  max-height: 250px !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
  margin: 0 !important;
  transform: none !important;
  mix-blend-mode: screen;
  filter: contrast(1.02) brightness(.98);
}

@media (max-width: 900px) {
  .subs-card-bottom {
    grid-template-columns: minmax(0, 1fr) 165px;
    gap: 16px;
  }

  .subs-card-image .product-card-image {
    width: 150px !important;
    max-width: 150px !important;
    height: 220px !important;
    max-height: 220px !important;
  }
}

@media (max-width: 620px) {
  .subs-card-bottom {
    grid-template-columns: 1fr;
  }

  .subs-card-image {
    min-height: 220px;
    margin-top: 8px;
  }

  .subs-card-image .product-card-image {
    width: 150px !important;
    max-width: 150px !important;
    height: 210px !important;
    max-height: 210px !important;
  }
}


/* REVISED SUB IMAGE BACKGROUND — lighter industrial treatment, no halo */
.subs-card-image {
  background:
    linear-gradient(145deg,
      rgba(255,255,255,.055) 0%,
      rgba(255,255,255,.012) 28%,
      rgba(0,0,0,.08) 100%),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.018) 0px,
      rgba(255,255,255,.018) 1px,
      rgba(255,255,255,0) 1px,
      rgba(255,255,255,0) 7px
    ),
    linear-gradient(180deg,
      #344352 0%,
      #2a3744 48%,
      #202c38 100%) !important;
  border: 1px solid rgba(190, 204, 219, .16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    inset 0 -18px 30px rgba(0,0,0,.10);
}

.subs-card-image .product-card-image {
  mix-blend-mode: normal !important;
  filter: contrast(1.02) brightness(.98) !important;
}


/* LIGHTEN THE ACTUAL IMAGE BACKGROUND SO IT NO LONGER READS AS A DARK CUTOUT */
.subs-card-image {
  background:
    linear-gradient(145deg,
      rgba(255,255,255,.07) 0%,
      rgba(255,255,255,.02) 30%,
      rgba(0,0,0,.06) 100%),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.02) 0px,
      rgba(255,255,255,.02) 1px,
      rgba(255,255,255,0) 1px,
      rgba(255,255,255,0) 7px
    ),
    linear-gradient(180deg,
      #4b5a68 0%,
      #3b4855 48%,
      #2d3945 100%) !important;
}

.subs-card-image .product-card-image {
  mix-blend-mode: lighten !important;
  filter: brightness(1.08) contrast(1.05) saturate(.96) !important;
}


/* BITS CARD — top-view images with the same overall placement logic as the Subs card */
.bits-card-reference {
  overflow: hidden;
}

.bits-card-reference .product-intro {
  margin-bottom: 16px !important;
}

.bits-card-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 20px;
  align-items: stretch;
  flex: 1;
}

.bits-card-list {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bits-card-list .product-list {
  margin-bottom: 18px;
}

.bits-card-list > a {
  margin-top: auto;
  font-weight: 800;
  color: #d7ddff;
}

.bits-card-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
  align-self: center;
}

.bit-tile {
  margin: 0;
  text-align: center;
}

.bit-tile-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 112px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(190, 204, 219, .16);
  background:
    linear-gradient(145deg,
      rgba(255,255,255,.055) 0%,
      rgba(255,255,255,.012) 28%,
      rgba(0,0,0,.08) 100%),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.018) 0px,
      rgba(255,255,255,.018) 1px,
      rgba(255,255,255,0) 1px,
      rgba(255,255,255,0) 7px
    ),
    linear-gradient(180deg,
      #344352 0%,
      #2a3744 48%,
      #202c38 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    inset 0 -18px 30px rgba(0,0,0,.10);
}

.bit-tile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.bit-tile figcaption {
  margin-top: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #d5dcff;
}

@media (max-width: 900px) {
  .bits-card-bottom {
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 16px;
  }
  .bit-tile-image-wrap {
    height: 100px;
  }
}

@media (max-width: 620px) {
  .bits-card-bottom {
    grid-template-columns: 1fr;
  }
  .bits-card-image-grid {
    margin-top: 8px;
  }
}


/* BITS CARD REFINEMENT — transparent cutouts, same industrial background as Sub, larger full-top views */
.bit-tile-image-wrap {
  height: 140px !important;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(190, 204, 219, .16);
  background:
    linear-gradient(145deg,
      rgba(255,255,255,.07) 0%,
      rgba(255,255,255,.02) 30%,
      rgba(0,0,0,.06) 100%),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.02) 0px,
      rgba(255,255,255,.02) 1px,
      rgba(255,255,255,0) 1px,
      rgba(255,255,255,0) 7px
    ),
    linear-gradient(180deg,
      #4b5a68 0%,
      #3b4855 48%,
      #2d3945 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    inset 0 -18px 30px rgba(0,0,0,.10);
}

.bit-tile-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block;
  padding: 4px;
}

.bits-card-bottom {
  grid-template-columns: minmax(0, 1fr) 255px !important;
}

.bits-card-image-grid {
  gap: 12px !important;
  align-self: center;
}

.bit-tile figcaption {
  margin-top: 7px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #d5dcff;
}

@media (max-width: 900px) {
  .bits-card-bottom {
    grid-template-columns: minmax(0, 1fr) 235px !important;
  }
  .bit-tile-image-wrap {
    height: 126px !important;
  }
}

@media (max-width: 620px) {
  .bit-tile-image-wrap {
    height: 132px !important;
  }
}


/* FINAL BIT IMAGE CORRECTION — full top views, transparent backgrounds, same industrial panel as Sub */
.bits-card-bottom {
  grid-template-columns: minmax(0, 1fr) 300px !important;
}

.bits-card-image-grid {
  gap: 14px !important;
}

.bit-tile-image-wrap {
  height: 165px !important;
  background:
    linear-gradient(145deg,
      rgba(255,255,255,.07) 0%,
      rgba(255,255,255,.02) 30%,
      rgba(0,0,0,.06) 100%),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.02) 0px,
      rgba(255,255,255,.02) 1px,
      rgba(255,255,255,0) 1px,
      rgba(255,255,255,0) 7px
    ),
    linear-gradient(180deg,
      #4b5a68 0%,
      #3b4855 48%,
      #2d3945 100%) !important;
}

.bit-tile-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 3px !important;
}

@media (max-width: 900px) {
  .bits-card-bottom {
    grid-template-columns: minmax(0, 1fr) 265px !important;
  }
  .bit-tile-image-wrap {
    height: 148px !important;
  }
}


/* UPDATED ASSETS — new sub and new bit top views */
.subs-card-image .product-card-image {
  width: 205px !important;
  max-width: 205px !important;
  height: 270px !important;
  max-height: 270px !important;
  object-fit: contain !important;
  object-position: center !important;
  mix-blend-mode: normal !important;
  filter: contrast(1.02) brightness(1.01) !important;
}

.subs-card-image {
  padding: 6px 0;
}

.bits-card-bottom {
  grid-template-columns: minmax(0, 1fr) 315px !important;
}

.bits-card-image-grid {
  gap: 14px !important;
}

.bit-tile-image-wrap {
  height: 170px !important;
}

.bit-tile-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 4px !important;
}

@media (max-width: 900px) {
  .subs-card-image .product-card-image {
    width: 180px !important;
    max-width: 180px !important;
    height: 240px !important;
    max-height: 240px !important;
  }

  .bits-card-bottom {
    grid-template-columns: minmax(0, 1fr) 275px !important;
  }

  .bit-tile-image-wrap {
    height: 150px !important;
  }
}


/* ORIGINAL PRODUCT IMAGES PRESERVED — no image processing or transparency edits */
.subs-card-image .product-card-image,
.bit-tile-image {
  mix-blend-mode: normal !important;
  filter: none !important;
}

.subs-card-image .product-card-image {
  object-fit: contain !important;
  object-position: center !important;
}

.bit-tile-image {
  object-fit: contain !important;
  object-position: center !important;
}


/* Product images locked: use original provided assets with no edits */
.subs-card-reference .product-card-image,
.bits-card-reference .bit-tile-image {
  mix-blend-mode: normal !important;
  filter: none !important;
  opacity: 1 !important;
}

/* Subs box should match the blue border style of the Bits box */
.subs-card-reference.featured-card {
  border-color: rgba(71,95,255,.55) !important;
  box-shadow: inset 0 0 0 1px rgba(71,95,255,.12), 0 20px 55px rgba(18,37,119,.2) !important;
}



/* Updated product media: preserve original supplied images and show both facing and top views */
.subs-card-reference .subs-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(145deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.015) 32%, rgba(0,0,0,.08) 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0px, rgba(255,255,255,.02) 1px, rgba(255,255,255,0) 1px, rgba(255,255,255,0) 7px),
    linear-gradient(180deg, #46525d 0%, #394550 48%, #2b3641 100%) !important;
  border-color: rgba(190, 204, 219, .16) !important;
}
.subs-card-reference .product-card-image {
  mix-blend-mode: normal !important;
  filter: none !important;
  opacity: 1 !important;
}

.bits-card-reference .bits-card-image-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}

.bit-product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bit-product-title {
  margin-bottom: 8px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: #dfe6ff;
}

.bit-product-views {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
}

.bit-view-card {
  margin: 0;
}

.bit-view-image-wrap {
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(190, 204, 219, .16);
  background:
    linear-gradient(145deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,.02) 30%, rgba(0,0,0,.06) 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0px, rgba(255,255,255,.02) 1px, rgba(255,255,255,0) 1px, rgba(255,255,255,0) 7px),
    linear-gradient(180deg, #4b5a68 0%, #3b4855 48%, #2d3945 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), inset 0 -18px 30px rgba(0,0,0,.10);
}

.bit-view-image-wrap.top-view {
  height: 84px;
}

.bit-view-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  mix-blend-mode: normal !important;
  filter: none !important;
  opacity: 1 !important;
}

.bit-view-label {
  margin-top: 5px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #b8c3ee;
}

@media (max-width: 900px) {
  .bits-card-reference .bits-card-image-grid { gap: 10px; }
  .bit-view-image-wrap { height: 94px; }
  .bit-view-image-wrap.top-view { height: 76px; }
}

@media (max-width: 620px) {
  .bits-card-reference .bits-card-image-grid {
    grid-template-columns: 1fr 1fr;
  }
}


/* Bits section refinement: use provided top crops, remove Top/Facing labels, titles at bottom */
.bits-card-reference .bit-product-card {
  justify-content: space-between;
}
.bits-card-reference .bit-product-title {
  margin-top: 8px;
  margin-bottom: 0;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: #dfe6ff;
}
.bits-card-reference .bit-product-views {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}
.bits-card-reference .bit-view-image-wrap.front-view {
  height: 100px;
}
.bits-card-reference .bit-view-image-wrap.top-view {
  height: 90px;
}
.bits-card-reference .bit-view-image {
  object-fit: contain;
  object-position: center;
}


/* CUSTOM MACHINING SECTION UPDATE */
.custom-machining-section {
  background:
    radial-gradient(circle at 12% 22%, rgba(48,77,255,.12), transparent 22%),
    radial-gradient(circle at 84% 70%, rgba(48,77,255,.09), transparent 22%),
    #02070d;
}

.custom-machining-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 42px;
  align-items: center;
}

.custom-machining-photo-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  border: 1px solid rgba(71,95,255,.38);
  box-shadow: inset 0 0 0 1px rgba(71,95,255,.10), 0 24px 56px rgba(8,18,53,.32);
}

.custom-machining-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

.custom-machining-photo-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(4,10,18,.78);
  border: 1px solid rgba(255,255,255,.14);
  color: #e3e9f7;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.custom-machining-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.custom-machining-copy p:not(.section-kicker) {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 620px;
}

.custom-capability-list {
  margin-top: 24px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.custom-capability-list .capability-item {
  padding: 18px 20px;
}

@media (max-width: 900px) {
  .custom-machining-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .custom-machining-photo {
    aspect-ratio: 4 / 4.8;
  }
}


/* MOBILE BITS LAYOUT FIX — stack text above products; each product gets a full-width row */
@media (max-width: 620px) {
  .bits-card-reference {
    overflow: hidden !important;
  }

  .bits-card-reference .bits-card-bottom {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    align-items: start !important;
  }

  .bits-card-reference .bits-card-list {
    width: 100% !important;
    min-width: 0 !important;
  }

  .bits-card-reference .bits-card-list > a {
    margin-top: 4px !important;
  }

  .bits-card-reference .bits-card-image-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 18px !important;
    margin: 0 !important;
    align-self: stretch !important;
  }

  .bits-card-reference .bit-product-card {
    width: 100% !important;
    min-width: 0 !important;
  }

  .bits-card-reference .bit-product-views {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: none !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .bits-card-reference .bit-view-card {
    min-width: 0 !important;
    width: 100% !important;
  }

  .bits-card-reference .bit-view-image-wrap.front-view,
  .bits-card-reference .bit-view-image-wrap.top-view {
    width: 100% !important;
    height: 132px !important;
  }

  .bits-card-reference .bit-view-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  .bits-card-reference .bit-product-title {
    margin-top: 8px !important;
    margin-bottom: 0 !important;
    text-align: center !important;
  }
}


/* CONTACT ADDRESS MAP LINK */
.contact-address-link {
  display: inline-block;
  width: fit-content;
  color: inherit !important;
  text-decoration: none;
}

.contact-address-link address {
  color: var(--muted) !important;
  transition: color .2s ease;
}

.contact-address-link:hover address,
.contact-address-link:focus-visible address {
  color: #dde3ff !important;
}
