/* =========================================================
   Tracewell — XR8000 Extensions (Figma node 380:6944)
   Colors, fonts and spacing that Bootstrap 5 utilities can't cover.
   ========================================================= */

/* ---------- Figma variables ---------- */
:root {
  --tw-blue: #0087cc;          /* TW Blue / tracewell blue */
  --tw-blue-bright: #2d9cdb;   /* bright basic blue (active nav) */
  --tw-dark-blue: #004266;     /* Dark Blue */
  --tw-cyan: #56ccf2;          /* Cyan */
  --tw-indigo: #082131;        /* Indigo */
  --tw-black: #000000;         /* Black */
  --tw-white: #ffffff;         /* White */
  --tw-gray-1: #333333;        /* Gray 1 (nav, footer) */
  --tw-gray-3: #828282;        /* Gray 3 (copyright) */
  --tw-gray-5: #e0e0e0;        /* Gray 5 (legal links) */
  --tw-tagline: #8f9090;       /* footer tagline */
  --tw-tint: #e6eff1;          /* tinted product sections */
  --tw-texture: rgba(217, 217, 217, 0.4); /* "texture 1" placeholder panels */

  --tw-font: "helvetica-neue-lt-pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* Adobe Fonts kit rft8yrj (linked in snp_stylesheets) */
  --tw-font-light: "helvetica-neue-lt-pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --tw-font-condensed: "helvetica-neue-lt-pro-cond", "Roboto Condensed", "Arial Narrow", sans-serif;
  --tw-font-fpo: "Inter", var(--tw-font);

  /* half the container content width, used to bleed panels to the viewport edge */
  --tw-half: 0px;

  --bs-body-font-family: var(--tw-font);
  --bs-body-color: var(--tw-black);
  --bs-link-color-rgb: 0, 135, 204;
  --bs-link-hover-color-rgb: 0, 66, 102;
}

body {
  font-family: var(--tw-font);
  color: var(--tw-black);
  background: var(--tw-white);
  overflow-x: hidden;
}

