/* ==================================================================
   index-new.html — scoped styles
   Everything here is prefixed .nh- (new home) so this draft can sit
   beside the live pages without touching theme.css. When this page
   replaces index.html, lift these blocks into theme.css.
   ================================================================== */

/* ---------- Header ---------- */
.nh-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(0,7,14,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.nh-bar {
  position: relative;
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; gap: 1rem;
  /* The drawer is a 100%-wide flex item with order:3; without wrapping it gets
     squeezed into a narrow column beside the logo instead of dropping below. */
  flex-wrap: wrap;
  padding: .7rem 1rem;
}
@media (min-width: 768px)  { .nh-bar { padding: .7rem 1.5rem; } }
@media (min-width: 1280px) { .nh-bar { padding: .8rem 2rem; } }

.nh-brand { display: inline-flex; align-items: center; flex: none; margin-right: auto; line-height: 0; }
.nh-brand img {
  display: block; width: auto;
  height: clamp(26px, 4.4vw, 38px);
  max-width: clamp(130px, 40vw, 200px);
  object-fit: contain;
}

/* Desktop nav — collapses to the drawer below 1024px, where five top-level
   items plus a CTA stop fitting on one line. */
.nh-nav { display: none; }
@media (min-width: 1024px) {
  .nh-nav { display: flex; align-items: center; gap: clamp(.1rem, .8vw, .6rem); }
}
.nh-link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .7rem; border-radius: 10px;
  font: inherit; font-size: .94rem; font-weight: 600;
  color: var(--c-muted); background: none; border: 0;
  white-space: nowrap; cursor: pointer;
  transition: color .2s ease, background-color .2s ease;
}
.nh-link:hover,
.nh-link:focus-visible,
.nh-link[aria-expanded="true"] {
  color: var(--c-accent);
  background: color-mix(in srgb, var(--c-accent) 10%, transparent);
  outline: none;
}
.nh-link:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.nh-caret { font-size: .58rem; opacity: .75; transition: transform .2s ease; }
.nh-link[aria-expanded="true"] .nh-caret { transform: rotate(180deg); }

.nh-drop { position: relative; }
.nh-drop-panel {
  position: absolute; top: calc(100% + .45rem); left: -.5rem;
  min-width: 272px; padding: .4rem; z-index: 5;
  background: var(--c-bg-raised);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-e2);
  display: flex; flex-direction: column; gap: .1rem;
}
.nh-drop-panel[hidden] { display: none; }
.nh-drop-panel a {
  display: block; padding: .6rem .75rem; border-radius: 10px;
  font-size: .94rem; font-weight: 600; color: var(--c-text);
  transition: color .2s ease, background-color .2s ease;
}
.nh-drop-panel a:hover,
.nh-drop-panel a:focus-visible {
  background: color-mix(in srgb, var(--c-accent) 12%, transparent);
  color: var(--c-accent); outline: none;
}
.nh-drop-note {
  display: block; margin-top: .15rem;
  font-size: .78rem; font-weight: 500; line-height: 1.35;
  color: var(--c-muted);
}
.nh-header .btn { padding: .6rem 1.15rem; font-size: .92rem; }
.nh-ext { font-size: .8em; opacity: .8; }

/* Hamburger — mirrors the live site's toggle so the two never look unrelated */
.nh-burger {
  display: inline-flex; align-items: center; gap: .4rem; flex: none;
  padding: .5rem .85rem;
  background: var(--c-accent); color: #00121f;
  border: 1px solid var(--c-accent); border-radius: 999px;
  font: inherit; font-size: .88rem; font-weight: 700; line-height: 1;
  white-space: nowrap; cursor: pointer; box-shadow: var(--shadow-e1);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.nh-burger:hover, .nh-burger:focus-visible {
  background: #fff; color: #0b4f78; border-color: #fff;
  transform: translateY(-1px); outline: none;
}
@media (min-width: 1024px) { .nh-burger { display: none; } }
.nh-burger-icon, .nh-burger-icon::before, .nh-burger-icon::after {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: currentColor;
  transition: transform .25s ease, top .25s ease, background-color .2s ease;
}
.nh-burger-icon { position: relative; flex: none; }
.nh-burger-icon::before { content: ""; position: absolute; top: -6px; left: 0; }
.nh-burger-icon::after  { content: ""; position: absolute; top:  6px; left: 0; }
.nh-burger[aria-expanded="true"] .nh-burger-icon { background: transparent; }
.nh-burger[aria-expanded="true"] .nh-burger-icon::before { top: 0; transform: rotate(45deg); }
.nh-burger[aria-expanded="true"] .nh-burger-icon::after  { top: 0; transform: rotate(-45deg); }

/* Drawer */
.nh-drawer {
  display: none; order: 3; width: 100%;
  margin-top: .5rem; padding: .5rem 0 .85rem;
  border-top: 1px solid var(--c-border);
}
.nh-drawer.open { display: block; }
@media (min-width: 1024px) { .nh-drawer, .nh-drawer.open { display: none; } }
.nh-drawer a {
  display: block; padding: .7rem .9rem; border-radius: 10px;
  font-size: 1rem; font-weight: 600; color: var(--c-muted);
  transition: color .2s ease, background-color .2s ease;
}
.nh-drawer a:hover, .nh-drawer a:focus-visible {
  color: var(--c-accent);
  background: color-mix(in srgb, var(--c-accent) 10%, transparent);
  outline: none;
}
.nh-drawer-label {
  display: block; padding: .8rem .9rem .25rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--c-muted); opacity: .6;
}
.nh-drawer .btn { width: 100%; justify-content: center; margin-top: .6rem; }
/* `.nh-drawer a` (0,1,1) outranks `.btn-primary` (0,1,0), so without this the
   CTA inherits the muted link color and sits at ~1.5:1 on its own gradient. */
