/* Future Health — Layout, Sections, Motion & Responsive Rules */

/* ==========================================================================
   1. Two-Tier Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
}

.header-utility {
  background: var(--navy-950);
  color: rgba(230, 243, 250, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  line-height: 1.4;
  padding-inline: max(4%, calc((100% - var(--content-width)) / 2));
  padding-block: 8px;
  max-height: 44px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: max-height .32s var(--ease), opacity .25s var(--ease), padding-block .32s var(--ease), border-color .25s var(--ease);
}

.header-utility-inner,
.utility-inner {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.utility-sep {
  opacity: 0.4;
}

.header-utility span,
.header-utility a,
.utility-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.header-utility .utility-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-400);
}

.header.is-scrolled .header-utility {
  max-height: 0;
  opacity: 0;
  padding-block: 0;
  border-bottom-color: transparent;
  pointer-events: none;
}

.header-bar {
  height: 76px;
  padding-inline: max(4%, calc((100% - var(--content-width)) / 2));
  background: rgba(6, 24, 59, 0.72);
  color: #ffffff;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), height .3s var(--ease);
}

.header.is-scrolled .header-bar {
  height: 70px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 34px rgba(6, 24, 59, 0.08);
}

.header .brand .official-logo,
.site-footer .brand .official-logo,
footer .brand .official-logo {
  width: 210px;
  height: auto;
  max-height: 50px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  padding: 0;
  filter: brightness(0) invert(1);
  transition: filter .25s var(--ease);
}

.header.is-scrolled .brand .official-logo {
  filter: none;
}

.header nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 26px);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.header nav a {
  position: relative;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.88);
  border-bottom: 2px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.header nav a:hover,
.header nav a[aria-current="page"] {
  color: #ffffff;
  border-bottom-color: var(--cyan-400);
}

.header.is-scrolled nav a {
  color: var(--steel);
}

.header.is-scrolled nav a:hover,
.header.is-scrolled nav a[aria-current="page"] {
  color: var(--royal);
  border-bottom-color: var(--royal);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.language {
  min-width: 44px;
  min-height: 40px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}

.language:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--cyan-400);
}

.header.is-scrolled .language {
  background: var(--sand);
  border-color: var(--line);
  color: var(--ink);
}

.header.is-scrolled .language:hover {
  border-color: var(--royal);
  color: var(--royal);
}

.header .compact {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 13px;
  white-space: nowrap;
  background: var(--cyan-400);
  border-color: var(--cyan-400);
  color: var(--navy-950);
  box-shadow: 0 8px 22px rgba(101, 196, 226, 0.28);
}

.header .compact:hover {
  background: var(--cyan-300);
  border-color: var(--cyan-300);
  color: var(--navy-950);
}

.header.is-scrolled .compact {
  background: var(--royal);
  border-color: var(--royal);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(18, 74, 175, 0.24);
}

.header.is-scrolled .compact:hover {
  background: var(--royal-500);
  border-color: var(--royal-500);
}

.menu {
  display: none;
}

/* ==========================================================================
   2. Cinematic Hero
   ========================================================================== */
.hero.cinematic {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--navy-950);
  color: #ffffff;
  min-height: min(94svh, 920px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(134px, 14vh, 168px) max(5%, calc((100% - var(--content-width)) / 2)) clamp(56px, 7vh, 84px);
}

/* Ambient Hero & Section Orbs + Reticles */
.hero-orb,
.hero.cinematic .hero-orb,
.hero.cinematic .orb,
.engineering-orb,
.engineering .orb,
.partners-banner .orb,
.partners-banner .banner-orb,
.products-hero .orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(88px);
}

.hero-orb {
  width: 480px;
  height: 480px;
  top: -120px;
  inset-inline-end: -100px;
  background: radial-gradient(circle, rgba(101, 196, 226, 0.22), transparent 70%);
}

.hero-orb-a,
.hero.cinematic .orb-1 {
  width: 520px;
  height: 520px;
  top: -140px;
  inset-inline-start: -120px;
  inset-inline-end: auto;
  background: radial-gradient(circle, rgba(29, 99, 220, 0.42), transparent 70%);
}

.hero-orb-b,
.hero.cinematic .orb-2 {
  width: 440px;
  height: 440px;
  top: auto;
  bottom: -100px;
  inset-inline-end: -80px;
  background: radial-gradient(circle, rgba(101, 196, 226, 0.2), transparent 70%);
}

.banner-orb-a {
  width: 380px;
  height: 380px;
  top: -120px;
  inset-inline-end: -80px;
  background: radial-gradient(circle, rgba(101, 196, 226, 0.24), transparent 70%);
}

.banner-orb-b {
  width: 320px;
  height: 320px;
  bottom: -120px;
  inset-inline-start: -60px;
  background: radial-gradient(circle, rgba(29, 99, 220, 0.34), transparent 70%);
}

.hero-reticle {
  position: absolute;
  width: 26px;
  height: 26px;
  border-top: 1px solid rgba(142, 216, 239, 0.32);
  border-inline-start: 1px solid rgba(142, 216, 239, 0.32);
  pointer-events: none;
  z-index: 1;
}

.reticle-a {
  top: 122px;
  inset-inline-start: 4%;
}

.reticle-b {
  bottom: 92px;
  inset-inline-end: 4%;
  transform: rotate(180deg);
}

.engineering-orb {
  width: 520px;
  height: 520px;
  top: -140px;
  inset-inline-end: -120px;
  background: radial-gradient(circle, rgba(101, 196, 226, 0.2), transparent 68%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 4.5vw, 60px);
  align-items: center;
}

.hero-copy {
  min-width: 0;
  transform: translateY(var(--hero-copy-y, 0px));
  will-change: transform;
}

.eyebrow-pill,
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(142, 216, 239, 0.28);
  color: var(--cyan-300);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 22px;
  animation: hero-entry .35s var(--ease) 0s both;
}

.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-400);
  flex-shrink: 0;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--cyan-400);
  animation: pulse-ring 2.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.7);
    opacity: 0.95;
  }
  75%,
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.hero.cinematic h1 {
  font-size: clamp(38px, 4.5vw, 66px);
  line-height: 1.18;
  margin: 0 0 20px;
  color: #ffffff;
  animation: hero-entry .35s var(--ease) 0s both;
}

[dir="ltr"] .hero.cinematic h1 {
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.hero.cinematic .hero-copy > p {
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.85;
  color: rgba(230, 243, 250, 0.84);
  max-width: 540px;
  margin: 0;
  animation: hero-entry .35s var(--ease) 0s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  animation: hero-entry .35s var(--ease) 0s both;
}

.hero.cinematic .button:not(.ghost) {
  background: var(--cyan-400);
  border-color: var(--cyan-400);
  color: var(--navy-950);
  box-shadow: 0 12px 30px rgba(101, 196, 226, 0.3);
}

.hero.cinematic .button:not(.ghost):hover {
  background: var(--cyan-300);
  border-color: var(--cyan-300);
  color: var(--navy-950);
}

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  animation: hero-entry .35s var(--ease) 0s both;
}

.hero-kpis > *,
.hero-kpi {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-kpis strong,
.hero-kpi strong,
.hero-kpi dt {
  display: block;
  font-family: 'Sora', 'Plex', sans-serif;
  font-size: clamp(16px, 1.45vw, 21px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  white-space: nowrap;
}

.hero-kpis span,
.hero-kpis small,
.hero-kpi span,
.hero-kpi small,
.hero-kpi dd {
  display: block;
  font-size: 12px;
  color: var(--cyan-300);
  margin: 4px 0 0;
  line-height: 1.4;
}

/* Hero Media Stage & Floating Glass Badges */
.hero-media {
  position: relative;
  min-width: 0;
  transform: translateY(var(--hero-media-y, 0px));
  will-change: transform;
  animation: scene-focus .4s var(--ease) 0s both;
}

.hero-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.35;
  min-height: 430px;
  max-height: 560px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--navy-900);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(101, 196, 226, 0.12);
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 24, 59, 0.06) 0%, transparent 48%, rgba(6, 24, 59, 0.86) 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-world,
.hero-slideshow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.15s var(--ease);
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 84%;
}

