/* ===== NightGrid section packs v1.0 — sections 01-08 + footer ===== */

/* ---------- p1: challenge ---------- */
.ng-masthead, .ng-feature-rail, .ng-challenge { color: var(--p1ng-ink); font-family: var(--p1ng-display); }
:root {
  --p1ng-navy-950: #020817;
  --p1ng-navy-900: #031024;
  --p1ng-ink: #071329;
  --p1ng-blue: #087cff;
  --p1ng-cyan: #52d5ff;
  --p1ng-body: #61718a;
  --p1ng-rule: #d5e0ec;
  --p1ng-surface: #fbfcfe;
  --p1ng-rail: #f4f7fb;
  --p1ng-anomaly: #ff9900;
  --p1ng-content: min(1376px, calc(100vw - 64px));
  --p1ng-display: "Space Grotesk", "Segoe UI", sans-serif;
  --p1ng-mono: "IBM Plex Mono", "Cascadia Mono", monospace;
}

.ng-masthead {
  min-height: 144px;
  display: grid;
  align-items: center;
  background: var(--p1ng-navy-950) url("/assets/nightgrid/challenge/masthead-network.svg") center right / auto 100% no-repeat;
  border-bottom: 2px solid var(--p1ng-blue);
  box-shadow: 0 4px 24px rgba(8, 124, 255, .12);
}

.ng-masthead__inner { width: var(--p1ng-content); margin: auto; }
.ng-masthead__tagline { margin: 0; color: var(--p1ng-cyan); font: 600 16px/1 var(--p1ng-mono); letter-spacing: .23em; }