/* Content column is 1261px wide in the 1440px frame */
@media (min-width: 1400px) {
  .tw-container { max-width: 1285px; }
  :root { --tw-half: 630.5px; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) { :root { --tw-half: 558px; } }
@media (min-width: 992px) and (max-width: 1199.98px) { :root { --tw-half: 468px; } }

.tw-row { --bs-gutter-x: 20px; }
.tw-products { --bs-gutter-x: 20px; --bs-gutter-y: 104px; }

/* ---------- Nav (380:6946) ---------- */
.tw-navbar {
  background: var(--tw-gray-1);
  min-height: 92px;
  padding: 0;
}
.tw-nav-inner { padding: 20px 16px; }
.tw-logo { width: 460px; max-width: 70vw; height: auto; display: block; }
.tw-navbar .nav-link {
  font-size: 16px;
  line-height: 0.98;
  color: var(--tw-white);
  padding: 12px 0;
}
.tw-navbar .nav-link:hover,
.tw-navbar .nav-link:focus { color: var(--tw-blue-bright); }
.tw-navbar .nav-link.active { color: var(--tw-blue-bright); }
@media (min-width: 992px) {
  .tw-nav-inner { padding: 0 90px; min-height: 92px; }
  .tw-nav-links { gap: 62px; }
  .tw-navbar .nav-link { padding: 0; }
}

/* ---------- Shared type ---------- */
.tw-display {
  font-family: var(--tw-font-light);
  font-weight: 300;
  font-size: clamp(56px, 8.565vw, 123.333px);
  line-height: 0.9;
  color: var(--tw-blue);
  text-transform: capitalize;
  margin: 0;
}
.tw-h2 {
  font-family: var(--tw-font-light);
  font-weight: 300;
  font-size: 48px;
  line-height: 1;
  color: var(--tw-blue);
  margin: 0 0 16px;
}
.tw-body {
  font-size: 20px;
  line-height: 1.4;
  margin: 0;
  padding-right: 30px;
}

/* ---------- Hero (380:6987) ---------- */
.tw-hero {
  background: var(--tw-white);
  border-bottom: 1px solid var(--tw-blue);
  padding: 87.36px 0;
}
.tw-headline {
  display: flex;
  flex-direction: column;
  gap: 20.556px;
  max-width: 620.52px;
}
.tw-kicker {
  font-family: var(--tw-font-light);
  font-weight: 300;
  font-size: 41.111px;
  line-height: 1;
  color: var(--tw-blue);
  margin: 0;
}
.tw-kicker-rule {
  margin: 0;
  border: 0;
  border-top: 1.28px solid var(--tw-blue);
  opacity: 1;
}
.tw-hero-img {
  display: block;
  width: 753.68px;
  max-width: 100%;
  height: auto;
  margin-top: 4.5px;
}
.tw-jump {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 40px 0 0;
}
.tw-jump a {
  display: flex;
  gap: 10px;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.4;
  color: var(--tw-blue);
  text-decoration: none;
}
.tw-jump a::before {
  content: "";
  flex: none;
  width: 11px;
  height: 29px;
  margin-top: 2px;
  background: url("assets/icon-chevron-right.svg") no-repeat center / 11px 29px;
}
.tw-jump a:hover { color: var(--tw-dark-blue); }
.tw-intro { margin-top: 50px; row-gap: 40px; }
@media (min-width: 992px) {
  .tw-hero-img { margin-left: -76.55px; max-width: calc(100% + 76.55px); }
  .tw-jump { margin: 95.64px 0 0 12px; }
  .tw-intro { min-height: 538px; }
}

/* ---------- Product sections ---------- */
.tw-section {
  padding: 48px 0 72px;
  border-bottom: 1px solid var(--tw-blue);
  overflow-x: clip;
}
.tw-section--tint { background: var(--tw-tint); }

.tw-section-title {
  display: inline-block;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.4;
  color: var(--tw-dark-blue);
  margin: 0 0 56px;
  padding-bottom: 8px;
  border-bottom: 4px solid var(--tw-dark-blue);
}

/* "D - product" card */
.product {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}
@media (min-width: 992px) {
  .product { min-height: var(--card-h, 0); }
  .product--auto { min-height: 0; }
}
.product-media {
  position: relative;
  flex: none;
  width: 397.955px;
  max-width: 100%;
  aspect-ratio: 397.955 / 248.722;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Decorative layers (shapes, masks) stay absolutely placed, in % of the slot */
.product-media > img:not(.img-fluid),
.product-media > .media-rect,
.tw-figure-media > img:not(.img-fluid) {
  position: absolute;
  left: var(--l, 0);
  top: var(--t, 0);
  width: var(--w, 100%);
  height: var(--h, 100%);
  max-width: none;
  object-fit: cover;
  pointer-events: none;
}
/* Photos (img-fluid) sit in normal flow, centred and scaled to fit the slot */
.product-media > img.img-fluid,
.tw-figure-media > img.img-fluid {
  position: relative;
  display: block;
  pointer-events: none;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}
/* Partner logos (Advanced Platforms): sized down inside the photo slot */
.product-media--logo > img.img-fluid { max-width: 80%; max-height: 45%; }
.media-rect { background: var(--c, transparent); }
.blend-multiply { mix-blend-mode: multiply; }

/* Figma "FPO" (for position only) labels */
.fpo {
  position: absolute;
  left: var(--fx, 50.66%);
  top: var(--fy, 35.92%);
  width: 127.885px;
  transform: translateX(-50%);
  font-family: var(--tw-font-fpo);
  font-weight: 700;
  font-size: 60px;
  line-height: normal;
  color: var(--tw-white);
  text-align: center;
  pointer-events: none;
}
.fpo--sm {
  --fx: 55.49%;
  --fy: 37.64%;
  width: 99.143px;
  font-size: 46.515px;
}

.product-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  border-left: 1px solid var(--tw-blue);
  padding-left: 24px;
  position: relative;
  z-index: 1;
}
.product-body--top { justify-content: flex-start; }
.product-title {
  font-family: var(--tw-font-light);
  font-weight: 300;
  font-size: 48px;
  line-height: 1;
  color: var(--tw-blue);
  margin: 0 0 16px;
}
.product-title small {
  font-size: 24px;
  font-family: var(--tw-font-light);
  font-weight: 300;
}
.product-text {
  font-size: 20px;
  line-height: 1.4;
  color: var(--tw-black);
  max-width: 340px;
  margin: 0;
}
.product-text strong { font-weight: 700; }
.product-link,
.product-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.4;
  color: var(--tw-blue);
  text-decoration: none;
}
.product-link:hover { color: var(--tw-dark-blue); }

