/* ============================================================
   X-COATINGS — Homepage  (extends brand.css tokens)
   Brand: X-Blue #1B4B9C · Spectrum #2C63C4 · Deep Navy #0E2A66 · Navy #0B1B36
   Type:  Saira Condensed (display) · IBM Plex Sans (body) · IBM Plex Mono (tech)
   ============================================================ */

html {
  overflow-x: clip;
}

.site {
  background: var(--white);
  color: var(--ink);
}

.wrap {
  width: min(1280px, 90vw);
  margin: 0 auto;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

/* shared section rhythm */
.section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.sec-molecules {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .5;
}

.sec-molecules.dk {
  opacity: .45;
}

.sec-head {
  position: relative;
  max-width: 760px;
}

.sec-head.center {
  margin: 0 auto;
  text-align: center;
}

.sec-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 68px);
  line-height: .94;
  letter-spacing: .005em;
  color: var(--ink);
  margin: 16px 0 0;
}

.sec-title.on-dark {
  color: #fff;
}

.sec-lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 60ch;
  margin: 20px 0 0;
}

.sec-lead.center {
  margin-left: auto;
  margin-right: auto;
}

.sec-lead.on-dark {
  color: #AFBBD0;
}

.thin-blue {
  color: var(--blue);
}

.k {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue);
}

/* buttons -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--semi);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
  padding: 15px 28px;
  border-radius: 6px;
  text-decoration: none;
  background: var(--grad-x);
  color: #fff;
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(27, 75, 156, .28);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(27, 75, 156, .36);
  filter: saturate(1.08);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 13.5px;
}

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--line-2);
  box-shadow: none;
}

.btn-ghost:hover {
  border-color: var(--blue);
  background: rgba(27, 75, 156, .04);
}

.btn-light {
  background: #fff;
  color: var(--blue-deep);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .28);
}

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .4);
  box-shadow: none;
}

.btn-ghost-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .08);
}

/* ============ HEADER / NAV ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
  padding: 18px 0;
}

.nav-inner {
  width: min(1280px, 90vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  line-height: 0;
  /* removes the inline baseline gap that inline `<a>` elements get under an <img> */
}

.nav-logo img {
  height: 75px;
  display: block;
  transition: height .25s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-family: var(--semi);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: .01em;
  transition: color .15s ease;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-links a.btn {
  color: #fff;
}

.nav.scrolled {
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(20, 40, 80, .08);
  padding: 12px 0;
}

.nav.scrolled .nav-logo img {
  height: 34px;
}

/* Frost via pseudo-element: keeps backdrop-filter OFF .nav itself, so a
   filtered ancestor can't become the containing block for the fixed mobile
   drawer. Applied to .nav always so the bar is opaque from the top — now that
   the homepage hero is a video, a transparent nav no longer makes sense. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  pointer-events: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  display: block;
  transition: .2s;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
  /* dark fallback behind the video — keeps the light text legible if the video fails */
  padding: 152px 0 112px;
}

/* Background video + scrim ---------------------------------------- */
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Darker on the left (where the copy sits) and bottom, lighter on the right
   so the footage still reads through. Tune the alphas to taste. */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 27, 54, .54) 0%, rgba(11, 27, 54, .28) 52%, rgba(11, 27, 54, .08) 100%),
    linear-gradient(180deg, rgba(11, 27, 54, .15) 0%, rgba(11, 27, 54, .55) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.hero-title {
  font-weight: 600;
  font-size: clamp(52px, 7vw, 104px);
  line-height: .88;
  letter-spacing: .005em;
  color: #fff;
  margin: 22px 0 0;
}

.hero-title .thin-blue {
  color: #9DC0F2;
}

.hero-lead {
  font-family: var(--semi);
  font-weight: 500;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: #DCE5F1;
  max-width: 54ch;
  margin: 28px 0 0;
}

.scroll-hint {
  position: absolute;
  z-index: 2;
  bottom: 26px;
  left: 5vw;
  font-size: 11px;
  letter-spacing: .28em;
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  animation: float 2.6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-16px)
  }
}

