/* The HUD menu (9 Nov 2026, look C from hero-lab/glass). Sits on top of menu.css on every page; hud.js adds the
   pieces it needs (.hud-on, the bar shape, the live clocks, the hide on scroll).
   - the white bar stays, with a tab under the menu joined by inverted corners (drawn by hud.js as .hud-shape)
   - a live strip on top: Dubai and Beirut clocks
   - mono labels; magenta brackets snap to the item you point at
   - the Start a Conversation button: dark, with a glowing border running round it
   - scrolling down hides it in two beats, scrolling up brings it back the same way in reverse (hud.js, GSAP) */

/* the bar: menu.css paints the header white; here the white comes from the shape, so the strip and the main bar
   can move separately. The strip has its own white and sits above the main bar. */
.hud-on.hm-on .hd { background: transparent !important; box-shadow: none; }
.hud-shape { position: absolute; left: 0; top: 0; z-index: -1; overflow: visible; pointer-events: none; }
.hud-shape path { fill: #fff; stroke: var(--hm-line); stroke-width: 1; }
.hud-on .hm-util { background: #fff; z-index: 70; will-change: transform; font: 400 11px/1 var(--f-mono, ui-monospace, monospace); letter-spacing: .08em; text-transform: uppercase; }
.hud-on .hud-shape, .hud-on .hd-logo, .hud-on .hd > .btn-sm, .hud-on .hm-burger { will-change: transform; }
.hud-tab.hm-on .hd-nav { position: relative; top: 20px; }   /* the menu sits in the middle of its tab */
.hud-away .hd { pointer-events: none; }                     /* while the menu is away, clicks reach the page */

/* the live strip */
.hud-on .hm-util-l { display: inline-flex; align-items: center; gap: 10px; color: var(--hm-ink-2); font-variant-numeric: tabular-nums; }
.hud-on .hm-util-l i { font-style: normal; color: var(--hm-ink-3); }
.hud-on .hm-util a:hover { color: #E6007E; }
.hud-live { width: 6px; height: 6px; border-radius: 50%; background: #2bd47d; box-shadow: 0 0 10px #2bd47d; animation: hud-blink 2s infinite; }
@keyframes hud-blink { 50% { opacity: .35; } }

/* the menu: mono labels and brackets */
.hud-on.hm-on .hd-nav > a, .hud-on.hm-on .hd-nav .hm-top { position: relative; font: 400 12.5px/1 var(--f-mono, ui-monospace, monospace); letter-spacing: .1em; text-transform: uppercase; padding: 14px 16px; border-radius: 0; color: var(--hm-ink); }
.hud-on.hm-on .hd-nav > a:hover, .hud-on.hm-on .hd-nav .hm-top:hover, .hud-on .hm-item.is-open .hm-top { background: transparent !important; }
/* the brackets never take the pointer: they start outside the item and slide in, and when they could be hovered,
   approaching on a diagonal hovered the bracket, pulled it away from the pointer, lost the hover, and flickered */
.hud-on.hm-on .hd-nav > a::before, .hud-on.hm-on .hd-nav > a::after, .hud-on.hm-on .hd-nav .hm-top::before, .hud-on.hm-on .hd-nav .hm-top::after {
  content: ""; position: absolute; width: 8px; height: 8px; border: 0 solid #E6007E; opacity: 0; pointer-events: none; transition: opacity .2s, transform .35s var(--ease, cubic-bezier(.16, 1, .3, 1)); }
.hud-on.hm-on .hd-nav > a::before, .hud-on.hm-on .hd-nav .hm-top::before { left: 2px; top: 4px; border-left-width: 1.5px; border-top-width: 1.5px; transform: translate(-6px, -6px); }
.hud-on.hm-on .hd-nav > a::after, .hud-on.hm-on .hd-nav .hm-top::after { right: 2px; bottom: 4px; border-right-width: 1.5px; border-bottom-width: 1.5px; transform: translate(6px, 6px); }
.hud-on.hm-on .hd-nav > a:hover::before, .hud-on.hm-on .hd-nav > a:hover::after, .hud-on.hm-on .hd-nav .hm-top:hover::before, .hud-on.hm-on .hd-nav .hm-top:hover::after,
.hud-on .hm-item.is-open .hm-top::before, .hud-on .hm-item.is-open .hm-top::after { opacity: 1; transform: none; }
.hud-on.hm-on .hd-nav > a:hover, .hud-on.hm-on .hd-nav .hm-top:hover, .hud-on .hm-item.is-open .hm-top, .hud-on.hm-on .hd-nav .is-here { color: #E6007E !important; }
/* while you point at another item, the open one lets go of its brackets and colour, so only one item is marked */
.hud-on .hd-nav:has(> a:hover, .hm-top:hover) .hm-item.is-open .hm-top:not(:hover) { color: var(--hm-ink) !important; }
.hud-on .hd-nav:has(> a:hover, .hm-top:hover) .hm-item.is-open .hm-top:not(:hover)::before { opacity: 0; transform: translate(-6px, -6px); }
.hud-on .hd-nav:has(> a:hover, .hm-top:hover) .hm-item.is-open .hm-top:not(:hover)::after { opacity: 0; transform: translate(6px, 6px); }

/* the button: magenta with white type on the white bar (9 Nov: no black), a thin white light sweeping round its edge,
   an arrow that nudges on hover */
@property --hud-ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.hud-on.hm-on .hd .btn-sm { position: relative; isolation: isolate; gap: 10px; background: #E6007E; border-radius: 12px; color: #fff;
  font: 400 12.5px/1 var(--f-mono, ui-monospace, monospace); letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 6px 18px oklch(0.6 0.244 358.6 / .28); transition: background-color .3s, box-shadow .3s; }
.hud-on.hm-on .hd .btn-sm::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 12px; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--hud-ang), transparent 0deg, transparent 250deg, oklch(1 0 0 / .95) 300deg, transparent 340deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: hud-spin 4s linear infinite; }
.hud-on.hm-on .hd .btn-sm::after { content: ""; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .4s var(--ease, cubic-bezier(.16, 1, .3, 1)); }
.hud-on.hm-on .hd .btn-sm:hover { background: #C8006D; box-shadow: 0 8px 24px oklch(0.6 0.244 358.6 / .4); }
.hud-on.hm-on .hd .btn-sm:hover::after { transform: translateX(3px) rotate(45deg); }
@keyframes hud-spin { to { --hud-ang: 360deg; } }

@media (prefers-reduced-motion: reduce) {
  .hud-on .hd-nav a::before, .hud-on .hd-nav a::after { transition: none !important; }
  .hud-on.hm-on .hd .btn-sm::before, .hud-live { animation: none; }
}

/* Smooth scrolling (shared/smooth.js, Lenis): the rules Lenis needs. The page's own scroll-behavior: smooth would
   fight it, so it is off while Lenis runs; iframes ignore the pointer only while a scroll is moving. */
html.lenis, html.lenis body { height: auto; }
html.lenis, .lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* 9 Nov 2026: the top strip is merged into the bar. The logo carries a short line in the strip's style (mono, with the
   live dot), and Free Brand Audit sits by the button as a quiet mono link. The rest of the strip's links are in the menus. */
.hm-on .hd-logo { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 7px; text-decoration: none; }
.hm-tag { display: inline-flex; align-items: center; gap: 8px; font: 400 10px/1 var(--f-mono, ui-monospace, monospace); letter-spacing: .12em; text-transform: uppercase; color: var(--hm-ink-3); white-space: nowrap; }
.hm-tag .hud-live { flex: none; }
.hm-audit { display: inline-flex; align-items: center; gap: 9px; padding: 12px 4px; color: var(--hm-ink); text-decoration: none; white-space: nowrap;
  font: 400 12.5px/1 var(--f-mono, ui-monospace, monospace); letter-spacing: .1em; text-transform: uppercase; transition: color .2s; }
.hm-audit::before { content: ""; width: 6px; height: 6px; border-radius: 1.5px; background: #E6007E; transition: transform .3s var(--ease, cubic-bezier(.16, 1, .3, 1)); }
.hm-audit:hover, .hm-audit.is-here { color: #E6007E; }
.hm-audit:hover::before { transform: rotate(45deg) scale(1.15); }
.hm-audit:focus-visible { outline: 2px solid #E6007E; outline-offset: 2px; border-radius: 4px; }
.hud-on .hm-audit { will-change: transform; }
@media (max-width: 1599px) { .hm-audit { display: none; } }   /* narrower: it is still under Solutions (10 Nov 2026: from 1600px, was 1460px) */
@media (max-width: 1179px) { .hm-on .hd-logo { gap: 5px; } .hm-tag { font-size: 9px; letter-spacing: .1em; } }
@media (max-width: 359px) { .hm-tag { display: none; } }
/* small laptops: tighter menu items so the button keeps its place (10 Nov 2026: up to 1599px, where the audit link
   comes in; the button stays on one line) */
@media (min-width: 1180px) and (max-width: 1599px) {
  .hud-on.hm-on .hd .btn-sm { white-space: nowrap; flex: none; }
  .hud-on.hm-on .hd-nav > a, .hud-on.hm-on .hd-nav .hm-top { padding: 14px 9px; letter-spacing: .06em; font-size: 12px; }
  .hm-on .hd-nav .hm-top { gap: 6px; }
  .hud-on.hm-on .hd .btn-sm { padding: 0 16px; letter-spacing: .06em; }
  .hm-tag { font-size: 9px; letter-spacing: .06em; }   /* 10 Nov 2026: the tagline grew (India), so it tightens here and the button stays on one line */
}

/* 11 Nov 2026 (the manager: the old font was better): the menu, the button and the audit link back in Inter, normal
   case, as on the live site before the HUD. The HUD's shape, brackets and glowing button stay. The small tagline under
   the logo keeps its mono label style, like the eyebrows. Backup: _backups/header-font-2026-11-11. */
.hud-on.hm-on .hd-nav > a, .hud-on.hm-on .hd-nav .hm-top { font: 500 .95rem/1 var(--f-body); letter-spacing: 0; text-transform: none; }
.hud-on.hm-on .hd .btn-sm { font: 600 .9375rem/1 var(--f-body); letter-spacing: 0; text-transform: none; }
.hm-audit { font: 500 .95rem/1 var(--f-body); letter-spacing: 0; text-transform: none; }
@media (min-width: 1180px) and (max-width: 1599px) {
  .hud-on.hm-on .hd-nav > a, .hud-on.hm-on .hd-nav .hm-top { font-size: .9rem; letter-spacing: 0; }
  .hud-on.hm-on .hd .btn-sm { letter-spacing: 0; }
}