/* Grey "texture 1" placeholder panels from the design */
.texture {
  height: var(--tex-h, 635px);
  margin-top: var(--tex-mt, 0);
  margin-left: var(--tex-ml, 0);
  background: var(--tw-texture);
  mix-blend-mode: multiply;
}
.texture.bleed-end { margin-right: calc(var(--tw-half) - 50vw); }
.texture.bleed-start { margin-left: calc(var(--tw-half) - 50vw); margin-right: 38px; }

/* Quotes */
.tw-quote { color: var(--tw-blue); margin: 0; max-width: 675px; }
.tw-quote blockquote { margin: 0; padding-left: 13.5px; }
.tw-quote blockquote p {
  color: var(--tw-blue); /* #0087cc */
  font-family: var(--tw-font-light);
  font-weight: 300;
  font-size: 30px;
  line-height: 1.4;
  margin: 0;
}
.tw-quote blockquote p:first-child { text-indent: -13.5px; }
.tw-quote blockquote p + p { margin-top: 42px; }
.tw-quote figcaption {
  font-size: 20px;
  line-height: 1.4;
  margin-top: 49px;
}
@media (min-width: 992px) {
  .tw-quote--offset { margin: 20px 0 0 106.5px; }
  .tw-quote--specialty { margin-top: 9px; }
}

/* ---------- Feature sections (Dell Co-development, Custom Engineering) ---------- */
.tw-feature {
  padding: 87.36px 0 147px;
  border-bottom: 1px solid var(--tw-blue);
}
.tw-feature-title { max-width: 909.2px; }
.tw-feature-copy { max-width: 807px; }
.tw-feature-copy p {
  color: inherit; /* beat the site-wide p { color: #333 } */
  font-size: 20px;
  line-height: 1.4;
  margin: 0 0 32px;
}
.tw-feature-copy p:first-child { padding-right: 30px; }
.tw-feature-copy p:last-child { margin-bottom: 0; }
.tw-feature-copy .tw-lead { font-weight: 700; margin-bottom: 10px; padding-right: 0; }
.tw-feature-copy .tw-lead:last-child { margin-top: 32px; }

.tw-feature--dark { background: var(--tw-dark-blue); }
.tw-feature--dark .tw-feature-title { color: var(--tw-cyan); margin-bottom: 66px; max-width: none; }
.tw-feature--dark .tw-feature-copy { color: var(--tw-white); }
.tw-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 52px;
  margin: 0;
}
.tw-steps li {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: var(--tw-font-light);
  font-weight: 300;
  font-size: 32px;
  line-height: 1;
  color: var(--tw-cyan);
}
.tw-steps img { width: 138px; height: 138px; max-width: 100%; }
@media (max-width: 767.98px) {
  .tw-steps { grid-template-columns: 1fr; }
  .tw-steps li { flex-direction: row; align-items: center; }
  .tw-steps img { width: 96px; height: 96px; flex: none; }
}
.tw-questions { margin: 0 0 48px; max-width: 372px; }
.tw-questions li {
  font-family: var(--tw-font-light);
  font-weight: 300;
  font-size: 48px;
  line-height: 1;
  color: var(--tw-cyan);
  padding-right: 30px;
}
.tw-questions li + li { margin-top: 50px; }
@media (min-width: 992px) {
  .tw-questions { margin: -2px 0 0 4.5px; }
  .tw-feature--dark .tw-feature-copy { margin-left: 1.5px; }
}

.tw-feature--cyan { background: var(--tw-cyan); padding-top: 85.32px; padding-bottom: 70px; }
.tw-feature--cyan .tw-feature-title { color: var(--tw-dark-blue); margin: 2px 0 68px; }
.tw-feature--cyan .tw-feature-copy { color: var(--tw-indigo); }
.tw-feature-copy--left { margin-left: 2.5px; margin-bottom: 48px; }