/* ============ TRUST STRIP ============ */
.strip {
  background: linear-gradient(180deg, #EEF3FA 0%, #E4EBF5 100%);
  color: var(--ink);
  border-top: 1px solid rgba(27, 75, 156, .12);
  border-bottom: 1px solid rgba(27, 75, 156, .12);
}

.strip-inner {
  display: flex;
}

.strip-item {
  padding: 26px 0;
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.strip-item b {
  font-family: var(--semi);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
}

/* ============ SYSTEM SECTION ============ */
.sysblock {
  padding: 84px 0 96px;
  background-image: url('/wp-content/uploads/2026/07/Edit10.png');
  background-size: cover;
  background-position: center;
}

.sysblock .sec-head {
  position: relative;
  z-index: 2;
}

.sysblock .wrap {
  position: relative;
  z-index: 2;
}

/* ============ PILLARS ============ */
.pillars {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 36px;
}

.pillar {
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 12px;
  padding: 32px 34px 36px;
  position: relative;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, .84);
  backdrop-filter: blur(2px);
  transition: transform .2s ease, box-shadow .2s ease;
}

.pillar:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(20, 40, 80, .12);
}

.pillar .pn {
  position: absolute;
  right: 28px;
  top: 26px;
  font-size: 13px;
  color: var(--line-2);
}

.pillar h3 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 24px;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
}

.pillar p {
  font-size: 15.5px;
  line-height: 1.6;
  color: black;
  margin: 16px 0 0;
}

.pillar-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 9px;
}

.pillar-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.45;
  color: black;
}

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

/* ============ COMPOSITE EXPLORER ============ */
.composite.dark {
  background: var(--navy);
  color: #E7ECF4;
}

#composite {
  overflow-x: clip;
  /* clip sideways bleed from the scaled/exploded layers (was the mobile h-scroll) */
  overflow-y: visible;
  /* but keep the exploded stack's vertical overhang */
  padding-top: 64px;
  padding-bottom: 72px;
}

/* breathing room above the composite heading */
#composite>.wrap {
  position: relative;
  z-index: 2;
}

/* keep heading + content above the navy bg layer */
.composite-bg {
  position: absolute;
  inset: 0;
  background: var(--grad-navy);
}

.composite-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 56px;
  align-items: start;
}

.composite-controls {
  align-self: start;
  padding-top: 0;
}

.composite-heading {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: .96;
  color: #fff;
  margin: 0 0 28px;
}

.composite-link {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8FB2F0;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .55em;
  transition: color .15s ease;
}

.composite-link:hover {
  color: #fff;
}

.composite-link span {
  transition: transform .18s ease;
}

.composite-link:hover span {
  transform: translateX(3px);
}

.composite-link-center {
  margin-top: 64px;
}

/* "View all products" now lives under the layer list in .composite-controls,
   so the large margin meant for the old bottom-of-stage position is too much here. */
.composite-controls .composite-link-center {
  margin-top: 32px;
}

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

.layer-row {
  padding: 15px 18px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .18s ease, border-color .18s ease;
}

.layer-row:hover {
  background: rgba(255, 255, 255, .05);
}

.layer-row.is-active {
  background: rgba(44, 99, 196, .16);
  border-color: rgba(127, 176, 238, .4);
}

.lr-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.lr-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3A4D72;
  transition: .18s;
}

.layer-row.is-active .lr-dot {
  background: #7FB0EE;
  box-shadow: 0 0 0 4px rgba(127, 176, 238, .22);
}

.lr-name {
  font-weight: 600;
  font-size: 18px;
  color: #EAF0FA;
}

.lr-meta {
  font-size: 10.5px;
  letter-spacing: .14em;
  color: #7E8BA6;
  text-align: right;
}

.layer-row.is-active .lr-meta {
  color: #9DC0F2;
}

/* description drops down under the active layer name */
.lr-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-left: 28px;
  transition: max-height .4s ease, opacity .3s ease, margin-top .4s ease;
}

.layer-row.is-active .lr-body {
  max-height: 240px;
  opacity: 1;
  margin-top: 12px;
}

