/* =========================================================================
   FIH Health & Biotech — Dark Tech
   Design tokens taken verbatim from Proposal-Dark.dc.html
   ========================================================================= */

:root {
  --bg: #0A0D12;
  --panel: #10141C;
  --panel-2: #151B25;
  --line-dark: rgba(255, 255, 255, 0.10);
  --text: #F3F5F8;
  --text-soft: rgba(243, 245, 248, 0.64);
  --text-faint: rgba(243, 245, 248, 0.30);
  --accent: #3D6FE0;
  /* Sampled from the logo artwork: navy #003084, green #60903C. The green is
     lightened here so it holds contrast against the dark surfaces. */
  --accent-green: #8CC24F;
  --navy: #002F87;
  --white: #FFFFFF;
  --ink: #101423;
  --ink-soft: #565F72;
  --line-light: rgba(16, 20, 35, 0.12);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;

  --shell: 1240px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(64px, 9vw, 100px);
  --header-h: 74px;
}

/* ---------- Reset ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.01em;
  font-weight: 600;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  background: #fff;
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

/* ---------- Layout ---------- */

.section { padding: var(--section-y) var(--gutter); }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
}

[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.idx {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}
.idx--light { color: var(--ink-soft); }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.h2 { font-size: clamp(25px, 3.4vw, 32px); color: #fff; }
.h2--ink { color: var(--ink); line-height: 1.3; }

.lede {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 480px;
}

/* ---------- Pills & buttons ---------- */

.pill {
  display: inline-flex;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  font-size: 12px;
  color: var(--text-soft);
  width: fit-content;
}
.pill--light {
  border-color: var(--line-light);
  color: var(--ink-soft);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  transition: background .3s ease, border-color .3s ease, transform .25s ease;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn {
  border-radius: 8px;
  padding: 14px 26px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; box-shadow: 0 10px 22px rgba(16, 20, 35, 0.25); }
.btn--light { background: #fff; color: var(--bg); }
.btn--light:hover { background: #e7e9ee; box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3); }

.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 2px;
  width: fit-content;
}

.link-arrow {
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.arrow {
  display: inline-block;
  transition: transform .3s ease;
}
a:hover .arrow,
button:hover .arrow { transform: translate(3px, -3px); }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.16, .84, .44, 1),
              transform .8s cubic-bezier(.16, .84, .44, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* Images settle out of a slight zoom as their section arrives. */
.zoom-in img,
img.zoom-in {
  transform: scale(1.06);
  transition: transform 1.4s cubic-bezier(.16, .84, .44, 1);
}
.zoom-in.is-visible img,
.is-visible .zoom-in img,
img.zoom-in.is-visible { transform: none; }

/* ---------- Scroll progress ---------- */

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent), var(--accent-green));
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.site-header.is-stuck .scroll-progress { opacity: 1; }

/* =========================================================================
   Header
   ========================================================================= */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(5, 7, 11, 0.86);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line-dark);
}

.site-header__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* The logo artwork is navy + green on transparent, so it needs a light plate
   to stay legible over the dark video hero. */
.brand {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 9px 14px;
  flex: 0 0 auto;
  transition: transform .25s ease, box-shadow .25s ease;
}
.brand:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.brand img {
  height: 26px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 26px);
}
.site-nav a {
  font-size: 13.5px;
  color: var(--text-soft);
  transition: color .25s ease;
  white-space: nowrap;
  position: relative;
}
.site-nav a:hover { color: #fff; }

.site-nav a:not(.btn-outline)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s cubic-bezier(.16, .84, .44, 1);
}
.site-nav a:not(.btn-outline):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  background: rgba(10, 13, 18, 0.55);
  backdrop-filter: blur(6px);
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #fff;
  transition: transform .3s ease, opacity .2s ease;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
}
.nav-toggle__bars::before { transform: translateY(-6px); }
.nav-toggle__bars::after { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: rotate(-45deg); }

/* The nav carries its own Contact CTA for the mobile drawer; on desktop the
   standalone header CTA is the one that shows. */
@media (min-width: 961px) {
  .site-nav .btn-outline { display: none; }
}