.hero-slide:nth-child(2) img {
  object-position: center 74%;
}

.hero-slide:nth-child(3) img {
  object-position: center 68%;
}

.hero-frame-caption,
.hero-frame .device-caption {
  position: absolute;
  inset-inline: 20px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: rgba(230, 243, 250, 0.9);
}

.hero-frame-caption strong {
  display: block;
  font-size: 13px;
  color: #ffffff;
}

.hero-frame-caption small {
  display: block;
  font-size: 11px;
  color: rgba(230, 243, 250, 0.8);
}

.hero-frame-caption .frame-tag,
.hero-frame-caption .caption-tag,
.hero-frame-caption code {
  font-family: 'Sora', monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(6, 24, 59, 0.72);
  border: 1px solid rgba(101, 196, 226, 0.38);
  color: var(--cyan-300);
  direction: ltr;
  white-space: nowrap;
}

.hero-float-badges {
  display: contents;
}

.hero-float-badge {
  position: absolute;
  z-index: 4;
  padding: 12px 16px;
  border-radius: 16px;
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(6, 24, 59, 0.42);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 245px;
  font-size: 13px;
  line-height: 1.4;
}

.hero-float-badge strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.hero-float-badge span,
.hero-float-badge small {
  display: block;
  font-size: 11px;
  color: var(--cyan-300);
}

.hero-float-badge .badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 12px var(--cyan-400);
  flex-shrink: 0;
}

.float-badge-a,
.hero-float-badge:nth-of-type(1) {
  top: 18px;
  inset-inline-start: 18px;
  animation: float 6s ease-in-out infinite;
}

.float-badge-b,
.hero-float-badge:nth-of-type(2) {
  top: 18px;
  inset-inline-end: 18px;
  animation: float-late 7.2s ease-in-out 0.9s infinite;
}

.float-badge-c,
.hero-float-badge:nth-of-type(3) {
  bottom: 80px;
  inset-inline-start: 18px;
  animation: float 6.6s ease-in-out 1.6s infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-9px);
  }
}

@keyframes float-late {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-11px);
  }
}

.scroll-cue-bottom {
  position: relative;
  z-index: 2;
  margin-top: clamp(28px, 4vh, 48px);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(230, 243, 250, 0.78);
  font-size: 12px;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  transition: color .2s var(--ease);
}

.scroll-cue:hover {
  color: var(--cyan-300);
}

.scroll-line {
  width: 1.5px;
  height: 22px;
  background: var(--cyan-400);
}

.hero-signature {
  direction: ltr;
  font-size: 12px;
  color: rgba(230, 243, 250, 0.72);
}

.pulse {
  width: 140px;
  height: 26px;
  color: var(--cyan-400);
}

.pulse path {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: ecg-draw 2.4s var(--ease) .5s forwards, ecg-glow 3.6s ease-in-out 2.9s infinite;
}

@keyframes hero-entry {
  from {
    opacity: 0.92;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes scene-focus {
  from {
    opacity: 0.92;
    transform: scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ecg-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes ecg-glow {
  0%,
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 0 transparent);
  }
  50% {
    opacity: 0.78;
    filter: drop-shadow(0 0 6px var(--cyan-400));
  }
}

@keyframes panel-entry {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   3. Domain Marquee
   ========================================================================== */
.domain-marquee {
  background: var(--navy-950);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 18px;
  overflow: hidden;
  direction: ltr;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
  will-change: transform;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
}

.domain-marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group > span:not(.marquee-plus),
.marquee-track > span:not(.marquee-plus),
.marquee-item {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.marquee-plus {
  color: var(--amber);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

@keyframes marquee-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ==========================================================================
   4. About & Purpose / Values
   ========================================================================== */
.about {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
}

.about > *:not(.outline-word-dark) {
  position: relative;
  z-index: 1;
}

.about .outline-word-dark {
  position: absolute;
  top: 22px;
  inset-inline-end: 4%;
  font-size: clamp(72px, 12vw, 172px);
  z-index: 0;
}

.about .company-story {
  font-size: 18px;
  line-height: 1.95;
  color: var(--ink);
  margin: 0;
}

.about-body .text-link {
  margin-top: 20px;
}

.about-tagline {
  margin: 16px 0 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--royal);
}

.purpose {
  background: var(--sand);
  position: relative;
}

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

.purpose-card,
.value-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(24px, 3vw, 36px);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.purpose-card:hover,
.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-raised);
  border-color: rgba(101, 196, 226, 0.7);
}

.purpose-card.vision {
  background: linear-gradient(145deg, var(--navy-900) 0%, var(--royal) 100%);
  border-color: rgba(101, 196, 226, 0.28);
  color: #ffffff;
}

.purpose-card h3 {
  font-size: clamp(24px, 2.2vw, 31px);
  margin: 20px 0 12px;
}

.purpose-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
  position: relative;
  z-index: 1;
}

.purpose-card.vision p {
  color: rgba(230, 243, 250, 0.88);
}

.card-blob {
  position: absolute;
  top: -54px;
  inset-inline-end: -54px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(101, 196, 226, 0.22) 0%, transparent 70%);
  pointer-events: none;
  transition: transform .45s var(--ease);
}

.purpose-card:hover .card-blob,
.value-card:hover .card-blob {
  transform: scale(1.25);
}

.card-icon,
.card-icon-grad {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--royal) 0%, var(--cyan-400) 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(18, 74, 175, 0.22);
  transition: transform .4s var(--ease);
}

.card-icon svg,
.card-icon-grad svg {
  width: 24px;
  height: 24px;
}

.purpose-card.vision .card-icon,
.purpose-card.vision .card-icon-grad {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--cyan-300);
  box-shadow: none;
}

.purpose-card:hover .card-icon,
.purpose-card:hover .card-icon-grad,
.value-card:hover .card-icon,
.value-card:hover .card-icon-grad {
  transform: rotate(-6deg) scale(1.1);
}

.card-num {
  position: absolute;
  top: 22px;
  inset-inline-end: 22px;
  font-family: 'Sora', sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: rgba(18, 74, 175, 0.12);
  pointer-events: none;
  user-select: none;
}

.purpose-card.vision .card-num {
  color: rgba(255, 255, 255, 0.14);
}

.values-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin: 56px 0 26px;
}

.values-heading h3 {
  font-size: clamp(24px, 2.2vw, 30px);
}

.values-heading p {
  max-width: 380px;
  margin: 0;
  font-size: 15px;
}

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

.value-card h3 {
  font-size: 20px;
  margin: 18px 0 10px;
}

.value-card p {
  font-size: 14px;
  line-height: 1.85;
  margin: 0;
  position: relative;
  z-index: 1;
}

.standards-note {
  display: block;
  font-size: 12px;
  color: var(--steel);
  margin-top: 22px;
}

/* ==========================================================================
   5. Solutions Interactive Explorer
   ========================================================================== */
.solutions {
  background-color: var(--sand);
  position: relative;
}

.solution-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: stretch;
  background: #ffffff;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-card);
}

.solution-visual {
  min-width: 0;
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 100%);
  color: #e6f3fa;
  border-radius: 18px;
  overflow: hidden;
  padding: 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 490px;
  box-shadow: 0 14px 36px rgba(6, 24, 59, 0.22);
}

.solution-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(142, 216, 239, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 216, 239, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 1;
}

.instrument-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--cyan-300);
  position: relative;
  z-index: 2;
}

.instrument-label span:last-child {
  font-size: 20px;
  line-height: 1;
}

.device-detail {
  position: relative;
  min-height: 310px;
  flex: 1;
  margin: 18px -22px;
  overflow: hidden;
}

.device-detail img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .5s var(--ease);
}

.solution-visual[data-service="parts"] .device-detail {
  background: #f7fafd;
}

.solution-visual[data-service="parts"] .device-detail img {
  object-fit: contain;
  object-position: center;
  padding: 14px;
}

.device-detail::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--navy-900) 0%, transparent 22%, transparent 80%, var(--navy-950) 100%);
  pointer-events: none;
}

.solution-visual:hover .device-detail img {
  transform: scale(1.03);
}