.lr-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: #AFBBD0;
  margin: 0;
  max-width: 46ch;
}

.lr-specs {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 10.5px;
  letter-spacing: .12em;
  color: #7E8BA6;
}

.lr-specs em {
  display: block;
  font-style: normal;
  color: #C2CEE2;
  margin-top: 4px;
  letter-spacing: .08em;
}

.composite-stage {
  position: relative;
  text-align: center;
}

/* Combined-result image — sits at the TOP of .composite-stage */
.composite-side-image {
  max-width: 100%;
  height: auto;
  display: inline-block;
  border-radius: 12px;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .35));
}

/* Arrow indicator between the combined image (above) and the exploded stack (below) */
.composite-combine {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 20px 0;
  color: #7FB0EE;
}

.composite-combine-arrow {
  width: 22px;
  height: 30px;
  animation: composite-combine-bounce 1.8s ease-in-out infinite;
}

.composite-combine-label {
  font-size: 10.5px;
  letter-spacing: .18em;
  color: #7E8BA6;
}

@keyframes composite-combine-bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

.stage-frame {
  position: relative;
  margin-top: 50px;
}

/* exploded stack of real layer renders (transparent PNGs) */
.exploded {
  position: relative;
  width: 100%;
  max-width: 366px;
  margin: -68px auto 0;
  height: 324px;
}

/* On narrow phones, cap the stack to the column so the absolute layers can't
   overhang the viewport (was bleeding ~21px left and causing horizontal scroll). */
@media (max-width: 420px) {
  .exploded {
    max-width: 100%;
  }
}

.ex-layer {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--i) * 58px);
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  z-index: calc(10 - var(--i));
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}

.ex-layer img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .5));
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), filter .2s ease;
}

.ex-layer:hover img {
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .55)) brightness(1.05);
}

.ex-layer.is-active img {
  transform: scale(1.23);
}

/* ============ MISSION ============ */
.mission-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}

.mission-statement {
  font-family: var(--semi);
  font-weight: 600;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.24;
  letter-spacing: -.005em;
  color: var(--ink);
  margin: 18px 0 0;
  max-width: 18ch;
}

.mission-statement .hl {
  color: var(--blue);
}

.mission-cols {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-top: 8px;
}

.mc {
  border-top: 2px solid var(--blue);
  padding-top: 14px;
}

.mc .k {
  margin-bottom: 8px;
}

.mc p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}

/* ============ MARKETS ============ */
.markets {
  background: var(--cloud);
  padding-top: 60px;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 56px;
}

.market {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 3/4;
  padding: 0 20px 18px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0B1B36;
  text-decoration: none;
}

.market img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.market:hover img {
  transform: scale(1.05);
}

/* Scrim behind the bottom text; deepens on hover to carry the revealed copy. */
.market::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(11, 27, 54, .94) 0%, rgba(11, 27, 54, .70) 22%, rgba(11, 27, 54, .08) 55%, rgba(11, 27, 54, 0) 78%);
  transition: background .3s ease;
}

.market:hover::after,
.market:focus-within::after {
  background: linear-gradient(to top, rgba(11, 27, 54, .96) 0%, rgba(11, 27, 54, .86) 48%, rgba(11, 27, 54, .40) 82%, rgba(11, 27, 54, .06) 100%);
}

.market .cap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.market .cap .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: #9DC0F2;
}

.market .cap .t {
  font-family: var(--semi);
  font-weight: 600;
  font-size: 19px;
  color: #fff;
  line-height: 1.1;
  margin-top: 4px;
}

/* Description(s) hidden until hover (or keyboard focus). */
.market p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #C2CEE2;
  font-size: 13px;
  line-height: 1.5;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .4s ease, opacity .3s ease, margin-top .4s ease;
}

.market:hover p,
.market:focus-within p {
  max-height: 14em;
  opacity: 1;
  margin-top: 8px;
}

/* Touch devices can't hover — show the descriptions by default. */
@media (hover: none) {
  .market p {
    max-height: 14em;
    opacity: 1;
    margin-top: 8px;
  }
}

