/* ==========================================================================
   Myra EB Systems — site stylesheet
   One typeface (Inter Tight), warm paper ground, navy ink, teal only for
   links and accents. Hairline rules, white cards, real product screens and
   one consistent set of line icons (src/partials/icons.html).
   Nothing is set below 15px. No gradients or decorative imagery.
   ========================================================================== */

:root {
  /* Brand */
  --navy-950: #060A2E;
  --navy-900: #0A1048;
  --navy-800: #121A5A;
  --navy-700: #222B72;
  --teal: #2BB3C8;
  --teal-ink: #0A7C8F;      /* teal for text on light grounds (AA) */

  /* Ground + ink */
  --paper: #F7F5F0;
  --paper-deep: #EFEBE2;
  --white: #fff;
  --ink: #0B1033;
  --slate: #454E69;
  --steel: #6A7390;
  --mist: #B9C0D6;
  --on-dark: #C9CFE3;
  --rule: #DCD7CB;          /* hairline on paper and white */
  --rule-ink: #0B1033;      /* strong rule */
  --rule-dark: rgba(255, 255, 255, .14);
  --tint: #EEF5F6;          /* icon tile wash */

  /* Type + layout */
  --font: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --container: 1200px;
  --gutter: 24px;
  --header-h: 68px;
  --section-y: clamp(64px, 8vw, 104px);
  --radius: 8px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.6; letter-spacing: -.1px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--navy-900); color: var(--white); padding: 10px 16px; border-radius: var(--radius);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Icons ---------- */
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-tile {
  display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 14px;
  background: var(--tint); color: var(--navy-900);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.icon-tile .icon { width: 28px; height: 28px; stroke-width: 1.4; }
.icon-tile--lg { width: 64px; height: 64px; border-radius: 16px; }
.icon-tile--lg .icon { width: 32px; height: 32px; }
.section--dark .icon-tile { background: rgba(255, 255, 255, .08); color: var(--white); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--white { background: var(--white); }
.section--deep { background: var(--paper-deep); }
.section--line { border-top: 1px solid var(--rule); }
.section--dark { background: var(--navy-900); color: var(--white); }
.section--dark .lead, .section--dark .prose { color: var(--on-dark); }

/* ---------- Type ---------- */
.h1 { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.05; letter-spacing: -.03em; font-weight: 450; text-wrap: balance; }
.h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; letter-spacing: -.025em; font-weight: 450; text-wrap: balance; }
.h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.25; letter-spacing: -.015em; font-weight: 500; }
.h4 { font-size: 17px; line-height: 1.35; letter-spacing: -.01em; font-weight: 600; }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; color: var(--slate); max-width: 64ch; text-wrap: pretty; }
.prose { color: var(--slate); max-width: 68ch; text-wrap: pretty; }
.prose > * + * { margin-top: 16px; }
.prose b, .prose strong { color: var(--ink); font-weight: 600; }
.prose h4 { color: var(--ink); font-size: 16px; font-weight: 600; margin-top: 28px; }
.prose h4 + * { margin-top: 10px; }
.prose ul { display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 20px; }
.prose li::before { content: ""; position: absolute; left: 2px; top: .66em; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.prose--modal { max-width: none; }
.prose--modal > h4:first-child { margin-top: 0; }
.statement { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.3; letter-spacing: -.02em; font-weight: 450; max-width: 34ch; text-wrap: pretty; }
.num { font-weight: 600; color: var(--teal-ink); font-variant-numeric: tabular-nums; }

/* ---------- Buttons + links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius);
  font-size: 15px; font-weight: 500; line-height: 1.2; text-align: center; border: 1px solid transparent;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn .icon { width: 18px; height: 18px; stroke-width: 1.8; transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:hover .icon--down { transform: translateY(3px); }
.btn:hover .icon--external { transform: translate(2px, -2px); }
.btn--sm { min-height: 40px; padding: 8px 16px; }
.btn--primary { background: var(--navy-900); color: var(--white); }
.btn--primary:hover { background: var(--navy-700); }
.btn--outline { border-color: #C9C4B7; color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); background: var(--white); }
.btn--light { background: var(--white); color: var(--navy-900); }
.btn--light:hover { background: var(--paper); }
.btn--outline-light { border-color: rgba(255, 255, 255, .4); color: var(--white); }
.btn--outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.read-more {
  display: inline-flex; align-items: center; gap: 8px; padding-bottom: 3px;
  font-size: 16px; font-weight: 500; color: var(--teal-ink); border-bottom: 1px solid currentColor;
}
.read-more .icon { width: 18px; height: 18px; stroke-width: 1.8; transition: transform .3s var(--ease); }
.read-more:hover .icon { transform: translateX(3px); }
.section--dark .read-more { color: var(--teal); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(247, 245, 240, .9);
  -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule); transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -20px rgba(11, 16, 51, .3); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand__mark { width: 34px; height: 34px; }
.brand__name { font-size: 17px; font-weight: 600; letter-spacing: -.3px; white-space: nowrap; }
.brand__name span { font-weight: 400; color: var(--steel); }
.brand--light .brand__name { color: var(--white); }
.brand--light .brand__name span { color: var(--mist); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 6px;
  font-size: 15px; font-weight: 500; color: var(--slate); transition: color .2s;
}
.nav__link:hover, .nav__item:focus-within > .nav__link, .nav__item[data-active] > .nav__link, .nav__link[aria-current="page"] { color: var(--ink); }
.nav__item[data-active] > .nav__link::after, .nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -14px; height: 2px; background: var(--teal);
}
.nav__chev { width: 14px; height: 14px; stroke-width: 2; transition: transform .25s var(--ease); }
.nav__sub {
  position: absolute; top: calc(100% + 12px); left: -8px; min-width: 300px; padding: 8px;
  background: var(--white); border: 1px solid var(--rule); border-radius: 12px;
  box-shadow: 0 24px 48px -24px rgba(11, 16, 51, .3);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* hover bridge */
.nav__sub a { display: block; padding: 12px 14px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--ink); transition: background .2s; }
.nav__sub a:hover, .nav__sub a[aria-current="page"] { background: var(--paper); }
.nav__sub a[aria-current="page"] { color: var(--teal-ink); }
@media (hover: hover) and (min-width: 1025px) {
  .nav__item--has-sub:hover > .nav__sub { opacity: 1; visibility: visible; transform: none; }
  .nav__item--has-sub:hover .nav__chev { transform: rotate(180deg); }
}
@media (min-width: 1025px) {
  .nav__item--has-sub.is-open > .nav__sub { opacity: 1; visibility: visible; transform: none; }
  .nav__item--has-sub.is-open .nav__chev { transform: rotate(180deg); }
}
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 8px; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
@media (max-width: 1024px) {
  /* backdrop-filter would make the header the containing block of the fixed menu panel */
  .site-header { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 32px;
    background: var(--paper); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--rule); }
  .nav__link { width: 100%; height: 60px; padding: 0; font-size: 20px; color: var(--ink); justify-content: space-between; }
  .nav__item[data-active] > .nav__link::after, .nav__link[aria-current="page"]::after { display: none; }
  .nav__item[data-active] > .nav__link { color: var(--teal-ink); }
  .nav__chev { width: 18px; height: 18px; }
  .nav__sub { position: static; min-width: 0; padding: 0 0 12px; border: 0; box-shadow: none; border-radius: 0; opacity: 1; visibility: visible; transform: none; display: none; }
  .nav__sub::before { display: none; }
  .nav__item.is-open > .nav__sub { display: block; }
  .nav__item.is-open .nav__chev { transform: rotate(180deg); }
  .nav__sub a { padding: 12px 0; font-size: 16px; }
  .nav__cta { margin-top: 28px; min-height: 52px; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(40px, 5vw, 64px) clamp(44px, 6vw, 72px); border-bottom: 1px solid var(--rule); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 24px; font-size: 15px; color: var(--steel); }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { color: var(--mist); }