.tw-figures {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 316.56px;
  max-width: 100%;
}
@media (min-width: 992px) { .tw-figures { margin: 0 29px 0 auto; } }
.tw-figure { margin: 0; }
.tw-figure-media {
  position: relative;
  width: 316.56px;
  max-width: 100%;
  aspect-ratio: 316.56 / 212.15;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tw-figure figcaption {
  max-width: 300px;
  margin: 9px 0 0;
  font-size: 16px;
  line-height: 1.4;
  color: var(--tw-indigo);
}

/* ---------- Footer (380:7230) ---------- */
.tw-footer { background: var(--tw-gray-1); }
.tw-footer-inner { padding: 64px 16px 35px; }
.tw-footer-brand { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 32px; }
.tw-footer-logo { display: block; width: 919px; max-width: 100%; height: auto; }
.tw-footer-tagline {
  font-family: var(--tw-font-condensed);
  font-weight: 700;
  font-size: clamp(36px, 4.1vw, 59px);
  line-height: 0.98;
  text-transform: uppercase;
  color: var(--tw-tagline);
  margin: 0;
  padding-left: 23px;
  border-left: 1px solid #8f9091;
}
.tw-footer-bottom { margin-top: 36px; font-size: 15px; line-height: 0.98; }
.tw-copyright { color: var(--tw-gray-3); }
.tw-legal a { color: var(--tw-gray-5); text-decoration: none; }
.tw-legal a:hover { color: var(--tw-white); }
@media (min-width: 992px) {
  .tw-footer { min-height: 523px; }
  .tw-footer-inner { padding: 184px 62px 35px; }
  .tw-footer-brand { flex-wrap: nowrap; gap: 44px; }
  .tw-footer-logo { flex: 0 1 919px; width: auto; min-width: 0; margin-bottom: 25px; }
  .tw-footer-tagline { flex: none; }
  .tw-footer-bottom { padding: 0 41px 0 41px; }
}

/* ---------- Product carousel (mobile, Figma 746:4916 / 746:5174) ----------
   .tw-carousel wraps a section's product columns. From 768px up it uses
   display: contents, so the columns lay out in the .row grid as before. */
:where(.tw-carousel) > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  margin-top: var(--bs-gutter-y);
}
.tw-carousel-nav { display: none; }

@media (min-width: 768px) {
  .tw-carousel { display: contents; }
}
@media (max-width: 767.98px) {
  .tw-carousel {
    display: flex;
    gap: 8px;
    width: 100vw;
    max-width: none;
    margin-left: calc((100% - 100vw) / 2);
    padding: 0 24px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 24px;
    scrollbar-width: none;
  }
  .tw-carousel::-webkit-scrollbar { display: none; }
  .tw-carousel > * {
    flex: 0 0 309px;
    width: 309px;
    max-width: calc(100vw - 72px);
    padding: 0;
    margin-top: 0;
    scroll-snap-align: start;
  }
  .tw-carousel-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100vw;
    max-width: none;
    margin: 24px 0 0 calc((100% - 100vw) / 2);
    padding: 8px 8px 8px 36px;
  }
  .tw-carousel-next {
    flex: none;
    display: block;
    width: 11.53px;
    height: 23.06px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .tw-carousel-next svg { display: block; width: 100%; height: 100%; }
  .tw-carousel-bars {
    flex: 1;
    display: flex;
    gap: 4px;
    height: 3px;
    padding-left: 12px;
  }
  .tw-carousel-bars span {
    flex: 1 1 0;
    background: #d9d9d9;
    transition: flex-grow 0.25s ease, background-color 0.25s ease;
  }
  .tw-carousel-bars span.is-active {
    flex-grow: 1.63; /* 110px vs 68px segments in Figma */
    background: var(--tw-blue);
  }
}

/* ---------- Mobile type (Figma "HP - mobile" 746:4671, 402px frame) ---------- */
@media (max-width: 767.98px) {
  .tw-headline { gap: 9.5px; }
  .tw-kicker { font-size: 20px; }
  .tw-kicker-rule { border-top-width: 0.6px; }
  .tw-display { font-size: 50px; }
  .tw-h2 { font-size: 32px; }
  .tw-body { font-size: 20px; padding-right: 0; }
  .tw-section-title { font-size: 20px; }
  .product-title { font-size: 32px; }
  .product-title small { display: block; font-size: 24px; }
  .product-text { font-size: 18px; }
  .product-link,
  .product-status { font-size: 18px; }
  .tw-quote blockquote { padding-left: 10.8px; }
  .tw-quote blockquote p { font-size: 24px; }
  .tw-quote blockquote p:first-child { text-indent: -10.8px; }
  .tw-quote figcaption { font-size: 20px; }
}

/* ---------- Small screens ---------- */
@media (max-width: 575.98px) {
  .product-media,
  .tw-figure-media { overflow: hidden; }
  .tw-questions li { font-size: 40px; }
}