.ng-feature-rail { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--p1ng-rail); border-bottom: 1px solid var(--p1ng-rule); }
.ng-feature { min-height: 104px; display: flex; align-items: center; justify-content: center; gap: 24px; padding: 22px 28px; border-right: 1px solid var(--p1ng-rule); transition: background .2s ease, box-shadow .2s ease; }
.ng-feature:last-child { border-right: 0; }
.ng-feature:hover { background: #fff; box-shadow: inset 0 3px var(--p1ng-blue); }
.ng-feature img { width: 48px; height: 48px; flex: 0 0 auto; }
.ng-feature span { color: var(--p1ng-ink); font: 600 12px/1.2 var(--p1ng-mono); letter-spacing: .12em; }

.ng-challenge { position: relative; min-height: 670px; overflow: hidden; background: #fff; }
.ng-challenge__inner { position: relative; z-index: 2; width: var(--p1ng-content); margin: auto; padding: 148px 0 130px; display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: 64px; }
.ng-challenge__index { min-height: 440px; padding: 8px 0 0 20px; border-left: 3px solid var(--p1ng-blue); border-right: 1px solid var(--p1ng-rule); color: #5f7290; font: 500 12px/1.4 var(--p1ng-mono); letter-spacing: .09em; }
.ng-challenge__content { max-width: 920px; }
.ng-challenge__eyebrow { margin: 8px 0 34px; color: var(--p1ng-blue); font: 600 12px/1.4 var(--p1ng-mono); letter-spacing: .15em; }
.ng-challenge h2 { max-width: 860px; margin: 0; color: var(--p1ng-ink); font-size: clamp(52px, 5vw, 78px); font-weight: 470; line-height: .99; letter-spacing: -.045em; }
.ng-challenge__copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 54px; max-width: 780px; margin-top: 62px; }
.ng-challenge__copy p { margin: 0; color: var(--p1ng-body); font-size: 17px; line-height: 1.68; }
.ng-challenge__radar { position: absolute; z-index: 1; width: min(690px, 49vw); height: auto; right: -115px; bottom: -72px; opacity: .93; pointer-events: none; }

@media (max-width: 960px) {
  :root { --p1ng-content: min(100% - 40px, 780px); }
  .ng-feature-rail { grid-template-columns: repeat(2, 1fr); }
  .ng-feature:nth-child(2) { border-right: 0; }
  .ng-feature:nth-child(-n+2) { border-bottom: 1px solid var(--p1ng-rule); }
  .ng-challenge__inner { grid-template-columns: 1fr; gap: 32px; padding: 96px 0; }
  .ng-challenge__index { min-height: 0; border-right: 0; }
  .ng-challenge__content { padding-left: 20px; }
  .ng-challenge__copy { margin-top: 26px; }
  .ng-challenge__radar { width: 620px; opacity: .45; right: -260px; }
}

@media (max-width: 620px) {
  .ng-masthead { min-height: 120px; }
  .ng-masthead__tagline { font-size: 13px; }
  .ng-feature-rail { grid-template-columns: 1fr; }
  .ng-feature { justify-content: flex-start; border-right: 0; border-bottom: 1px solid var(--p1ng-rule); }
  .ng-challenge h2 { font-size: clamp(44px, 14vw, 62px); }
  .ng-challenge__copy { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- p2: operating-model ---------- */
.ng-op { color: var(--p2ng-op-ink); font-family: var(--p2ng-op-display); }
:root {
  --p2ng-op-bg: #f4f7fb;
  --p2ng-op-panel: #ffffff;
  --p2ng-op-ink: #061328;
  --p2ng-op-body: #64758f;
  --p2ng-op-blue: #087cff;
  --p2ng-op-cyan: #6ee2ff;
  --p2ng-op-rule: #d8e2ed;
  --p2ng-op-navy: #020c1e;
  --p2ng-op-content: min(1376px, calc(100vw - 64px));
  --p2ng-op-display: "Space Grotesk", "Segoe UI", sans-serif;
  --p2ng-op-mono: "IBM Plex Mono", "Cascadia Mono", monospace;
}

.ng-op { padding: 88px 0 96px; background: var(--p2ng-op-bg); }
.ng-op__intro { width: var(--p2ng-op-content); margin: 0 auto 54px; display: grid; grid-template-columns: minmax(0, 1fr) 420px; align-items: end; gap: 84px; }
.ng-op__label { margin: 0 0 28px; color: #58708f; font: 500 12px/1.4 var(--p2ng-op-mono); letter-spacing: .1em; }
.ng-op h2 { max-width: 760px; margin: 0; font-size: clamp(56px, 5.2vw, 80px); font-weight: 480; line-height: .95; letter-spacing: -.05em; }
.ng-op__intro-copy { margin: 0 0 8px; color: var(--p2ng-op-body); font-size: 18px; line-height: 1.6; }

.ng-op__system { width: var(--p2ng-op-content); margin: auto; overflow: hidden; border: 1px solid var(--p2ng-op-rule); border-radius: 13px; background: var(--p2ng-op-panel); box-shadow: 0 18px 44px rgba(20, 48, 82, .11); }
.ng-op__rail { position: relative; height: 220px; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--p2ng-op-navy) url("/assets/nightgrid/operating-model/signal-rail-background.svg?v=2") center/cover no-repeat; }
.ng-op__rail-stage { position: relative; display: grid; place-items: center; }
.ng-op__node { width: 146px; height: 146px; display: grid; place-items: center; background: url("/assets/nightgrid/operating-model/stage-node-ring.svg") center/contain no-repeat; }
.ng-op__node img { width: 78px; height: 78px; }

.ng-op__columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ng-op__stage { position: relative; min-height: 480px; padding: 40px 40px 32px; overflow: hidden; display: flex; flex-direction: column; border-right: 1px solid var(--p2ng-op-rule); }
.ng-op__stage:last-child { border-right: 0; }
.ng-op__stage::after { content: attr(data-step); position: absolute; right: 18px; bottom: -20px; color: var(--p2ng-op-blue); opacity: .04; font-size: 160px; font-weight: 520; line-height: 1; pointer-events: none; }
.ng-op__step { margin: 0 0 20px; color: #536e91; font: 500 14px/1 var(--p2ng-op-mono); letter-spacing: .13em; }
.ng-op__stage-name { margin: 0 0 24px; color: var(--p2ng-op-blue); font: 600 14px/1 var(--p2ng-op-mono); letter-spacing: .21em; }
.ng-op__mobile-icon { display: none; }
.ng-op__proposition { max-width: 350px; margin: 0 0 32px; color: var(--p2ng-op-ink); font-size: 24px; font-weight: 550; line-height: 1.34; }
.ng-op__description { max-width: 355px; margin: 0; color: var(--p2ng-op-body); font-size: 16px; line-height: 1.75; }
.ng-op__takeaway { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; margin: auto 0 0; color: var(--p2ng-op-ink); font-size: 15px; font-weight: 650; }
.ng-op__takeaway img { width: 22px; height: 22px; }

@media (max-width: 960px) {
  :root { --p2ng-op-content: min(100% - 40px, 760px); }
  .ng-op__intro { grid-template-columns: 1fr; gap: 28px; }
  .ng-op__intro-copy { max-width: 540px; }
  .ng-op__rail { display: none; }
  .ng-op__columns { grid-template-columns: 1fr; }
  .ng-op__stage { min-height: 0; padding: 42px 36px; border-right: 0; border-bottom: 1px solid var(--p2ng-op-rule); }
  .ng-op__stage:last-child { border-bottom: 0; }
  .ng-op__mobile-icon { display: block; width: 68px; height: 68px; margin-bottom: 20px; }
  .ng-op__takeaway { margin-top: 34px; }
}

@media (max-width: 560px) {
  .ng-op { padding: 64px 0; }
  .ng-op h2 { font-size: clamp(48px, 14vw, 66px); }
  .ng-op__stage { padding: 36px 26px; }
}

/* ---------- p3: whole-picture ---------- */
.ng-view { color: var(--p3ng-white); font-family: var(--p3ng-display); }
:root {
  --p3ng-navy: #020d20;
  --p3ng-navy-deep: #010817;
  --p3ng-white: #f5f8ff;
  --p3ng-body: #9bb5da;
  --p3ng-blue: #1f9dff;
  --p3ng-cyan: #27d7ff;
  --p3ng-content: min(1450px, calc(100vw - 64px));
  --p3ng-display: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --p3ng-mono: "IBM Plex Mono", "Cascadia Mono", monospace;
}

.ng-view {
  position: relative;
  min-height: 980px;
  padding: 81px 0;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  place-items: center;
  background: #02091b;
}

.ng-view::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/assets/nightgrid/whole-picture/technical-grid.svg") center/600px 600px repeat;
  opacity: .22;
}

.ng-view::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 13, 32, .94) 0%, rgba(2, 13, 32, .52) 42%, transparent 62%),
    url("/assets/nightgrid/whole-picture/node-field.svg") right center/55% auto no-repeat;
}

.ng-view__corners { position: absolute; inset: 28px; width: calc(100% - 56px); height: calc(100% - 56px); pointer-events: none; opacity: .9; }
.ng-view__inner { width: var(--p3ng-content); min-height: 760px; display: grid; grid-template-columns: minmax(480px, .82fr) minmax(660px, 1.18fr); align-items: center; gap: 36px; }
.ng-view__copy { position: relative; z-index: 3; padding: 32px 0 36px 64px; }
.ng-view__copy::before { content: ""; position: absolute; left: 0; top: 72px; bottom: 22px; width: 48px; background: url("/assets/nightgrid/whole-picture/signal-tick-rail.svg") center/contain no-repeat; opacity: .8; }
.ng-view__section, .ng-view__eyebrow { font-family: var(--p3ng-mono); font-weight: 500; letter-spacing: .13em; }
.ng-view__section { margin: 0 0 68px; color: #a2b8d5; font-size: 13px; }
.ng-view__eyebrow { margin: 0 0 36px; color: var(--p3ng-blue); font-size: 14px; }
.ng-view h2 { max-width: 760px; margin: 0; font-size: clamp(56px, 4.25vw, 76px); font-weight: 400; line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
.ng-view__body { max-width: 640px; margin-top: 26px; color: var(--p3ng-body); font-size: 17px; line-height: 1.65; }
.ng-view__body p { margin: 0; }
.ng-view blockquote { max-width: 650px; margin: 42px 0 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--p3ng-blue); color: #fff; font-size: 18px; font-weight: 550; line-height: 1.55; text-shadow: 0 0 18px rgba(31, 157, 255, .17); }

.ng-view__visual { position: relative; align-self: stretch; min-height: 720px; }
.ng-view__art { position: absolute; width: 116%; height: 100%; right: -8%; top: -35px; object-fit: cover; object-position: 86% center; opacity: .96; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 17%, #000 77%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 17%, #000 77%, transparent 100%); }
.ng-view__visual::after { content: ""; position: absolute; inset: 6% 1% 3% 4%; border-radius: 50%; border: 1px solid rgba(37, 155, 255, .14); box-shadow: inset 0 0 80px rgba(20, 130, 255, .08); pointer-events: none; }
.ng-view__reticle { position: absolute; z-index: 2; width: 138px; height: 138px; opacity: .64; filter: drop-shadow(0 0 14px rgba(0, 174, 255, .35)); }
.ng-view__reticle--one { left: 43%; top: 19%; }
.ng-view__reticle--two { left: 70%; top: 19%; }
.ng-view__status { position: absolute; right: 1%; bottom: 5%; z-index: 3; width: min(360px, 48%); min-height: 122px; padding: 32px 28px; display: flex; flex-direction: column; gap: 15px; justify-content: center; background: url("/assets/nightgrid/whole-picture/status-plaque-frame.svg") center/100% 100% no-repeat; }
.ng-view__status span { color: #9fb8d4; font: 500 12px/1 var(--p3ng-mono); letter-spacing: .18em; }
.ng-view__status strong { color: #fff; font-size: 21px; font-weight: 650; }

@media (max-width: 1120px) {
  :root { --p3ng-content: min(100% - 48px, 900px); }
  .ng-view { padding: 90px 0 60px; }
  .ng-view__inner { min-height: 0; grid-template-columns: 1fr; gap: 16px; }
  .ng-view__copy { padding-right: 36px; }
  .ng-view__section { margin-bottom: 46px; }
  .ng-view__visual { min-height: 610px; }
  .ng-view__art { inset: 0 -4% 0 auto; width: 108%; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 13%, #000 90%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 13%, #000 90%, transparent 100%); }
  .ng-view::after { background: url("/assets/nightgrid/whole-picture/node-field.svg") center bottom/100% auto no-repeat; opacity: .8; }
}

@media (max-width: 640px) {
  :root { --p3ng-content: calc(100% - 32px); }
  .ng-view { padding: 70px 0 30px; }
  .ng-view__corners { inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); }
  .ng-view__copy { padding: 18px 12px 10px 30px; }
  .ng-view__copy::before { left: -8px; width: 34px; }
  .ng-view__section { margin-bottom: 38px; font-size: 11px; }
  .ng-view__eyebrow { margin-bottom: 24px; font-size: 11px; }
  .ng-view h2 { font-size: clamp(44px, 13vw, 62px); line-height: 1.02; }
  .ng-view__body { font-size: 16px; }
  .ng-view blockquote { margin-top: 32px; font-size: 16px; }
  .ng-view__visual { min-height: 430px; margin-inline: -16px; }
  .ng-view__reticle { width: 86px; height: 86px; }
  .ng-view__reticle--one { left: 38%; top: 21%; }
  .ng-view__reticle--two { left: 67%; top: 21%; }
  .ng-view__status { right: 4%; bottom: 2%; width: min(92%, 420px); aspect-ratio: 440 / 148; height: auto; min-height: 0; padding: 25px 22px; }
  .ng-view__status span { font-size: 10px; }
  .ng-view__status strong { font-size: 18px; }
}

/* ---------- p4: how-it-works ---------- */
.ng-how { color: var(--p4ng-how-ink); font-family: var(--p4ng-how-display); }
:root {
  --p4ng-how-bg: #f6f9fc;
  --p4ng-how-panel: rgba(255, 255, 255, .92);
  --p4ng-how-ink: #07152d;
  --p4ng-how-body: #60738f;
  --p4ng-how-blue: #0a87fa;
  --p4ng-how-rule: #d5e2ed;
  --p4ng-how-content: min(1380px, calc(100vw - 64px));
  --p4ng-how-display: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --p4ng-how-mono: "IBM Plex Mono", "Cascadia Mono", monospace;
}

.ng-how {
  position: relative;
  overflow: hidden;
  padding: 82px 0 94px;
  background:
    radial-gradient(circle at 50% 62%, rgba(64, 169, 255, .08), transparent 38%),
    var(--p4ng-how-bg) url("/assets/nightgrid/how-it-works/technical-grid.svg") center/600px 600px repeat;
}

.ng-how::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(246, 249, 252, .64), rgba(246, 249, 252, .64)); }
.ng-how__intro, .ng-flow { position: relative; z-index: 1; width: var(--p4ng-how-content); margin-inline: auto; }
.ng-how__intro { margin-bottom: 64px; display: grid; grid-template-columns: minmax(0, 1fr) 390px; align-items: end; gap: 96px; }
.ng-how__label { margin: 0 0 30px; color: #526e91; font: 500 12px/1.4 var(--p4ng-how-mono); letter-spacing: .11em; }
.ng-how h2 { max-width: 820px; margin: 0; font-size: clamp(58px, 5vw, 78px); font-weight: 460; line-height: .98; letter-spacing: -.05em; text-wrap: balance; }
.ng-how__intro-copy { margin: 0 0 8px; color: var(--p4ng-how-body); font-size: 18px; line-height: 1.6; }

.ng-flow { position: relative; min-height: 580px; padding: 52px 34px 100px; overflow: hidden; border: 1px solid var(--p4ng-how-rule); border-radius: 18px; background: var(--p4ng-how-panel); box-shadow: 0 20px 54px rgba(29, 69, 105, .09); }
.ng-flow__rail { position: absolute; z-index: 0; left: 3.63%; right: 3.63%; top: 104px; height: auto; aspect-ratio: 1400 / 180; transform: translateY(-50%); pointer-events: none; background: url("/assets/nightgrid/how-it-works/process-rail.svg") center/100% 100% no-repeat; }
.ng-flow__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ng-flow__stage { min-width: 0; padding: 0 28px; text-align: center; }
.ng-flow__node { width: 102px; height: 102px; margin: 0 auto 48px; display: grid; place-items: center; border: 1px solid var(--p4ng-how-blue); border-radius: 50%; background: #fff; box-shadow: 0 0 24px rgba(13, 139, 248, .16); }
.ng-flow__node img { width: 58px; height: 58px; }
.ng-flow__content { min-height: 250px; }
.ng-flow__stage + .ng-flow__stage .ng-flow__content { margin-left: -28px; padding-left: 28px; border-left: 1px solid var(--p4ng-how-rule); }
.ng-flow__number { margin: 0 0 18px; color: var(--p4ng-how-blue); font: 550 16px/1 var(--p4ng-how-mono); letter-spacing: .08em; }
.ng-flow h3 { margin: 0 0 40px; color: var(--p4ng-how-ink); font-size: 22px; font-weight: 530; }
.ng-flow h3::after { content: ""; display: block; width: 40px; height: 2px; margin: 22px auto 0; background: var(--p4ng-how-blue); opacity: .72; }
.ng-flow__content > p:last-child { max-width: 220px; margin: 0 auto; color: var(--p4ng-how-body); font-size: 16px; line-height: 1.7; }
.ng-flow__return { position: absolute; left: 4%; right: 4%; bottom: 24px; width: 92%; height: 84px; }

@media (max-width: 1050px) {
  :root { --p4ng-how-content: min(100% - 40px, 780px); }
  .ng-how__intro { grid-template-columns: 1fr; gap: 28px; }
  .ng-how__intro-copy { max-width: 560px; }
  .ng-flow { min-height: 0; padding: 44px 34px; }
  .ng-flow__rail { left: 84px; right: auto; top: 80px; bottom: 80px; width: 2px; height: auto; aspect-ratio: auto; transform: none; background: linear-gradient(#20b9ff, #0878f7 50%, #20b9ff); }
  .ng-flow__grid { grid-template-columns: 1fr; gap: 0; }
  .ng-flow__stage { display: grid; grid-template-columns: 102px 1fr; gap: 36px; align-items: center; padding: 30px 0; text-align: left; }
  .ng-flow__stage + .ng-flow__stage { border-top: 1px solid var(--p4ng-how-rule); }
  .ng-flow__node { margin: 0; }
  .ng-flow__content { min-height: 0; }
  .ng-flow__stage + .ng-flow__stage .ng-flow__content { margin-left: 0; padding-left: 0; border-left: 0; }
  .ng-flow__number { margin-bottom: 12px; }
  .ng-flow h3 { margin-bottom: 14px; }
  .ng-flow h3::after { display: none; }
  .ng-flow__content > p:last-child { max-width: 520px; margin: 0; }
  .ng-flow__return { display: none; }
}

@media (max-width: 600px) {
  :root { --p4ng-how-content: calc(100% - 28px); }
  .ng-how { padding: 64px 0; }
  .ng-how h2 { font-size: clamp(48px, 14vw, 66px); }
  .ng-flow { padding: 28px 22px; }
  .ng-flow__rail { left: 62px; }
  .ng-flow__stage { grid-template-columns: 78px 1fr; gap: 20px; }
  .ng-flow__node { width: 78px; height: 78px; background-size: 104px 104px; }
  .ng-flow__node img { width: 44px; height: 44px; }
  .ng-flow h3 { font-size: 20px; }
  .ng-flow__content > p:last-child { font-size: 15px; }
}

/* ---------- p5: sections-05-07 ---------- */
.ng-human, .ng-why, .ng-clarity { color: var(--p5ng-ink); font-family: var(--p5ng-display); }
:root {
  --p5ng-dark: #010918;
  --p5ng-panel: #03142e;
  --p5ng-ink: #07152d;
  --p5ng-body: #60738f;
  --p5ng-blue: #168fff;
  --p5ng-cyan: #39c5ff;
  --p5ng-green: #42f0ba;
  --p5ng-rule: #cfdeea;
  --p5ng-light: #f5f9fc;
  --p5ng-content: min(1640px, calc(100vw - 72px));
  --p5ng-display: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --p5ng-mono: "IBM Plex Mono", "Cascadia Mono", monospace;
}

.ng-label { margin: 0; font: 500 13px/1.4 var(--p5ng-mono); letter-spacing: .12em; }

/* 05 — Human-led operations */
.ng-human { position: relative; min-height: 760px; overflow: hidden; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 48% 48%, rgba(10, 86, 172, .18), transparent 28%), var(--p5ng-dark) url("/assets/nightgrid/sections-05-07/shared/dark-technical-grid.svg") center/640px repeat; }
.ng-human__inner { position: relative; width: var(--p5ng-content); min-height: 650px; display: grid; grid-template-columns: minmax(430px, 1fr) 260px minmax(520px, 1.06fr); align-items: center; }
.ng-human__copy { position: relative; z-index: 3; }
.ng-human .ng-label { margin-bottom: 72px; color: #6aa9e1; }
.ng-human h2 { margin: 0; font-size: clamp(62px, 5vw, 88px); font-weight: 380; line-height: .98; letter-spacing: -.05em; }
.ng-human h2 span, .ng-human h2 strong { display: block; font-weight: inherit; }
.ng-human h2 strong { color: #54adff; }
.ng-human__decision { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ng-human__stream { position: absolute; left: 50%; top: 50%; width: 72%; height: auto; transform: translate(-65.83%, -50%); opacity: .9; -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent 80%); mask-image: linear-gradient(90deg, #000 70%, transparent 80%); }
.ng-human__node { position: absolute; left: 50%; top: 50%; width: 296px; height: 296px; transform: translate(-50%, -50%); }
.ng-human__details { position: relative; z-index: 3; grid-column: 3; padding: 22px 0 18px 64px; }
.ng-human__details h3 { max-width: 620px; margin: 0 0 34px; color: #fff; font-size: 28px; line-height: 1.4; }
.ng-human__details > p { max-width: 680px; margin: 0 0 24px; color: #9bbbe1; font-size: 18px; line-height: 1.7; }
.ng-human__status { width: 390px; height: 78px; margin-top: 42px; display: grid; grid-template-columns: 62px 32px 1fr; align-items: center; padding: 0 18px; background: url("/assets/nightgrid/sections-05-07/human/coverage-badge-frame.svg") center/100% 100% no-repeat; }
.ng-human__status img:first-child { width: 50px; height: 50px; }
.ng-human__status img:nth-child(2) { width: 24px; height: 24px; }
.ng-human__status span { color: var(--p5ng-green); font: 600 13px/1 var(--p5ng-mono); letter-spacing: .13em; }

/* 06 — Why NightGrid */
.ng-why { position: relative; overflow: hidden; padding: 72px 0 84px; background: var(--p5ng-light) url("/assets/nightgrid/sections-05-07/shared/light-technical-grid.svg") center/640px repeat; }
.ng-why::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: rgba(245, 249, 252, .64); }
.ng-why__intro, .ng-why__bento { position: relative; z-index: 1; width: var(--p5ng-content); margin-inline: auto; }
.ng-why__intro { margin-bottom: 44px; display: grid; grid-template-columns: minmax(0, 1fr) 430px; align-items: end; gap: 88px; }
.ng-why .ng-label { margin-bottom: 26px; color: #526d8e; }
.ng-why h2 { max-width: 920px; margin: 0; font-size: clamp(58px, 4.7vw, 80px); font-weight: 470; line-height: .98; letter-spacing: -.05em; text-wrap: balance; }
.ng-why__intro > p { margin: 0 0 8px; color: var(--p5ng-body); font-size: 18px; line-height: 1.65; }
.ng-why__bento { min-height: 560px; display: grid; grid-template-columns: 1.08fr 1fr 1fr 1.05fr; grid-template-rows: repeat(2, minmax(0, 1fr)); grid-template-areas: "human global tech improve" "human response environment improve"; gap: 12px; }
.ng-why__connector { position: absolute; z-index: 3; left: calc(1.937% - 6.7px); right: auto; width: calc(96.852% + 13.13px); top: 50%; height: auto; aspect-ratio: 1600 / 560; transform: translateY(-50%); pointer-events: none; }
.ng-cap { position: relative; z-index: 2; min-width: 0; overflow: hidden; padding: 30px 32px; border: 1px solid var(--p5ng-rule); border-radius: 16px; background: rgba(255,255,255,.92); }
.ng-cap--human { grid-area: human; color: #fff; background: linear-gradient(145deg, #07366d, #031a3b 60%, #020e22); }
.ng-cap--human::after { content: ""; position: absolute; inset: -5% -5% -5% 25%; background: url("/assets/nightgrid/sections-05-07/why/flow/human-signal-field.svg") right center/cover no-repeat; opacity: .75; }
.ng-cap--global { grid-area: global; }.ng-cap--tech { grid-area: tech; }.ng-cap--response { grid-area: response; }.ng-cap--environment { grid-area: environment; }
.ng-cap--improve { grid-area: improve; background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(221,238,253,.96)); }
.ng-cap__number { position: relative; z-index: 2; margin: 0 0 22px; color: #153257; font: 600 14px/1 var(--p5ng-mono); letter-spacing: .08em; }
.ng-cap--human .ng-cap__number { color: #fff; }
.ng-cap > img:not(.ng-cap__ring) { position: relative; z-index: 2; width: 64px; height: 64px; margin-bottom: 16px; }
.ng-cap h3 { position: relative; z-index: 2; margin: 0 0 24px; color: var(--p5ng-ink); font-size: 17px; line-height: 1.28; }
.ng-cap h3::before { content: ""; display: block; width: 76px; height: 2px; margin-bottom: 14px; background: linear-gradient(90deg, var(--p5ng-blue), transparent); }
.ng-cap > p:last-child { position: relative; z-index: 2; margin: 0; color: var(--p5ng-body); font-size: 15px; line-height: 1.55; }
.ng-cap--human h3, .ng-cap--human > p:last-child { color: #fff; }
.ng-cap--human > p:last-child { max-width: 260px; color: #d6e6f8; }
.ng-cap__ring { position: relative; z-index: 2; display: block; width: min(300px, 100%); height: auto; margin: 0 auto 32px; }
.ng-cap--improve h3, .ng-cap--improve > p:last-child { max-width: 300px; }

/* 07 — Operational clarity */
.ng-clarity { border-top: 1px solid #e2e8ef; position: relative; min-height: 820px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 77% 68%, rgba(22, 143, 255, .18), transparent 27%), var(--p5ng-light) url("/assets/nightgrid/sections-05-07/shared/light-technical-grid.svg") center/640px repeat; }
.ng-clarity::after { content: ""; position: absolute; inset: 0; background: rgba(245,249,252,.56); pointer-events: none; }
.ng-clarity__inner { position: relative; z-index: 1; width: var(--p5ng-content); display: grid; grid-template-columns: minmax(520px, .84fr) minmax(720px, 1.16fr); align-items: center; gap: 76px; }
.ng-clarity__copy { position: relative; padding-left: 70px; }
.ng-clarity__rail { position: absolute; left: 0; top: -40px; width: 52px; height: calc(100% + 80px); }
.ng-clarity .ng-label { margin-bottom: 54px; color: #526d8e; }
.ng-clarity__eyebrow { margin: 0 0 32px; color: #0075ee; font: 600 13px/1.4 var(--p5ng-mono); letter-spacing: .11em; }
.ng-clarity h2 { max-width: 700px; margin: 0; font-size: clamp(58px, 4.75vw, 82px); font-weight: 430; line-height: 1.03; letter-spacing: -.05em; }
.ng-clarity__body { max-width: 680px; margin: 26px 0 0; color: var(--p5ng-body); font-size: 18px; line-height: 1.7; }
.ng-dashboard { position: relative; min-height: 650px; padding: 26px 28px 66px; overflow: hidden; color: #fff; border: 1px solid #326fa7; border-radius: 16px; background: linear-gradient(145deg, #041b3b, #020e22); box-shadow: 0 24px 54px rgba(11, 69, 134, .25), 0 28px 38px rgba(22, 143, 255, .18); }
.ng-dashboard::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: url("/assets/nightgrid/sections-05-07/clarity/dashboard/dashboard-frame.svg") center/100% 100% no-repeat; opacity: .76; }
.ng-dashboard__head { position: relative; z-index: 2; height: 58px; display: flex; justify-content: space-between; align-items: center; padding: 0 18px; color: #a7bfdc; font: 550 13px/1 var(--p5ng-mono); letter-spacing: .13em; }
.ng-dashboard__head > div { display: flex; align-items: center; gap: 12px; color: var(--p5ng-green); }
.ng-dashboard__head img:first-child { width: 22px; height: 22px; }.ng-dashboard__head img:nth-child(2) { width: 38px; height: 38px; }
.ng-dashboard__grid { position: relative; z-index: 2; min-height: 490px; display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); border: 1px solid rgba(50,111,167,.68); }
.ng-metric { position: relative; min-width: 0; overflow: hidden; padding: 34px 38px; }
.ng-metric:nth-child(odd) { border-right: 1px solid rgba(50,111,167,.6); }.ng-metric:nth-child(-n+2) { border-bottom: 1px solid rgba(50,111,167,.6); }
.ng-metric > p { position: relative; z-index: 2; margin: 0 0 26px; color: #a7bfdc; font: 520 13px/1 var(--p5ng-mono); letter-spacing: .07em; }
.ng-metric > strong { position: relative; z-index: 2; display: block; margin-bottom: 28px; font-size: 56px; line-height: .9; letter-spacing: -.04em; }
.ng-metric > span { position: relative; z-index: 2; color: #36b4ff; font: 600 14px/1 var(--p5ng-mono); letter-spacing: .05em; }
.ng-metric__icon { position: absolute; z-index: 2; right: 26px; top: 24px; width: 58px; height: 58px; }
.ng-metric__viz { position: absolute; z-index: 1; right: 20px; bottom: 12px; width: 56%; height: 45%; opacity: .82; }
.ng-metric__coverage { position: absolute; z-index: 1; right: 30px; top: 42px; width: 170px; height: 170px; }
.ng-metric__coverage img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; }.ng-metric__coverage img:last-child { position: absolute; inset: 34%; width: 32%; height: 32%; }
.ng-dashboard__foot { position: absolute; right: 32px; bottom: 22px; z-index: 2; margin: 0; color: #9fb5d0; font: 500 12px/1 var(--p5ng-mono); letter-spacing: .12em; }

@media (max-width: 1450px) {
  :root { --p5ng-content: min(calc(100% - 48px), 900px); }
  .ng-human { padding: 84px 0; }
  .ng-human__inner { min-height: 0; grid-template-columns: 1fr; gap: 26px; }
  .ng-human__details { grid-column: 1; padding-top: 0; padding-left: 34px; }
  .ng-human__decision { display: none; }
  .ng-why__intro { grid-template-columns: 1fr; gap: 26px; }
  .ng-why__intro > p { max-width: 560px; }
  .ng-why__bento { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; grid-template-areas: "human human" "global tech" "response environment" "improve improve"; }
  .ng-why__connector { display: none; }
  .ng-cap--human, .ng-cap--improve { min-height: 390px; }
  .ng-cap--improve { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .ng-cap--improve .ng-cap__number { position: absolute; top: 30px; left: 32px; }
  .ng-clarity { padding: 90px 0; }
  .ng-clarity__inner { grid-template-columns: 1fr; gap: 64px; }
  .ng-dashboard { min-height: 620px; }
}

@media (max-width: 650px) {
  :root { --p5ng-content: calc(100% - 28px); }
  .ng-human h2, .ng-why h2, .ng-clarity h2 { font-size: clamp(46px, 13vw, 64px); }
  .ng-human__details { padding: 0; }
  .ng-human__status { width: 100%; grid-template-columns: 52px 28px 1fr; }
  .ng-human__status span { font-size: 10px; }
  .ng-why__bento { grid-template-columns: 1fr; grid-template-areas: "human" "global" "tech" "response" "environment" "improve"; }
  .ng-cap, .ng-cap--human, .ng-cap--improve { min-height: 0; }
  .ng-cap--improve { display: block; }
  .ng-cap--improve .ng-cap__number { position: static; }
  .ng-cap__ring { max-width: 230px; }
  .ng-clarity__copy { padding-left: 42px; }
  .ng-clarity__rail { width: 34px; }
  .ng-dashboard { min-height: 0; padding: 20px 18px 62px; }
  .ng-dashboard__head { font-size: 9px; padding-inline: 6px; }
  .ng-dashboard__grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .ng-metric { min-height: 230px; border-right: 0 !important; border-bottom: 1px solid rgba(50,111,167,.6); padding: 30px 26px; }
  .ng-metric:last-child { border-bottom: 0; }
  .ng-metric > strong { font-size: 48px; }
  .ng-metric__coverage { width: 140px; height: 140px; }
  .ng-dashboard__foot { right: 22px; font-size: 9px; }
}

/* ---------- p6: section-08 ---------- */
.ng-start { font-family: var(--p6ng08-display); }
:root {
  --p6ng08-bg: #000817;
  --p6ng08-panel: #03142e;
  --p6ng08-blue: #168fff;
  --p6ng08-cyan: #39c5ff;
  --p6ng08-text: #f5faff;
  --p6ng08-body: #9bb8d9;
  --p6ng08-width: min(1740px, calc(100vw - 96px));
  --p6ng08-display: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --p6ng08-mono: "IBM Plex Mono", "Cascadia Mono", monospace;
}

.ng-start {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--p6ng08-text);
  background:
    radial-gradient(circle at 22% 48%, rgba(22, 143, 255, .13), transparent 25%),
    radial-gradient(circle at 77% 50%, rgba(22, 143, 255, .08), transparent 26%),
    linear-gradient(rgba(0, 8, 23, .89), rgba(0, 8, 23, .96)),
    url("/assets/nightgrid/section-08/backgrounds/dark-command-grid.svg") center / 640px repeat,
    var(--p6ng08-bg);
}

.ng-start__bridge {
  position: absolute;
  z-index: 0;
  left: 0;
  top: calc(50% - 90px);
  width: 100%;
  height: 180px;
  opacity: .72;
  pointer-events: none;
}

.ng-start__inner {
  position: relative;
  z-index: 1;
  width: var(--p6ng08-width);
  display: grid;
  grid-template-columns: minmax(420px, .93fr) minmax(520px, 1.02fr) minmax(540px, 1.05fr);
  align-items: center;
  gap: 54px;
  padding: 80px 0 64px;
}

.ng-start__visual { position: relative; min-width: 0; }
.ng-start__visual img { display: block; width: min(660px, 116%); max-width: none; margin-left: -13%; filter: drop-shadow(0 0 26px rgba(22, 143, 255, .18)); }

.ng-start__copy { position: relative; z-index: 2; }
.ng-start__label { margin: 0 0 46px; color: #75a6d7; font: 560 13px/1.4 var(--p6ng08-mono); letter-spacing: .13em; }
.ng-start h2 { margin: 0; font-size: clamp(62px, 4.6vw, 88px); font-weight: 430; line-height: 1.03; letter-spacing: -.05em; }
.ng-start__body { max-width: 650px; margin: 26px 0 0; color: var(--p6ng08-body); font-size: 19px; line-height: 1.7; }

.ng-review { position: relative; min-height: 520px; }
.ng-review__frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ng-review__content { position: relative; z-index: 1; padding: 62px 56px 46px; }
.ng-review h3 { margin: 0 0 42px; color: var(--p6ng08-blue); font: 650 16px/1.3 var(--p6ng08-mono); letter-spacing: .18em; }
.ng-review__items { border-top: 1px solid rgba(50, 111, 167, .28); }
.ng-review__item { min-height: 72px; display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 18px; border-bottom: 1px solid rgba(50, 111, 167, .28); color: #e5eef8; font-size: 17px; line-height: 1.4; }
.ng-review__item > img { width: 38px; height: 38px; }
.ng-review__button { min-height: 76px; margin-top: 32px; display: flex; align-items: center; justify-content: center; gap: 28px; color: #fff; border: 1px solid rgba(57, 197, 255, .9); border-radius: 8px; background: linear-gradient(100deg, #168fff, #0874f8); box-shadow: 0 14px 30px rgba(22, 143, 255, .18); text-decoration: none; font-weight: 650; font-size: 18px; transition: transform .18s ease, box-shadow .18s ease; }
.ng-review__button img { width: 32px; height: 32px; transition: transform .18s ease; }
.ng-review__button:hover, .ng-review__button:focus-visible { outline: none; transform: translateY(-2px); box-shadow: 0 18px 36px rgba(22, 143, 255, .28); }
.ng-review__button:hover img, .ng-review__button:focus-visible img { transform: translateX(4px); }

@media (max-width: 1700px) {
  :root { --p6ng08-width: min(calc(100% - 56px), 1050px); }
  .ng-start { min-height: 0; }
  .ng-start__inner { grid-template-columns: .82fr 1.18fr; padding-block: 90px 76px; }
  .ng-start__visual img { width: 115%; }
  .ng-review { grid-column: 1 / -1; width: min(680px, 100%); min-height: 510px; justify-self: center; }
}

@media (max-width: 800px) {
  :root { --p6ng08-width: calc(100% - 30px); }
  .ng-start__inner { grid-template-columns: 1fr; gap: 48px; padding-block: 70px 72px; }
  .ng-start__visual { order: 2; }
  .ng-start__visual img { width: min(580px, 118%); margin-inline: -9%; }
  .ng-start__copy { order: 1; }
  .ng-review { order: 3; min-height: 0; }
  .ng-start__label { margin-bottom: 28px; }
  .ng-start h2 { font-size: clamp(52px, 14vw, 68px); }
  .ng-start__body { font-size: 17px; }
  .ng-review__frame { display: none; }
  .ng-review__content { padding: 36px 22px 26px; border: 1px solid rgba(50, 111, 167, .7); border-radius: 12px; background: linear-gradient(145deg, rgba(6, 27, 58, .96), rgba(2, 13, 34, .98)); }
  .ng-review h3 { margin-bottom: 28px; font-size: 13px; }
  .ng-review__item { grid-template-columns: 38px 1fr; gap: 12px; font-size: 15px; }
  .ng-review__item > img { width: 32px; height: 32px; }
  .ng-review__button { min-height: 66px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .ng-review__button, .ng-review__button img { transition: none; }
}

/* ---------- p7: footer ---------- */
.ng-footer { font-family: var(--p7ng-footer-display); }
:root {
  --p7ng-footer-bg: #000817;
  --p7ng-footer-panel: #03142e;
  --p7ng-footer-rule: #168fff;
  --p7ng-footer-cyan: #39c5ff;
  --p7ng-footer-text: #f5faff;
  --p7ng-footer-muted: #7697bc;
  --p7ng-footer-width: min(1640px, calc(100vw - 96px));
  --p7ng-footer-display: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --p7ng-footer-mono: "IBM Plex Mono", "Cascadia Mono", monospace;
}

.ng-footer {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  color: var(--p7ng-footer-text);
  background:
    radial-gradient(circle at 50% 73%, rgba(22, 143, 255, .12), transparent 30%),
    linear-gradient(rgba(0, 8, 23, .90), rgba(0, 8, 23, .96)),
    url("/assets/nightgrid/footer/backgrounds/footer-dot-field.svg") center / 640px repeat,
    var(--p7ng-footer-bg);
}

.ng-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(22, 143, 255, .055) 50%, transparent);
}

.ng-footer__inner {
  position: relative;
  z-index: 1;
  width: var(--p7ng-footer-width);
  margin-inline: auto;
  padding-top: 72px;
}

.ng-footer__main {
  display: grid;
  grid-template-columns: minmax(320px, 1.06fr) minmax(520px, 1.16fr) minmax(330px, .78fr);
  align-items: center;
  gap: 70px;
  min-height: 210px;
}

.ng-footer__brand { display: inline-flex; width: min(440px, 100%); }
.ng-footer__brand img { display: block; width: 100%; height: auto; }

.ng-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(210px, 1fr));
  gap: 56px;
}

.ng-footer__nav-column { display: grid; gap: 18px; }
.ng-footer__nav a {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #dce9f6;
  border-bottom: 1px solid rgba(35, 103, 164, .48);
  text-decoration: none;
  font-size: 19px;
  line-height: 1.2;
  transition: color .18s ease, border-color .18s ease, transform .18s ease;
}
.ng-footer__nav a img { width: 22px; height: 22px; transition: transform .18s ease; }
.ng-footer__nav a:hover,
.ng-footer__nav a:focus-visible { color: #fff; border-color: var(--p7ng-footer-cyan); outline: none; transform: translateX(2px); }
.ng-footer__nav a:hover img,
.ng-footer__nav a:focus-visible img { transform: translateX(3px); }

.ng-footer__statement {
  justify-self: end;
  margin: 0;
  color: var(--p7ng-footer-rule);
  font: 560 18px/1.3 var(--p7ng-footer-mono);
  letter-spacing: .16em;
  text-align: right;
  white-space: nowrap;
}

.ng-footer__divider {
  position: relative;
  pointer-events: none;
  width: 100vw;
  height: 118px;
  margin-top: 10px;
  margin-left: calc(50% - 50vw);
}
.ng-footer__divider img { display: block; width: 100%; height: 100%; }

.ng-footer__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: -26px;
  color: var(--p7ng-footer-muted);
  font: 520 12px/1.4 var(--p7ng-footer-mono);
  letter-spacing: .12em;
}
.ng-footer__legal p { margin: 0; }
.ng-footer__identity { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.ng-footer__contact { margin: 0; color: var(--p7ng-footer-text); font-family: var(--p7ng-footer-mono); font-size: 11px; font-style: normal; line-height: 1.6; letter-spacing: .04em; }
.ng-footer__contact a { color: inherit; text-decoration: none; }
.ng-footer__contact a:hover, .ng-footer__contact a:focus-visible { color: inherit; text-decoration: underline; outline: none; }
.ng-footer__legal-group { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ng-footer__legal-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 28px; }
.ng-footer__legal-note { font-size: .85em; opacity: .82; }
.ng-footer__legal a { color: inherit; text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid rgba(118, 151, 188, .35); transition: color .18s ease, border-color .18s ease; }
.ng-footer__legal a:hover, .ng-footer__legal a:focus-visible { color: #fff; border-color: var(--p7ng-footer-cyan); outline: none; }

@media (max-width: 1280px) {
  :root { --p7ng-footer-width: min(100% - 56px, 920px); }
  .ng-footer { min-height: 650px; }
  .ng-footer__inner { padding-top: 64px; }
  .ng-footer__main { grid-template-columns: 1fr 1.25fr; gap: 54px; }
  .ng-footer__statement { grid-column: 1 / -1; justify-self: start; margin-top: 10px; }
}

@media (max-width: 860px) {
  :root { --p7ng-footer-width: calc(100% - 36px); }
  .ng-footer { min-height: 0; }
  .ng-footer__inner { padding-top: 56px; padding-bottom: 34px; }
  .ng-footer__main { display: grid; grid-template-columns: 1fr; gap: 44px; }
  .ng-footer__brand { width: min(390px, 88%); }
  .ng-footer__nav { grid-template-columns: 1fr; gap: 18px; }
  .ng-footer__statement { grid-column: auto; white-space: normal; }
  .ng-footer__divider { height: 94px; margin-top: 28px; }
  .ng-footer__legal { margin-top: -12px; align-items: flex-start; flex-direction: column; font-size: 10px; }
  .ng-footer__legal-group { align-items: flex-start; }
  .ng-footer__legal-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .ng-footer__nav a,
  .ng-footer__nav a img,
  .ng-footer__legal a { transition: none; }
}