/* Industries carousel (Swiper) */
.xc-markets {
  position: relative;
  margin-top: 56px;
}

.xc-markets-swiper .swiper-slide {
  height: auto;
}

.xc-markets-arrow {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: #fff;
  color: var(--blue-deep);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(20, 40, 80, .16);
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.xc-markets-arrow:hover {
  background: var(--blue);
  color: #fff;
}

.xc-markets-prev {
  left: -8px;
}

.xc-markets-next {
  right: -8px;
}

.xc-markets-arrow.swiper-button-disabled {
  opacity: 0;
  pointer-events: none;
}

/* ============ CTA ============ */
.cta.dark {
  background: var(--navy);
  color: #fff;
  text-align: center;
}

.cta-net {
  position: absolute;
  left: 8%;
  top: 20%;
  width: 160px;
  opacity: .5;
}

.cta-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.cta-title {
  font-weight: 700;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: .94;
  color: #fff;
  margin: 16px 0 0;
}

.cta-lead {
  font-family: var(--semi);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.5;
  color: #C2CEE2;
  margin: 22px auto 0;
  max-width: 50ch;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 38px;
}

/* ============ FOOTER ============ */
.foot {
  background: #08152B;
  color: #AFBBD0;
  padding: 72px 0 36px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.foot-brand .logo-plate {
  background: #fff;
  border-radius: 6px;
  padding: 10px 14px;
  display: inline-flex;
}

.foot-brand .logo-plate img {
  height: 38px;
}

.foot-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
}

.foot-brand .foot-apn-logo {
  height: 58px;
}

.foot-brand p {
  font-family: var(--semi);
  font-weight: 500;
  font-size: 17px;
  color: #C2CEE2;
  margin: 20px 0 12px;
}

.foot-endorse {
  font-size: 11px;
  letter-spacing: .22em;
  color: #6FA0F2;
}

.foot-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.foot-col .k {
  color: #6FA0F2;
  margin-bottom: 6px;
}

.foot-col a {
  font-size: 15px;
  color: #AFBBD0;
  text-decoration: none;
  transition: color .15s ease;
}

.foot-col a:hover {
  color: #fff;
}

.foot-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: #5E6C8A;
  text-transform: uppercase;
}

