/* The site menu in the TGT structure (25 Oct). See menu.js. The header becomes a white bar with a utility row. */
:root { --hd: 80px; --hm-ink: #1a1618; --hm-ink-2: #5a5357; --hm-ink-3: #8a8286; --hm-line: #ebe6e8; --hm-pill: #fbe8f2; }
@media (max-width: 1179px) { :root { --hd: 72px; } }

/* the white bar */
.hm-on .hd { background: #fff !important; box-shadow: 0 1px 0 var(--hm-line); padding-top: 0; gap: 20px; }
.hm-on .hd::before { display: none; }
.hm-util { position: absolute; top: 0; left: 0; right: 0; height: 34px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); border-bottom: 1px solid var(--hm-line); font: 400 12.5px/1 var(--f-body); color: var(--hm-ink-3); }
.hm-util-r { display: flex; gap: 22px; }
.hm-util a { color: var(--hm-ink-2); text-decoration: none; transition: color .2s; }
.hm-util a:hover { color: #E6007E; }
.hm-on .hd-logo img { width: 150px; }
.hm-on .hd-nav { gap: 2px; margin-left: auto; margin-right: auto; font: 500 .95rem/1 var(--f-body); }
.hm-on .hd-nav > a, .hm-on .hd-nav .hm-top { display: inline-flex; align-items: center; gap: 8px; padding: 13px 18px; border-radius: 999px; color: var(--hm-ink); text-decoration: none; transition: background .25s, color .25s; }
.hm-on .hd-nav > a:hover, .hm-on .hd-nav .hm-top:hover { background: #f6f3f4; color: var(--hm-ink); }
.hm-on .hd-nav .is-here, .hm-on .hd-nav > a[aria-current="page"] { color: #E6007E; }
.hm-item.is-open .hm-top { background: var(--hm-pill) !important; color: #E6007E !important; }
.hm-on .hd .btn-sm { margin-left: 0; border-radius: 999px; padding: 0 22px; min-height: 46px; }
.hm-chev { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .6; transition: transform .3s var(--ease); }
.hm-item.is-open .hm-chev { transform: translateY(1px) rotate(-135deg); }
.hm-arrow { width: 7px; height: 7px; flex: none; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); margin-left: 10px; }

/* the full-width white panel */
.hm-item { display: flex; align-items: center; }
.hm-panel { position: fixed; left: 0; right: 0; top: var(--hd); z-index: 48; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s .35s; }
.hm-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -40px; height: 40px; }   /* hover bridge from the item */
/* 9 Nov: the bridge spans the full width and sat over the lower half of the other menu items, so with one panel open,
   hovering the corner of the next item hovered the open item's bridge and the two panels flickered. The items now sit
   above it (the bridge still works in the gaps and under the open item), and a switch between panels is instant. */
.hm-on .hd-nav > a, .hm-on .hd-nav .hm-top { position: relative; z-index: 60; }
.hm-swap .hm-panel, .hm-swap .hm-scrim { transition: none !important; }
.hm-item.is-open .hm-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .35s var(--ease); }
.hm-panel-in { background: #fff; border-radius: 0 0 18px 18px; box-shadow: 0 30px 60px rgb(13 11 12 / .14); padding: 30px var(--pad) 36px; color: var(--hm-ink); }
.hm-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--hm-line); }
.hm-head-k { font: 400 12px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--hm-ink-3); }
.hm-viewall { display: inline-flex; align-items: center; color: #E6007E; text-decoration: none; font: 600 .9rem/1 var(--f-body); border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.hm-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding-top: 22px; align-items: start; }
.hm-panel.is-wide .hm-body { grid-template-columns: minmax(0, 1fr) 280px; }
.hm-cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0 28px; }
.hm-col-k { margin: 0 0 10px; font: 600 1.05rem/1.2 var(--f-body); color: var(--hm-ink); }
.hm-blank { visibility: hidden; }
.hm-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin: 0 -12px; border-radius: 12px; color: var(--hm-ink); text-decoration: none; transition: background .2s, color .2s; }
.hm-link b { display: block; font: 500 .95rem/1.25 var(--f-body); }
.hm-link small { display: block; margin-top: 3px; font: 400 .8rem/1.35 var(--f-body); color: var(--hm-ink-3); }
.hm-link .hm-arrow { opacity: 0; color: #E6007E; transform: translateX(-4px) rotate(45deg); transition: opacity .2s, transform .3s var(--ease); }
.hm-link:hover, .hm-link:focus-visible { background: var(--hm-pill); outline: none; }
.hm-link:hover b, .hm-link[aria-current="page"] b { color: #E6007E; }
.hm-link:hover .hm-arrow { opacity: 1; transform: rotate(45deg); }
.hm-pic { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: #1a1618; color: #fff; text-decoration: none; }
.hm-panel.is-wide .hm-pic { aspect-ratio: 3 / 4; }
.hm-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.hm-pic img.is-in { animation: hm-fade .45s var(--ease); }
@keyframes hm-fade { from { opacity: .2; transform: scale(1.04); } }
.hm-pic:hover img { transform: scale(1.03); }
.hm-pic::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgb(13 11 12 / .85)); }
.hm-pic-cap { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; display: grid; grid-template-columns: 1fr auto; align-items: end; }
.hm-pic-cap b { font: 700 1.15rem/1.15 var(--f-display); }
.hm-pic-cap span:not(.hm-arrow) { grid-column: 1; margin-top: 5px; font-size: .82rem; line-height: 1.35; color: rgb(255 255 255 / .8); }
.hm-pic-cap .hm-arrow { grid-row: 1 / span 2; grid-column: 2; align-self: end; margin-bottom: 4px; }

/* the page behind blurs */
.hm-scrim { position: fixed; inset: var(--hd) 0 0; z-index: 47; background: rgb(13 11 12 / .25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s .3s; }
.hm-panel-open .hm-scrim { opacity: 1; visibility: visible; transition: opacity .3s var(--ease); }

/* phones and tablets */
.hm-burger { display: none; place-items: center; width: 46px; height: 46px; margin-left: 4px; border: 1px solid var(--hm-line); border-radius: 999px; background: #fff; color: var(--hm-ink); cursor: pointer; }
.hm-bars { position: relative; width: 18px; height: 12px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; transition: border-color .2s; }
.hm-bars::before, .hm-bars::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: currentColor; transition: transform .3s var(--ease); }
.hm-burger[aria-expanded="true"] .hm-bars { border-color: transparent; }
.hm-burger[aria-expanded="true"] .hm-bars::before { transform: rotate(45deg); }
.hm-burger[aria-expanded="true"] .hm-bars::after { transform: rotate(-45deg); }
.hm-sheet { position: fixed; inset: var(--hd) 0 0; z-index: 49; background: #fff; color: var(--hm-ink); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s .4s; }
.hm-sheet.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .4s var(--ease); }
.hm-lock { overflow: hidden; }
.hm-sheet-in { padding: 8px var(--pad) 40px; }
.hm-s-row { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 18px 0; border: 0; border-bottom: 1px solid var(--hm-line); background: none; color: var(--hm-ink); text-decoration: none; font: 600 1.25rem/1.1 var(--f-body); cursor: pointer; text-align: left; }
.hm-s-row .hm-arrow { color: var(--hm-ink-3); }
.hm-s.is-open .hm-s-h { color: #E6007E; }
.hm-s.is-open .hm-s-h .hm-chev { transform: translateY(1px) rotate(-135deg); }
.hm-s-b { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.hm-s.is-open .hm-s-b { grid-template-rows: 1fr; }
.hm-s-in { overflow: hidden; }
.hm-s.is-open .hm-s-in { padding: 14px 0 18px; }
.hm-s-in .hm-col-k { margin: 12px 0 6px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--hm-ink-3); font-weight: 500; }
.hm-s-link { display: flex; align-items: center; gap: 14px; padding: 8px 0; color: var(--hm-ink); text-decoration: none; }
.hm-s-link img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; background: #1a1618; }
.hm-s-link b { display: block; font: 500 1rem/1.25 var(--f-body); }
.hm-s-link small { display: block; margin-top: 2px; font-size: .8rem; color: var(--hm-ink-3); }
.hm-s-link[aria-current="page"] b { color: #E6007E; }
.hm-s-in .hm-viewall { margin-top: 14px; }
.hm-s-cta { display: flex; justify-content: center; align-items: center; margin-top: 26px; min-height: 52px; border-radius: 999px; background: #E6007E; color: #fff; text-decoration: none; font: 700 1rem/1 var(--f-display); }
.hm-s-foot { margin: 18px 0 0; text-align: center; font-size: .82rem; color: var(--hm-ink-3); }

@media (max-width: 1240px) and (min-width: 1180px) { .hm-on .hd-nav > a, .hm-on .hd-nav .hm-top { padding: 12px 12px; } .hm-panel.is-wide .hm-body { grid-template-columns: minmax(0, 1fr) 220px; } }
@media (max-width: 1179px) {
  .hd-nav { display: none !important; }   /* 9 Nov: the full menu needs 1180px since the top strip moved into the bar */
  .hm-on .hd { padding-top: 0; }
  .hm-util { display: none; }
  .hm-burger { display: grid; }
  .hm-on .hd .btn-sm { margin-left: auto; min-height: 42px; padding: 0 16px; }
  .hm-on .hd-logo img { width: 128px; }
  .hm-scrim, .hm-panel { display: none; }
}
@media (max-width: 420px) { .hm-on .hd .btn-sm { display: none; } .hm-burger { margin-left: auto; } }
@media (min-width: 1180px) { .hm-sheet { display: none; } }
@media (prefers-reduced-motion: reduce) { .hm-panel, .hm-sheet, .hm-s-b, .hm-chev, .hm-scrim { transition: none; } .hm-pic img.is-in { animation: none; } }
/* the old header link rules (a.css .hd-nav a) must not reach the panel */
.hd-nav .hm-link { color: var(--hm-ink); padding: 10px 12px; }
.hd-nav .hm-link:hover b, .hd-nav .hm-link[aria-current="page"] b { color: #E6007E; }
.hd-nav .hm-viewall { color: #E6007E; padding: 0 0 3px; }
.hd-nav .hm-pic { color: #fff; padding: 0; }
.hm-col-k { min-height: 1.2em; }
/* inner pages: the closing has no scroll animation, so no 180vh sticky runway (only the home's data-closing animates) */
.motion.gl .closing:not([data-closing]) { height: auto; }
.motion.gl .closing:not([data-closing]) .closing-stage { position: relative; height: auto; min-height: 100svh; }
/* footer links: 44px tap targets on phones */
@media (max-width: 767px) { .ft a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 6px; } }

/* 11 Nov 2026: every panel uses the same four equal columns, so a panel with two columns (Work, Solutions, About) or three
   (Services) keeps the same column width as a full one instead of stretching each column across the space */
.hm-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-columns: minmax(0, 1fr); }
.hm-body, .hm-panel.is-wide .hm-body { grid-template-columns: minmax(0, 1fr) 280px; }   /* one card width, so the columns match exactly */
@media (max-width: 1240px) and (min-width: 1180px) { .hm-body, .hm-panel.is-wide .hm-body { grid-template-columns: minmax(0, 1fr) 220px; } }
