/* THE SITE HEADER, OVER THE HERO — 15 OCTOBER 2026
 *
 * Naren, with the client's homepage design as the reference: "How the menu
 * is created over the image only. Over the section only. Not the separate
 * header … when we scroll down, it will hide. Scroll up, then it will show
 * glass effect kind of menu." The menu reads Home, Products, Services,
 * Projects, About us, Careers; Products only opens its menu ("if somebody
 * clicks on Products, nothing should open up — only the drop-down"), and the
 * Products menu follows his second reference: the groups down the left, the
 * products of the group pointed at on the right.
 *
 * Three looks, from two classes the scripts already write (SiteHeader.tsx in
 * the app, app.js on the homepage) and from what is open:
 *
 *   over the hero  at the top of a page that opens with a hero — no bar, white
 *                  words and a white logo laid on the picture
 *   glass          .is-glass, once the page has moved; it slides away reading
 *                  down (.is-away) and comes back on any scroll up as frosted
 *                  glass across the whole width, its lower corners curved
 *   solid white    while a menu is open, and on a page with no hero
 *
 * ONE FILE FOR BOTH BUILDS. It replaced header-options.css and the review
 * button when the header was decided. Every rule names both builds' classes:
 *
 *   app (SiteHeader.tsx)      homepage build (index.html)
 *   .site-header__inner       .header-inner
 *   .site-header__logo        .logo
 *   .site-header__nav         .nav
 *   .site-header__end         .header-end
 *   .site-header__cta         .header-cta
 *   .site-header__menu        .menu-btn
 *   .site-header__panel       .mobile-nav
 *
 * Pixels throughout: the homepage's root font size is 80%. Every rule starts
 * at :root so it outranks both builds' own header rules wherever this file
 * lands in the cascade.
 */

:root { --hdr-h: 85px; --hdr-over: var(--hdr-h); }
@media (max-width: 720px) { :root { --hdr-h: 59px; } }
/* PHONES: ONE HEADER ON EVERY PAGE. Naren, 15 October: "in mobile, each
   header has a different colour — that is not a constant thing". Laid over
   the hero, a 59px bar took the colour of whatever each page opened with; on
   a phone it is its own white strip instead, on every page, the logo in its
   own colours, and the hero starts under it. --hdr-over is the room the bar
   takes over a hero: its height above 720px, none on a phone. */
@media (max-width: 720px) { :root { --hdr-over: 0px; } }

/* ── the bar ─────────────────────────────────────────────────────────── */
:root .site-header {
  background-color: #fff;
  border-bottom: 1px solid transparent; /* 84px + 1 = --hdr-h */
  box-shadow: none;
  transition: transform 0.38s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.25s ease;
}
:root .site-header :is(.site-header__inner, .header-inner) {
  height: 84px;
  gap: 28px;
  padding-inline: clamp(19.2px, 4.5vw, 88px);
}
/* a little bigger, 17 October (Naren: "the size of these logos should be
   bigger … little bit bigger"): 190 → 216px, 128 → 144px on a phone. Bigger
   again on 20 November (the client's list, point 8: "The size of the Logo to
   be increased as the texts are not clear"): 216 → 260px, as big as the 84px
   bar takes it (70px tall); 144 → 168px on a phone, 124 → 140px under 340px. */
:root .site-header :is(.site-header__logo, .logo) img { width: 260px; transition: filter 0.25s ease; }
:root .site-header :is(.site-header__nav, .nav) {
  align-items: center;
  gap: clamp(20px, 2.5vw, 40px);
  margin-inline: auto;
  font-size: 15.5px;
}
:root .site-header :is(.site-header__nav, .nav) a,
:root .site-header .hdr-mega__trigger {
  position: relative;
  padding: 6px 0;
  border: 0;
  color: #0f2b4c;
  /* bold, 17 October (Naren: "menu text, you can make it bold") */
  font-weight: 700;
  transition: color 0.2s ease;
}
/* Products is a button now: it opens the menu and goes nowhere */
:root .site-header .hdr-mega__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  line-height: inherit;
  cursor: pointer;
}
/* and the phone menu's own top line of links, both builds (its product list
   keeps its weights) */
:root .site-header :is(.site-header__panel, .mobile-nav) > a,
:root .site-header .hdr-m__t { font-weight: 700; }
:root .site-header .hdr-mega__trigger::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: #b00830;
  transform: scale(0);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