.nh-drawer a.btn-primary,
.nh-drawer a.btn-primary:hover,
.nh-drawer a.btn-primary:focus-visible { color: #00121f; background-clip: border-box; }

/* ---------- Shared section furniture ---------- */
.nh-eyebrow {
  display: inline-block; margin-bottom: .75rem;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--c-page);
}
.nh-rule { border: 0; border-top: 1px solid var(--c-border); margin: 0; }

/* ---------- Hero ---------- */
.nh-hero-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1024px) {
  .nh-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3.5rem; }
}
.nh-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Business-first sequence rail */
.nh-seq {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.nh-seq-title {
  font-size: .72rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--c-muted);
  margin: 0 0 1.25rem;
}
.nh-seq-step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .9rem; align-items: start; }
.nh-seq-num {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 999px;
  font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--c-page);
  background: color-mix(in srgb, var(--c-page) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c-page) 45%, var(--c-border));
}
.nh-seq-head { font-weight: 700; color: var(--c-text); line-height: 1.35; }
.nh-seq-body { margin: .15rem 0 0; font-size: .93rem; color: var(--c-muted); line-height: 1.5; }
.nh-seq-link {
  display: block; height: 1.5rem; margin: .4rem 0 .4rem 1.05rem;
  border-left: 2px dashed color-mix(in srgb, var(--c-page) 40%, transparent);
}

/* ---------- 95% ---------- */
.nh-95-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 768px) {
  .nh-95-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem; }
}
.nh-stat {
  text-align: center;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.5rem;
}
.nh-stat-num {
  font-size: clamp(3.5rem, 11vw, 5.5rem); font-weight: 800; line-height: 1;
  letter-spacing: -.03em; color: var(--c-page);
  font-variant-numeric: tabular-nums;
}
.nh-stat-label {
  margin-top: .85rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--c-muted); line-height: 1.5;
}
.nh-note {
  border-left: 3px solid var(--c-page);
  padding: .15rem 0 .15rem 1rem;
  color: var(--c-muted);
}
.nh-note strong { color: var(--c-text); }

