/* =====================================================================
   Navigation: floating glass dock with a sliding lens, a Projects mega menu and a full-screen mobile menu.
   Built by js/chrome.js. Uses the tokens from style.css.
   ===================================================================== */
.hn { position: fixed; z-index: 100; top: 14px; left: 0; right: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px;
    padding-inline: var(--gut); pointer-events: none; transition: top .4s var(--ease); }
.hn > * { pointer-events: auto; }
.hn.is-scrolled { top: 8px; }

.hn-brand, .hn-dock, .hn-burger { background: rgba(10, 15, 28, .6); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, .13); box-shadow: 0 14px 40px -18px rgba(0, 0, 0, .6); transition: background .35s, border-color .35s; }
.hn.is-scrolled .hn-brand, .hn.is-scrolled .hn-dock, .hn.is-scrolled .hn-burger { background: rgba(10, 15, 28, .86); }

.hn-brand { justify-self: start; display: inline-flex; align-items: center; gap: 12px; padding: 5px 20px 5px 5px; border-radius: 999px; color: var(--white); text-decoration: none; }
.hn-brand img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #fff; transition: transform .7s var(--ease); }
.hn-brand:hover img { transform: rotate(360deg); }
.hn-brand b { display: block; font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .07em; text-transform: uppercase; line-height: 1; }
.hn-brand small { display: block; margin-top: 3px; font-size: .6rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-2); }

.hn-dock { position: relative; display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 999px; }
.hn-lens { position: absolute; z-index: 0; top: 5px; left: 0; height: 42px; width: var(--w, 0); transform: translateX(var(--x, 0)); border-radius: 999px; background: var(--orange); opacity: 0;
    transition: transform .55s cubic-bezier(.2, .9, .25, 1.15), width .55s cubic-bezier(.2, .9, .25, 1.15), opacity .25s; pointer-events: none; }
.hn-lens.on { opacity: 1; }
.hn-link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 19px; border: 0; border-radius: 999px; background: none; cursor: pointer;
    color: rgba(255, 255, 255, .82); font: 500 .98rem/1 var(--f-body); text-decoration: none; white-space: nowrap; transition: color .25s; }
.hn-link:hover, .hn-link.is-current { color: var(--white); }
.hn-link.under, .hn-link.under:hover { color: var(--ink); }
.hn-link.is-current::after { content: ''; position: absolute; left: 50%; bottom: 5px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--orange); transition: opacity .2s; }
.hn-link.under.is-current::after { opacity: 0; }
.hn-pbtn svg { transition: transform .35s var(--ease); }
.hn-item.open .hn-pbtn svg { transform: rotate(180deg); }

/* projects mega menu */
.hn-item { position: relative; }
.hn-mega { position: absolute; z-index: 2; top: calc(100% + 16px); left: 50%; width: min(560px, 90vw); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px; border-radius: 24px;
    background: rgba(10, 15, 28, .92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, .13); box-shadow: 0 40px 90px -24px rgba(0, 0, 0, .75);
    opacity: 0; visibility: hidden; transform: translate(-50%, 12px) scale(.96); transform-origin: 50% 0; transition: opacity .3s, transform .45s var(--ease), visibility 0s .3s; }
.hn-mega::before { content: ''; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.hn-item.open .hn-mega { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition: opacity .3s, transform .45s var(--ease); }
.hn-tile { position: relative; display: flex; align-items: flex-end; height: 210px; overflow: hidden; border-radius: 16px; color: var(--white); text-decoration: none; isolation: isolate; }
.hn-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s var(--ease); }
.hn-tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 15, 28, .1) 0%, rgba(10, 15, 28, .86) 100%); transition: background .4s; }
.hn-tile:hover img { transform: scale(1.12); }
.hn-tile:hover::after { background: linear-gradient(180deg, rgba(255, 106, 26, .1) 0%, rgba(10, 15, 28, .9) 100%); }
.hn-tile-in { display: flex; flex-direction: column; gap: 3px; padding: 18px; }
.hn-tile-in em { display: inline-flex; align-items: center; gap: 7px; font-style: normal; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.hn-tile-in b { font-family: var(--f-display); font-weight: 700; font-size: 2.2rem; line-height: .95; text-transform: uppercase; }
.hn-tile-in span { font-size: .9rem; color: rgba(255, 255, 255, .78); }
.hn-tile u { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; text-decoration: none;
    transform: translate(-6px, 6px) scale(.8); opacity: 0; transition: transform .4s var(--ease), opacity .3s, background .3s; }
.hn-tile:hover u { transform: none; opacity: 1; background: var(--orange); color: var(--ink); }
.live { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); animation: pulse 2s infinite; }

