/* Orb nav — ported from the Norvane header (HorizonX, 2026-10). Same geometry, states and motion;
   Orb's tokens, type and marks. Scroll states live on [data-mode]:
     "top"  white bar over the dark opening (black ink; David 2026-10-30: text black in every state)
     "down" the bar collapses into the centred chip (the Orb emblem in a cream box)
     "up"   a cream floating pill with dark ink
   Menus: a left drawer on desktop (≥1024px), a full-screen sheet on phones. nav.js drives it. */

.nh {
  --nh-ease: cubic-bezier(.2, 0, 0, 1);
  --nh-ink: #0B0B0A;
  --nh-slate: #121211;
  --nh-paper: #FFFFFF;
  --nh-ink-rgb: 11, 11, 10;
  --nh-text: var(--nh-slate);
  --nh-line: rgba(var(--nh-ink-rgb), .12);
  --nh-glow: inset 0 0 24px 0 rgba(255, 255, 255, .5), inset 0 1px 0 0 rgba(255, 255, 255, .7);   /* glow, not shadow */
  --nh-r-bar: 16px;    /* the bar's corners match the burger's (48px × 33.33%) — not a pill */
  --nh-r: 16px;        /* chip, pill, panel */
  --nh-r-btn: 12px;    /* the CTA, a touch tighter than the bar */
  --nh-r-sm: 6px;
  font-family: var(--sans, 'Switzer Variable', Arial, sans-serif);
  -webkit-font-smoothing: antialiased;
}
.nh[data-mode="up"] { --nh-text: var(--nh-slate); }
.nh[data-mode="top"] { --nh-text: var(--nh-slate); }

.nh [hidden] { display: none !important; }
:where(.nh) img { display: block; }
:where(.nh) button { appearance: none; border: 0; background: none; padding: 0; font: inherit; color: inherit; }
:where(.nh) a { text-decoration: none; }
:where(.nh) ul { list-style: none; margin: 0; padding: 0; }
:where(.nh) p { margin: 0; }
.nh-lab { font: 500 11px/1.4 var(--mono, 'Geist Mono', monospace); letter-spacing: .14em; text-transform: uppercase; }

.nh .nh-skip { position: fixed; top: 12px; left: 12px; z-index: 120; padding: 10px 16px; border-radius: var(--nh-r-sm); background: var(--nh-paper); color: var(--nh-ink); font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none; translate: -200% -200%; }
.nh-skip:focus-visible { opacity: 1; pointer-events: auto; translate: none; outline: 1px solid var(--nh-ink); outline-offset: 4px; }