.crumbs [aria-current] { color: var(--teal-ink); font-weight: 500; }
.page-hero__grid { display: grid; grid-template-columns: 7fr 5fr; gap: 24px 64px; align-items: end; }
.page-hero__grid .btn-row { margin-top: 20px; }
.page-hero--dark { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-950); color: var(--white); border-bottom: 0; padding-block: clamp(72px, 10vw, 136px); }
.page-hero--dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 10, 46, .9) 0%, rgba(6, 10, 46, 0) 40%),
    linear-gradient(90deg, rgba(6, 10, 46, .97) 0%, rgba(6, 10, 46, .9) 45%, rgba(6, 10, 46, .62) 100%);
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.page-hero--dark .crumbs { color: var(--mist); }
.page-hero--dark .crumbs a:hover { color: var(--white); }
.page-hero--dark .crumbs [aria-current] { color: var(--teal); }
.page-hero--dark .lead { color: var(--on-dark); }
.page-hero--dark .page-hero__grid { align-items: center; }
.wordmark { width: min(240px, 56vw); margin-bottom: 24px; }

/* ---------- Section heads ---------- */
.section-head { margin-bottom: clamp(36px, 5vw, 56px); max-width: 760px; }
.section-head .lead { margin-top: 18px; }
.section-head--bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; max-width: none; }
.section-head__text { max-width: 760px; }

