/* Site header: logo left, menu centred, action right. One shared popup morphs between menus.
   Self-contained, so it works on pages built on home.css and on styles.css. */
.nx {
  --nx-ink: #F2F2EF; --nx-mute: #9A9A96; --nx-faint: #6E6E6A; --nx-line: rgba(255, 255, 255, 0.08);
  --nx-gold: #F4CC64; --nx-spark: #FFEEB5; --nx-red: #E5352B;
  --nx-ease: cubic-bezier(0.22, 1, 0.36, 1); --nx-t: 0.35s;
  --nx-sans: 'Archivo', system-ui, sans-serif; --nx-mono: 'Martian Mono', ui-monospace, monospace;
  position: sticky; top: 0; z-index: 50;
  font-family: var(--nx-sans); color: var(--nx-ink);
}
/* The glass lives on a layer behind the bar, not on the header itself: a backdrop filter on the header
   would stop the popup inside it from blurring the page. */
.nx::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(10, 11, 13, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nx.nx-scrolled::before { border-bottom-color: var(--nx-line); }
.nx a { color: inherit; text-decoration: none; }
.nx a:focus-visible, .nx button:focus-visible { outline: 2px solid var(--nx-gold); outline-offset: 3px; }

.nx-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 68px; padding: 0 clamp(20px, 5vw, 72px); }
.nx-logo { justify-self: start; display: flex; align-items: center; }
.nx-logo img { display: block; }

/* centre menu, with a gold drafting line that slides under the item in play */
.nx-menu { position: relative; }
.nx-menu ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nx-trigger, .nx .nx-link {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px;
  font: 500 14px/1 var(--nx-sans); color: var(--nx-mute); background: none; border: 0; cursor: pointer;
  transition: color .15s;
}
.nx-trigger:hover, .nx .nx-link:hover, .nx-trigger[aria-expanded="true"], .nx .nx-link[aria-current="page"] { color: var(--nx-ink); }
.nx-trigger svg { width: 9px; height: 9px; transition: transform var(--nx-t) var(--nx-ease); }
.nx-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nx-ext { font-size: 11px; color: var(--nx-faint); transform: translateY(-1px); }
.nx-ind {
  position: absolute; left: 0; bottom: 2px; height: 1px; width: var(--iw, 0); transform: translateX(var(--ix, 0));
  background: var(--nx-gold); opacity: 0; pointer-events: none;
  transition: transform var(--nx-t) var(--nx-ease), width var(--nx-t) var(--nx-ease), opacity .2s;
}
.nx-ind.on { opacity: 1; }