.detail-target {
  position: absolute;
  inset: 14% 15%;
  border: 1px solid rgba(101, 196, 226, 0.35);
  border-radius: 10px;
  z-index: 1;
  pointer-events: none;
}

.detail-target.is-locking {
  animation: reticle-lock .55s var(--ease) both;
}

@keyframes reticle-lock {
  from {
    opacity: 0;
    transform: scale(1.22);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.visual-caption {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 14px;
}

.visual-caption > span {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}

.visual-caption small {
  font-size: 12px;
  color: rgba(230, 243, 250, 0.72);
}

.visual-caption small a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.solution-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.solution-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  text-align: start;
  min-height: 52px;
  color: var(--steel);
  font-weight: 500;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.solution-tab[aria-selected="true"] {
  background: var(--royal);
  color: #ffffff;
  border-color: var(--royal);
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(18, 74, 175, 0.24);
}

.solution-tab:hover:not([aria-selected="true"]) {
  background: var(--mint);
  color: var(--ink);
}

.solution-panel {
  animation: panel-entry .28s var(--ease);
}

.solution-kicker {
  display: block;
  color: var(--royal);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.solution-panel h3 {
  font-size: clamp(24px, 2.2vw, 30px);
  margin-bottom: 12px;
}

.solution-panel > p {
  font-size: 15px;
  line-height: 1.85;
}

.solution-panel ul {
  list-style: none;
  padding: 0;
  margin: 22px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.solution-panel ul:has(li:nth-child(5)),
.solution-panel ul:has(li:nth-child(3):last-child) {
  grid-template-columns: 1fr;
}

.solution-panel li {
  font-size: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  line-height: 1.75;
  color: var(--ink);
}

.solution-panel li::before {
  content: '+';
  color: var(--royal);
  font-weight: 700;
  margin-inline-end: 8px;
}

.service-preparation {
  padding: 15px 18px;
  border-inline-start: 3px solid var(--royal);
  background: var(--mint);
  border-radius: 10px;
  margin: 20px 0;
}

.service-preparation strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.service-preparation p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--steel);
}

.service-request,
.solution-panel > a {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
  color: var(--royal);
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1.5px solid var(--royal);
  transition: gap .2s var(--ease), color .2s var(--ease);
}

.service-request:hover,
.solution-panel > a:hover {
  gap: 24px;
  color: var(--royal-500);
}

.service-scope {
  margin-top: 18px;
}

.service-scope summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--steel);
  min-height: 44px;
}

.service-scope summary::-webkit-details-marker {
  display: none;
}

.service-scope summary::after {
  content: '+';
  color: var(--royal);
  font-size: 20px;
}

.service-scope[open] summary::after {
  content: '−';
}

/* ==========================================================================
   6. Featured Products & Accessible Product Modal
   ========================================================================== */
.featured-products {
  background-color: #ffffff;
  position: relative;
}

.featured-heading-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: 400px;
}

.featured-heading-aside p {
  margin: 0;
  font-size: 15.5px;
}

.featured-products .catalog-toolbar,
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding: 14px 18px;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.catalog-count {
  font-family: 'Sora', 'Plex', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--royal);
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.product-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.filter-button:hover {
  border-color: var(--royal);
  color: var(--royal);
}

.filter-button[aria-pressed="true"] {
  background: var(--royal);
  border-color: var(--royal);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(18, 74, 175, 0.24);
}

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

.product-card,
.product-grid article {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.product-card:hover,
.product-grid article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-raised);
  border-color: rgba(101, 196, 226, 0.72);
}

.product-card img,
.product-grid article img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: contain;
  background: #ffffff;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  transition: transform .4s var(--ease);
}

.product-card:hover img,
.product-grid article:hover img {
  transform: scale(1.04);
}

.featured-badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--amber);
  color: var(--navy-950);
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(230, 154, 69, 0.32);
}

.product-card .body,
.product-grid .body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 20px 20px;
  gap: 10px;
}

.card-meta,
.product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-media {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px 12px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.product-media img {
  flex: 0 0 100%;
  border-bottom: 0 !important;
  padding: 8px 6px 4px !important;
  height: 205px !important;
}

.sku-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--sand);
  border: 1px solid var(--line);
  color: var(--steel);
  font-family: 'Sora', monospace;
  font-size: 11px;
  font-weight: 600;
  direction: ltr;
}

.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--mint);
  color: var(--royal);
  font-size: 11px;
  font-weight: 600;
}

.product-card h3,
.product-grid h3,
.product-grid h2 {
  font-size: 18px;
  line-height: 1.4;
  margin: 0;
  color: var(--ink);
}

.product-card .en,
.product-grid .en {
  direction: ltr;
  text-align: start;
  font-size: 12px;
  color: var(--steel);
  margin: 0;
}

[lang="en"] .product-grid .en {
  display: none;
}

.product-card .body p:not(.en),
.product-grid .body p:not(.en) {
  font-size: 13.5px;
  line-height: 1.75;
  margin: 0;
  flex: 1;
}

.card-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.details-btn {
  flex: 1 1 auto;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--sand);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}

.details-btn:hover {
  background: var(--royal);
  border-color: var(--royal);
  color: #ffffff;
}

.quote-link {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(18, 74, 175, 0.22);
  background: transparent;
  color: var(--royal);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}

.quote-link:hover {
  background: var(--mint);
  border-color: var(--royal);
}

.featured-products-footer {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

/* Accessible Product Modal (#product-modal.product-modal) */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vw, 32px);
  border: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear .32s;
}

.product-modal[hidden] {
  display: none !important;
}

.product-modal.is-open,
.product-modal[open],
#product-modal.is-open,
#product-modal[open] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 24, 59, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .32s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-modal.is-open .modal-backdrop,
.product-modal[open] .modal-backdrop {
  opacity: 1;
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  max-height: min(88dvh, 740px);
  overflow-y: auto;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 32px 90px rgba(6, 24, 59, 0.45);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  opacity: 0;
  transform: translateY(22px) scale(0.95);
  transition: transform .36s cubic-bezier(0.22, 1, 0.36, 1), opacity .28s ease;
}

.product-modal.is-open .modal-dialog,
.product-modal[open] .modal-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-media {
  background: var(--sand);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-inline-end: 1px solid var(--line);
  min-height: 280px;
}

.modal-media img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.modal-body {
  padding: clamp(22px, 3.5vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-body h3,
.modal-body h2 {
  font-size: clamp(22px, 2vw, 28px);
  color: var(--ink);
}

.modal-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}

.modal-specs {
  margin: 6px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.modal-specs > div,
.modal-specs > li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.modal-specs dt,
.modal-specs span:first-child {
  color: var(--steel);
}

.modal-specs dd,
.modal-specs strong,
.modal-specs span:last-child {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  text-align: end;
}

.modal-close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), transform .25s var(--ease);
}

.modal-close:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #ffffff;
  transform: rotate(90deg);
}

/* ==========================================================================
   7. Biomedical Engineering & Calibration Gallery
   ========================================================================== */
.engineering {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--navy-900);
  color: #ffffff;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4.5vw, 56px);
  row-gap: 44px;
  align-items: stretch;
}

.engineering .section-label {
  color: var(--cyan-300);
}

.engineering h2 {
  color: #ffffff;
}