@media (max-width: 1120px) and (min-width: 961px) {
  .site-nav a { font-size: 12.5px; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-header__cta { display: none; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: rgba(5, 7, 11, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease, transform .28s ease;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .site-nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .site-nav a {
    font-size: 16px;
    padding: 15px 2px;
    border-bottom: 1px solid var(--line-dark);
    white-space: normal;
  }
  .site-nav .btn-outline {
    margin-top: 18px;
    justify-content: center;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  }
}

/* =========================================================================
   Hero
   ========================================================================= */

.hero {
  position: relative;
  overflow: hidden;
  background: #05070B;
  padding-top: var(--header-h);
  padding-bottom: 64px;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  animation: heroFloat 44s ease-in-out infinite alternate;
}

@keyframes heroFloat {
  from { transform: scale(1.02); }
  to   { transform: scale(1.09); }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.35) 1px, transparent 1.5px),
    linear-gradient(135deg, rgba(61, 111, 224, 0.32) 0%, rgba(5, 7, 11, 0.55) 55%, rgba(5, 7, 11, 0.88) 100%);
  background-size: 6px 6px, 100% 100%;
  background-repeat: repeat, no-repeat;
  animation: halftoneDrift 90s linear infinite;
}

/* The dot grid creeps across the hero — one 6px tile per cycle, so the loop
   is seamless and the motion stays at the edge of perception. */
@keyframes halftoneDrift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 180px 180px, 0 0; }
}

.hero__body {
  position: relative;
  z-index: 2;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(48px, 8vw, 64px) var(--gutter) 0;
  min-height: clamp(280px, 34vw, 400px);
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
  animation: riseIn .9s cubic-bezier(.16, .84, .44, 1) .25s backwards;
}

/* Above-the-fold pieces animate on load rather than on scroll. */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.site-header .brand { animation: riseIn .8s cubic-bezier(.16, .84, .44, 1) .05s backwards; }
.site-header__cta   { animation: riseIn .8s cubic-bezier(.16, .84, .44, 1) .35s backwards; }

.quick-widget {
  position: absolute;
  right: var(--gutter);
  bottom: 28px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 13, 18, 0.55);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 8px 10px 8px 16px;
  backdrop-filter: blur(6px);
}
.quick-widget span {
  font-size: 12px;
  color: #fff;
  white-space: nowrap;
  padding-left: 2px;
}
.quick-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: transform .3s ease;
}
.quick-icon:hover { transform: translateY(-2px); }

@media (max-width: 560px) {
  .quick-widget { padding: 7px 8px 7px 12px; }
  .quick-widget span { display: none; }
}

/* Hero white panel */

.hero-panel {
  background: #fff;
  color: var(--ink);
}
.hero-panel__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(60px, 8vw, 96px);
  margin-top: -64px;
  position: relative;
  z-index: 3;
}
.hero-panel__card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 760px;
  background: #fff;
  padding-top: clamp(36px, 5vw, 56px);
  padding-right: clamp(0px, 3vw, 32px);
}
.hero-panel h1 {
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.12;
  color: var(--ink);
}
.hero-panel__lede {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 600px;
}
.hero-panel__sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 620px;
}
.hero-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

/* =========================================================================
   Services
   ========================================================================= */

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

@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--panel);
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.16, .84, .44, 1), border-color .35s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.22);
}

.card__thumb {
  height: 150px;
  position: relative;
  overflow: hidden;
}
.card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .card__thumb img { transform: scale(1.06); }
.card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 11, 0) 35%, rgba(5, 7, 11, 0.78) 100%);
}
.card__thumb .idx {
  position: absolute;
  top: 14px;
  left: 16px;
  color: #fff;
  z-index: 1;
}

.card__body {
  padding: 22px 20px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card__body h3 {
  font-size: 16.5px;
  color: #fff;
  line-height: 1.3;
}
.card__body p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-soft);
}

/* =========================================================================
   About
   ========================================================================= */

.about { background: #fff; color: var(--ink); }

.about__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
}

.about__copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about__copy p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 520px;
}