:root .site-header :is(.site-header__nav, .nav) a:hover,
:root .site-header .hdr-mega__trigger:hover,
:root .site-header .hdr-mega.is-open .hdr-mega__trigger { color: #b00830; }
:root .site-header :is(.site-header__nav, .nav) a:hover::after,
:root .site-header .hdr-mega__trigger:hover::after,
:root .site-header .hdr-mega.is-open .hdr-mega__trigger::after { transform: scale(1); }

/* the right-hand end: the Contact button and, under 1180px, the menu button —
   the gradient panel and the telephone are gone with option B */
:root .site-header :is(.site-header__end, .header-end) {
  align-self: center;
  margin-left: 0;
  padding: 0;
  gap: 12px;
}
:root .site-header :is(.site-header__end, .header-end)::before,
:root .site-header .hdr-phone,
:root .site-header .hdr-nav-contact { display: none; }
:root .site-header :is(.site-header__cta, .header-cta) {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px;
  border: 1.5px solid #b00830;
  border-radius: 999px;
  background: #b00830;
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
:root .site-header :is(.site-header__cta, .header-cta):hover { background: #8f0725; border-color: #8f0725; color: #fff; }

@media (max-width: 1180px) {
  /* with the menu hidden nothing else pushes the end group across, so it
     takes the free space itself — the menu button sits at the right edge */
  :root .site-header :is(.site-header__end, .header-end) { margin-left: auto; }
  :root .site-header :is(.site-header__menu, .menu-btn) {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 0 9px;
    flex: none;
    background: none;
    border: 1px solid rgba(15, 43, 76, 0.18);
    border-radius: 9px;
    cursor: pointer;
  }
  :root .site-header :is(.site-header__menu, .menu-btn) span { display: block; height: 2px; border-radius: 2px; background: #0f2b4c; }
}
@media (max-width: 720px) {
  :root .site-header :is(.site-header__inner, .header-inner) { height: 58px; gap: 10px; padding-inline: 16px; }
  :root .site-header :is(.site-header__logo, .logo) img { width: 168px; }
  :root .site-header :is(.site-header__end, .header-end) { gap: 8px; }
  /* phones: the logo and the menu button only (Naren, 15 October: "in the
     mobile device … only hamburger icon, keep it right side") — Contact us
     is the last row of the menu it opens */
  :root .site-header :is(.site-header__cta, .header-cta) { display: none; }
}
@media (max-width: 340px) {
  :root .site-header :is(.site-header__logo, .logo) img { width: 140px; }
}

/* ── glass ───────────────────────────────────────────────────────────
   15 October the glass was tinted with the brand's own colours ("don't make
   it in white colour … some glass effect transparency … don't give the curve
   corner"). 17 October, Naren: "right now the header is not transparent kind
   of a glass. It has a colour directly … when I scroll down, in the middle of
   the page, the page colour is white … if it is a glass, transparent, then it
   will show white colour … but it shows some other colours." So the glass is
   clear: a light white veil and a strong blur, so over a white section it
   reads white and over a dark one the dark shows through, softened. Square,
   as before. Above 720px the bar is this glass whenever it is not lying clear
   over the hero — on the way back up (.is-glass), and while the Products menu
   is open, the menu being the same light glass under it — and on it the logo
   is the client's own, in its colours, and the words are dark (the bar's
   plain look, top of this file). Over the hero, at the top of a page, it is
   exactly as it was: no bar, white words, the white logo. On a phone the bar
   is the constant white strip, glass or not (below).
   The glass is the header's ::before (globals.css / style.css, "THE BAR ON
   SCROLL") — never a backdrop-filter on the header itself, which would make
   it the containing block of everything positioned inside it. */
:root .site-header::before {
  border-radius: 0;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 10px 26px -18px rgba(10, 20, 50, 0.4), inset 0 -1px 0 rgba(15, 43, 76, 0.07);
  /* over the bar's 1px bottom border too, or the hero shows through it as a
     coloured hairline under clear glass */
  bottom: -1px;
}
:root .site-header.is-glass { background-color: transparent; border-bottom-color: transparent; box-shadow: none; }
:root .site-header.is-glass::before,
:root .site-header:has(.hdr-panel.is-open)::before { opacity: 1; }
:root .site-header:has(.hdr-panel.is-open) { background-color: transparent; }
/* With the Products menu open the bar is the menu's own light ground, not
   the clear glass — the client's list, 11 November, point 1: "Hero section
   the header is in red when the background is also red". At the top of a
   page the glass let the red hero through as pink; now bar and menu are
   one light piece over any page. (Phones keep their white strip.) */
@media (min-width: 721px) {
  :root .site-header:has(.hdr-panel.is-open)::before {
    background: linear-gradient(100deg, rgba(255, 246, 248, 0.98) 0%, rgba(255, 255, 255, 0.98) 42%, rgba(242, 247, 253, 0.98) 100%);
  }
}
/* the phone menu (any width up to 1180px) opens as a white sheet, and the
   bar goes white with it */
:root .site-header:has(.site-header__panel:not([hidden]), .mobile-nav:not([hidden])) { background-color: #fff; }
:root .site-header:has(.site-header__panel:not([hidden]), .mobile-nav:not([hidden]))::before { opacity: 0; }
@media (max-width: 720px) {
  /* phones: the constant white strip, glass or not */
  :root .site-header::before {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 24px -18px rgba(10, 20, 50, 0.45), inset 0 -1px 0 rgba(15, 43, 76, 0.06);
  }
}

/* ── over the hero ───────────────────────────────────────────────────
   Only on a page that opens with a hero — every page on the site does, but a
   page that did not would keep the white bar rather than white words on white.
   The bar takes no room: the page slides up under it by --hdr-over and each
   kind of hero gives the same room back at its top, below. On a phone the bar
   is its own white strip (top of this file), so there is nothing to give back. */
:root:has(.pp-hero, .v3-ph, .v3-skh, .hx-panel, [data-screen-label$="Hero"]) .site-header {
  margin-bottom: calc(-1 * var(--hdr-over));
}
@media (min-width: 721px) {
  /* clear over the hero at the top of the page */
  :root:has(.pp-hero, .v3-ph, .v3-skh, .hx-panel, [data-screen-label$="Hero"]) .site-header:is(:not(.is-glass), .is-onred):not(:has(.site-header__panel:not([hidden]), .mobile-nav:not([hidden]))) { background-color: transparent; }
  /* white words and the white logo — over the hero only, at the top of the
     page. On the glass and with a menu open the bar keeps its plain look:
     the logo in its own colours, dark words (17 October). */
  :root:has(.pp-hero, .v3-ph, .v3-skh, .hx-panel, [data-screen-label$="Hero"]) .site-header:is(:not(.is-glass), .is-onred):not(:has(.hdr-panel.is-open, .site-header__panel:not([hidden]), .mobile-nav:not([hidden]))) :is(.site-header__logo, .logo) img {
    /* the client's lockup in white: the reversed logo for a dark ground */
    filter: brightness(0) invert(1);
  }
  :root:has(.pp-hero, .v3-ph, .v3-skh, .hx-panel, [data-screen-label$="Hero"]) .site-header:is(:not(.is-glass), .is-onred):not(:has(.hdr-panel.is-open, .site-header__panel:not([hidden]), .mobile-nav:not([hidden]))) :is(.site-header__nav a, .nav a, .hdr-mega__trigger) {
    color: #fff;
    text-shadow: 0 1px 12px rgba(4, 12, 32, 0.35);
  }
  :root:has(.pp-hero, .v3-ph, .v3-skh, .hx-panel, [data-screen-label$="Hero"]) .site-header:is(:not(.is-glass), .is-onred):not(:has(.hdr-panel.is-open, .site-header__panel:not([hidden]), .mobile-nav:not([hidden]))) :is(.site-header__nav a, .nav a, .hdr-mega__trigger):hover,
  :root:has(.pp-hero, .v3-ph, .v3-skh, .hx-panel, [data-screen-label$="Hero"]) .site-header:is(:not(.is-glass), .is-onred):not(:has(.hdr-panel.is-open, .site-header__panel:not([hidden]), .mobile-nav:not([hidden]))) .hdr-mega.is-open .hdr-mega__trigger {
    color: #fff;
  }
  :root:has(.pp-hero, .v3-ph, .v3-skh, .hx-panel, [data-screen-label$="Hero"]) .site-header:is(:not(.is-glass), .is-onred):not(:has(.hdr-panel.is-open, .site-header__panel:not([hidden]), .mobile-nav:not([hidden]))) :is(.site-header__nav a, .nav a, .hdr-mega__trigger)::after {
    background: #fff;
  }
  :root:has(.pp-hero, .v3-ph, .v3-skh, .hx-panel, [data-screen-label$="Hero"]) .site-header:is(:not(.is-glass), .is-onred):not(:has(.hdr-panel.is-open, .site-header__panel:not([hidden]), .mobile-nav:not([hidden]))) :is(.site-header__cta, .header-cta) {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.75);
    color: #fff;
  }
  :root:has(.pp-hero, .v3-ph, .v3-skh, .hx-panel, [data-screen-label$="Hero"]) .site-header:is(:not(.is-glass), .is-onred):not(:has(.hdr-panel.is-open, .site-header__panel:not([hidden]), .mobile-nav:not([hidden]))) :is(.site-header__cta, .header-cta):hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: #fff;
    color: #fff;
  }
  :root:has(.pp-hero, .v3-ph, .v3-skh, .hx-panel, [data-screen-label$="Hero"]) .site-header:is(:not(.is-glass), .is-onred):not(:has(.hdr-panel.is-open, .site-header__panel:not([hidden]), .mobile-nav:not([hidden]))) :is(.site-header__menu, .menu-btn) {
    border-color: rgba(255, 255, 255, 0.55);
  }
  :root:has(.pp-hero, .v3-ph, .v3-skh, .hx-panel, [data-screen-label$="Hero"]) .site-header:is(:not(.is-glass), .is-onred):not(:has(.hdr-panel.is-open, .site-header__panel:not([hidden]), .mobile-nav:not([hidden]))) :is(.site-header__menu, .menu-btn) span {
    background: #fff;
  }
}

/* OVER RED, ON THE WAY BACK UP — 19 October, their V3 list, point 2: "The
   Logo needs to be white when the background is red." The bar's script marks
   it .is-onred while what lies under the logo is a red ground — a hero, a dark
   section, the footer's coloured part (SiteHeader.tsx / app.js, overDark). It
   keeps its glass, so the page under it stays veiled, but the veil turns dark
   and the bar takes the over-the-hero look: the white logo and white words
   (the rules above apply to .is-onred as to the clear bar). Over a white page
   it is the light glass and the logo's own colours, as before. */
@media (min-width: 721px) {
  :root .site-header.is-glass.is-onred:not(:has(.hdr-panel.is-open, .site-header__panel:not([hidden]), .mobile-nav:not([hidden])))::before {
    background: rgba(18, 8, 30, 0.42);
    box-shadow: 0 10px 26px -18px rgba(4, 8, 24, 0.6), inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  }
}

/* each kind of hero gives the bar's room back at its top, so its words keep
   their place under the bar and its picture runs on behind it */
/* the interior pages (ProductHero) */
:root .pp-hero { padding-top: var(--hdr-over); height: calc(var(--hero-h, 720px) + var(--hdr-over)); }
@media (max-width: 900px) {
  :root .pp-hero { height: auto; }
}
/* SENTRIS and the Traffic Simulator: the plate is drawn from the band's height */
:root .v3-ph { height: calc(var(--hero-h) + var(--hdr-over)); }
:root .v3-ph__body { padding-top: calc(clamp(22px, 4vh, 54px) + var(--hdr-over)); }
/* SENTRACK: its plate is drawn from the width, so it moves down with the words */
:root .v3-skh { height: calc(var(--hero-h) + var(--hdr-over)); }
:root .v3-skh__body { padding-top: calc(clamp(22px, 4vh, 54px) + var(--hdr-over)); }
:root :is(.v3-skh__plate, .v3-skh__frame) { top: var(--hdr-over); }
@media (max-width: 1179px) {
  :root .v3-ph, :root .v3-skh { height: auto; padding-top: calc(32px + var(--hdr-over)); }
  :root .v3-skh__plate { top: auto; }
}
@media (max-width: 759px) {
  :root .v3-ph, :root .v3-skh { padding-top: calc(10px + var(--hdr-over)); }
}
/* SCUBE, SENSIO and RDPMS: a minimum height and a full-cover ground */
:root :is(#scube[data-screen-label="01 Hero"], section#hero[data-screen-label="01 Hero"]:not(.v3-ph):not(.v3-skh), section[data-screen-label="RDPMS Hero"]) {
  padding-top: var(--hdr-over);
}
@media (min-width: 1180px) {
  :root :is(#scube[data-screen-label="01 Hero"], section#hero[data-screen-label="01 Hero"]:not(.v3-ph):not(.v3-skh), section[data-screen-label="RDPMS Hero"]) {
    min-height: calc(var(--v3-fold) + var(--hdr-over)) !important;
  }
}
/* the homepage: beside the copy above 760px; on a phone the photograph is the
   strip at the top, and it runs up behind the bar */
@media (min-width: 761px) {
  :root .hx-panel { padding-top: var(--hdr-over); min-height: calc(clamp(40rem, 47vw, 57rem) + var(--hdr-over)); }
}
@media (max-width: 760px) {
  :root .hx-photo { height: calc(16rem + var(--hdr-over)); }
}

/* ── the Products menu ───────────────────────────────────────────────
   Naren's reference for the layout — the groups down the left, the products
   of the group pointed at on the right — with the menu's own three groups,
   each with its line of description and its mark, every product with its
   mark, its name and its line under it, and the right of the band filled by
   the portfolio's line on the brand gradient rather than left white.
   Pointing at or focusing a group shows its products. Nothing in it is
   rounded ("don't give the curve corner"). And it is LIGHT: "the header
   submenu background should be white … light … don't give our gradient
   colour; if you give, give gradient colour light" — white with a breath of
   the brand's red at the left and its blue at the right, dark words, and the
   card a pale gradient (the old menu's portfolio card). */
:root .site-header .hdr-panel {
  background: linear-gradient(100deg, rgba(255, 246, 248, 0.98) 0%, rgba(255, 255, 255, 0.98) 42%, rgba(242, 247, 253, 0.98) 100%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid #e6e9f0;
  box-shadow: 0 30px 56px -32px rgba(11, 31, 63, 0.4);
}
:root .site-header .hdr-panel__inner.hdr-mx {
  display: grid;
  grid-template-columns: minmax(0, 30fr) minmax(0, 38fr) minmax(0, 32fr);
  grid-template-rows: auto auto auto 1fr;
  column-gap: 0;
  row-gap: 6px;
  max-width: 1600px;
  margin-inline: auto;
  padding: 26px clamp(19.2px, 4.5vw, 88px) 28px;
}
.hdr-mx__grp { display: contents; }
.hdr-mx__ico {
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 0;
  background: #f1f4f8;
  box-shadow: inset 0 0 0 1px rgba(15, 43, 76, 0.06);
  color: #0f2b4c;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.hdr-mx__ico svg { display: block; }

/* the groups */
:root .site-header .hdr-mx__cat {
  grid-column: 1;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 22px;
  align-items: center;
  column-gap: 14px;
  width: calc(100% - clamp(20px, 2.4vw, 36px));
  margin: 0;
  padding: 12px 16px 12px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font: inherit;
  color: #0f2b4c;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.hdr-mx__grp:nth-child(1) > .hdr-mx__cat { grid-row: 1; }
.hdr-mx__grp:nth-child(2) > .hdr-mx__cat { grid-row: 2; }
.hdr-mx__grp:nth-child(3) > .hdr-mx__cat { grid-row: 3; }
:root .site-header .hdr-mx__cat:hover { background: rgba(15, 43, 76, 0.035); }
:root .site-header .hdr-mx__grp.is-on > .hdr-mx__cat { background: rgba(15, 43, 76, 0.06); }
.hdr-mx__cat .hdr-mx__ico { width: 44px; height: 44px; }
.hdr-mx__cat .hdr-mx__ico svg { width: 21px; height: 21px; }
.hdr-mx__grp.is-on > .hdr-mx__cat .hdr-mx__ico {
  background: #b00830;
  box-shadow: none;
  color: #fff;
}
.hdr-mx__txt { display: grid; gap: 3px; min-width: 0; }
.hdr-mx__txt b { font-size: 17px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: #0f2b4c; }
.hdr-mx__txt em { font-style: normal; font-size: 13px; line-height: 1.35; color: #6b7a90; }
.hdr-mx__arw {
  width: 20px;
  height: 13px;
  background: #b00830;
  -webkit-mask: no-repeat center / contain url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 15'%3E%3Cpath d='M1 7.5h20M15.4 1.4 21.5 7.5l-6.1 6.1' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask: no-repeat center / contain url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 15'%3E%3Cpath d='M1 7.5h20M15.4 1.4 21.5 7.5l-6.1 6.1' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.hdr-mx__grp.is-on .hdr-mx__arw { opacity: 1; transform: none; }

/* the products of the group pointed at */
:root .site-header .hdr-mx__list {
  grid-column: 2;
  grid-row: 1 / -1;
  display: grid;
  align-content: start;
  gap: 4px;
  margin: 0;
  padding: 0 clamp(20px, 2.6vw, 44px);
  list-style: none;
  border-left: 1px solid #e3e8ef;
}
.hdr-mx__grp:not(.is-on) > .hdr-mx__list { display: none; }
.hdr-mx__list li { animation: hdr-mx-in 0.34s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes hdr-mx-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
:root .site-header .hdr-mx__list a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 16px;
  align-items: center;
  column-gap: 14px;
  row-gap: 2px;
  padding: 9px 12px;
  border: 0;
  border-radius: 0;
  color: #0f2b4c;
  transition: background-color 0.2s ease;
}
.hdr-mx__list a .hdr-mx__ico { grid-row: 1 / span 2; width: 40px; height: 40px; }
.hdr-mx__list a .hdr-mx__ico svg { width: 19px; height: 19px; }
.hdr-mx__list a b { grid-column: 2; align-self: end; font-size: 16px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: #0f2b4c; transition: color 0.2s ease; }
.hdr-mx__list a em { grid-column: 2; align-self: start; font-style: normal; font-size: 13px; line-height: 1.35; color: #6b7a90; }
.hdr-mx__list a::after {
  content: "→";
  grid-column: 3;
  grid-row: 1 / span 2;
  color: #b00830;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.25s ease;
}
:root .site-header .hdr-mx__list a:hover { background: rgba(15, 43, 76, 0.04); }
:root .site-header .hdr-mx__list a:hover b { color: #b00830; }
.hdr-mx__list a:hover .hdr-mx__ico { background: #fbeff2; box-shadow: none; color: #b00830; }
.hdr-mx__list a:hover::after { opacity: 1; transform: none; }

/* the right of the band: the portfolio's line on the brand gradient */
:root .site-header .hdr-mx__card {
  grid-column: 3;
  grid-row: 1 / -1;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 28px 24px;
  border: 1px solid #e3e8f1;
  border-radius: 0;
  color: #0f2b4c;
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(253, 226, 233, 0.95), transparent 64%),
    radial-gradient(80% 110% at 100% 100%, rgba(214, 230, 250, 0.95), transparent 66%),
    linear-gradient(120deg, #fdf0f3 0%, #f6f4fa 45%, #eaf2fc 100%);
  box-shadow: 0 22px 44px -32px rgba(15, 43, 76, 0.45);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
/* the hero's diagonal line, faint, across the card */
.hdr-mx__card::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -20%;
  bottom: -20%;
  right: 24%;
  width: 1px;
  background: linear-gradient(180deg, rgba(176, 8, 48, 0), rgba(176, 8, 48, 0.22) 45%, rgba(176, 8, 48, 0));
  transform: skewX(-20deg);
}
:root .site-header .hdr-mx__card:hover { transform: translateY(-2px); box-shadow: 0 28px 52px -30px rgba(15, 43, 76, 0.55); }
.hdr-mx__eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #7d0620; }
.hdr-mx__lead { margin-top: -6px; max-width: 26ch; font-size: 19px; font-weight: 700; line-height: 1.35; letter-spacing: -0.015em; color: #0f2b4c; }
.hdr-mx__help { display: grid; gap: 4px; padding-top: 16px; border-top: 1px solid rgba(15, 43, 76, 0.12); font-size: 13.5px; color: #46618a; }
.hdr-mx__help b { font-size: 15px; font-weight: 700; color: #0058a8; }
.hdr-mx__help b span { display: inline-block; transition: transform 0.25s ease; }
:root .site-header .hdr-mx__card:hover .hdr-mx__help b span { transform: translateX(4px); }

/* the phone menu's Products list, in the same three groups */
:root .site-header .hdr-m__g {
  display: block;
  padding: 12px 0 4px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7d0620;
}
:root .site-header .hdr-m__g em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #8892a4;
}

@media (prefers-reduced-motion: reduce) {
  :root .site-header, :root .site-header::before { transition: none; }
  .hdr-mx__list li { animation: none; }
  .hdr-mx__arw, :root .site-header .hdr-mx__card { transition: none; }
}