.engineering-intro {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.engineering-intro .button {
  align-self: flex-start;
  margin-bottom: 28px;
}

.engineering-intro p {
  font-size: 16px;
  line-height: 1.9;
  color: rgba(230, 243, 250, 0.84);
  margin: 18px 0 24px;
}

.engineering::before {
  content: "";
  position: absolute;
  width: 540px;
  height: 540px;
  top: -160px;
  inset-inline-end: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(101, 196, 226, 0.18), transparent 68%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.engineering-orbit {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  z-index: 0;
  pointer-events: none;
}

.engineering-orbit i {
  position: absolute;
  width: 680px;
  height: 680px;
  border: 1px dashed rgba(142, 216, 239, 0.35);
  border-radius: 50%;
  inset-inline-end: 22%;
  top: -110px;
  animation: orbit-drift 48s linear infinite;
  transform-origin: center;
}

.engineering-orbit i:nth-child(2) {
  width: 900px;
  height: 900px;
  top: -220px;
  inset-inline-end: 12%;
  animation-duration: 64s;
  animation-direction: reverse;
}

.engineering-orbit i:nth-child(3) {
  width: 1120px;
  height: 1120px;
  top: -330px;
  inset-inline-end: 2%;
  animation-duration: 84s;
}

@keyframes orbit-drift {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.engineering-cards-2x2 {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.engineering-cards-2x2 > article,
.engineering-cards-2x2 > .glass {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px;
  border-radius: 18px;
  transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}

.engineering-cards-2x2 > article:hover,
.engineering-cards-2x2 > .glass:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(101, 196, 226, 0.42);
}

.engineering-cards-2x2 h3 {
  font-size: 19px;
  color: #ffffff;
  margin: 12px 0 8px;
}

.engineering-cards-2x2 p {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(230, 243, 250, 0.8);
  margin: 0;
}

.engineering-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(101, 196, 226, 0.16);
  color: var(--cyan-300);
  font-size: 20px;
}

/* Fallback if .engineering-services is also used */
.engineering-services {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.engineering-services article {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 22px;
}

.engineering-services h3,
.engineering-services p {
  padding-inline-start: 48px;
}

.engineering-services h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.engineering-services p {
  font-size: 14px;
  color: rgba(230, 243, 250, 0.8);
  margin: 0;
}

.engineering-services .engineering-icon {
  position: absolute;
  top: 22px;
  inset-inline-start: 20px;
}

.engineering-showcase {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(6, 24, 59, 0.72);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.showcase-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 240px;
  overflow: hidden;
  background: var(--navy-950);
}

.showcase-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 24, 59, 0.12) 0%, rgba(6, 24, 59, 0.52) 100%);
  pointer-events: none;
}

.showcase-media > img,
.engineering-showcase > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}

.factory-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--amber);
  color: var(--navy-950);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.engineering-showcase .factory-badge {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  z-index: 3;
}

.engineering-showcase .glass,
.management-overlay {
  position: static;
  flex: 1;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
}

.engineering-showcase .glass h3,
.management-overlay h3 {
  font-size: 20px;
  color: #ffffff;
  margin: 0;
}

.engineering-showcase .glass p,
.management-overlay p {
  font-size: 14px;
  color: rgba(230, 243, 250, 0.85);
  margin: 0;
  max-width: 760px;
}

.management-overlay strong {
  font-size: 13px;
  color: var(--cyan-300);
}

.calibration-gallery {
  grid-column: 1 / -1;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.calibration-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.calibration-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .7s var(--ease);
}

.calibration-gallery figure:hover img {
  transform: scale(1.04);
}

.calibration-gallery figure:last-child img {
  object-position: center 40%;
}

.calibration-gallery figcaption {
  padding: 14px 18px;
  color: var(--mint);
  font-size: 14px;
  font-weight: 500;
}

/* ==========================================================================
   8. Partners Marquee Rail
   ========================================================================== */
.partners-section {
  position: relative;
  overflow: hidden;
  background: var(--sand);
}

.partners-heading {
  max-width: 720px;
}

.partners-heading h2 {
  margin-bottom: 10px;
}

.partners-heading p {
  margin: 0;
}

.partners-swipe {
  display: none;
}

.partners-viewport {
  margin-top: 34px;
  overflow: hidden;
  direction: rtl;
  touch-action: pan-y;
  cursor: grab;
  padding: 6px 0 14px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.partners-viewport:active {
  cursor: grabbing;
}

.partners-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  width: max-content;
  display: grid;
  grid-template-rows: 122px;
  grid-auto-flow: column;
  grid-auto-columns: 196px;
  gap: 14px;
  direction: rtl;
}

.partner-logo {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}

.partner-logo:hover {
  border-color: var(--cyan-400);
  box-shadow: 0 12px 28px rgba(18, 74, 175, 0.08);
  transform: translateY(-3px);
}

.partner-logo img {
  display: block;
  width: 100%;
  height: 70px;
  object-fit: contain;
  transition: transform .35s var(--ease);
}

.partner-logo:hover img {
  transform: scale(1.04);
}

.partner-logo-dark {
  background: var(--navy-900);
  border-color: rgba(255, 255, 255, 0.14);
}

.partner-logo-dark span {
  color: #ffffff;
}

.partner-logo .partner-reference {
  display: block;
  flex: none;
  background-image: url('assets/partners/reference-sheet.png');
  background-repeat: no-repeat;
  background-size: 961px 497px;
}

.partner-logo .partner-darafia {
  width: 165px;
  height: 65px;
  background-position: -570px -393px;
  transform: scale(0.72);
}

/* ==========================================================================
   9. Care Path, Why Us & Light-to-Dark Invert Cards
   ========================================================================== */
.care-path {
  background: #ffffff;
  padding-bottom: 48px;
}

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

.journey article {
  position: relative;
  border-top: 2px solid var(--line);
  padding-top: 26px;
}

.journey article::before {
  content: '';
  position: absolute;
  top: -6px;
  inset-inline-start: 0;
  width: 11px;
  height: 11px;
  background: var(--royal);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 3px var(--mint);
  border-radius: 50%;
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.journey article.reveal-pending::before {
  transform: scale(0);
}

.journey article.is-visible::before {
  transform: scale(1);
}

.journey article > span {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--royal);
}

.journey h3 {
  font-size: 22px;
  margin: 10px 0 8px;
}

.journey p {
  font-size: 15px;
  margin: 0;
}

.why-us {
  background: #ffffff;
  padding-top: 40px;
}

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

.why-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 24px;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 22px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}

.why-card h3 {
  font-size: 20px;
  margin: 20px 0 10px;
}

.why-card p {
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

/* Light-to-Dark Hover Inversion (.invert-card) */
.invert-card {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}

.invert-card p {
  color: var(--steel);
  transition: color .35s var(--ease);
}

.invert-card .card-icon,
.invert-card .card-icon-grad {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--royal);
  box-shadow: var(--shadow);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}

.invert-card:hover {
  background: var(--navy-900);
  border-color: rgba(101, 196, 226, 0.36);
  color: #ffffff;
  transform: translateY(-6px);
  box-shadow: 0 24px 52px rgba(6, 24, 59, 0.22);
}

.invert-card:hover h3,
.invert-card:hover h4,
.invert-card:hover strong {
  color: #ffffff;
}

.invert-card:hover p {
  color: rgba(230, 243, 250, 0.84);
}

.invert-card:hover .card-icon,
.invert-card:hover .card-icon-grad {
  background: var(--cyan-400);
  border-color: var(--cyan-400);
  color: var(--navy-950);
  transform: rotate(-6deg) scale(1.08);
}

/* ==========================================================================
   10. Partners CTA Banner
   ========================================================================== */
.partners-banner-wrap {
  padding: clamp(28px, 4vw, 56px) max(5%, calc((100% - var(--content-width)) / 2));
  background: #ffffff;
}

.partners-banner {
  position: relative;
  overflow: hidden;
  background-color: var(--navy-900);
  color: #ffffff;
  border-radius: 2.5rem;
  padding: clamp(32px, 5vw, 60px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 70px rgba(6, 24, 59, 0.24);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.partners-banner::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  top: -120px;
  inset-inline-end: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(101, 196, 226, 0.24), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.partners-banner > * {
  position: relative;
  z-index: 1;
}

.partners-banner .section-label {
  color: var(--cyan-300);
}

.partners-banner h2 {
  color: #ffffff;
  font-size: clamp(26px, 3vw, 40px);
  margin-bottom: 12px;
}

.partners-banner p {
  color: rgba(230, 243, 250, 0.84);
  max-width: 600px;
  margin: 0;
}

.banner-copy {
  flex: 1 1 480px;
}

.banner-action {
  flex: 0 0 auto;
}

.banner-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.banner-pills > span,
.banner-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--cyan-300);
  font-size: 13px;
  font-weight: 500;
}

/* ==========================================================================
   11. Contact & 3-Step Request Flow
   ========================================================================== */
.contact {
  background-color: #ffffff;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}

.contact-side {
  min-width: 0;
}

.contact > div > p,
.contact-side > p {
  margin-top: 16px;
  font-size: 16px;
}

.contact-info-kicker {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--royal);
  margin-bottom: 4px;
}