/* ============ RESPONSIVE ============ */
@media (max-width:980px) {
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 80vw);
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(12px);
    padding: 96px 30px 30px;
    transform: translateX(100%);
    transition: transform .28s ease;
    box-shadow: -20px 0 50px rgba(20, 40, 80, .14);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 18px;
    padding: 8px 0;
  }

  .nav-links a.btn {
    padding: 8px 5px;
  }

  .nav-toggle {
    display: flex;
    z-index: 70;
  }

  .composite-grid,
  .mission-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero {
    min-height: auto;
    padding: 130px 0 70px;
  }

  .pillars,
  .strip-inner,
  .market-grid {
    grid-template-columns: 1fr 1fr;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:620px) {
  .section {
    padding: 80px 0;
  }

  .sysblock {
    padding: 60px 0 70px;
  }

  .pillars,
  .strip-inner,
  .market-grid,
  .foot-grid {
    grid-template-columns: 1fr;
  }

  .strip-item {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-top: 22px;
  }

  .strip-item:first-child {
    border-top: none;
  }

  .cta-actions {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }

  .foot-base {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* ============================================================
   PRODUCTS PAGE
   ============================================================ */
.page-hero {
  padding: 116px 0 28px;
  background:
    radial-gradient(120% 80% at 88% -10%, #EAF2FC 0%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(180deg, #FFFFFF 0%, #F5F9FE 100%);
}

.page-hero .sec-head {
  max-width: 820px;
}

.page-hero .page-lead {
  font-size: 15.5px;
  line-height: 1.55;
  margin-top: 12px;
  max-width: 62ch;
}

.products-section {
  padding-top: 28px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}

.product-card {
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 12px;
  padding: 34px 30px;
  background: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(20, 40, 80, .12);
}

.product-mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  letter-spacing: .01em;
  display: flex;
  align-items: baseline;
  gap: .26em;
}

.product-mark .pm-brand {
  color: var(--blue-deep);
}

.product-mark .pm-code {
  color: var(--blue);
}

.product-kind {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 9px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.product-feats {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.product-feats li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}

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

/* comparison table */
.compare {
  background: linear-gradient(180deg, #F4F8FD 0%, #EAF1FA 100%);
}

.table-wrap {
  overflow-x: auto;
  margin-top: 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(20, 40, 80, .08);
  position: relative;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
  font-size: 14.5px;
}

.compare-table th,
.compare-table td {
  text-align: left;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.compare-table thead th {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: 19px;
  color: #fff;
  background: var(--blue);
  border-bottom: 0;
}

.compare-table thead th.ct-attr {
  background: var(--blue-deep);
}

.compare-table tbody th {
  font-family: var(--semi);
  font-weight: 600;
  color: var(--ink);
  background: var(--cloud);
  white-space: nowrap;
}

.compare-table tbody tr:nth-child(even) td {
  background: #FAFBFD;
}

.compare-table td {
  color: var(--ink-2);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-note {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-3);
}

/* Sticky first column (row labels) so they stay visible while scrolling
   horizontally on narrow screens. */
.compare-table th[scope="row"] {
  position: sticky;
  left: 0;
  z-index: 1;
}

.compare-table thead th.ct-attr {
  position: sticky;
  left: 0;
  z-index: 2;
}

/* Visible swipe hint — only shown once the table actually needs to scroll */
.compare-swipe-hint {
  display: none;
}

@media (max-width: 860px) {
  .compare-swipe-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-3);
  }

  .compare-swipe-hint svg {
    width: 16px;
    height: 16px;
    animation: compare-swipe-nudge 1.6s ease-in-out infinite;
  }

  /* Edge fade to reinforce there's more content to the right */
  .table-wrap {
    -webkit-mask-image: linear-gradient(to right, #000 92%, transparent);
    mask-image: linear-gradient(to right, #000 92%, transparent);
  }
}

@keyframes compare-swipe-nudge {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(4px);
  }
}

@media (max-width:980px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

/* Markets lead: keep on one line on desktop */
#markets .sec-head {
  max-width: 920px;
}

#markets .sec-lead {
  max-width: none;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-section {
  padding: 120px 0 100px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: stretch;
}

.about-media {
  margin: 0;
  background: rgb(244, 246, 248);
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
  display: block;
  box-shadow: 0 24px 50px rgba(20, 40, 80, .14);
}

.about-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 64px);
  line-height: .94;
  color: var(--ink);
  margin: 0 0 32px;
}

.about-lead {
  font-family: var(--semi);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.42;
  color: var(--ink);
  margin: 0 0 20px;
}

.about-copy p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 16px;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

@media (max-width:860px) {
  .about-section {
    padding: 104px 0 72px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-media img {
    min-height: 280px;
  }
}

/* Interior pages have no hero behind the nav — keep it solid from the top.
   Frost comes from the ::before rule above (kept off .nav itself). */
body:not(.home) .nav {
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(20, 40, 80, .08);
  padding: 12px 0;
}

/* ============================================================
   RESOURCES PAGE
   ============================================================ */
.resources-section {
  padding-top: 28px;
}

/* ============ TABS ============ */
.res-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.res-tab {
  font-family: var(--semi);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-2);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 4px;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}

.res-tab+.res-tab {
  margin-left: 20px;
}

.res-tab:hover {
  color: var(--ink);
}

.res-tab.is-active {
  color: var(--blue-deep);
  border-bottom-color: var(--blue);
}

.res-panel {
  display: none;
}

.res-panel.is-active {
  display: block;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}

/* Videos get bigger cards — 2 across instead of 3 — since the embedded
   player needs more width to stay legible. */
.resource-grid-videos {
  grid-template-columns: repeat(2, 1fr);
}

.resource-card {
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 12px;
  padding: 30px 28px 32px;
  background: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}

.resource-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(20, 40, 80, .12);
}

.rc-kind {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.rc-title {
  font-weight: 700;
  font-size: 26px;
  line-height: 1.05;
  color: var(--blue-deep);
  margin: 16px 0 0;
}

.rc-code {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 4px;
}

.resource-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 12px 0 0;
}

.rc-body {
  flex: 1 0 auto;
}

.rc-download {
  align-self: flex-start;
  margin-top: 22px;
  font-family: var(--semi);
  font-weight: 600;
  font-size: 14px;
  color: var(--blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: 10px 18px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  transition: background .18s ease, border-color .18s ease, color .18s ease, gap .18s ease;
}

.rc-download:hover {
  border-color: var(--blue);
  background: rgba(27, 75, 156, .05);
  color: var(--blue-deep);
  gap: .7em;
}

/* Video cards reuse .resource-card but need room for the embed.
   Self-contained 16:9 box — does NOT depend on Bootstrap's .ratio utility,
   since that class was not establishing a position:relative container here
   (the button was escaping to the viewport as its containing block). */
.rc-video-embed {
  position: relative;
  width: 100%;
  margin: 14px 0 0;
  border-radius: 8px;
  overflow: hidden;
  background: #0B1B36;
}

.rc-video-embed::before {
  content: "";
  display: block;
  padding-top: 56.25%;
  /* 16:9 */
}

.rc-video-embed>* {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.rc-video-embed iframe {
  border: 0;
  display: block;
}

/* Click-to-play thumbnail: covers the YouTube thumbnail's own red play
   button with our own overlay + play icon, in brand blue-deep. */
.rc-video-trigger {
  padding: 0;
  border: 0;
  background: #0B1B36;
  cursor: pointer;
}

.rc-video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Crops out the YouTube thumbnail's baked-in red play button, which sits
   dead-center — object-fit alone won't hide it, so we scale the image up
   slightly and let the overlay below sit on top as the real visual cue. */
.rc-video-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 27, 54, .28);
  transition: background .2s ease;
}

.rc-video-trigger:hover .rc-video-play {
  background: rgba(11, 27, 54, .42);
}

.rc-video-play svg {
  width: 26px;
  height: 26px;
  color: #fff;
  margin-left: 3px;
  /* optical centering for the triangle shape */
}

.rc-video-play::before {
  content: "";
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue-deep);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
  transition: transform .2s ease;
}