/* ---------- Hairline card grid ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.grid-cards > * { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); min-width: 0; }
.section--dark .grid-cards, .section--dark .grid-cards > * { border-color: var(--rule-dark); }

/* Capability tiles (icon + title) */
.tiles { --cols: 4; }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
  padding: 26px 24px 24px; min-height: 210px; background: var(--white); transition: background .3s var(--ease);
}
.tile__title { font-size: 17px; line-height: 1.35; font-weight: 500; letter-spacing: -.01em; margin-top: auto; padding-right: 28px; text-wrap: pretty; }
.tile__go { position: absolute; right: 20px; bottom: 24px; width: 18px; height: 18px; color: var(--steel); transition: transform .3s var(--ease), color .3s var(--ease); }
a.tile:hover { background: var(--paper); }
a.tile:hover .icon-tile { background: var(--navy-900); color: var(--white); }
a.tile:hover .tile__go { color: var(--teal-ink); transform: translateY(3px); }
.tile--cta { grid-column: span var(--span, 1); background: var(--navy-900); color: var(--white); justify-content: flex-end; }
.tile--cta .tile__title { font-size: 22px; margin-top: 0; }
.tile--cta p { color: var(--on-dark); font-size: 15px; }
.tile--cta .tile__go { color: var(--white); }
a.tile--cta:hover { background: var(--navy-800); }
a.tile--cta:hover .tile__go { color: var(--teal); transform: translate(3px, -3px); }

/* ---------- Feature rows (numbered detail sections) ---------- */
.features > * + * { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--rule); }
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: start; scroll-margin-top: calc(var(--header-h) + 24px); }
.feature--stack { grid-template-columns: minmax(0, 1fr); }
.feature__head { position: sticky; top: calc(var(--header-h) + 32px); }
.feature--stack .feature__head { position: static; }
.feature__num { display: block; margin-bottom: 14px; font-size: 15px; font-weight: 600; color: var(--teal-ink); font-variant-numeric: tabular-nums; }
.feature__head .h2 + .prose, .feature__head .h2 + .lead { margin-top: 18px; }
.feature__head > .media, .feature__head > .media-grid { margin-top: 28px; }
.feature__body > * + * { margin-top: 28px; }