.contact-info-cards {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.contact-info-card {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
}

.contact-info-card strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 4px;
}

.contact-info-card p {
  margin: 0;
  font-size: 13.5px;
}

.prototype-note {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.prototype-note > span {
  font-size: 13px;
  font-weight: 700;
  color: var(--royal);
}

.prototype-note p {
  font-size: 13px;
  margin: 6px 0 0;
}

#request-form,
.contact form {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: clamp(22px, 3.5vw, 36px);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  min-width: 0;
}

.request-steps {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 26px;
}

.request-steps li {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  color: var(--steel);
}

.request-steps li b {
  font-weight: 500;
}

.request-steps li > span {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.request-steps li.active {
  border-color: var(--royal);
  color: var(--ink);
}

.request-steps li.active > span,
.request-steps li.complete > span {
  background: var(--royal);
  color: #ffffff;
  border-color: var(--royal);
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  width: 100%;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 20px;
  padding: 0;
  color: var(--ink);
  scroll-margin-top: 120px;
}

legend:focus {
  outline: none;
}

form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 18px;
  min-width: 0;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--sand);
  border-radius: 10px;
  font-size: 15px;
  min-height: 48px;
  padding: 11px 14px;
  scroll-margin-top: 120px;
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}

input:focus,
select:focus,
textarea:focus {
  background: #ffffff;
  border-color: var(--royal);
  box-shadow: 0 0 0 3px rgba(18, 74, 175, 0.12);
  outline: none;
}

textarea {
  resize: vertical;
}

.service-help {
  font-size: 14px;
  margin: 10px 0 20px;
  color: var(--royal);
  font-weight: 500;
}

.request-assurance {
  padding: 16px 18px;
  background: var(--mint);
  border: 1px solid rgba(101, 196, 226, 0.35);
  border-radius: 12px;
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}

.request-assurance > span {
  font-size: 20px;
  color: var(--royal);
}

.request-assurance p {
  font-size: 13.5px;
  margin: 0;
  color: var(--ink);
}

.flow-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.flow-actions .button {
  flex: 1;
}

.flow-actions .text-link {
  border: 0;
  border-bottom: 1.5px solid var(--royal);
  background: none;
  cursor: pointer;
  min-width: 44px;
  font-size: 15px;
}

.field-error {
  font-size: 13px;
  line-height: 1.6;
  color: #b42318;
}

[aria-invalid="true"] {
  border-color: #d92d20;
  background: #fffbfa;
}

#request-error {
  color: #b42318;
  font-size: 14px;
  font-weight: 500;
}

#request-error:empty,
#form-status:empty {
  display: none;
}

#form-status {
  padding: 15px 18px;
  color: var(--royal);
  background: var(--mint);
  border: 1px solid var(--cyan-400);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 20px;
}

#request-review {
  margin: 0 0 22px;
}

#request-review > div {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

#request-review dt {
  color: var(--steel);
}

#request-review dd {
  margin: 0;
  font-weight: 500;
  color: var(--ink);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.review-note {
  padding: 15px 18px;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13.5px;
}

/* ==========================================================================
   12. Site Footer
   ========================================================================== */
.site-footer,
footer {
  position: relative;
  overflow: hidden;
  background: var(--navy-950);
  color: #ffffff;
  padding: clamp(56px, 7vw, 88px) max(5%, calc((100% - var(--content-width)) / 2)) 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand-col,
.footer-brand,
.footer-col {
  min-width: 0;
}

.footer-brand-col p,
.footer-brand p {
  margin-top: 14px;
  max-width: 300px;
}

.footer-grid h3,
.footer-grid h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan-300);
  margin-bottom: 14px;
}

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

.footer-grid li,
.footer-grid p {
  font-size: 14px;
  color: rgba(230, 243, 250, 0.78);
  margin: 0;
}

.footer-grid a:hover {
  color: var(--cyan-300);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 10px;
  font-size: 13px;
  color: rgba(230, 243, 250, 0.72);
}

.footer-bottom p,
.footer-bottom small {
  margin: 0;
  color: inherit;
  font-size: 13px;
}

.back-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan-300);
}

.back-top:hover {
  color: #ffffff;
}

.site-footer .outline-word,
.footer-wordmark {
  display: block;
  width: 100%;
  text-align: center;
  direction: ltr;
  font-size: clamp(44px, 11vw, 160px);
  line-height: 0.92;
  margin-top: 18px;
}

/* ==========================================================================
   13. About / Company Subpage & Evidence Section
   ========================================================================== */
.company-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--navy-950);
  color: #ffffff;
  padding: clamp(138px, 15vh, 178px) max(5%, calc((100% - var(--content-width)) / 2)) clamp(64px, 8vh, 96px);
}

.company-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--content-width);
  margin-inline: auto;
}

.company-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
}

.company-intro-head,
.company-intro-copy {
  min-width: 0;
}

.company-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.company-hero .section-label {
  color: var(--cyan-300);
}

.company-hero h1 {
  color: #ffffff;
  max-width: 820px;
  margin-bottom: 16px;
}

.company-hero .company-story,
.company-hero p {
  color: rgba(230, 243, 250, 0.84);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.9;
  max-width: 720px;
  margin: 0;
}

.company-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--cyan-300);
  margin-bottom: 22px;
}

.company-breadcrumb a:hover {
  text-decoration: underline;
}

.history-section {
  background: var(--sand);
}

.history-list {
  display: grid;
  gap: 16px;
}

.history-list article {
  display: grid;
  grid-template-columns: minmax(170px, 0.35fr) 1fr;
  gap: 28px;
  align-items: start;
  padding: clamp(22px, 3vw, 32px);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.history-list time {
  direction: ltr;
  text-align: start;
  font-family: 'Sora', sans-serif;
  color: var(--royal);
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 700;
  line-height: 1.2;
}

.history-list h3 {
  margin: 0 0 8px;
}

.history-list p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.9;
}

.company-offering {
  background: #ffffff;
}

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

.offering-grid article {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 24px;
  border-radius: 20px;
}

.offering-grid h3 {
  margin: 16px 0 10px;
  font-size: 20px;
}

.offering-grid p {
  font-size: 14px;
  margin: 0;
}

.company-offering > .text-link {
  margin-top: 28px;
}

.industry-section {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  background-color: var(--navy-900);
  color: #ffffff;
}

.industry-head,
.industry-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.industry-meta {
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: 18px;
}

.industry-meta .factory-badge {
  position: static;
  margin-bottom: 12px;
  box-shadow: none;
}

.industry-meta p {
  margin: 0;
  color: rgba(230, 243, 250, 0.88);
  font-size: 14px;
  line-height: 1.75;
}

.industry-section .section-label {
  color: var(--cyan-300);
}

.industry-section h2 {
  color: #ffffff;
}

.industry-copy p {
  color: rgba(230, 243, 250, 0.86);
  font-size: 16px;
  line-height: 1.95;
  margin: 18px 0 0;
}

.industry-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy-950);
  background: var(--amber);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
}

.company-closing {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  background: #ffffff;
}

.company-closing .button {
  margin-top: 16px;
}

.company-evidence {
  background: var(--sand);
}

#evidence-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

#evidence-items img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 16px;
}

/* ==========================================================================
   14. Responsive Breakpoints (<1024px, <768px, <480px)
   ========================================================================== */