.nx-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.nx-cta {
  display: inline-flex; align-items: center; height: 36px; padding: 0 16px;
  font: 600 13.5px/1 var(--nx-sans); background: var(--nx-ink);
  transition: background .15s, color .15s;
}
.nx .nx-cta { color: #0A0B0D; }
.nx .nx-cta:hover { background: var(--nx-red); color: #fff; }
.nx-burger { display: none; }

/* the popup: one panel, resized and moved between menus */
.nx-pop {
  position: absolute; top: calc(100% - 4px); left: 0;
  width: var(--w, 560px); height: var(--h, 240px); transform: translateX(var(--x, 0)) translateY(-6px) scale(0.985);
  transform-origin: var(--ox, 50%) top;
  background:
    linear-gradient(rgba(244, 204, 100, 0.035) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(244, 204, 100, 0.035) 1px, transparent 1px) 0 0 / 24px 24px,
    rgba(12, 13, 16, 0.86);
  -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 2px;
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.4);
  opacity: 0; visibility: hidden; overflow: hidden;
  transition: opacity .22s var(--nx-ease), visibility 0s linear .35s,
    transform var(--nx-t) var(--nx-ease), width var(--nx-t) var(--nx-ease), height var(--nx-t) var(--nx-ease);
}
.nx.nx-open .nx-pop {
  opacity: 1; visibility: visible; transform: translateX(var(--x, 0));
  transition: opacity .22s var(--nx-ease), visibility 0s,
    transform var(--nx-t) var(--nx-ease), width var(--nx-t) var(--nx-ease), height var(--nx-t) var(--nx-ease);
}
.nx.nx-snap .nx-pop { transition: none; }
/* registration marks on the corners, as on a drawing sheet */
.nx-pop::after {
  content: ""; position: absolute; inset: 6px; pointer-events: none; opacity: .7;
  background:
    linear-gradient(var(--nx-gold), var(--nx-gold)) left top / 9px 1px no-repeat,
    linear-gradient(var(--nx-gold), var(--nx-gold)) left top / 1px 9px no-repeat,
    linear-gradient(var(--nx-gold), var(--nx-gold)) right top / 9px 1px no-repeat,
    linear-gradient(var(--nx-gold), var(--nx-gold)) right top / 1px 9px no-repeat,
    linear-gradient(var(--nx-gold), var(--nx-gold)) left bottom / 9px 1px no-repeat,
    linear-gradient(var(--nx-gold), var(--nx-gold)) left bottom / 1px 9px no-repeat,
    linear-gradient(var(--nx-gold), var(--nx-gold)) right bottom / 9px 1px no-repeat,
    linear-gradient(var(--nx-gold), var(--nx-gold)) right bottom / 1px 9px no-repeat;
}
.nx-pane {
  position: absolute; top: 0; left: 0; width: min(1080px, calc(100vw - 32px)); padding: 18px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s var(--nx-ease), transform var(--nx-t) var(--nx-ease), visibility 0s linear .35s;
}
.nx-pane.on { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity .3s var(--nx-ease) .05s, transform var(--nx-t) var(--nx-ease), visibility 0s; }
.nx-pane-k { display: flex; justify-content: space-between; margin: 2px 4px 14px; font: 400 10px/1 var(--nx-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--nx-faint); }
.nx-pane-k em { font-style: normal; letter-spacing: .12em; color: var(--nx-gold); }

/* menus are a bento grid of picture tiles: big 2x2, tall 1x2, wide 2x1, plain 1x1 */
.nx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 170px; gap: 12px; margin: 0; padding: 0; list-style: none; }
.nx-t.big { grid-column: span 2; grid-row: span 2; }
.nx-t.tall { grid-row: span 2; }
.nx-t.wide { grid-column: span 2; }
.nx-tile { position: relative; display: block; height: 100%; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.08); background: #0E1013; transition: border-color .2s; }
.nx-tile::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10, 11, 13, 0) 30%, rgba(10, 11, 13, 0.93) 86%); }
.nx-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .88; transition: transform .6s var(--nx-ease), opacity .3s; }
.nx-scrim { position: absolute; inset: 0; background: rgba(14, 16, 19, 0.45); }
.nx-tx { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; }
.nx-chip { display: inline-block; padding: 4px 7px; font: 400 9.5px/1 var(--nx-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--nx-gold); border: 1px solid rgba(244, 204, 100, 0.55); background: rgba(14, 16, 19, 0.6); }
.nx-tile b { display: block; margin: 8px 0 4px; font-size: 19px; font-weight: 700; font-stretch: 108%; letter-spacing: -.015em; color: var(--nx-ink); }
.nx-tile b i { font-style: normal; display: inline-block; margin-left: 8px; color: var(--nx-gold); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .25s var(--nx-ease); }
.nx-hook { display: block; font-size: 13px; line-height: 1.4; color: #C9CDD1; }
.nx-t.big b { font-size: 32px; letter-spacing: -.02em; }
.nx-t.big .nx-hook { max-width: 440px; font-size: 15.5px; }
.nx-mark { position: absolute; top: 12px; right: 12px; z-index: 2; width: 28px; height: 28px; }
.nx-badge { position: absolute; top: 28%; left: 58%; z-index: 2; padding: 4px 7px; font: 400 9.5px/1 var(--nx-mono); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--nx-red); }
.nx-tile:hover, .nx-tile:focus-visible, .nx-tile[aria-current="page"] { border-color: rgba(244, 204, 100, 0.6); }
.nx-tile:hover .nx-ph, .nx-tile:focus-visible .nx-ph { transform: scale(1.04); opacity: 1; }
.nx-tile:hover b i, .nx-tile:focus-visible b i { opacity: 1; transform: none; }
/* Plus One keeps its lime from its own page */
.nx-t.lime .nx-tile { border-color: rgba(217, 242, 74, 0.55); }
.nx-t.lime .nx-tile:hover, .nx-t.lime .nx-tile:focus-visible { border-color: #D9F24A; }
.nx-t.lime .nx-chip { color: #0E1013; background: #D9F24A; border-color: #D9F24A; }
.nx-t.inv .nx-tile { background: linear-gradient(135deg, #1A1D22, #0E1013); border-color: rgba(244, 204, 100, 0.55); }
.nx-t.inv .nx-tile::before { display: none; }
.nx-t.inv b { color: var(--nx-gold); }
.nx-lockups { position: absolute; top: 16px; left: 16px; right: 16px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.nx-lockups img { height: 22px; width: auto; }
@media (max-width: 1100px) {
  .nx-grid { grid-auto-rows: 150px; }
  .nx-t:not(.big):not(.wide):not(.tall) .nx-hook { display: none; }
}

.nx-list { margin: 0; padding: 0; list-style: none; }
.nx-item { display: grid; grid-template-columns: 26px 1fr; gap: 2px 8px; padding: 10px 10px 11px; transition: background .15s; }
.nx-item:hover, .nx-item:focus-visible { background: rgba(255, 255, 255, 0.04); }
.nx-item .n { grid-row: span 2; padding-top: 3px; font: 400 10px/1 var(--nx-mono); color: var(--nx-faint); transition: color .15s; }
.nx-item b { font-weight: 600; font-size: 14px; color: var(--nx-ink); }
.nx-item b i { font-style: normal; display: inline-block; margin-left: 6px; color: var(--nx-gold); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .25s var(--nx-ease); }
.nx-item span:last-child { font-size: 12.5px; line-height: 1.45; color: var(--nx-mute); }
.nx-item:hover .n { color: var(--nx-gold); }
.nx-item:hover b i { opacity: 1; transform: none; }
.nx-item[aria-current="page"] .n { color: var(--nx-gold); }

/* phones: a menu button opens a sheet */
.nx-sheet { display: none; }
@media (max-width: 900px) {
  .nx-bar { grid-template-columns: 1fr auto; height: 60px; }
  .nx-menu, .nx-pop { display: none; }
  .nx-cta { height: 34px; padding: 0 12px; font-size: 13px; }
  .nx-burger { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; background: none; border: 1px solid rgba(255, 255, 255, 0.14); cursor: pointer; }
  .nx-burger i { position: relative; display: block; width: 16px; height: 1px; background: var(--nx-ink); transition: background .2s; }
  .nx-burger i::before, .nx-burger i::after { content: ""; position: absolute; left: 0; width: 16px; height: 1px; background: var(--nx-ink); transition: transform .3s var(--nx-ease); }
  .nx-burger i::before { transform: translateY(-5px); }
  .nx-burger i::after { transform: translateY(5px); }
  .nx.nx-sheet-open .nx-burger i { background: transparent; }
  .nx.nx-sheet-open .nx-burger i::before { transform: rotate(45deg); }
  .nx.nx-sheet-open .nx-burger i::after { transform: rotate(-45deg); }
  .nx-sheet {
    display: flex; flex-direction: column; position: fixed; inset: 60px 0 0; overflow-y: auto; padding: 8px 20px 24px;
    background: linear-gradient(rgba(244, 204, 100, 0.035) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(244, 204, 100, 0.035) 1px, transparent 1px) 0 0 / 24px 24px, #0A0B0D;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--nx-ease), transform var(--nx-t) var(--nx-ease), visibility 0s linear .35s;
  }
  .nx.nx-sheet-open .nx-sheet { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--nx-ease), transform var(--nx-t) var(--nx-ease), visibility 0s; }
  .nx-sheet .nx-pane-k { margin: 18px 10px 4px; }
  .nx-sheet .nx-item { padding: 12px 10px; }
  .nx-sheet-links { display: flex; flex-direction: column; margin-top: 14px; border-top: 1px solid var(--nx-line); }
  .nx-sheet-links a { padding: 16px 10px; border-bottom: 1px solid var(--nx-line); font-size: 16px; font-weight: 600; }
  .nx-sheet .nx-cta { justify-content: center; height: 48px; margin-top: auto; font-size: 15px; }
  .nx-sheet .nx-cta { margin-top: 24px; }
  html.nx-lock { overflow: hidden; }
}
/* Site footer: the logo, every page a visitor can't reach from the top bar, and the fine print. */
.nx-foot { --f-ink: #EDEEE8; --f-mute: #A3A8AD; --f-faint: #6F757C; --f-line: rgba(255, 255, 255, 0.08);
  border-top: 1px solid var(--f-line); padding: 40px clamp(20px, 5vw, 72px) 48px; font-family: 'Archivo', system-ui, sans-serif; background: #0E1013; }
.nx-foot-in { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr; gap: 20px 48px; align-items: start; }
.nx-foot nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 26px; font-size: 14px; }
.nx-foot nav a, .nx-fine a { color: var(--f-mute); text-decoration: none; }
.nx-foot nav a:hover, .nx-fine a:hover { color: var(--f-ink); }
.nx-fine { grid-column: 1 / -1; margin: 0; padding-top: 18px; border-top: 1px solid var(--f-line);
  font-family: 'Martian Mono', ui-monospace, monospace; font-size: 10.5px; letter-spacing: 0.04em; color: var(--f-faint); }
@media (max-width: 900px) {
  .nx-foot-in { grid-template-columns: 1fr; }
  .nx-foot nav { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .nx *, .nx { transition: none !important; }
}