/* ---------- Media ---------- */
.media { position: relative; display: block; width: 100%; background: var(--white); border: 1px solid var(--rule); padding: 10px; text-align: left; }
.media img { width: 100%; }
.media--narrow { max-width: 520px; }
.media--shadow { box-shadow: 0 30px 60px -44px rgba(11, 16, 51, .4); }
.zoomable { cursor: zoom-in; }
.zoomable::after {
  content: ""; position: absolute; right: 18px; top: 18px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(10, 16, 72, .8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 14px no-repeat;
  opacity: 0; transform: scale(.85); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.zoomable:hover::after, .zoomable:focus-visible::after { opacity: 1; transform: none; }
.media-grid { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 16px; align-items: start; }

/* Callouts, quotes, comparisons */
.callout { position: relative; background: var(--white); border: 1px solid var(--rule); border-left: 3px solid var(--navy-900); padding: clamp(22px, 3vw, 32px); }
.callout__label { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.callout .prose { max-width: none; }
.quote { position: relative; padding: 28px 32px; background: var(--navy-900); color: var(--white); font-size: clamp(18px, 1.8vw, 21px); line-height: 1.45; letter-spacing: -.01em; font-weight: 450; text-wrap: pretty; }
.quote::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--teal); }
.compare { --cols: 3; }
.compare > div { padding: 26px 24px; background: var(--white); }
.compare h4 { margin-bottom: 10px; }
.compare p { font-size: 15px; color: var(--slate); }
.compare > .is-ours { background: var(--navy-900); color: var(--white); }
.compare > .is-ours p { color: var(--on-dark); }
.compare > .is-ours h4 { color: var(--teal); }
.label-grid { --cols: 2; }
.label-grid--3 { --cols: 3; }
.label-grid > div { padding: 26px 24px; background: var(--white); }
.label-grid p { font-size: 15px; color: var(--slate); margin-top: 10px; }
.lead-list { border-top: 1px solid var(--rule); }
.lead-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--rule); color: var(--slate); font-size: 15px; line-height: 1.55; }
.lead-list .num { padding-top: 2px; font-size: 15px; }
.lead-list b { display: block; color: var(--ink); font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.case { margin-top: clamp(40px, 5vw, 56px); }
.case__head { margin-bottom: 20px; }
.case__head .h4 { color: var(--teal-ink); margin-bottom: 6px; }

/* ---------- Software modules (manufacturing) ---------- */
.modules { --cols: 4; }
.module { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 26px 24px 24px; background: var(--white); text-align: left; transition: background .3s var(--ease); }
.module__title { font-size: 19px; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
.module__text { font-size: 15px; color: var(--slate); }
.module__more { margin-top: auto; align-self: flex-start; }
.module__more::after { content: ""; position: absolute; inset: 0; } /* whole card opens the details */
.module:hover { background: var(--paper); }
.module:hover .icon-tile { background: var(--navy-900); color: var(--white); }
.module:hover .read-more .icon { transform: translateX(3px); }

/* ---------- Next / cross-links ---------- */
.next { --cols: 2; }
.next__card { position: relative; display: flex; align-items: center; gap: 20px; padding: 26px 24px; background: var(--white); transition: background .3s var(--ease); }
.next__card h3 { font-size: 19px; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
.next__card p { margin-top: 4px; font-size: 15px; color: var(--slate); }
.next__card > .icon { margin-left: auto; color: var(--steel); transition: transform .3s var(--ease), color .3s var(--ease); }
.next__card:hover { background: var(--paper); }
.next__card:hover .icon-tile { background: var(--navy-900); color: var(--white); }
.next__card:hover > .icon { color: var(--teal-ink); transform: translateX(3px); }

/* ---------- Stats (VR) ---------- */
.stats { --cols: 3; }
.stat { padding: 30px 28px; }
.stat__value { font-size: clamp(44px, 5.2vw, 60px); line-height: 1; letter-spacing: -.03em; font-weight: 450; font-variant-numeric: tabular-nums; color: var(--white); }
.stat__value small { font-size: .5em; color: var(--teal); margin-left: 2px; }
.stat__label { margin-top: 14px; font-size: 15px; line-height: 1.45; color: var(--on-dark); max-width: 28ch; }
.roi-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: 40px; padding: 26px 30px; border: 1px solid var(--rule-dark); }
.roi-bar .h3 { max-width: 34ch; }

/* ---------- Programs, checklist ---------- */
.program { display: flex; align-items: center; gap: 18px; padding: 22px 24px; background: var(--white); }
.program h3 { font-size: 18px; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.checklist li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.checklist .icon { color: var(--teal-ink); }

/* ---------- Video (hosted mp4 and YouTube, both click-to-play) ---------- */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--navy-950); overflow: hidden; }
.video img, .video video, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video__play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; background: linear-gradient(180deg, rgba(6, 10, 46, 0) 45%, rgba(6, 10, 46, .6)); }
.video__play span { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--white); color: var(--navy-900); box-shadow: 0 0 0 10px rgba(255, 255, 255, .18); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.video__play .icon { width: 26px; height: 26px; margin-left: 3px; fill: currentColor; stroke: none; }
.video__play:hover span { transform: scale(1.06); box-shadow: 0 0 0 14px rgba(43, 179, 200, .3); }
.video__label { position: absolute; left: 18px; bottom: 16px; color: var(--white); font-size: 15px; font-weight: 500; pointer-events: none; }
.video.is-playing .video__play, .video.is-playing .video__label { display: none; }
.video--framed { border: 1px solid var(--rule); box-shadow: 0 30px 60px -44px rgba(11, 16, 51, .4); }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* ---------- Courses + tabs ---------- */
.tabs__list { display: flex; gap: 6px; padding: 6px; margin-bottom: 28px; width: max-content; max-width: 100%; background: var(--white); border: 1px solid var(--rule); border-radius: 12px; overflow-x: auto; scrollbar-width: none; }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__tab { flex: none; padding: 10px 18px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--slate); transition: background .25s var(--ease), color .25s var(--ease); }
.tabs__tab:hover { color: var(--ink); background: var(--paper); }
.tabs__tab[aria-selected="true"] { background: var(--navy-900); color: var(--white); }
.tabs__panel:focus-visible { outline-offset: 8px; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.course { position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 196px; padding: 24px; background: var(--white); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); transition: background .3s var(--ease); }
.course__num { font-size: 15px; font-weight: 600; color: var(--teal-ink); font-variant-numeric: tabular-nums; }
.course__title { font-size: 19px; line-height: 1.3; font-weight: 500; letter-spacing: -.01em; text-wrap: pretty; }
.course__btn { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--teal-ink); padding: 6px 0 4px; border-bottom: 1px solid currentColor; }
.course__btn::after { content: ""; position: absolute; inset: 0; }
.course__btn .arrow { transition: transform .3s var(--ease); }
.course:hover { background: var(--paper); }
.course:hover .course__btn .arrow { transform: translateX(4px); }