@media (max-width: 1024px) {
  .header-bar {
    height: 70px;
  }

  .header .brand .official-logo {
    width: 185px;
    max-height: 44px;
  }

  .header nav {
    gap: 14px;
    font-size: 13px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .hero-frame {
    max-height: 460px;
  }

  .hero-float-badge:nth-of-type(1) {
    inset-inline-start: 14px;
  }

  .hero-float-badge:nth-of-type(2) {
    inset-inline-end: 14px;
  }

  .hero-float-badge:nth-of-type(3) {
    inset-inline-start: 14px;
  }

  .about,
  .company-intro,
  .solution-layout,
  .engineering,
  .contact,
  .industry-section,
  .company-closing {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .values-grid,
  .why-cards,
  .offering-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 960px) {
  .header .compact {
    display: none;
  }

  .menu {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    font-size: 20px;
    transition: background .2s, border-color .2s;
  }

  .header.is-scrolled .menu {
    border-color: var(--line);
    background: var(--sand);
    color: var(--ink);
  }

  .header nav {
    position: absolute;
    top: 100%;
    inset-inline: 4%;
    z-index: 160;
    margin-top: 8px;
    padding: 16px;
    border-radius: 16px;
    background: #06183b;
    border: 1px solid rgba(101, 196, 226, 0.25);
    box-shadow: 0 24px 60px rgba(3, 12, 32, 0.65);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    max-height: calc(100dvh - 104px);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top center;
    pointer-events: none;
    transition: opacity .22s ease, transform .28s var(--ease), visibility 0s linear .28s;
  }

  .header nav.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    transition: opacity .22s ease, transform .28s var(--ease), visibility 0s;
  }

  .header nav a {
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 10px;
    border-bottom: 0;
  }

  .header nav a:hover,
  .header nav a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.08);
  }

  .header.is-scrolled nav {
    background: #ffffff;
    border-color: var(--line);
  }

  .header.is-scrolled nav a:hover,
  .header.is-scrolled nav a[aria-current="page"] {
    background: var(--sand);
  }
}

@media (max-width: 768px) {
  .header-utility {
    font-size: 11px;
  }

  .header-utility span:nth-child(n+2) {
    display: none;
  }

  .hero.cinematic {
    min-height: 0;
    padding-top: 126px;
    padding-bottom: 44px;
  }

  .hero-frame {
    min-height: 300px;
    aspect-ratio: 16 / 11;
  }

  .hero-reticle {
    display: none;
  }

  .hero-float-badges {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
  }

  .hero-float-badge {
    position: static;
    max-width: none;
    width: 100%;
    margin-top: 10px;
    animation: none !important;
  }

  .hero-float-badges .hero-float-badge {
    margin-top: 0;
  }

  .scroll-cue-bottom .pulse {
    display: none;
  }

  .purpose-grid,
  .engineering-cards-2x2,
  .calibration-gallery,
  .journey,
  .modal-dialog,
  #evidence-items {
    grid-template-columns: 1fr;
  }

  .modal-media {
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
    min-height: 220px;
    padding: 20px;
  }

  .solution-visual {
    order: 2;
    min-height: 360px;
  }

  .solution-panel ul {
    grid-template-columns: 1fr;
  }

  .values-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .history-list article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .partners-grid {
    grid-template-rows: 108px;
    grid-auto-columns: 160px;
    gap: 10px;
  }

  .partner-logo {
    padding: 14px;
  }

  .partner-logo img {
    height: 60px;
  }

  .partners-banner {
    border-radius: 26px;
  }
}

@media (max-width: 480px) {
  .header .brand .official-logo {
    width: min(155px, 46vw);
    max-height: 40px;
  }

  .hero-kpis,
  .values-grid,
  .why-cards,
  .offering-grid,
  .product-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .solution-tabs {
    grid-template-columns: 1fr;
  }

  .form-row,
  #request-review > div {
    grid-template-columns: 1fr;
  }

  .engineering-showcase .glass,
  .management-overlay {
    padding: 20px;
  }

  .partners-banner {
    padding: 26px 20px;
    border-radius: 22px;
  }
}

/* ==========================================================================
   15. Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .pulse-dot::after,
  .pulse path,
  .marquee-track,
  .hero-float-badge,
  .engineering-orbit i,
  .hero.cinematic .eyebrow-pill,
  .hero.cinematic .eyebrow,
  .hero.cinematic h1,
  .hero.cinematic .hero-copy > p,
  .hero.cinematic .hero-actions,
  .hero.cinematic .hero-kpis,
  .hero-media {
    animation: none !important;
  }

  .pulse path {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }

  .hero-copy,
  .hero-media {
    transform: none !important;
  }

  .header nav,
  .header nav.open,
  .product-modal,
  .modal-dialog,
  .invert-card,
  .purpose-card,
  .value-card,
  .product-card,
  .partner-logo {
    transition: none !important;
  }
}


/* ===== Manufacturing Highlight, Sectors, Coverage & Earmolds Page ===== */
.manufacturing-highlight {
  margin-top: 40px;
  padding: clamp(24px, 3vw, 38px);
  border-radius: 26px;
  background: linear-gradient(135deg, var(--navy-950) 0%, #0b265c 62%, #124aaf 100%);
  color: #ffffff;
  border: 1px solid rgba(101, 196, 226, 0.24);
  box-shadow: 0 24px 60px rgba(6, 24, 59, 0.16);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 3vw, 40px);
  align-items: center;
}

.manufacturing-copy .section-label {
  color: var(--cyan-400);
}

.manufacturing-copy h3 {
  margin: 8px 0 12px;
  font-size: clamp(22px, 2.3vw, 32px);
  color: #ffffff;
}

.manufacturing-copy p {
  margin: 0 0 22px;
  color: rgba(230, 243, 250, 0.84);
  line-height: 1.85;
}

.manufacturing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.manufacturing-actions .text-link {
  color: var(--cyan-400);
}

.manufacturing-media {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(6, 24, 59, 0.45);
}

.manufacturing-media img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

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

.sectors-grid .invert-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fe 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.sectors-grid .invert-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--royal), var(--cyan-400));
  opacity: 0.85;
}

.sectors-grid .invert-card .card-num {
  position: static;
  inset: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(18, 74, 175, 0.1);
  color: var(--royal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 1;
}

.sectors-grid .invert-card:hover {
  transform: translateY(-4px);
  border-color: var(--royal);
  box-shadow: 0 20px 44px rgba(6, 24, 59, 0.12);
}

.sectors-grid .invert-card h3 {
  margin: 0;
  font-size: 20px;
  color: var(--ink);
}

.sectors-grid .invert-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  flex: 1;
}

.sectors-grid .invert-card .text-link {
  width: fit-content;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--royal);
  font-weight: 700;
}

.coverage-section,
#process.section.bg-grid-dark {
  background-color: var(--navy-950);
  background-image:
    radial-gradient(circle at 16% 18%, rgba(101, 196, 226, 0.16), transparent 44%),
    radial-gradient(circle at 84% 82%, rgba(18, 74, 175, 0.34), transparent 50%),
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
  color: #ffffff;
}

.coverage-section .section-label,
#process.section.bg-grid-dark .section-label {
  color: var(--cyan-400);
}

.coverage-section .section-heading h2,
#process.section.bg-grid-dark .section-heading h2 {
  color: #ffffff;
}

.coverage-section .section-heading p,
#process.section.bg-grid-dark .section-heading p {
  color: rgba(230, 243, 250, 0.82);
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.coverage-card {
  padding: 28px 20px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(18, 74, 175, 0.28) 0%, rgba(6, 24, 59, 0.72) 100%);
  border: 1px solid rgba(101, 196, 226, 0.28);
  box-shadow: 0 18px 40px rgba(3, 12, 32, 0.35);
  display: grid;
  grid-template-rows: 52px 1fr;
  justify-items: center;
  align-content: start;
  text-align: center;
  gap: 12px;
  min-height: 170px;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}

.coverage-card:hover {
  transform: translateY(-3px);
  border-color: var(--cyan-400);
}

.coverage-card strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  font-size: clamp(28px, 2.5vw, 38px);
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 10%, var(--cyan-300) 55%, var(--cyan-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.coverage-card span {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(230, 243, 250, 0.88);
  max-width: 24ch;
}

/* Earmolds page */
.earmold-hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 3.5vw, 48px);
  align-items: center;
  margin-top: 22px;
}

.earmold-hero-copy h1 {
  color: #ffffff;
  margin: 14px 0 18px;
}

.earmold-hero-media {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(101, 196, 226, 0.25);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.35);
}

.earmold-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.earmold-options-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}

.earmold-materials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.earmold-material-card {
  position: relative;
  padding: 26px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  align-content: start;
}

.earmold-material-card .card-num {
  position: static;
  inset: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(18, 74, 175, 0.1);
  color: var(--royal);
  font-size: 13px;
  font-weight: 700;
  opacity: 1;
}