.about__figure {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(165deg, #0d1117 0%, #05070B 100%);
}
@media (max-width: 860px) {
  .about__figure { aspect-ratio: 16 / 10; }
}
.about__figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}
.about__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 7, 11, 0.92) 0%, rgba(5, 7, 11, 0.35) 55%, rgba(61, 111, 224, 0.18) 100%);
}
.about__figure figcaption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* =========================================================================
   Selector (Expertise Areas / Specialized Applications)

   The two blocks are deliberately told apart four ways: accent colour
   (brand blue vs. brand green), a mirrored split layout, their own headline
   and count, and the tint of the surface they sit on.

   Mobile  → accordion: each panel sits directly under its own trigger.
   Desktop → split view: triggers in one column, panels stacked in the other.
   ========================================================================= */

.selector-block {
  --sel-accent: var(--accent);
  --sel-tint: rgba(61, 111, 224, 0.10);
  --cycle: 5s;

  position: relative;
  margin-top: clamp(28px, 4vw, 44px);
  padding: clamp(22px, 3.4vw, 34px);
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(100% 72% at 0% 0%, var(--sel-tint), transparent 62%),
    rgba(255, 255, 255, 0.014);
}
.selector-block:first-of-type { margin-top: 8px; }

.selector-block::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--sel-accent), transparent 55%);
  opacity: 0.75;
}

.selector-block--applications {
  --sel-accent: var(--accent-green);
  --sel-tint: rgba(140, 194, 79, 0.10);
  background:
    radial-gradient(100% 72% at 100% 0%, var(--sel-tint), transparent 62%),
    rgba(255, 255, 255, 0.014);
}
.selector-block--applications::before {
  background: linear-gradient(270deg, var(--sel-accent), transparent 55%);
}

/* ---------- Block header ---------- */

.block-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: clamp(20px, 3vw, 28px);
}

.block-head__kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sel-accent);
}
.block-head__kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--sel-accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s cubic-bezier(.16, .84, .44, 1) .25s;
}
.reveal.is-visible .block-head__kicker::after { transform: scaleX(1); }

.block-head__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.block-head h3 {
  font-size: clamp(19px, 2.5vw, 25px);
  color: #fff;
  line-height: 1.25;
}
.block-head__count {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text-faint);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 5px 13px;
  white-space: nowrap;
}
.block-head__count b { color: var(--sel-accent); font-weight: 600; }

.block-head__lede {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 560px;
}

/* ---------- Trigger list ---------- */

.selector { margin-top: 16px; }

.selector__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line-dark);
  color: var(--text-faint);
  transition: padding-left .4s cubic-bezier(.16, .84, .44, 1), color .3s ease;
}
.selector__item:hover { padding-left: 12px; }
.selector__item.is-active {
  color: var(--text);
  padding-left: 14px;
}

/* Accent bar that grows on the active row. */
.selector__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 0;
  border-radius: 2px;
  background: var(--sel-accent);
  transform: translateY(-50%);
  transition: height .45s cubic-bezier(.16, .84, .44, 1);
}
.selector__item.is-active::before { height: 58%; }

.selector__item .idx { color: inherit; transition: color .3s ease; }
.selector__item.is-active .idx { color: var(--sel-accent); }
.selector__label { font-size: 15px; }

.selector__marker {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  position: relative;
}
.selector__marker::before,
.selector__marker::after {
  content: "";
  position: absolute;
  inset: 5px 0 auto;
  height: 1.5px;
  background: currentColor;
  transition: transform .3s ease, opacity .2s ease;
}
.selector__marker::after { transform: rotate(90deg); }
.selector__item.is-active .selector__marker::after { transform: rotate(0deg); opacity: 0; }

/* Countdown to the next auto-advance. */
.selector__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--sel-accent);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}
@keyframes selProgress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ---------- Panels ---------- */

.selector__panel {
  position: relative;
  display: none;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 16px;
  background: #0D1117;
  border: 1px solid var(--line-dark);
}
.selector__panel.is-active { display: flex; }

.selector__panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1);
}
.selector__panel.is-active img {
  transform: scale(1.07);
  transition: transform 7s linear;
}
.selector__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(5, 7, 11, 0.94) 0%, rgba(5, 7, 11, 0.62) 42%, rgba(5, 7, 11, 0.08) 78%);
}
.selector__body {
  position: relative;
  z-index: 2;
  padding: clamp(20px, 4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.selector__body h3 {
  font-size: clamp(18px, 2.4vw, 22px);
  color: #fff;
}
.selector__body p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-soft);
}
.selector__num { color: var(--sel-accent); }

