/* The site frame (Phase 2): header behaviour, More sheet, footer, preloader, page transition.
   The header island and the tab bar themselves are in base.css. */

/* ---------- Header island: always in place, sliding lime ink, reading progress ---------- */
.hd__in { position: relative; }
.hd__nav { position: relative; }
.hd__ink { position: absolute; left: 0; bottom: 4px; width: var(--w, 0px); height: 3px; border-radius: 2px; background: var(--lime); transform: translateX(var(--x, 0px)) skewX(-24deg); opacity: 0; pointer-events: none; transition: transform .45s var(--ease-out), width .45s var(--ease-out), opacity .25s; }
.hd__nav.has-ink .hd__ink { opacity: 1; }
.hd__prog { position: absolute; inset: auto 34px -1px; height: 2px; border-radius: 2px; background: var(--lime); transform: scaleX(var(--progress, 0)); transform-origin: 0 50%; pointer-events: none; }
[dir="rtl"] .hd__prog { transform-origin: 100% 50%; }
.hd__cta[aria-current] { box-shadow: 0 0 0 3px rgba(255, 255, 255, .35), 0 10px 30px -10px rgba(128, 188, 0, .7); }
.hd__nav a[aria-current="true"] { color: #fff; } /* a solution or product page: Solutions stays lit */

/* ---------- Solutions dropdown: the five solution areas in a panel under the island ---------- */
.hd__drop { display: inline-flex; align-items: center; }
.hd__drop > a { padding-inline-end: 6px !important; }
.hd__caret { display: grid; place-items: center; width: 28px; height: 28px; margin-inline-end: 6px; border-radius: 50%; color: var(--ink-on-dark-soft); transition: background-color .2s, color .2s; }
.hd__caret .ic { width: 16px; height: 16px; transition: rotate .3s var(--ease-out); }
.hd__caret:hover, .hd__caret[aria-expanded="true"] { background: rgba(255, 255, 255, .1); color: #fff; }
.hd__caret[aria-expanded="true"] .ic { rotate: 180deg; color: var(--lime); }
.hd-mega { position: absolute; top: calc(100% + 12px); inset-inline: 0; opacity: 0; translate: 0 -8px; transition: opacity .25s, translate .4s var(--ease-out); }
.hd-mega.is-open { opacity: 1; translate: 0 0; }
.hd-mega[hidden] { display: none; }
.hd-mega::before { content: ""; position: absolute; inset: -14px 0 100%; } /* a bridge over the gap, so the pointer can travel from the link to the panel */
.hd-mega__in { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 10px; padding: 12px; border-radius: 30px; background: radial-gradient(70% 120% at 0% 0%, #0A3566 0%, transparent 60%) #041E3D; border: 1px solid var(--glass-line); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .08); }
/* the side: the hovered solution's photograph, a line, the way to all solutions */
.hd-mega__side { display: grid; align-content: start; gap: 14px; padding: 18px 18px 20px; border-radius: 22px; background: radial-gradient(90% 70% at 80% 0%, #0D427C 0%, transparent 75%) #062B55; } /* solid: a see-through panel inside the blurred island lets the page show through */
.hd-mega__shots { position: relative; aspect-ratio: 16 / 10; margin: 4px 12% 2px; }
.hd-mega__shots .loz { position: absolute; inset: 0; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .16); opacity: 0; transition: opacity .35s; }
.hd-mega__shots .loz.is-on { opacity: 1; }
.hd-mega__lead { font-size: .875rem; line-height: 1.55; color: var(--ink-on-dark-soft); }
.hd-mega__all { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 800; color: var(--lime-glow); }
.hd-mega__all:hover { color: #fff; }
.hd-mega__all .ic { transition: translate .25s var(--ease-out); }
.hd-mega__all:hover .ic { translate: 4px 0; }
/* the five rows */
.hd-mega__list { list-style: none; display: grid; gap: 4px; margin: 0; padding: 4px; }
.hd-mega__list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px 18px 12px 12px; border-radius: 18px; color: #fff; transition: background-color .2s; }
.hd-mega__list a:hover, .hd-mega__list a:focus-visible, .hd-mega__list a.is-on { background: rgba(255, 255, 255, .07); }
.hd-mega__ic { display: grid; place-items: center; width: 50px; height: 44px; margin-inline-start: 6px; border-radius: 11px; background: rgba(128, 188, 0, .14); color: var(--lime); transform: skewX(-24deg); transition: background-color .25s, color .25s; }
.hd-mega__ic .ic { transform: skewX(24deg); width: 24px; height: 24px; }
.hd-mega__list a:hover .hd-mega__ic, .hd-mega__list a.is-on .hd-mega__ic, .hd-mega__list a[aria-current] .hd-mega__ic { background: var(--lime); color: var(--navy); }
.hd-mega__txt { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: baseline; }
.hd-mega__txt b { font-size: .75rem; font-weight: 800; color: var(--lime-glow); }
.hd-mega__txt strong { font-size: 1rem; font-weight: 800; line-height: 1.3; }
.hd-mega__txt small { grid-column: 2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; margin-top: 2px; font-size: .8125rem; line-height: 1.45; color: var(--ink-on-dark-mute); }
.hd-mega__go { color: var(--ink-on-dark-mute); transition: translate .25s var(--ease-out), color .25s; }
.hd-mega__list a:hover .hd-mega__go, .hd-mega__list a.is-on .hd-mega__go { color: var(--lime); translate: 4px 0; }
[dir="rtl"] .hd-mega__list a:hover .hd-mega__go, [dir="rtl"] .hd-mega__list a.is-on .hd-mega__go { translate: -4px 0; }
.hd-mega__list a[aria-current] strong::after { content: ""; display: inline-block; width: 16px; height: 7px; margin-inline-start: 10px; border-radius: 2px; background: var(--lime); transform: skewX(-24deg); vertical-align: middle; }
/* the rows arrive one after another when the panel opens */
.hd-mega.is-open .hd-mega__list li { animation: hd-row .45s var(--ease-out) backwards; animation-delay: calc(var(--k) * 45ms + 60ms); }
@keyframes hd-row { from { opacity: 0; translate: 0 8px; } }
.calm .hd-mega, .calm .hd-mega__shots .loz { transition: none; }
.calm .hd-mega.is-open .hd-mega__list li { animation: none; }

/* ---------- Small dropdowns (About Us, Market Access): the page's sections under the item (brief §21) ---------- */
.hd__drop[data-sub] { position: relative; }
.hd-sub { position: absolute; top: calc(100% + 18px); inset-inline-start: -10px; z-index: 2; display: grid; gap: 2px; min-width: 290px; padding: 8px; border-radius: 22px; background: #041E3D; border: 1px solid var(--glass-line); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .8); opacity: 0; translate: 0 -8px; transition: opacity .2s, translate .35s var(--ease-out); }
.hd-sub.is-open { opacity: 1; translate: 0 0; }
.hd-sub[hidden] { display: none; }
.hd-sub::before { content: ""; position: absolute; inset: -20px 0 100%; } /* a bridge over the gap */
.hd__nav .hd-sub a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; font-size: .9375rem; font-weight: 600; color: var(--ink-on-dark-soft); white-space: nowrap; }
.hd__nav .hd-sub a:hover, .hd__nav .hd-sub a:focus-visible { color: #fff; background: rgba(255, 255, 255, .07); }
.hd-sub .ic { flex: none; width: 18px; height: 18px; color: var(--lime); }
.calm .hd-sub { transition: none; }
@media (max-width: 1023px) { .hd-mega { display: none !important; } }

/* ---------- More sheet ---------- */
body.is-locked { overflow: hidden; }
.sheet { position: fixed; inset: 0; z-index: var(--z-sheet); }
.sheet[hidden] { display: none; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(2, 12, 26, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .35s; }
.sheet__panel { position: absolute; inset: auto 0 0; max-height: 88vh; max-height: 88svh; overflow-y: auto; overscroll-behavior: contain; padding: 10px 14px calc(18px + var(--safe-bottom)); border-radius: 28px 28px 0 0; background: linear-gradient(180deg, #0B3A6E 0%, #062B55 34%, #041E3D 100%); border-top: 1px solid var(--glass-line); box-shadow: 0 -30px 80px -20px rgba(0, 0, 0, .7); transform: translateY(102%); transition: transform .42s var(--ease-out); outline: none; }
.sheet.is-open .sheet__scrim { opacity: 1; }
.sheet.is-open .sheet__panel { transform: none; }
.sheet__grip { display: block; width: 44px; height: 5px; margin: 0 auto 6px; border-radius: 3px; background: rgba(255, 255, 255, .3); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 8px; }
.sheet__head h2 { font-size: 1.25rem; font-weight: 800; }
.sheet__x { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .08); border: 1px solid var(--glass-line); }
.sheet__links { list-style: none; display: grid; gap: 2px; }
.sheet__links a { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 0 8px; border-radius: 18px; font-weight: 700; font-size: 1.0625rem; }
.sheet__links a:active { background: rgba(255, 255, 255, .08); }
.sheet__links a[aria-current] { background: rgba(128, 188, 0, .16); }
.sheet__links i { display: grid; place-items: center; width: 42px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .08); color: var(--lime); transform: skewX(-24deg); flex: none; margin-inline: 6px 2px; }
.sheet__links i .ic { transform: skewX(24deg); }
.sheet__links a > .ic { margin-inline-start: auto; color: var(--ink-on-dark-mute); }
/* a page's section (Vision & Core Values, Healthcare Market Experience…) sits indented under it */
.sheet__sub a { min-height: 50px; padding-inline-start: 30px; font-size: .9875rem; font-weight: 600; }
.sheet__sub i { width: 34px; height: 32px; }
.sheet__foot { display: grid; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--glass-line); }
.sheet__row { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 16px; color: var(--ink-on-dark-soft); font-weight: 600; font-size: .9375rem; }
.sheet__row .ic { color: var(--lime); }
.calm .sheet__panel, .calm .sheet__scrim { transition: none; }

/* ---------- Footer ---------- */
.ft { position: relative; isolation: isolate; background: var(--deep); color: #fff; padding: clamp(64px, 7vw, 104px) var(--gutter) 0; }
/* the diagonal cut rises over the end of whatever section comes before */
.ft::before { content: ""; position: absolute; z-index: -2; inset: auto 0 calc(100% - 1px); height: clamp(48px, 7vw, 104px); background: var(--deep); clip-path: polygon(0 100%, 100% 0, 100% 100%); pointer-events: none; }
.ft::after { content: ""; position: absolute; inset: auto 0 calc(100% - 1px); height: clamp(48px, 7vw, 104px); background: var(--lime); clip-path: polygon(0 calc(100% - 5px), 100% 0, 100% 5px, 0 100%); pointer-events: none; }
/* the pattern starts right under the lime line: it reaches up into the slanted top, cut along the same slant */
.ft__field { --top: clamp(48px, 7vw, 104px); position: absolute; inset: calc(1px - var(--top)) 0 0; z-index: -1; clip-path: polygon(0 var(--top), 100% 0, 100% 100%, 0 100%); overflow: hidden; background: url("../img/pattern-lozenge.svg") 0 0 / 352px auto; opacity: .9; -webkit-mask-image: radial-gradient(110% 120% at 100% 0%, #000 0%, rgba(0, 0, 0, .35) 45%, transparent 78%); mask-image: radial-gradient(110% 120% at 100% 0%, #000 0%, rgba(0, 0, 0, .35) 45%, transparent 78%); }
[dir="rtl"] .ft__field { -webkit-mask-image: radial-gradient(110% 120% at 0% 0%, #000 0%, rgba(0, 0, 0, .35) 45%, transparent 78%); mask-image: radial-gradient(110% 120% at 0% 0%, #000 0%, rgba(0, 0, 0, .35) 45%, transparent 78%); }
.ft__field.is-live { background: none; }
.ft__field canvas { display: block; width: 100%; height: 100%; }
.ft__grid { max-width: var(--container); margin-inline: auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.15fr 1.3fr; gap: 40px; align-items: start; }
.ft__brand { display: grid; gap: 18px; }
.ft__brand img { height: 52px; width: auto; }
.ft__brand p { max-width: 38ch; color: var(--ink-on-dark-soft); font-size: .9375rem; }
.ft__col h2 { margin-bottom: 14px; font-size: .8125rem; font-weight: 700; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--ink-on-dark-mute); }
.ft__col ul { list-style: none; display: grid; gap: 4px; }
.ft__col a, .ft__col li > span { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; color: var(--ink-on-dark-soft); font-weight: 600; font-size: .9375rem; transition: color .2s, translate .3s var(--ease-out); }
.ft__col a:hover { color: #fff; translate: 4px 0; }
[dir="rtl"] .ft__col a:hover { translate: -4px 0; }
.ft__col a[aria-current] { color: var(--lime-glow); }
.ft__contact .ic { color: var(--lime); }
@media (max-width: 1200px) and (min-width: 1001px) { .ft__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ft__cta { display: grid; gap: 10px; justify-items: start; padding: 24px; border-radius: 24px; }
.ft__cta h2 { font-size: 1.1875rem; font-weight: 800; line-height: 1.3; }
.ft__cta p { color: var(--ink-on-dark-soft); font-size: .9375rem; }
.ft__cta .btn { margin-top: 6px; }
.ft__bar { max-width: var(--container); margin: clamp(40px, 5vw, 64px) auto 0; padding: 22px 0 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; border-top: 1px solid var(--glass-line); font-size: .8125rem; color: var(--ink-on-dark-mute); }
.ft__bar ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.ft__bar a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink-on-dark-soft); font-weight: 600; }
.ft__bar a:hover { color: #fff; }
@media (max-width: 1000px) { .ft__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .ft__grid { grid-template-columns: 1fr; gap: 32px; }
  .ft__brand img { height: 44px; }
  .ft__bar { padding-bottom: calc(104px + var(--safe-bottom)); }
}

/* ---------- Preloader (html.pre-on is set before first paint, removed by frame.js) ---------- */
.pre { display: none; }
.pre-on .pre { position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 26px; background: radial-gradient(70% 60% at 50% 45%, #0D427C 0%, #062B55 45%, #041E3D 100%); animation: pre-out .75s var(--ease-in-out) 1.45s forwards; }
.pre img { width: min(230px, 56vw); height: auto; animation: pre-logo .8s var(--ease-out) both; }
.pre__loz { display: flex; gap: 10px; }
.pre__loz i { position: relative; width: 46px; height: 14px; border-radius: 4px; background: rgba(255, 255, 255, .12); transform: skewX(-24deg); overflow: hidden; }
.pre__loz i::after { content: ""; position: absolute; inset: 0; transform: scaleX(0); transform-origin: 0 50%; animation: pre-fill .4s var(--ease-out) forwards; }
.pre__loz i:nth-child(1)::after { background: #2C63A6; animation-delay: .25s; }
.pre__loz i:nth-child(2)::after { background: #fff; animation-delay: .55s; }
.pre__loz i:nth-child(3)::after { background: var(--lime); animation-delay: .85s; }
@keyframes pre-logo { from { opacity: 0; transform: translateY(14px); } }
@keyframes pre-fill { to { transform: scaleX(1); } }
@keyframes pre-out { from { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 140%); } to { clip-path: polygon(0 0, 100% 0, 100% -40%, 0 0); } }

/* ---------- Page transition ---------- */
.pt { position: fixed; inset: 0; z-index: 190; overflow: hidden; pointer-events: none; visibility: hidden; }
.pt i { position: absolute; inset: 0 -45%; background: linear-gradient(90deg, var(--lime) 0, var(--lime) 16px, #041E3D 16px); transform: translateX(112%) skewX(-24deg); transition: transform .42s var(--ease-in-out); }
.pt.is-out { visibility: visible; }
.pt.is-out i { transform: translateX(0) skewX(-24deg); }
.pt-arrive .pt { visibility: visible; }
.pt-arrive .pt i { transform: translateX(0) skewX(-24deg); transition: none; animation: pt-in .6s var(--ease-in-out) .08s forwards; }
@keyframes pt-in { to { transform: translateX(-112%) skewX(-24deg); } }