.earmold-material-card.accent {
  background: linear-gradient(140deg, var(--navy-950), var(--royal));
  border-color: rgba(101, 196, 226, 0.3);
  color: #ffffff;
}

.earmold-material-card.accent h3,
.earmold-material-card.accent p {
  color: #ffffff;
}

.earmold-material-card.accent .card-num {
  background: rgba(101, 196, 226, 0.2);
  color: var(--cyan-300);
}

.earmold-material-card h3 {
  margin: 10px 0 8px;
  font-size: 19px;
  color: var(--ink);
}

.earmold-material-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.earmold-samples-card {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.earmold-samples-card img {
  display: block;
  width: 100%;
  flex: 1;
  object-fit: cover;
}

.earmold-samples-card figcaption {
  padding: 16px 20px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.earmold-process-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.earmold-step-card {
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(101, 196, 226, 0.2);
  display: flex;
  flex-direction: column;
}

.earmold-step-photo img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.earmold-step-body {
  padding: 20px;
  display: grid;
  gap: 8px;
}

.earmold-step-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan-400);
  letter-spacing: 0.08em;
}

.earmold-step-body h3 {
  margin: 0;
  font-size: 18px;
  color: #ffffff;
}

.earmold-step-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(230, 243, 250, 0.8);
}

.earmold-cta-bar {
  margin-top: 32px;
  padding: 26px 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(101, 196, 226, 0.28);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.earmold-cta-bar h3 {
  margin: 0 0 6px;
  color: #ffffff;
}

.earmold-cta-bar p {
  margin: 0;
  color: rgba(230, 243, 250, 0.82);
}

@media (max-width: 1024px) {
  .manufacturing-highlight,
  .earmold-hero-split,
  .earmold-options-grid {
    grid-template-columns: 1fr;
  }
  .sectors-grid {
    grid-template-columns: 1fr;
  }
  .coverage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .earmold-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .coverage-grid,
  .earmold-materials-grid,
  .earmold-process-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== Interactive Journey Stage (about.html#journey) ===== */
.journey-stage {
  display: grid;
  gap: 28px;
}

.journey-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 20px 26px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.journey-track {
  position: absolute;
  inset-inline: 18%;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  background: rgba(18, 74, 175, 0.14);
  border-radius: 999px;
  overflow: hidden;
  pointer-events: none;
}

.journey-beam {
  display: block;
  width: 50%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--royal), var(--cyan-400));
  transition: transform .45s cubic-bezier(0.22, 1, 0.36, 1), width .45s cubic-bezier(0.22, 1, 0.36, 1);
}

.journey-stage[data-active-milestone="1"] .journey-beam {
  width: 100%;
}

.journey-node {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: center;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--sand);
  color: var(--ink);
  cursor: pointer;
  transition: transform .25s var(--ease), background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}

.journey-node:hover {
  transform: translateY(-2px);
  border-color: var(--royal);
}

.journey-node.is-active {
  background: var(--navy-950);
  border-color: var(--navy-950);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(6, 24, 59, 0.2);
}

.journey-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--royal);
  box-shadow: 0 0 0 4px rgba(18, 74, 175, 0.18);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}

.journey-node.is-active .journey-dot {
  background: var(--cyan-400);
  box-shadow: 0 0 0 5px rgba(101, 196, 226, 0.28);
}

.journey-node time {
  font-weight: 800;
  font-size: 16px;
}

.journey-node-label {
  font-size: 14px;
  font-weight: 600;
}

.journey-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.journey-card {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  align-content: start;
  cursor: pointer;
  transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1), background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}

.journey-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--royal), var(--cyan-400));
  opacity: 0.35;
  transition: opacity .35s var(--ease);
}

.journey-card:hover {
  transform: translateY(-4px);
}