/* ---------- Mobile accordion ---------- */

@media (max-width: 899px) {
  .selector__panel {
    min-height: 300px;
    margin: 14px 0 6px;
  }
  .selector__progress { display: none; }
}

/* ---------- Desktop split view ---------- */

@media (min-width: 900px) {
  .selector {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    grid-template-rows: repeat(var(--rows, 8), auto);
    column-gap: 44px;
    align-items: start;
  }
  .selector__item { grid-column: 1; }
  .selector__panel { grid-column: 2; grid-row: 1 / -1; min-height: 460px; }
  .selector__marker { display: none; }
  .selector__item:last-of-type { border-bottom: none; }

  /* Mirror the second block so the two never read as the same widget twice. */
  .selector-block--applications .selector { grid-template-columns: 1.1fr 0.9fr; }
  .selector-block--applications .selector__item { grid-column: 2; }
  .selector-block--applications .selector__panel { grid-column: 1; }

  /* Panels crossfade instead of hard-swapping. */
  .selector__panel {
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: opacity .55s ease, visibility 0s linear .55s;
  }
  .selector__panel.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity .55s ease, visibility 0s;
  }

  .selector__body > * {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .5s ease, transform .6s cubic-bezier(.16, .84, .44, 1);
  }
  .selector__panel.is-active .selector__body > * { opacity: 1; transform: none; }
  .selector__panel.is-active .selector__body > *:nth-child(1) { transition-delay: .12s; }
  .selector__panel.is-active .selector__body > *:nth-child(2) { transition-delay: .18s; }
  .selector__panel.is-active .selector__body > *:nth-child(3) { transition-delay: .24s; }
  .selector__panel.is-active .selector__body > *:nth-child(4) { transition-delay: .30s; }
  .selector__panel.is-active .selector__body > *:nth-child(5) { transition-delay: .36s; }

  .selector.is-playing .selector__item.is-active .selector__progress {
    animation: selProgress var(--cycle) linear forwards;
  }
  .selector.is-paused .selector__item.is-active .selector__progress {
    animation-play-state: paused;
  }
}

/* =========================================================================
   Platforms
   ========================================================================= */

.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 760px) { .platform-grid { grid-template-columns: 1fr; } }

.platform {
  padding: 28px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.platform__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}
.platform--compact { min-height: 150px; }
.platform--compact .platform__name { font-size: 18px; }
.platform p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 340px;
}

/* Product renders ship on a white background, so they get their own light
   plate instead of sitting directly on the dark card. */
.platform__shot {
  background: linear-gradient(180deg, #ffffff 0%, #eef1f6 100%);
  border-radius: 12px;
  padding: 10px;
  align-self: stretch;
}
.platform__shot img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.ghost-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(60px, 8vw, 88px);
  color: rgba(255, 255, 255, 0.055);
  line-height: 1;
  position: absolute;
  bottom: 6px;
  right: 18px;
  pointer-events: none;
  user-select: none;
}

/* =========================================================================
   Quality & Regulatory
   ========================================================================= */

.quality { background: #fff; color: var(--ink); }
.quality__intro {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 760px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
  gap: 14px;
  margin-top: clamp(28px, 4vw, 40px);
}

.cert {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 12px;
  border: 1px solid var(--line-light);
  border-radius: 14px;
  background: #fff;
  text-align: center;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.cert:hover {
  transform: translateY(-3px);
  border-color: var(--navy);
  box-shadow: 0 10px 24px rgba(16, 20, 35, 0.08);
}
.cert img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}
.cert span {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.35;
}

/* =========================================================================
   Contact
   ========================================================================= */

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(24px, 3vw, 32px);
}
@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
}