/* ---------- Modal ---------- */
.modal { width: min(760px, calc(100vw - 32px)); max-height: min(86vh, 900px); padding: 0; border: 0; border-radius: 14px; background: var(--white); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(6, 10, 46, .6); overflow: hidden; }
.modal::backdrop { background: rgba(6, 10, 46, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .35s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal__inner { position: relative; max-height: inherit; overflow-y: auto; overscroll-behavior: contain; }
.modal__body { padding: clamp(28px, 4vw, 44px); }
.modal__title { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -.02em; font-weight: 450; margin: 0 48px 24px 0; }
.modal__close { position: sticky; top: 16px; float: right; margin: 16px 16px 0 0; z-index: 3; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--ink); transition: background .2s, color .2s; }
.modal__close:hover { background: var(--navy-900); color: var(--white); }
.modal__close .icon { width: 18px; height: 18px; }
.modal__gallery { display: grid; gap: 12px; margin-top: 28px; }
.modal__gallery img { border: 1px solid var(--rule); width: 100%; }
.modal--media { width: min(1280px, calc(100vw - 32px)); }
.modal--media .modal__body { padding: clamp(16px, 2.4vw, 28px); }
.modal--media .modal__body img { width: 100%; height: auto; max-height: 78vh; object-fit: contain; }

/* ---------- Trust Center ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; }
.badge-row li { display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 12px; background: var(--white); border: 1px solid var(--rule); font-size: 15px; font-weight: 500; }
.badge-row img { width: 44px; height: 32px; object-fit: contain; }
.badge-row .is-wordmark img { width: auto; height: 16px; }
.policy { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(28px, 5vw, 72px); padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--rule); scroll-margin-top: calc(var(--header-h) + 24px); }
.policy:first-of-type { border-top: 0; padding-top: 0; }
.policy .icon-tile { margin-bottom: 20px; }
.policy__text { margin-top: 16px; color: var(--slate); text-wrap: pretty; }
.doc-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); align-self: start; }
.doc-link { display: flex; align-items: center; gap: 14px; padding: 18px; min-height: 72px; background: var(--white); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 15px; font-weight: 500; transition: background .25s var(--ease), color .25s var(--ease); }
.doc-link > .icon:first-child { color: var(--teal-ink); }
.doc-link > .icon:last-child { margin-left: auto; width: 18px; height: 18px; color: var(--steel); transition: transform .3s var(--ease), color .3s var(--ease); }
.doc-link:hover { background: var(--navy-900); color: var(--white); }
.doc-link:hover > .icon:first-child { color: var(--teal); }
.doc-link:hover > .icon:last-child { color: var(--teal); transform: translate(2px, -2px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--white); padding-top: clamp(48px, 6vw, 72px); }
.footer-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; padding-bottom: clamp(36px, 5vw, 56px); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; color: var(--mist); }
.footer-nav a:hover { color: var(--white); }
.footer-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { min-width: 72px; height: 64px; background: var(--white); border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 0 12px; }
.badge img { height: 46px; width: auto; max-width: none; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding-block: 24px; border-top: 1px solid var(--rule-dark); }
.copyright { font-size: 15px; color: var(--mist); }
.social { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--rule-dark); color: var(--white); transition: background .25s, border-color .25s, color .25s; }
.social .icon { width: 16px; height: 16px; }
.social:hover { background: var(--white); color: var(--navy-900); border-color: var(--white); }

/* ==========================================================================
   Precision.AI (precision-ai.html + home section)
   ========================================================================== */
/* Discovery flow: target → small molecules | antibodies & ADCs → validation, closed loop */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr) 44px minmax(0, 1fr); align-items: stretch; }
.flow__branch { display: grid; gap: 12px; }
.flow__step {
  display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--white); border: 1px solid var(--rule);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.flow__step:hover { background: var(--paper); border-color: #C9C4B7; }
.flow__step:hover .icon-tile { background: var(--navy-900); color: var(--white); }
.flow__top { display: flex; align-items: center; justify-content: space-between; }
.flow__title { font-size: 19px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
.flow__step p { font-size: 15px; line-height: 1.5; color: var(--slate); text-wrap: pretty; }
.flow__arrow { display: grid; place-items: center; color: var(--teal-ink); }
.flow__arrow .icon { width: 22px; height: 22px; stroke-width: 1.8; }
.flow__loop {
  display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; padding: 16px 24px;
  background: var(--navy-900); color: var(--white); font-size: clamp(16px, 1.5vw, 18px); line-height: 1.4; text-align: center;
}
.flow__loop .icon { color: var(--teal); }

/* Home spotlight: Precision.AI on a navy band, led by its logo (as in the platform deck) */
.spotlight { border-top: 1px solid var(--navy-900); }
.spotlight__title { display: grid; gap: 18px; font-weight: inherit; }
.spotlight__logo { width: clamp(220px, 28vw, 340px); height: auto; }
.spotlight .lead { color: var(--on-dark); }
.wordmark--precision { width: clamp(200px, 22vw, 280px); }

/* Discovery flow on dark grounds */
.section--dark .flow__step, .page-hero--dark .flow__step { background: rgba(255, 255, 255, .04); border-color: var(--rule-dark); color: var(--white); }
.section--dark .flow__step p { color: var(--on-dark); }
.section--dark .flow__step .num { color: var(--teal); }
.section--dark .flow__step:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .3); }
.section--dark .flow__step:hover .icon-tile { background: var(--white); color: var(--navy-900); }
.section--dark .flow__arrow { color: var(--teal); }
.section--dark .flow__loop { background: transparent; border: 1px solid var(--rule-dark); }