/* ---------- Game Plan + prioritization matrix ---------- */
.nh-gp-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) {
  .nh-gp-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; }
}
.nh-matrix-wrap {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.nh-matrix-head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: .35rem 1rem; margin-bottom: 1.25rem;
}
.nh-matrix-head h3 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.nh-matrix-head span { font-size: .85rem; font-style: italic; color: var(--c-muted); }
.nh-matrix {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: .5rem;
}
.nh-axis-y { grid-area: 1 / 1; display: grid; grid-template-rows: 1fr 1fr; gap: .5rem; }
.nh-axis-y span {
  display: flex; align-items: center; justify-content: center;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: .6rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--c-muted); white-space: nowrap;
}
.nh-axis-x { grid-area: 2 / 2; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.nh-axis-x span {
  text-align: center;
  font-size: .6rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--c-muted);
}
.nh-cells {
  grid-area: 1 / 2;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: .5rem;
}
.nh-cell {
  padding: .9rem .85rem; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--c-bg-raised) 70%, transparent);
  border: 1px solid var(--c-border);
}
.nh-cell-name { font-size: .92rem; font-weight: 700; color: var(--c-text); line-height: 1.3; }
.nh-cell-note { margin: .3rem 0 0; font-size: .78rem; color: var(--c-muted); line-height: 1.4; }
.nh-cell.is-best {
  background: color-mix(in srgb, var(--c-accent) 14%, transparent);
  border-color: var(--c-accent);
}
.nh-cell.is-best .nh-cell-name { color: var(--c-accent); }
.nh-cell.is-worst {
  background: color-mix(in srgb, #f08a8a 10%, transparent);
  border-color: color-mix(in srgb, #f08a8a 55%, var(--c-border));
}
.nh-cell.is-worst .nh-cell-name { color: #f08a8a; }

/* ---------- Capability Equity ---------- */
.nh-step-tag {
  display: inline-block; margin-bottom: .6rem; padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-page);
  background: color-mix(in srgb, var(--c-page) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c-page) 40%, var(--c-border));
}

/* ---------- Lextech ---------- */
.nh-lex-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1024px) {
  .nh-lex-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 3.5rem; }
}
.nh-fact {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.35rem;
}
.nh-fact + .nh-fact { margin-top: .85rem; }
.nh-fact-lead { font-size: 1.6rem; font-weight: 800; line-height: 1.1; color: var(--c-page); letter-spacing: -.02em; }
.nh-fact-lead.is-text { font-size: 1.08rem; letter-spacing: 0; }
.nh-fact-note { margin: .35rem 0 0; font-size: .88rem; color: var(--c-muted); line-height: 1.5; }
.nh-fact-note.is-label { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Testimonial carousel ---------- */
.nh-quote-track { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .nh-quote-track { grid-template-columns: 1fr 1fr; } }
/* display:grid beats the UA's [hidden]{display:none}, so the carousel's
   inactive slides need an explicit override or every quote stays on screen. */
.nh-quote-track[hidden] { display: none; }
.nh-quote-mark { font-size: 2.75rem; line-height: .6; color: var(--c-page); opacity: .5; }
.nh-quote-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; }
.nh-quote-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 999px;
  background: transparent; color: var(--c-page);
  border: 1px solid var(--c-border);
  font: inherit; font-size: 1rem; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.nh-quote-btn:hover, .nh-quote-btn:focus-visible {
  background: color-mix(in srgb, var(--c-page) 12%, transparent);
  border-color: var(--c-page); outline: none;
}
.nh-quote-dots { display: flex; align-items: center; gap: .5rem; }
.nh-quote-dot {
  width: .6rem; height: .6rem; padding: 0; border-radius: 999px;
  background: color-mix(in srgb, var(--c-muted) 45%, transparent);
  border: 0; cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.nh-quote-dot[aria-current="true"] { background: var(--c-page); transform: scale(1.25); }
.nh-quote-dot:focus-visible { outline: 2px solid var(--c-page); outline-offset: 3px; }

/* ---------- Footer ---------- */
.nh-footer {
  background: var(--c-bg-alt);
  border-top: 1px solid var(--c-border);
  color: var(--c-muted);
}
.nh-footer-top {
  max-width: 1200px; margin: 0 auto;
  padding: 2.5rem 1rem;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1.5rem 2.5rem;
}
@media (min-width: 768px) { .nh-footer-top { padding: 2.5rem 2rem; } }
.nh-footer-brand { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.nh-footer-brand img { height: 34px; width: auto; display: block; }
.nh-footer-div {
  padding-left: .9rem;
  border-left: 1px solid var(--c-border);
  font-size: .82rem; color: var(--c-muted);
}
.nh-footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.nh-footer-nav a { font-size: .92rem; font-weight: 600; color: var(--c-muted); }
.nh-footer-nav a:hover { color: var(--c-accent); }
.nh-footer-mid {
  max-width: 1200px; margin: 0 auto;
  padding: 2rem 1rem;
  border-top: 1px solid var(--c-border);
  display: grid; gap: 1.75rem;
  font-size: .88rem; line-height: 1.6;
}
@media (min-width: 768px) { .nh-footer-mid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 2rem; } }
.nh-footer-mid h2 {
  margin: 0 0 .6rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--c-text);
}
.nh-footer-mid a { color: var(--c-accent); }
.nh-footer-mid p { margin: 0 0 .4rem; }
.nh-footer-bottom {
  border-top: 1px solid var(--c-border);
  text-align: center; font-size: .78rem;
  padding: 1.1rem 1rem;
}

/* Honor the OS reduced-motion setting for the carousel's autoplay too —
   the JS reads this same query. */
@media (prefers-reduced-motion: reduce) {
  .nh-caret, .nh-burger-icon, .nh-burger-icon::before, .nh-burger-icon::after { transition: none; }
}