.journey-card.is-active {
  background: linear-gradient(145deg, var(--navy-950) 0%, #0b265c 60%, #124aaf 100%);
  border-color: rgba(101, 196, 226, 0.35);
  box-shadow: 0 26px 56px rgba(6, 24, 59, 0.22);
  transform: translateY(-4px);
}

.journey-card.is-active::before {
  opacity: 1;
}

.journey-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.journey-step-pill {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(18, 74, 175, 0.1);
  color: var(--royal);
  font-size: 13px;
  font-weight: 700;
}

.journey-card.is-active .journey-step-pill {
  background: rgba(101, 196, 226, 0.18);
  color: var(--cyan-400);
}

.journey-card-top time {
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 800;
  line-height: 1;
  color: var(--royal);
}

.journey-card.is-active .journey-card-top time {
  background: linear-gradient(135deg, #ffffff 10%, var(--cyan-300) 55%, var(--cyan-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.journey-card h3 {
  margin: 0;
  font-size: 22px;
  color: var(--ink);
}

.journey-card.is-active h3 {
  color: #ffffff;
}

.journey-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.journey-card.is-active p {
  color: rgba(230, 243, 250, 0.88);
}

@media (max-width: 768px) {
  .journey-rail {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .journey-track {
    display: none;
  }
  .journey-cards {
    grid-template-columns: 1fr;
  }
}


/* ===== Upgraded Interactive Solutions Stage (#solutions) ===== */
.solution-layout.explorer {
  align-items: stretch;
  gap: 28px;
}

.solution-visual.is-switching .device-detail img {
  animation: solution-photo-in .45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes solution-photo-in {
  from {
    opacity: 0.45;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.solution-tabs-dock {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border-radius: 20px;
  background: var(--sand);
  border: 1px solid var(--line);
}

.solution-tabs-dock .solution-tab {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  text-align: start;
  transition: transform .22s var(--ease), background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
}

.solution-tabs-dock .solution-tab:hover {
  background: #ffffff;
  border-color: var(--line);
  transform: translateY(-1px);
}

.solution-tabs-dock .solution-tab.is-active {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--royal) 100%);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(18, 74, 175, 0.22);
}

.solution-tab-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(18, 74, 175, 0.1);
  color: var(--royal);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.solution-tabs-dock .solution-tab.is-active .solution-tab-num {
  background: rgba(101, 196, 226, 0.22);
  color: var(--cyan-300);
}

.solution-panel-animated {
  display: grid;
  gap: 20px;
  animation: solution-panel-in .38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes solution-panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.solution-panel-head h3 {
  margin: 6px 0 8px;
}

.solution-panel-head p {
  margin: 0;
}

.solution-items-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.solution-items-grid li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f5f9ff;
  border: 1px solid rgba(18, 74, 175, 0.12);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  animation: solution-chip-in .35s cubic-bezier(0.22, 1, 0.36, 1) var(--item-delay, 0ms) both;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}

.solution-items-grid li:hover {
  transform: translateY(-2px);
  border-color: var(--royal);
  background: #ffffff;
}

@keyframes solution-chip-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.solution-item-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royal), var(--cyan-400));
  flex-shrink: 0;
}

.solution-panel-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.solution-panel-foot .service-preparation {
  flex: 1 1 260px;
  margin: 0;
}

@media (max-width: 768px) {
  .solution-tabs-dock,
  .solution-items-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== Interactive Sectors Spotlight Stage (#sectors) ===== */
.sectors-interactive {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: stretch;
}

.sectors-selector {
  display: grid;
  gap: 14px;
}

.sector-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: start;
  cursor: pointer;
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}

.sector-tab:hover {
  transform: translateX(-4px);
  border-color: var(--royal);
}

[dir="ltr"] .sector-tab:hover {
  transform: translateX(4px);
}

.sector-tab.is-active {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--royal) 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 20px 44px rgba(6, 24, 59, 0.18);
}

.sector-tab-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(18, 74, 175, 0.1);
  color: var(--royal);
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.sector-tab.is-active .sector-tab-num {
  background: rgba(101, 196, 226, 0.22);
  color: var(--cyan-300);
}

.sector-tab-body {
  display: grid;
  gap: 4px;
  flex: 1;
}

.sector-tab-body strong {
  font-size: 17px;
  color: var(--ink);
}

.sector-tab.is-active .sector-tab-body strong {
  color: #ffffff;
}

.sector-tab-body small {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

.sector-tab.is-active .sector-tab-body small {
  color: rgba(230, 243, 250, 0.82);
}

.sector-tab-arrow {
  font-size: 18px;
  color: var(--royal);
  opacity: 0.45;
  transition: transform .25s var(--ease), opacity .25s var(--ease), color .25s var(--ease);
}

.sector-tab.is-active .sector-tab-arrow {
  color: var(--cyan-400);
  opacity: 1;
  transform: translateX(-3px);
}

.sector-stage {
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(155deg, var(--navy-950) 0%, #0b265c 62%, #124aaf 100%);
  border: 1px solid rgba(101, 196, 226, 0.28);
  box-shadow: 0 26px 60px rgba(6, 24, 59, 0.2);
  display: flex;
}

.sector-panel {
  width: 100%;
  display: grid;
  grid-template-rows: 220px 1fr;
  animation: sector-stage-in .38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sector-panel[hidden] {
  display: none;
}

@keyframes sector-stage-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.sector-panel-media {
  position: relative;
  overflow: hidden;
}

.sector-panel-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sector-panel-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 24, 59, 0.1) 0%, rgba(6, 24, 59, 0.72) 100%);
}

.sector-stage-badge {
  position: absolute;
  inset-inline-start: 20px;
  bottom: 16px;
  z-index: 1;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(6, 24, 59, 0.78);
  border: 1px solid rgba(101, 196, 226, 0.35);
  color: var(--cyan-300);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.sector-panel-content {
  padding: 26px 28px 28px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.sector-panel-content h3 {
  margin: 0;
  font-size: 22px;
  color: #ffffff;
}

.sector-panel-content p {
  margin: 0;
  color: rgba(230, 243, 250, 0.86);
  line-height: 1.8;
}

.sector-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sector-tags span {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(101, 196, 226, 0.24);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
}

.sector-panel-content .button {
  width: fit-content;
  margin-top: 4px;
}

@media (max-width: 960px) {
  .sectors-interactive {
    grid-template-columns: 1fr;
  }
}


/* Crisp footer link contrast across all pages */
.site-footer .footer-col a,
.site-footer .footer-col p {
  color: rgba(230, 243, 250, 0.86);
}

.site-footer .footer-col a:hover {
  color: var(--cyan-300);
}


/* ===== KSA Ambition Backdrop (.industry-section in about.html) ===== */
.industry-section.section.bg-grid-dark {
  position: relative;
  overflow: hidden;
  background-color: var(--navy-950);
  background-image:
    linear-gradient(95deg, rgba(6, 24, 59, 0.82) 0%, rgba(6, 24, 59, 0.48) 48%, rgba(6, 24, 59, 0.84) 100%),
    url('assets/ksa-ambition-bg.jpg');
  background-size: cover;
  background-position: center;
}

.industry-section .industry-head,
.industry-section .industry-copy {
  position: relative;
  z-index: 1;
}

.industry-section .industry-copy {
  padding: 28px;
  border-radius: 22px;
  background: rgba(6, 24, 59, 0.62);
  border: 1px solid rgba(101, 196, 226, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}


/* ===== Mobile-Only Layout & Visual Polish (<= 768px, Desktop Untouched) ===== */
@media (max-width: 768px) {
  /* 1. Ensure crisp mobile header & hamburger contrast at all scroll offsets */
  .header:not(.is-scrolled) .menu {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
  }

  .header.is-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
  }

  .header.is-scrolled .menu {
    color: var(--ink) !important;
    background: var(--sand) !important;
    border-color: var(--line) !important;
  }

  /* 2. Prevent scroll-reveal blank gaps on fast mobile scrolling */
  .reveal-pending {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }

  /* 3. Hero: centered copy + 2x2 KPI squares so device visual rises into view */
  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-copy .eyebrow-pill {
    margin-inline: auto;
  }

  .hero.cinematic h1,
  .hero-copy h1 {
    text-align: center;
    margin-inline: auto;
    line-height: 1.44 !important;
  }

  .hero-copy .hero-subtitle {
    text-align: center;
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
    width: 100%;
  }

  .hero-kpis {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .hero-kpi {
    padding: 16px 12px !important;
    border-radius: 18px !important;
    background: linear-gradient(160deg, rgba(18, 74, 175, 0.28) 0%, rgba(6, 24, 59, 0.68) 100%) !important;
    border: 1px solid rgba(101, 196, 226, 0.25) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 5px;
  }

  .hero-kpi dt {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    font-size: clamp(26px, 7vw, 32px) !important;
    font-weight: 800;
    line-height: 1.25;
    background: linear-gradient(135deg, #ffffff 15%, var(--cyan-300) 65%, var(--cyan-400) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .hero-kpi dd {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    font-size: 12.5px;
    line-height: 1.5;
    color: rgba(230, 243, 250, 0.86);
  }

  .hero-media {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
  }

  .hero-frame {
    flex: 1 0 100%;
    margin-bottom: 4px;
  }

  .hero-float-badge {
    position: static !important;
    flex: 0 1 auto !important;
    width: auto !important;
    padding: 9px 14px !important;
    border-radius: var(--radius-pill) !important;
    font-size: 13px !important;
    background: linear-gradient(135deg, rgba(18, 74, 175, 0.34), rgba(6, 24, 59, 0.72)) !important;
    border: 1px solid rgba(101, 196, 226, 0.32) !important;
    box-shadow: 0 8px 20px rgba(3, 12, 32, 0.28) !important;
  }

  /* 4. #about: hide background watermark so it never collides with eyebrow */
  .about .outline-word-dark {
    display: none !important;
  }

  /* 5. #coverage: 2x2 balanced grid instead of 4 tall stacked rows */
  .coverage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .coverage-card {
    min-height: 136px;
    padding: 20px 14px;
    grid-template-rows: 40px 1fr;
    gap: 8px;
  }

  .coverage-card strong {
    height: 40px;
    font-size: 26px;
  }

  /* 6. #solutions: horizontal scrollable pill tabs right above panel */
  .solution-tabs-dock {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding: 8px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .solution-tabs-dock::-webkit-scrollbar {
    display: none;
  }

  .solution-tabs-dock .solution-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 10px 14px;
  }

  .solution-items-grid {
    grid-template-columns: 1fr !important;
  }

  /* 7. #featured-products: single-row filter strip + horizontal snap carousel */
  #featured-products .product-filters {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  #featured-products .product-filters::-webkit-scrollbar {
    display: none;
  }

  #featured-products .filter-button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  #featured-products .product-grid {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
  }

  #featured-products .product-card {
    flex: 0 0 82vw;
    max-width: 310px;
    scroll-snap-align: start;
  }

  /* 8. #engineering: place factory badge in normal flow below photo edge */
  .engineering-showcase .factory-badge {
    position: static !important;
    display: inline-flex;
    width: fit-content;
    margin: 12px 14px 4px;
  }

  /* 9. #sectors: compact horizontal selector + unobstructed photo */
  .sectors-selector {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .sectors-selector::-webkit-scrollbar {
    display: none;
  }

  .sector-tab {
    flex: 0 0 auto;
    min-width: 215px;
    padding: 14px 16px;
  }

  .sector-tab-body small,
  .sector-tab-arrow {
    display: none;
  }

  .sector-panel {
    grid-template-rows: 190px 1fr;
  }

  .sector-panel-media::after {
    background: linear-gradient(180deg, transparent 50%, rgba(6, 24, 59, 0.5) 100%);
  }

  .sector-stage-badge {
    display: none;
  }
}


/* Official Phone Links */
.utility-phone {
  color: var(--cyan-300);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.utility-phone:hover {
  color: #ffffff;
  text-decoration: underline;
}

.header.is-scrolled .utility-phone {
  color: var(--royal);
}

.contact-phone-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(18, 74, 175, 0.08);
  border: 1px solid rgba(18, 74, 175, 0.2);
  color: var(--royal);
  font-family: 'Sora', 'Plex', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease);
}

.contact-phone-link:hover {
  background: var(--royal);
  color: #ffffff;
}

.footer-phone {
  color: var(--cyan-300) !important;
  font-family: 'Sora', 'Plex', sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.footer-phone:hover {
  color: #ffffff !important;
  text-decoration: underline;
}


.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-contact-icon {
  width: 16px;
  height: 16px;
  color: var(--cyan-400);
  flex-shrink: 0;
}