/* ---------- shared atoms ---------- */
.nh .nh-burger { position: relative; width: 48px; height: 48px; flex: none; border-radius: 33.33%; color: var(--nh-text); transition: color .3s var(--nh-ease); cursor: pointer; }
.nh-burger::after { content: ''; position: absolute; inset: 0; border: 1px solid currentColor; border-radius: inherit; opacity: .2; transition: opacity .25s var(--nh-ease); }
.nh-burger:hover::after { opacity: .7; }
.nh-burger-lines { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.nh-burger-lines span { width: 10px; height: 2px; border-radius: 2px; background: currentColor; transition: translate .25s var(--nh-ease); }
.nh-burger:hover .nh-burger-lines span:first-child { translate: 0 2px; transition-duration: .5s; }
.nh-burger:hover .nh-burger-lines span:last-child { translate: 0 -2px; transition-duration: .5s; }
.nh-burger-close { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.nh-burger-close svg { width: 12px; height: 12px; rotate: 90deg; transition: scale .25s var(--nh-ease); }
.nh-burger:hover .nh-burger-close svg { scale: .8; transition-duration: .5s; }
.nh-focus:focus-visible, .nh-burger:focus-visible { outline: 1px solid var(--nh-ink); outline-offset: 4px; }
.nh-burger:focus-visible { border-radius: 10px; }
.nh-burger:focus-visible::before { content: ''; position: absolute; inset: -6px; border: 1px solid var(--nh-paper); border-radius: 16px; }
.nh-chev { width: 4px; height: 8px; flex: none; }

/* the emblem is a white PNG: invert it wherever it sits on cream */
.nh-mark { height: 33px; width: auto; }
.nh-mark--dark { filter: invert(1); }

/* ---------- desktop bar ---------- */
.nh-desk { display: none; position: fixed; inset: 0 0 auto; height: 64px; z-index: 100; pointer-events: none; animation: nhBarIn .675s cubic-bezier(.21, 1.02, .43, 1.01) .15s both; }
.nh-wrap { position: absolute; top: 20px; left: 40px; right: 40px; height: 64px; transition: transform .5s var(--nh-ease); }
.nh[data-mode="down"] .nh-wrap { transform: translateY(-10px); }
.nh[data-mode="up"] .nh-wrap { transform: translateY(20px); }

.nh-main { position: relative; display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; height: 100%; padding: 0 10px; border-radius: var(--nh-r-bar); background-color: rgba(248, 247, 243, 0); clip-path: inset(-40px -48px -96px -48px round var(--nh-r-bar)); will-change: clip-path; pointer-events: auto;
  transition: clip-path .5s var(--nh-ease), background-color .3s var(--nh-ease); }
.nh[data-mode="up"] .nh-main, .nh[data-mode="top"] .nh-main { background-color: var(--nh-paper); }
.nh[data-mode="down"] .nh-main { clip-path: inset(0 calc(50% - 32px) 0 calc(50% - 32px) round var(--nh-r)); pointer-events: none; }
.nh-shadow { position: absolute; inset: 0; z-index: -1; border: 1px solid var(--nh-line); border-radius: inherit; box-shadow: var(--nh-glow); opacity: 0; pointer-events: none; transition: opacity .3s var(--nh-ease); }
.nh[data-mode="up"] .nh-shadow, .nh[data-mode="top"] .nh-shadow { opacity: 1; }

.nh-left { justify-self: start; transform: translateX(-20px); transition: transform .5s var(--nh-ease), opacity .3s var(--nh-ease); }
.nh[data-mode="down"] .nh-left { transform: translateX(100px); opacity: 0; }
.nh[data-mode="up"] .nh-left, .nh[data-mode="top"] .nh-left { transform: none; }   /* the bar is solid in every state now: nothing hangs over its edge */

.nh-routes { display: grid; grid-template-areas: "left logo right"; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 40px; padding: 0 24px; }
.nh-routes-left, .nh-routes-right { display: flex; align-items: center; gap: 40px; }
.nh-routes-left { grid-area: left; margin-left: auto; }
.nh-routes-right { grid-area: right; margin-right: auto; }
.nh-routes-logo { display: contents; }
.nh-in { display: block; }
.nh-routes-left .nh-in { animation: nhLinkInL .375s cubic-bezier(.21, 1.02, .43, 1.01) both; }
.nh-routes-right .nh-in { animation: nhLinkInR .375s cubic-bezier(.21, 1.02, .43, 1.01) both; }
.nh-routes-left .nh-in:nth-child(1) { animation-delay: .9s; }
.nh-routes-left .nh-in:nth-child(2) { animation-delay: 1.013s; }
.nh-routes-right .nh-in:nth-child(1) { animation-delay: 1.126s; }
.nh-routes-right .nh-in:nth-child(2) { animation-delay: 1.239s; }

.nh .nh-logo { grid-area: logo; display: flex; padding: 0 10px; color: var(--nh-text); border-radius: var(--nh-r-sm); animation: nhLogoIn .6s cubic-bezier(.21, 1.02, .43, 1.01) .45s both;
  transition: color .3s cubic-bezier(1, 0, 1, .6), scale .5s var(--nh-ease), opacity .3s var(--nh-ease); }
.nh-logo img { height: 33px; transition: filter .3s var(--nh-ease); }
.nh[data-mode="up"] .nh-logo img, .nh[data-mode="top"] .nh-logo img { filter: invert(1); }
.nh[data-mode="down"] .nh-logo { scale: .6; opacity: 0; }

.nh-shift { display: block; transition: transform .5s var(--nh-ease), opacity .3s var(--nh-ease); }
.nh[data-mode="down"] .nh-routes-left .nh-shift { transform: translateX(30px); opacity: 0; }
.nh[data-mode="down"] .nh-routes-right .nh-shift { transform: translateX(-30px); opacity: 0; }

.nh .nh-link { position: relative; display: flex; align-items: center; gap: 10px; color: var(--nh-text); font: 500 11px/15.6px var(--mono, 'Geist Mono', monospace); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; border-radius: var(--nh-r-sm); transition: color .3s var(--nh-ease); }
.nh-link::after { content: ''; position: absolute; inset: -15px -10px; }
.nh-link .nh-chev { position: absolute; left: 0; top: 50%; translate: -20px -50%; opacity: 0; transition: translate .334s var(--nh-ease), opacity .334s var(--nh-ease); }
.nh-link:hover .nh-chev, .nh-link:focus-visible .nh-chev { translate: -15px -50%; opacity: 1; }

.nh-right { justify-self: end; transform: translateX(20px); transition: transform .5s var(--nh-ease), opacity .3s var(--nh-ease); }
.nh[data-mode="down"] .nh-right { opacity: 0; }
.nh[data-mode="up"] .nh-right, .nh[data-mode="top"] .nh-right { transform: none; }

/* CTA with the sliding chevrons */
.nh .nh-cta { display: block; border-radius: var(--nh-r-btn); }
.nh-cta-inner { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 15px 22px; border-radius: var(--nh-r-btn); background: var(--nh-slate); transition: scale .334s var(--nh-ease), background-color .3s var(--nh-ease); }
.nh-cta:active .nh-cta-inner { scale: .97; }
.nh .nh-cta-text { color: var(--nh-paper); font: 500 11px/20px var(--mono, 'Geist Mono', monospace); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; transition: transform .334s var(--nh-ease), color .3s var(--nh-ease); }
.nh .nh-cta-arrow { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; color: var(--nh-paper); transition: transform .334s var(--nh-ease), opacity .334s var(--nh-ease), color .3s var(--nh-ease); }
.nh-cta-arrow-l { position: absolute; left: 14px; top: 50%; margin-top: -10px; transform: translateX(-30px); opacity: 0; }
.nh-cta:hover .nh-cta-arrow-l, .nh-cta:focus-visible .nh-cta-arrow-l { transform: none; opacity: 1; }
.nh-cta:hover .nh-cta-text, .nh-cta:focus-visible .nh-cta-text { transform: translateX(16px); }
.nh-cta:hover .nh-cta-arrow-r, .nh-cta:focus-visible .nh-cta-arrow-r { transform: translateX(30px); opacity: 0; }

/* centred chip shown while scrolling down: the emblem in a cream box */
.nh .nh-chip { position: absolute; top: 0; left: 50%; width: 64px; height: 64px; margin-left: -32px; display: flex; align-items: center; justify-content: center; border-radius: var(--nh-r); background: var(--nh-paper); color: var(--nh-ink); opacity: 0; scale: .6; visibility: hidden; pointer-events: none; cursor: pointer;
  transition: opacity .3s var(--nh-ease), scale .5s var(--nh-ease), visibility 0s linear .5s; }
.nh-chip-shadow { position: absolute; inset: 0; z-index: -1; border: 1px solid var(--nh-line); border-radius: inherit; box-shadow: var(--nh-glow); pointer-events: none; }
.nh-chip img { height: 32px; filter: invert(1); }
.nh[data-mode="down"] .nh-chip { opacity: 1; scale: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }

/* ---------- mobile bar (< 1024px) ---------- */
.nh-mob { position: fixed; inset: 0 0 auto; height: 88px; z-index: 100; pointer-events: none; animation: nhBarIn .675s cubic-bezier(.21, 1.02, .43, 1.01) .15s both; }
.nh-mob-wrap { position: absolute; top: 12px; left: 20px; right: 20px; height: 64px; }
.nh-mob-main { display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; height: 100%; pointer-events: auto; transition: transform .5s var(--nh-ease); }
.nh[data-mode="down"] .nh-mob-main, .nh[data-mode="up"] .nh-mob-main { transform: translateY(calc(-100% - 20px)); pointer-events: none; }
.nh .nh-mob-logo { justify-self: center; display: flex; color: var(--nh-text); border-radius: var(--nh-r-sm); }
.nh-mob-logo img { height: 34px; }
.nh-helper { position: absolute; top: 0; left: 50%; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8px; height: 64px; padding: 0 11px; border: 1px solid var(--nh-line); border-radius: var(--nh-r); background: var(--nh-paper); box-shadow: var(--nh-glow); translate: -50% 0; pointer-events: auto; }
.nh-helper .nh-burger { color: var(--nh-ink); }
.nh .nh-helper-logo { display: flex; padding: 6px; color: var(--nh-ink); border-radius: var(--nh-r-sm); }
.nh-helper-logo img { height: 32px; filter: invert(1); }

@media (min-width: 1024px) {
  .nh-desk { display: block; }
  .nh-mob { display: none; }
}

/* ---------- menus ---------- */
.nh-scrim { position: fixed; inset: 0; z-index: 110; background: rgba(var(--nh-ink-rgb), .35); animation: nhFade .4s cubic-bezier(.16, 1, .3, 1) both; }
.nh.is-closing .nh-scrim { animation: nhFade .4s cubic-bezier(.16, 1, .3, 1) both reverse; }

.nh-panel { position: fixed; top: 10px; left: 10px; bottom: 10px; z-index: 111; width: 369px; max-width: calc(100vw - 20px); display: flex; flex-direction: column; padding: 38px; overflow-y: auto; border-radius: var(--nh-r-bar); background: var(--nh-paper); color: var(--nh-ink); transform-origin: left center; animation: nhPanelIn .5s cubic-bezier(.16, 1, .3, 1) both; }
.nh.is-closing .nh-panel { animation: nhPanelIn .5s cubic-bezier(.16, 1, .3, 1) both reverse; }
.nh-panel-top { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; }
.nh-panel .nh-burger { color: var(--nh-ink); }
.nh-panel .nh-burger::after { opacity: .6; }
.nh .nh-wordmark { justify-self: center; display: flex; align-items: center; gap: 8px; color: var(--nh-ink); font: 500 13px/1 var(--mono, 'Geist Mono', monospace); letter-spacing: .32em; text-transform: uppercase; border-radius: var(--nh-r-sm); }
.nh-wordmark img { height: 20px; filter: invert(1); }

.nh-big { display: flex; flex-direction: column; gap: 18px; margin-top: 42px; }
.nh .nh-big a { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--nh-ink); font-size: 28px; line-height: 38px; font-weight: 500; letter-spacing: -.02em; border-radius: var(--nh-r-sm); }
.nh .nh-big-btn { display: flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: var(--nh-r-sm); background: var(--nh-slate); color: var(--nh-paper); transition: background-color .3s var(--nh-ease), transform .334s var(--nh-ease); }
.nh-big a:hover .nh-big-btn { background: var(--nh-ink); transform: translateX(3px); }
.nh-divider { height: 1px; margin: 41px 0 44px; background: var(--nh-line); }
.nh-small { display: grid; grid-template-columns: auto auto; justify-content: start; column-gap: 44px; row-gap: 22px; }
.nh .nh-small a { display: inline-flex; align-items: center; gap: 10px; color: var(--nh-ink); font-size: 16px; line-height: 20px; border-radius: var(--nh-r-sm); }
.nh-small a .nh-chev { transition: translate .334s var(--nh-ease); }
.nh-small a:hover .nh-chev { translate: 3px 0; }
.nh-pt { padding-top: 40px; }
.nh-mt { margin-top: 40px; }

.nh-socials { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 25px 25px; border: 1px solid var(--nh-line); border-radius: var(--nh-r); }
.nh .nh-socials-label { color: var(--nh-slate); font: 500 11px/16px var(--mono, 'Geist Mono', monospace); letter-spacing: .14em; text-transform: uppercase; }
.nh-socials ul { display: flex; gap: 10px; }
.nh .nh-socials li { margin: 0; padding: 0; } /* Webflow pages pad every li */
.nh .nh-socials a { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid var(--nh-line); border-radius: var(--nh-r-sm); color: var(--nh-ink); transition: background-color .3s var(--nh-ease); }
.nh-socials a:hover { background: rgba(var(--nh-ink-rgb), .05); }
.nh-socials svg { width: 14px; height: 14px; }

/* staggered items inside the menus */
.nh-stagger { animation: nhItemIn .6s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--b, .18s) + var(--i, 0) * .05s); }
.nh-panel .nh-big .nh-stagger { --b: .18s; }
.nh-panel .nh-small .nh-stagger { --b: .3s; }
.nh-panel .nh-stagger--last { --b: .5s; }
.nh-sheet .nh-stagger { --b: .12s; }
.nh.is-closing .nh-stagger { animation: none; }