.contact__col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact__meta {
  display: flex;
  gap: clamp(22px, 4vw, 40px);
  flex-wrap: wrap;
}
.contact__meta div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact__meta a,
.contact__meta span:not(.idx) {
  font-size: 14px;
  color: #fff;
}
.contact__meta a:hover { text-decoration: underline; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
  max-width: 520px;
}
.contact-form__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 480px) {
  .contact-form__row { grid-template-columns: 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.field input,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-dark);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  padding: 10px 2px;
  outline: none;
  border-radius: 0;
  transition: border-color .25s ease;
}
.field textarea { resize: vertical; min-height: 64px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }
.field input:focus,
.field textarea:focus { border-bottom-color: var(--accent); }
.field input:user-invalid,
.field textarea:user-invalid { border-bottom-color: #E0563D; }

.field__error {
  font-size: 12px;
  color: #E0563D;
  min-height: 0;
}

.form-status {
  font-size: 13.5px;
  color: var(--text-soft);
  min-height: 0;
}
.form-status.is-error { color: #E0563D; }
.form-status.is-ok { color: #6BCB9B; }

.contact__art {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 420px;
}
@media (max-width: 900px) {
  .contact__art { min-height: 260px; }
}
.contact__art svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.contact__art .quick-widget {
  right: 20px;
  bottom: 20px;
}

/* =========================================================================
   Footer
   ========================================================================= */

.site-footer {
  background: var(--panel);
  border-top: 1px solid var(--line-dark);
  padding: clamp(40px, 6vw, 56px) var(--gutter) 32px;
}

.site-footer__grid {
  max-width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 24px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}
@media (max-width: 480px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.site-footer__col a,
.site-footer__col span:not(.idx) {
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.5;
}
.site-footer__col a:hover { color: #fff; }

.footer-brand {
  display: inline-flex;
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  width: fit-content;
}
.footer-brand img { height: 26px; width: auto; }

.site-footer__bar {
  max-width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer__bar span,
.site-footer__bar a { font-size: 12.5px; }
.site-footer__bar span { color: var(--text-faint); }
.site-footer__bar a {
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* =========================================================================
   Micro-interactions
   Everything here is deliberately small: a few pixels of travel, a hairline
   that grows, a slow lift. All of it is switched off by prefers-reduced-motion.
   ========================================================================= */

/* Section eyebrow grows a rule as the section arrives. */
.section-head > .idx {
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-head > .idx::after {
  content: "";
  width: clamp(40px, 8vw, 90px);
  height: 1px;
  background: linear-gradient(90deg, var(--text-faint), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s cubic-bezier(.16, .84, .44, 1) .2s;
}
.reveal.is-visible > .idx::after { transform: scaleX(1); }

/* Cards pick up a faint accent edge on hover. */
.card {
  transition: transform .35s cubic-bezier(.16, .84, .44, 1),
              border-color .35s ease,
              box-shadow .35s ease;
}
.card:hover { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }

.card__body h3 { transition: color .3s ease; }
.card:hover .card__body h3 { color: #fff; }

/* Certification tiles. */
.cert img { transition: transform .35s cubic-bezier(.16, .84, .44, 1); }
.cert:hover img { transform: scale(1.07); }

/* Platform cards: the ghost number surfaces, the render lifts. */
.ghost-num { transition: color .45s ease, transform .6s cubic-bezier(.16, .84, .44, 1); }
.platform:hover .ghost-num {
  color: rgba(255, 255, 255, 0.10);
  transform: translateY(-4px);
}
.platform__shot img { transition: transform .5s cubic-bezier(.16, .84, .44, 1); }
.platform:hover .platform__shot img { transform: translateY(-5px) scale(1.03); }

/* Footer links nudge toward the reader. */
.site-footer__col a {
  transition: color .25s ease, transform .3s cubic-bezier(.16, .84, .44, 1);
  width: fit-content;
}
.site-footer__col a:hover { transform: translateX(3px); }

/* Contact fields glow faintly when focused. */
.field input,
.field textarea {
  transition: border-color .25s ease, box-shadow .25s ease;
}
.field input:focus,
.field textarea:focus { box-shadow: 0 1px 0 0 var(--accent); }

/* Quick-contact icons. */
.quick-icon { transition: transform .3s ease, box-shadow .3s ease; }
.quick-icon:hover { box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45); }

/* =========================================================================
   Motion preferences
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