.rc-video-trigger:hover .rc-video-play::before {
  transform: scale(1.08);
}

.rc-video-play svg {
  position: relative;
  z-index: 1;
}

.res-empty {
  grid-column: 1 / -1;
  font-size: 16px;
  color: var(--ink-2);
}

@media (max-width: 980px) {
  .resource-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section {
  padding: 140px 0 120px;
}

.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 56px;
  align-items: start;
}

.contact-copy {
  position: relative;
  z-index: 2;
}

.contact-copy .sec-title {
  margin-top: 0;
}

.contact-copy .sec-lead {
  margin-top: 20px;
  max-width: none;
}

.contact-direct {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.contact-direct-link {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--semi);
  font-weight: 600;
  font-size: 17px;
  color: var(--blue-deep);
  text-decoration: none;
  transition: color .15s ease;
}

.contact-direct-link:hover {
  color: var(--blue);
}

.contact-form-col {
  position: relative;
  z-index: 2;
}

.contact-form-card {
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 12px;
  padding: 36px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(20, 40, 80, .08);
}

@media (max-width: 860px) {
  .contact-section {
    padding: 104px 0 80px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-copy {
    margin-bottom: 0;
  }

  .contact-form-card {
    padding: 26px;
  }
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404-section {
  padding: 160px 0 140px;
  text-align: center;
  background:
    radial-gradient(120% 80% at 50% -10%, #EAF2FC 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, #FFFFFF 0%, #F5F9FE 100%);
}

.error-404-section .sec-head.center {
  max-width: 620px;
}

.error-404-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

@media (max-width: 620px) {
  .error-404-section {
    padding: 120px 0 96px;
  }

  .error-404-actions {
    flex-direction: column;
    align-items: center;
  }

  .error-404-actions .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}