/* full-screen sheet on phones */
.nh-sheet { position: fixed; inset: 0; z-index: 111; overflow-y: auto; background: var(--nh-paper); color: var(--nh-ink); animation: nhFade .4s cubic-bezier(.16, 1, .3, 1) both; }
.nh.is-closing .nh-sheet { animation: nhFade .4s cubic-bezier(.16, 1, .3, 1) both reverse; }
.nh-sheet-hero { position: relative; height: 230px; margin: 0 10px; overflow: hidden; border-radius: 0 0 40px 40px; animation: nhHeroIn .6s cubic-bezier(.16, 1, .3, 1) both; }
.nh-sheet-hero > img { width: 100%; height: 100%; object-fit: cover; }
.nh-sheet-pill { position: absolute; top: 12px; left: 50%; translate: -50% 0; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8px; height: 64px; padding: 6px 8px; border: 1px solid var(--nh-line); border-radius: var(--nh-r); background: var(--nh-paper); box-shadow: var(--nh-glow); }
.nh-sheet-pill .nh-burger { width: 40px; height: 40px; color: var(--nh-slate); }
.nh-sheet-body { padding: 60px 38px 48px; }
.nh .nh-menu-title { margin-bottom: 40px; color: var(--dim, #9A9A92); font: 500 11px/15.6px var(--mono, 'Geist Mono', monospace); letter-spacing: .14em; text-transform: uppercase; }
.nh-sheet .nh-big { margin-top: 0; gap: 15px; }
.nh-sheet .nh-big a { font-size: 24px; line-height: 32px; }
.nh-sheet .nh-big-btn { border: 1px solid var(--nh-line); border-radius: 10px; background: var(--nh-paper); color: var(--nh-ink); }
.nh-sheet .nh-big a:hover .nh-big-btn { background: rgba(var(--nh-ink-rgb), .06); }
.nh-sheet-cta { display: flex; justify-content: center; margin: 40px 0 48px; }
.nh .nh-sheet-cta a { display: inline-flex; align-items: center; gap: 12px; padding: 15px 22px; border-radius: var(--nh-r); background: var(--acc, #F76611); color: var(--nh-ink); font: 500 11px/20px var(--mono, 'Geist Mono', monospace); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.nh .nh-sheet-list a { display: flex; align-items: center; justify-content: space-between; padding: 17px 0; border-bottom: 1px solid var(--nh-line); color: var(--nh-ink); font-size: 16px; line-height: 20px; }

@keyframes nhBarIn { from { transform: translateY(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes nhLogoIn { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes nhLinkInL { from { transform: translateX(-16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes nhLinkInR { from { transform: translateX(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes nhFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes nhPanelIn { from { opacity: 0; transform: translateX(-40px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes nhItemIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes nhHeroIn { from { transform: translateY(-40px); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .nh *, .nh *::before, .nh *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
}