/* Key components: Precision.AI and DrugTX.AI side by side (deck slide 7) */
.engines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.engine { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--rule); }
.engine__head { display: flex; align-items: center; gap: 16px; padding: 22px 24px; background: var(--navy-900); color: var(--white); }
.engine__head .icon-tile { background: rgba(255, 255, 255, .1); color: var(--white); }
.engine__head h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; line-height: 1.15; letter-spacing: -.02em; }
.engine__head p { margin-top: 2px; font-size: 16px; color: var(--on-dark); }
.engine__group { padding: 22px 24px; }
.engine__group + .engine__group { border-top: 1px solid var(--rule); }
.engine__group h4 { margin-bottom: 12px; font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.engine__foot { margin-top: auto; padding: 4px 24px 26px; }

/* Tick list */
.ticks { display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 15px; line-height: 1.5; color: var(--slate); }
.ticks .icon { width: 18px; height: 18px; margin-top: 3px; stroke-width: 2; color: var(--teal-ink); }
.ticks b { color: var(--ink); font-weight: 600; }
.label-grid .ticks { margin-top: 14px; }

/* Label grid with a leading icon; dark variant */
.label-grid--icons > div > .icon { width: 30px; height: 30px; margin-bottom: 16px; stroke-width: 1.4; color: var(--teal-ink); }
.section--dark .label-grid > div { background: transparent; }
.section--dark .label-grid p { color: var(--on-dark); }
.section--dark .label-grid--icons > div > .icon { color: var(--teal); }

/* Therapeutic areas */
.areas { --cols: 4; }
.area { display: flex; flex-direction: column; gap: 18px; padding: 26px 24px; background: var(--white); }
.area h3 { font-size: 19px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
.area p { margin-top: -10px; font-size: 15px; color: var(--slate); }

/* Sub-headings inside feature bodies */
.feature__body > .h3 + * { margin-top: 16px; }

/* ==========================================================================
   Home page
   ========================================================================== */
.first-look { padding-block: clamp(28px, 4vw, 48px) clamp(64px, 8vw, 104px); }
.first-look__intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; margin-bottom: clamp(28px, 3.5vw, 40px); }
.first-look__title { grid-column: 1 / span 8; font-weight: 450; font-size: clamp(36px, 4.2vw, 58px); line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
.first-look__side { grid-column: 9 / -1; }
.first-look__mission { font-size: 17px; line-height: 1.5; color: var(--slate); }
.first-look__side .btn-row { margin-top: 20px; }

/* Platform map: AI and VR across R&D, Clinical, Supply, Commercial */
.map { background: var(--white); border: 1px solid var(--rule); box-shadow: 0 30px 60px -48px rgba(11, 16, 51, .35); }
.map__grid { display: grid; grid-template-columns: 96px repeat(4, minmax(0, 1fr)); }
.map__axis { grid-column: 1; padding: 16px 20px; border-top: 1px solid var(--rule); font-size: 30px; line-height: 1; font-weight: 500; letter-spacing: -.02em; }
.map__axis--ai { grid-row: 2; }
.map__axis--vr { grid-row: 3; }
.map__col { grid-row: 1 / span 3; display: grid; grid-template-rows: subgrid; min-width: 0; border-left: 1px solid var(--rule); }
.map__head { padding: 16px 20px; font-size: clamp(18px, 1.6vw, 21px); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.map__cell { padding: 18px 20px; border-top: 1px solid var(--rule); transition: background .3s var(--ease); }
.map__cell:hover { background: var(--paper); }
.map__tag { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; } /* shown as a chip once the row labels are hidden */
.map__items { display: grid; gap: 14px; }
.map__item { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; }
.map__item .icon { width: 22px; height: 22px; margin-top: 1px; stroke-width: 1.4; }
.map__item p { font-size: 15px; line-height: 1.45; text-wrap: pretty; }
.map__item em { display: block; font-style: normal; font-weight: 600; }
.map__item p span { display: block; margin-top: 2px; color: var(--slate); }
.equation { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 14px; padding: 16px 24px; background: var(--navy-900); color: var(--white); text-align: center; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.4; }
.equation__op { color: var(--teal); }
.equation strong { font-weight: 600; }

/* DrugTX.AI modules on the home page */
.suite { padding-block: var(--section-y) clamp(72px, 9vw, 120px); }
.suite__head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 72px); }
.unit { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--rule); scroll-margin-top: calc(var(--header-h) + 16px); }
.unit + .unit { margin-top: clamp(64px, 8vw, 104px); }
.unit__text { grid-column: 1 / span 5; padding-right: clamp(0px, 2vw, 24px); }
.unit__head { display: flex; align-items: center; gap: 16px; }
.unit__title { font-size: clamp(26px, 2.6vw, 34px); font-weight: 500; line-height: 1.15; letter-spacing: -.02em; }
.unit__job { margin-top: 16px; font-size: 17px; line-height: 1.55; color: var(--slate); text-wrap: pretty; }
.unit__text .read-more { margin-top: 28px; }
.caps { margin-top: 28px; border-top: 1px solid var(--rule); }
.caps > div { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.caps dt { font-size: 16px; font-weight: 600; }
.caps dd { margin-top: 3px; font-size: 15px; line-height: 1.5; color: var(--slate); }
.fig { grid-column: 6 / -1; position: sticky; top: calc(var(--header-h) + 32px); }
.fig .media img { outline: 1px solid #ECE9E1; }
.close-out { padding-block: clamp(64px, 8vw, 104px); background: var(--paper-deep); border-top: 1px solid var(--rule); }
.close-out__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.close-out__grid > :first-child { grid-column: 1 / span 7; }

/* Closing card: call to action + security and compliance */
.cta-card { display: grid; grid-template-columns: 7fr 5fr; background: var(--white); border: 1px solid var(--rule); box-shadow: 0 30px 60px -48px rgba(11, 16, 51, .35); }
.cta-card__main { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 4.5vw, 56px); }
.cta-card__main .lead { margin-top: 16px; max-width: 46ch; }
.cta-card__trust { padding: clamp(28px, 3.5vw, 40px); background: var(--paper); border-left: 1px solid var(--rule); }
.trust__title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.trust__title .icon { color: var(--teal-ink); }
.trust__links { margin-top: 18px; border-top: 1px solid var(--rule); }
.trust__links a {
  display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--rule);
  font-size: 16px; font-weight: 500; transition: color .2s var(--ease), background .2s var(--ease);
}
.trust__links a > .icon:first-child { color: var(--teal-ink); }
.trust__go { margin-left: auto; width: 18px; height: 18px; color: var(--steel); transition: transform .3s var(--ease), color .3s var(--ease); }
.trust__links a:hover { color: var(--teal-ink); }
.trust__links a:hover .trust__go { color: var(--teal-ink); transform: translateX(3px); }
.trust__note { display: grid; gap: 12px; margin-top: 20px; font-size: 15px; color: var(--slate); }
.trust__monitor { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); }
.trust__monitor img { width: auto; height: 14px; }
.trust__certs { display: flex; flex-wrap: wrap; gap: 8px; }
.trust__certs span { padding: 4px 12px; border: 1px solid var(--rule); border-radius: 999px; background: var(--white); line-height: 1.4; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal-stagger.is-in > * { opacity: 1; transform: none; }
.js .reveal-stagger.is-in > :nth-child(2) { transition-delay: .06s; }
.js .reveal-stagger.is-in > :nth-child(3) { transition-delay: .12s; }
.js .reveal-stagger.is-in > :nth-child(4) { transition-delay: .18s; }
.js .reveal-stagger.is-in > :nth-child(5) { transition-delay: .24s; }
.js .reveal-stagger.is-in > :nth-child(6) { transition-delay: .3s; }
.js .reveal-stagger.is-in > :nth-child(n+7) { transition-delay: .36s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .page-hero__grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .tiles, .modules { --cols: 2; }
  .tile { min-height: 0; gap: 20px; }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature__head { position: static; }
  .policy { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow__branch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow__arrow { height: 40px; }
  .flow__arrow .icon { transform: rotate(90deg); }
  .engines { grid-template-columns: minmax(0, 1fr); }
  .areas { --cols: 2; }

  .first-look__title, .first-look__side { grid-column: 1 / -1; }
  .first-look__side { margin-top: 20px; max-width: 560px; }
  .map__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map__axis { display: none; }
  .map__col { grid-row: span 3; border-left: 0; }
  .map__col:nth-child(odd) { border-right: 1px solid var(--rule); } /* columns are children 3–6, after the two row labels */
  .map__col:nth-child(n+5) .map__head { border-top: 1px solid var(--rule); }
  .map__tag { position: static; width: auto; height: auto; margin: 0 0 10px; overflow: visible; clip: auto; white-space: normal; font-size: 15px; font-weight: 600; color: var(--teal-ink); }
  .cta-card { grid-template-columns: minmax(0, 1fr); }
  .cta-card__trust { border-left: 0; border-top: 1px solid var(--rule); }
  .unit__text, .fig { grid-column: 1 / -1; }
  .unit__text { padding-right: 0; max-width: 680px; }
  .fig { position: static; margin-top: 36px; }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; --header-h: 64px; }
  .grid-cards { --cols: 1; }
  .tiles { --cols: 2; }
  .tile { min-height: 0; gap: 18px; padding: 20px 18px; }
  .tile__title { font-size: 16px; }
  .tile--cta { grid-column: 1 / -1; }
  .media-grid { --cols: 1; }
  .stats { --cols: 2; }
  .stat { padding: 22px 18px; }
  .checklist { grid-template-columns: minmax(0, 1fr); }
  .video-grid { grid-template-columns: minmax(0, 1fr); }
  .course-grid { grid-template-columns: minmax(0, 1fr); }
  .course { min-height: 0; }
  .doc-links { grid-template-columns: minmax(0, 1fr); }
  .flow__branch { grid-template-columns: minmax(0, 1fr); }
  .areas { --cols: 1; }
  .badge-row li { flex: 1 1 100%; }
  .page-hero__media { display: none; } /* phones: plain navy hero, no poster behind the text */
  .quote { padding: 22px 20px 22px 24px; }
  .footer-main { align-items: flex-start; flex-direction: column; }
  .map__grid { grid-template-columns: minmax(0, 1fr); }
  .map__col:nth-child(odd) { border-right: 0; }
  .map__col + .map__col .map__head { border-top: 1px solid var(--rule); }
  .map__head, .map__cell { padding-inline: 18px; }
  .equation { padding-inline: 18px; }
}
@media (max-width: 420px) {
  .tiles { --cols: 1; }
  .tile { flex-direction: row; align-items: center; }
  .tile__title { margin-top: 0; }
  .tile__go { top: 50%; bottom: auto; transform: translateY(-50%); }
  a.tile:hover .tile__go { transform: translateY(-50%); }
  .stats { --cols: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .reveal-stagger > * { opacity: 1; transform: none; }
}