.hn-cta { justify-self: end; display: inline-flex; align-items: center; height: 52px; padding: 0 24px; border-radius: 999px; background: var(--orange); color: var(--ink); text-decoration: none; overflow: hidden;
    box-shadow: 0 14px 40px -14px rgba(255, 106, 26, .7); transition: transform .4s var(--ease), background .25s; }
.hn-cta:hover { transform: translateY(-2px); background: #ff8341; }
.hn-cta-t { display: block; height: 1.2em; overflow: hidden; font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; line-height: 1.2; letter-spacing: .05em; text-transform: uppercase; }
.hn-cta-t i { display: block; font-style: normal; transition: transform .45s var(--ease); }
.hn-cta:hover .hn-cta-t i { transform: translateY(-100%); }

.hn-burger { display: none; justify-self: end; position: relative; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; padding: 0; }
.hn-burger span { position: absolute; left: 16px; right: 16px; height: 2.5px; border-radius: 2px; background: #fff; transition: transform .45s var(--ease), opacity .25s, left .3s, right .3s; }
.hn-burger span:nth-child(1) { top: 18px; } .hn-burger span:nth-child(2) { top: 25px; left: 22px; } .hn-burger span:nth-child(3) { top: 32px; }
.hn-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hn-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hn-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* full-screen menu */
.hn-sheet { position: fixed; z-index: 99; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 96px var(--gut) 36px; background: var(--ink); color: var(--white);
    clip-path: circle(0 at calc(100% - 44px) 40px); visibility: hidden; transition: clip-path .75s var(--ease), visibility 0s .75s; overflow-y: auto; }
.hn-sheet.open { clip-path: circle(150% at calc(100% - 44px) 40px); visibility: visible; transition: clip-path .75s var(--ease); }
.hn-sheet ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: n; }
.hn-sheet li { opacity: 0; transform: translateX(-24px); transition: opacity .5s, transform .6s var(--ease); }
.hn-sheet.open li { opacity: 1; transform: none; }
.hn-sheet.open li:nth-child(1) { transition-delay: .25s; } .hn-sheet.open li:nth-child(2) { transition-delay: .31s; } .hn-sheet.open li:nth-child(3) { transition-delay: .37s; }
.hn-sheet.open li:nth-child(4) { transition-delay: .43s; } .hn-sheet.open li:nth-child(5) { transition-delay: .49s; } .hn-sheet.open li:nth-child(6) { transition-delay: .55s; }
.hn-sheet a, .hn-sheet-h { display: flex; align-items: baseline; gap: 16px; font-family: var(--f-display); font-weight: 700; font-size: clamp(2.8rem, 12vw, 4.6rem); line-height: 1.02; text-transform: uppercase; color: var(--white); text-decoration: none; }
.hn-sheet a:hover { color: var(--orange); }
.hn-sheet i { flex: 0 0 auto; font-style: normal; font-size: 1rem; font-weight: 600; letter-spacing: .14em; color: var(--orange); }
.hn-sheet-sub { display: flex; gap: 12px; margin: 4px 0 6px 52px; }
.hn-sheet-sub a { font-size: 1.15rem; font-weight: 600; letter-spacing: .08em; padding: 8px 18px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; }
.hn-sheet-call { align-self: flex-start; display: inline-flex !important; align-items: center; gap: 12px !important; margin-top: 6px; padding: 14px 26px; border-radius: 999px; background: var(--orange); color: var(--ink) !important; font-size: 1.4rem !important; }
body.hn-lock { overflow: hidden; }

@media (max-width: 1100px) {
    .hn { grid-template-columns: 1fr auto; }
    .hn-dock, .hn-cta { display: none; }
    .hn-burger { display: block; }
    .hn-brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .hn-lens, .hn-mega, .hn-sheet, .hn-sheet li { transition-duration: .01s !important; }
}

/* inner-page contact band */
.cta-band { background: var(--blue); color: var(--white); padding: clamp(56px, 8vw, 110px) 0; }
.cta-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band .h2 { max-width: 14ch; }
.cta-act { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band .btn-solid { background: var(--white); color: var(--ink); }
.cta-band .btn-solid:hover { background: var(--orange); }
.cta-band .btn-ghost { background: var(--ink); }
.cta-band .btn-ghost:hover { background: var(--white); color: var(--ink); }
