/* ==========================================================================
   DataVisuals Intentional — next-gen site (/next/*).
   Tokens are defined once here; templates use classes only, never colors.
   Rules: one orange word per headline; orange "Intentional" in product names;
   navy labels on orange; --orange-text for orange text on light backgrounds;
   sequences run orange → teal → sky; no gradients or shadows except the
   glimpse fade.
   ========================================================================== */

/* ── Fonts (self-hosted, latin subset, SIL OFL — see static/fonts/README.md) ── */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url('../fonts/inter-latin-var.woff2') format('woff2');
}
@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/ibm-plex-mono-latin-400.woff2') format('woff2');
}
@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/ibm-plex-mono-latin-500.woff2') format('woff2');
}

/* ── Tokens ── */
:root {
    --navy: #0E1C32;
    --navy-panel: #15253F;
    --navy-raised: #1E3354;
    --navy-rule: #24375A;
    --navy-line: #3A5480;
    --orange: #FF6B2C;
    --orange-text: #C2410C;
    --teal: #3CC6B7;
    --sky: #82B4DE;
    --mist: #BFCBDD;
    --mist-muted: #8E9CB3;
    --paper: #FFFFFF;
    --paper-alt: #F4F5F7;
    --rule: #D1D5DB;
    --ink-body: #374151;
    --ink-muted: #4B5563;
    --white: #FFFFFF;

    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-12: 48px;
    --space-24: 96px;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-pill: 999px;

    --font-sans: Inter, system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

    /* Context colors: dark ground by default; light sections override. */
    --hl: var(--orange);          /* the one orange word / orange text */
    --ink: var(--white);          /* headings */
    --body: var(--mist);          /* body copy */
    --muted: var(--mist-muted);   /* captions, legal */
    --line: var(--navy-rule);     /* hairlines */
    --eyebrow: var(--sky);
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--navy);
    color: var(--ink);
    font: 400 16px/1.6 var(--font-sans);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, figure { margin: 0; }
a { color: var(--hl); }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}
.nx-skip {
    position: absolute; left: -9999px; top: 8px;
    background: var(--orange); color: var(--navy);
    padding: 12px 16px; border-radius: var(--radius-md); font-weight: 700; z-index: 10;
}
.nx-skip:focus { left: 16px; }
.nx-vh {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── Layout ── */
.nx-wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-8); }
.nx-wrap--wide { max-width: 1280px; padding: 0 var(--space-12); }

.nx-sec { padding-block: var(--space-24); }
.nx-sec--rule { border-top: 1px solid var(--navy-rule); }
.nx-sec--alt, .nx-sec--light {
    --hl: var(--orange-text);
    --ink: var(--navy);
    --body: var(--ink-body);
    --muted: var(--ink-muted);
    --line: var(--rule);
    --eyebrow: var(--orange-text);
    color: var(--ink);
}
.nx-sec--alt { background: var(--paper-alt); }
.nx-sec--light { background: var(--paper); }

.nx-split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.nx-split--top { align-items: flex-start; }
.nx-split--rev { flex-wrap: wrap-reverse; }
.nx-split > * { flex: 1 1 440px; min-width: 0; }
.nx-split > .nx-grow { flex: 999 1 560px; }

/* auto-fit grids that collapse to one column without side-scrolling */
.nx-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 280px), 100%), 1fr)); }

/* ── Type ── */
.nx-eyebrow {
    display: flex; align-items: center; gap: 10px;
    font: 500 13px/1.3 var(--font-mono);
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--eyebrow);
}
.nx-eyebrow::before {
    content: ''; width: 24px; height: 2px; flex: none; background: var(--orange);
}
.nx-eyebrow--bare::before { content: none; }
.nx-eyebrow--teal { color: var(--teal); }
.nx-eyebrow--sky { color: var(--sky); }
.nx-eyebrow--orange { color: var(--hl); }
.nx-mono {
    font: 400 12px/1.6 var(--font-mono);
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--muted);
}

.nx-h1 {
    margin-top: 20px;
    font-size: clamp(52px, 6.4vw, 92px); line-height: 0.98;
    font-weight: 900; letter-spacing: -0.04em;
}
.nx-h1--xl { font-size: clamp(64px, 8.4vw, 124px); line-height: 0.95; letter-spacing: -0.045em; }
.nx-product + .nx-h1 { margin-top: 12px; }
.nx-h2 {
    margin-top: 16px; max-width: 820px;
    font-size: clamp(32px, 3.6vw, 46px); line-height: 1.1;
    font-weight: 800; letter-spacing: -0.03em; color: var(--ink);
}
.nx-h2--wide { max-width: 900px; }
.nx-h1 em, .nx-h2 em, .nx-close h2 em { font-style: normal; color: var(--hl); }
.nx-product { margin-top: 20px; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.nx-int { color: var(--hl); }   /* the orange "Intentional" in product names */
.nx-subhead { margin-top: 24px; max-width: 620px; font-size: 24px; line-height: 1.4; font-weight: 600; color: var(--body); }
.nx-lede { margin-top: 20px; max-width: 600px; font-size: 18px; line-height: 1.6; color: var(--body); }
.nx-lede--wide { max-width: 760px; }
.nx-lede strong { color: var(--white); font-weight: 600; }
.nx-note { margin-top: 20px; font-size: 14px; color: var(--muted); }

/* ── Buttons ── */
.nx-btns { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.nx-btn {
    display: inline-flex; align-items: center; height: 52px; padding: 0 24px;
    border-radius: var(--radius-md); border: 1.5px solid transparent;
    font: 700 16px/1.2 var(--font-sans); text-decoration: none;
    cursor: pointer;
}
.nx-btn--primary { background: var(--orange); color: var(--navy); }
.nx-btn--primary:hover { background: var(--white); color: var(--navy); }
.nx-btn--secondary { background: transparent; color: var(--white); border-color: var(--navy-line); }
.nx-btn--secondary:hover { border-color: var(--white); color: var(--white); }
.nx-btn--navy { background: var(--navy); color: var(--white); }
.nx-btn--navy:hover { background: var(--navy-raised); color: var(--white); }
.nx-btn--sm { height: 48px; padding: 0 22px; }
.nx-link {
    display: inline-flex; align-items: center; min-height: 44px;
    font-weight: 700; font-size: 16px; color: var(--hl); text-decoration: none;
}
.nx-link:hover { text-decoration: underline; color: var(--hl); }

/* ── Sequence colors (orange → teal → sky → mist) ── */
.c-orange { --seq: var(--orange); --seq-text: var(--hl); }
.c-teal   { --seq: var(--teal);   --seq-text: var(--teal); }
.c-sky    { --seq: var(--sky);    --seq-text: var(--sky); }
.c-mist   { --seq: var(--mist);   --seq-text: var(--mist); }

/* ── Nav ── */
.nx-header { background: var(--navy); border-bottom: 1px solid var(--navy-rule); }
.nx-nav {
    min-height: 80px; display: flex; flex-wrap: wrap; gap: 16px;
    align-items: center; justify-content: space-between;
}
.nx-brand {
    display: flex; align-items: center; gap: 12px;
    color: var(--white); text-decoration: none;
    font-size: 20px; font-weight: 700; letter-spacing: -0.015em;
}
.nx-brand img { width: 36px; height: 36px; }
.nx-brand:hover { color: var(--white); }
.nx-links { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; font-size: 15px; }
.nx-links a:not(.nx-btn) {
    display: inline-flex; align-items: center; min-height: 44px;
    color: var(--mist); text-decoration: none;
    border-bottom: 2px solid transparent;
}
.nx-links a:not(.nx-btn):hover { color: var(--white); }
.nx-links a[aria-current="page"] { color: var(--white); border-bottom-color: var(--orange); }
.nx-links .nx-btn { height: 44px; padding: 0 18px; font-size: 15px; }
.nx-menu-btn {
    display: none; align-items: center; gap: 8px; height: 44px; padding: 0 14px;
    background: transparent; color: var(--white); cursor: pointer;
    border: 1.5px solid var(--navy-line); border-radius: var(--radius-md);
    font: 600 15px/1 var(--font-sans);
}
.nx-menu-btn svg { stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }
.nx-menu-btn .nx-menu-close, .is-open .nx-menu-btn .nx-menu-open { display: none; }
.is-open .nx-menu-btn .nx-menu-close { display: inline; }

/* Home keeps the minimal header: bigger mark, Contact only. */
.nx-header--home { border-bottom: 0; }
.nx-header--home .nx-nav { min-height: clamp(72px, 10vh, 104px); }
.nx-header--home .nx-brand { gap: 14px; font-size: 26px; letter-spacing: -0.02em; }
.nx-header--home .nx-brand img { width: 48px; height: 48px; }
.nx-header--home .nx-btn { font-weight: 600; font-size: 17px; }

/* ── Footer ── */
.nx-footer { border-top: 1px solid var(--navy-rule); }
.nx-footer-inner {
    padding-block: 32px; display: flex; flex-wrap: wrap; gap: 8px 24px;
    align-items: center; justify-content: space-between;
    font-size: 14px; color: var(--mist-muted);
}
.nx-footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.nx-footer-links a {
    display: inline-flex; align-items: center; min-height: 44px;
    color: var(--mist-muted); text-decoration: none;
}
.nx-footer-links a:hover, .nx-footer-links a[aria-current="page"] { color: var(--white); }

/* ── Hero ── */
.nx-hero { padding-block: 96px 64px; }
.nx-hero--full { padding-bottom: 96px; }

/* ── Three-questions strip ── */
.nx-questions {
    border-top: 1px solid var(--navy-rule); padding-top: 28px;
    display: grid; gap: 24px 32px; align-items: baseline;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}
.nx-questions-wrap { padding-bottom: 88px; }
.nx-q { display: flex; gap: 14px; align-items: baseline; font-size: 22px; font-weight: 700; line-height: 1.3; }
.nx-q span:first-child { font: 400 15px/1 var(--font-mono); color: var(--seq); }

/* ── Numbered steps (top rule in sequence color) ── */
.nx-steps { margin-top: 48px; --min: 240px; gap: 32px; }
.nx-step { border-top: 4px solid var(--seq); padding-top: 20px; }
.nx-step-num { font: 400 13px/1.35 var(--font-mono); color: var(--seq-text); }
.nx-step h3 { margin-top: 10px; font-size: 22px; font-weight: 800; letter-spacing: -0.015em; color: var(--ink); }
.nx-step p { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--body); }
.nx-steps--why { --min: 280px; gap: 24px; }
.nx-steps--why .nx-step { padding-top: 24px; }
.nx-steps--why h3 { margin-top: 0; font-size: 21px; font-weight: 700; }
.nx-steps--why p { margin-top: 12px; color: var(--muted); }

/* ── Cards ── */
.nx-cards { margin-top: 40px; }
.nx-card {
    background: var(--navy-panel); border: 1px solid var(--navy-rule);
    border-radius: var(--radius-lg); padding: 28px;
    display: flex; flex-direction: column; gap: 12px;
}
.nx-card[class*="c-"] { border-top: 4px solid var(--seq); }
.nx-sec--alt .nx-card, .nx-sec--light .nx-card { background: var(--paper); border-color: var(--rule); }
.nx-sec--alt .nx-card[class*="c-"], .nx-sec--light .nx-card[class*="c-"] { border-top-color: var(--seq); }
.nx-card-label { font: 400 12px/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--seq-text, var(--muted)); }
.nx-card h3 { font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.nx-card p { font-size: 16px; line-height: 1.6; color: var(--body); flex-grow: 1; }
.nx-card--plain .nx-card-label { color: var(--muted); }
.nx-card--lg { border-radius: var(--radius-xl); padding: 32px; gap: 14px; }
.nx-card--lg h3 { font-size: 28px; }

/* ── Credentials grid ── */
.nx-creds {
    display: grid; gap: 1px; background: var(--navy-rule);
    border: 1px solid var(--navy-rule); border-radius: var(--radius-xl); overflow: hidden;
    grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
}
.nx-creds > div { background: var(--navy-panel); padding: 22px; }
.nx-creds strong { display: block; font-size: 17px; font-weight: 700; color: var(--white); }
.nx-creds span { display: block; margin-top: 4px; font-size: 14px; color: var(--mist); }
.nx-creds .nx-int { display: inline; margin: 0; font-size: inherit; color: var(--orange); }

/* ── Screenshots: glimpse (cropped + fade) and framed ── */
.nx-figs { margin-top: 40px; --min: 320px; gap: 24px; }
.nx-figs--2 { --min: 420px; }
.nx-fig { display: flex; flex-direction: column; gap: 16px; }
.nx-frame {
    position: relative; height: 280px; overflow: hidden;
    border: 1px solid var(--navy-line); border-radius: 14px; background: var(--navy);
}
.nx-figs--2 .nx-frame { height: 320px; }
.nx-frame img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 0% 0%); }
.nx-fig--glimpse .nx-frame { border-color: var(--navy-rule); }
.nx-fig--glimpse .nx-frame::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(14, 28, 50, 0) 40%, rgba(14, 28, 50, 0.92) 100%);
}
.nx-fig-label { font: 400 12px/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--seq); }
.nx-fig-text { margin-top: 6px; font-size: 17px; line-height: 1.5; color: var(--white); }

/* "In the walkthrough" note */
.nx-walk { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--navy-rule); }
.nx-walk-label { font: 400 11px/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); }
.nx-walk p { margin-top: 6px; font-size: 16px; line-height: 1.5; color: var(--white); }

/* Heading row with a button on the right */
.nx-headrow { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; }
.nx-headrow .nx-h2 { margin-top: 0; flex: 1 1 520px; }
.nx-headrow .nx-lede { margin-top: 0; flex: 1 1 380px; max-width: none; }

/* ── Orange closing band ── */
.nx-close { background: var(--orange); color: var(--navy); }
.nx-close-inner {
    padding-block: 80px; display: flex; flex-wrap: wrap; gap: 32px;
    align-items: center; justify-content: space-between;
}
.nx-close-inner > div { flex: 1 1 520px; min-width: 0; }
.nx-close h2 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.nx-close p { margin-top: 14px; font-size: 18px; line-height: 1.5; }
.nx-close .nx-int { color: inherit; }

/* ── Placeholder text, kept visible on purpose ── */
.nx-todo { outline: 1px dashed currentColor; outline-offset: 2px; }

/* ==========================================================================
   Home
   ========================================================================== */
/* Home is one screen: vertical rhythm scales with the viewport height so the
   four columns and footer fit on a laptop at 100% zoom. */
.hm-hero { padding-block: clamp(24px, 5vh, 72px) clamp(32px, 6vh, 88px); display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hm-hero-text { flex: 999 1 600px; min-width: 0; }
.hm-hero-art { flex: 1 1 360px; min-width: 0; display: flex; justify-content: flex-end; }
.hm-hero-art svg { width: 100%; max-width: 680px; max-height: 48vh; height: auto; }
.hm-kicker { font: 500 14px/1.4 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mist-muted); }
.hm-h1 { margin-top: clamp(16px, 2.5vh, 28px); font-size: clamp(46px, min(5.4vw, 7.4vh), 78px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; }
.hm-h1 em { font-style: normal; color: var(--orange); }
.hm-lede { margin-top: clamp(20px, 3.5vh, 36px); max-width: 640px; font-size: 22px; line-height: 1.5; color: var(--mist); }
.hm-cols {
    border-top: 1px solid var(--navy-rule); padding-block: clamp(32px, 5vh, 56px) clamp(32px, 6vh, 72px);
    display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}
.hm-col .hm-col-label { font: 500 13px/1.3 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--seq); }
.hm-col a { text-decoration: none; color: inherit; }
.hm-col a:hover h2 { text-decoration: underline; text-decoration-color: var(--orange); }
.hm-col h2 { margin-top: 16px; font-size: 26px; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; color: var(--white); }
.hm-col h2 em { font-style: normal; color: var(--orange); }
.hm-col p strong { font-weight: 700; color: var(--white); }
.hm-col p { margin-top: 12px; font-size: 17px; line-height: 1.55; color: var(--mist); }
.hm-dot-dim { fill: var(--navy-line); fill-opacity: 0.9; }
.hm-dot-sky { fill: var(--sky); fill-opacity: 0.85; }
.hm-dot-orange { fill: var(--orange); }
.hm-ln { stroke: var(--navy-line); stroke-width: 1.5; fill: none; }
.hm-ln-lit { stroke: var(--orange); stroke-width: 2; fill: none; }
.hm-card { fill: var(--navy-panel); stroke: var(--navy-rule); stroke-width: 1.5; }
.hm-card-lit { fill: var(--navy-panel); stroke: var(--orange); stroke-width: 2; }
.hm-bar { fill: var(--navy-line); }
.hm-bar-lit { fill: var(--white); }
.hm-bar-dim { fill: var(--navy-rule); }
.hm-tick { stroke: var(--orange); stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ==========================================================================
   Book
   ========================================================================== */
.bk-hero-grid { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.bk-hero-grid > :first-child { flex: 999 1 560px; min-width: 0; }
.bk-hero-cover { flex: 1 1 300px; min-width: 0; display: flex; justify-content: center; }
.bk-hero-cover img { width: 300px; height: 480px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--navy-rule); }
.bk-byline { margin-top: 16px; font-size: 17px; color: var(--mist); }
.bk-byline span { margin-left: 12px; font: 400 13px/1 var(--font-mono); color: var(--mist-muted); }
.bk-subtitle { margin-top: 24px; max-width: 620px; font-size: 24px; line-height: 1.4; font-weight: 600; color: var(--mist); }

.bk-h2 { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -0.025em; max-width: 900px; }
.bk-h2--sm { font-size: 38px; line-height: 1.15; letter-spacing: -0.025em; max-width: 720px; }
.bk-copy { margin-top: 40px; max-width: 760px; display: flex; flex-direction: column; gap: 20px; font-size: 18px; line-height: 1.65; color: var(--body); }
.bk-copy strong, .bk-copy em { font-style: normal; font-weight: 700; color: var(--navy); }
.bk-model-intro { margin-top: 56px; font-size: 18px; font-weight: 700; color: var(--navy); }
.bk-model { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.bk-model > div { flex: 1 1 420px; min-width: 0; border-radius: var(--radius-lg); padding: 28px; border-top: 4px solid var(--seq); }
.bk-model-1 { background: var(--paper); border: 1px solid var(--rule); }
.bk-model-2 {
    --hl: var(--orange); --ink: var(--white); --body: var(--mist);
    background: var(--navy); color: var(--white); display: flex; flex-direction: column;
}
.bk-model h3 { margin-top: 8px; font-size: 24px; font-weight: 800; letter-spacing: -0.015em; color: var(--ink); }
.bk-model p { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--body); }
.bk-roles { margin-top: 18px; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); }
.bk-roles div { background: var(--paper-alt); border-radius: var(--radius-md); padding: 12px; font-size: 14px; color: var(--ink-muted); }
.bk-roles strong { display: block; margin-bottom: 2px; color: var(--navy); }
.bk-states { margin-top: auto; padding-top: 18px; display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bk-states div {
    background: var(--navy-panel); border: 1px solid var(--navy-rule); border-radius: var(--radius-md);
    padding: 12px 4px; font-size: 15px; font-weight: 700; text-align: center;
}
.bk-result { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.bk-result > :first-child { flex: 999 1 560px; min-width: 0; }
.bk-result > :last-child { flex: 1 1 340px; min-width: 0; }
.bk-result h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.015em; color: var(--navy); }
.bk-result p { margin-top: 10px; font-size: 17px; line-height: 1.6; color: var(--body); }
.bk-chips { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.bk-chips li {
    font-size: 14px; font-weight: 600; color: var(--navy);
    background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-pill); padding: 8px 14px;
}
.bk-parts { --min: 250px; }
.bk-why { margin-top: 48px; }

/* Health Check */
.bk-hc { display: flex; flex-wrap: wrap; gap: 48px; }
.bk-hc-intro { flex: 1 1 340px; min-width: 0; }
.bk-hc-intro .nx-eyebrow { font-size: 12px; letter-spacing: 0.08em; color: var(--orange); }
.bk-hc-intro .nx-h2 { margin-top: 14px; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; }
.bk-hc-status {
    margin-top: 32px; background: var(--navy-panel); border: 1px solid var(--navy-rule);
    border-radius: var(--radius-xl); padding: 24px;
}
.bk-hc-status-label { font-size: 13px; color: var(--sky); }
.bk-hc-status-value { margin-top: 6px; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.bk-hc-status-value.is-result { color: var(--orange); }
.bk-hc-status-note { margin-top: 4px; font-size: 16px; color: var(--mist); }
.bk-hc-status .nx-btn { margin-top: 20px; height: 48px; padding: 0 22px; border-radius: var(--radius-pill); }
.bk-hc-items { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.bk-hc-item {
    margin: 0; border: 1px solid var(--navy-rule); border-radius: 14px; padding: 18px 20px;
    display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.bk-hc-item legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bk-hc-q { flex: 1 1 260px; min-width: 0; }
.bk-hc-q span { display: block; font: 400 12px/1.4 var(--font-mono); color: var(--sky); }
.bk-hc-q p { margin-top: 4px; font-size: 16px; font-weight: 600; line-height: 1.4; }
.bk-hc-opts { display: flex; gap: 6px; }
.bk-hc-opts button {
    width: 44px; height: 44px; border-radius: 10px;
    border: 1px solid var(--navy-line); background: transparent; color: var(--white);
    font: 700 16px/1 var(--font-sans); cursor: pointer;
}
.bk-hc-opts button:hover { border-color: var(--white); }
.bk-hc-opts button[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--navy); }

.nx-card.bk-bonus { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 32px; align-items: center; }
.bk-bonus-img img { display: block; width: 100%; height: auto; border-radius: var(--radius-md); }
.bk-bonus-copy { display: flex; flex-direction: column; gap: 12px; }
.bk-bonus .nx-card-label { color: var(--muted); }
.bk-duo { --min: 340px; gap: 24px; }
.bk-duo .nx-eyebrow { margin: 0; }
.bk-duo .nx-card .nx-btns { margin-top: 0; }

/* ==========================================================================
   Tool Kit
   ========================================================================== */
.tk-hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.tk-hero > :first-child { flex: 999 1 560px; min-width: 0; }
.tk-ledger { flex: 1 1 460px; min-width: 0; }
.tk-ledger-head { margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tk-ledger-head span:first-child { font: 400 12px/1.4 var(--font-mono); letter-spacing: 0.08em; color: var(--sky); }
.tk-pill {
    font: 400 11px/1.2 var(--font-mono); letter-spacing: 0.08em;
    color: var(--navy); background: var(--orange); border-radius: var(--radius-pill); padding: 5px 10px;
}
.tk-ledger-frame { border: 1px solid var(--navy-line); border-radius: 14px; overflow: hidden; background: var(--navy); }
.tk-ledger figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--mist); }
.tk-tagline { margin-top: 24px; font-size: 26px; line-height: 1.35; font-weight: 600; color: var(--mist); }
.tk-questions-label { white-space: pre-line; }

.tk-shift { margin-top: 40px; }
.tk-shift-row {
    display: flex; flex-wrap: wrap; gap: 8px 24px; padding-block: 20px;
    border-top: 1px solid var(--rule); align-items: baseline;
}
.tk-shift-row > :nth-child(1) { flex: 1 1 160px; }
.tk-shift-row > :nth-child(2) { flex: 2 1 260px; }
.tk-shift-row > :nth-child(3) { flex: 2 1 280px; }
.tk-shift-head { padding: 0 0 12px; border-top: 0; }
.tk-shift-head span { font: 400 12px/1.4 var(--font-mono); letter-spacing: 0.08em; color: var(--ink-muted); }
.tk-shift-head span:last-child { color: var(--orange-text); }
.tk-shift-label { font: 400 13px/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.tk-shift-old {
    font-size: 18px; line-height: 1.5; color: var(--ink-muted);
    text-decoration: line-through; text-decoration-color: var(--orange); text-decoration-thickness: 2px;
}
.tk-shift-new { font-size: 18px; line-height: 1.5; font-weight: 700; color: var(--navy); }

.tk-score {
    background: var(--navy-panel); border: 1px solid var(--navy-rule); border-radius: var(--radius-xl);
    padding: 28px; display: flex; flex-direction: column; gap: 20px;
}
.tk-score-label { font: 400 12px/1.4 var(--font-mono); letter-spacing: 0.08em; color: var(--sky); }
.tk-score-row { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 28px; gap: 14px; align-items: center; }
.tk-score-name { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; font-size: 15px; font-weight: 600; }
.tk-weak { font: 400 11px/1.2 var(--font-mono); letter-spacing: 0.06em; color: var(--navy); background: var(--orange); border-radius: var(--radius-pill); padding: 3px 8px; }
.tk-pips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.tk-pips span { height: 10px; border-radius: var(--radius-pill); background: var(--navy-rule); }
.tk-pips span.is-on { background: var(--sky); }
.tk-score-row.is-weak .tk-pips span.is-on { background: var(--orange); }
.tk-score-val { font-size: 18px; font-weight: 800; text-align: right; }
.tk-score-row.is-weak .tk-score-val { color: var(--orange); }
.tk-score-foot {
    border-top: 1px solid var(--navy-rule); padding-top: 18px;
    display: flex; flex-wrap: wrap; gap: 16px; align-items: baseline; justify-content: space-between;
    font-size: 15px; color: var(--mist);
}
.tk-score-foot strong { color: var(--white); font-weight: 700; }
.tk-score-foot .tk-big { color: var(--orange); font-size: 28px; font-weight: 800; }

.tk-plays { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
.tk-axis-y {
    writing-mode: vertical-rl; transform: rotate(180deg); text-align: center;
    font: 400 12px/1 var(--font-mono); letter-spacing: 0.08em; color: var(--mist-muted);
}
.tk-plays-body { display: flex; flex-direction: column; gap: 10px; }
.tk-axis-x, .tk-quads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tk-axis-x { font: 400 12px/1.4 var(--font-mono); letter-spacing: 0.08em; color: var(--mist-muted); }
.tk-quad { border-radius: 10px; padding: 20px; min-height: 120px; color: var(--navy); }
.tk-quad strong { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.tk-quad span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.4; }
.tk-quad--clarify { background: var(--navy-panel); color: var(--white); border: 1.5px dashed var(--navy-line); }
.tk-quad--commit { background: var(--teal); }
.tk-quad--verify { background: var(--sky); }
.tk-quad--fund { background: var(--orange); }
.tk-plays-note { font-size: 14px; color: var(--mist); }
.tk-plays-note strong { color: var(--white); font-weight: 600; }

.tk-chapters { margin-top: 48px; --min: 340px; }
.tk-chapter { border-radius: var(--radius-xl); padding: 32px; gap: 14px; }
.tk-chapter-head {
    display: flex; justify-content: space-between; gap: 12px;
    font: 400 12px/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
}
.tk-chapter-head span:first-child { color: var(--seq); }
.tk-chapter-head span:last-child { color: var(--mist-muted); text-align: right; }
.tk-chapter h3 { font-size: 26px; }
.tk-chapter .tk-hook { flex-grow: 0; font-size: 19px; line-height: 1.45; font-weight: 600; color: var(--white); }
.tk-chapter .nx-walk { margin-top: 0; padding-top: 14px; }
.tk-chapter .nx-walk p { font-size: 15px; }

/* Lightbox */
.nx-zoom {
    display: block; width: 100%; height: 100%; padding: 0; border: 0;
    background: none; cursor: zoom-in;
}
.nx-frame::after { pointer-events: none; }
.nx-lightbox {
    width: 100vw; height: 100vh; max-width: none; max-height: none;
    margin: 0; padding: 48px 16px 16px; border: 0;
    background: rgba(14, 28, 50, 0.96);
}
.nx-lightbox::backdrop { background: rgba(14, 28, 50, 0.96); }
.nx-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.nx-lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; cursor: zoom-out; border-radius: var(--radius-md); }
.nx-lightbox-close {
    position: absolute; top: 8px; right: 8px; width: 44px; height: 44px;
    border: 1.5px solid var(--navy-line); border-radius: var(--radius-md);
    background: var(--navy); color: var(--white); font-size: 20px; cursor: pointer;
}

/* ==========================================================================
   Practice
   ========================================================================== */
.pr-engagement {
    flex: 1 1 360px; min-width: 0;
    background: var(--navy-panel); border: 1px solid var(--navy-rule); border-radius: var(--radius-xl); padding: 32px;
}
.pr-engagement-label { font: 400 12px/1.4 var(--font-mono); letter-spacing: 0.08em; color: var(--sky); }
.pr-weeks { margin-top: 12px; font-size: 56px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.pr-weeks span { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; color: var(--mist); }
.pr-list { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 17px; }
.pr-list li { display: flex; gap: 12px; align-items: baseline; }
.pr-list li span { font: 400 13px/1 var(--font-mono); color: var(--seq); }
.pr-engagement > p { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--navy-rule); font-size: 15px; line-height: 1.5; color: var(--mist); }
.pr-walk { --min: 300px; }
.pr-walk .nx-card h3 { font-size: 22px; letter-spacing: -0.015em; }
.pr-walk .nx-card p { margin-top: -2px; }
.pr-portrait {
    margin-top: 24px; width: 120px; height: 120px; border-radius: var(--radius-pill);
    background: var(--navy-panel); border: 1px solid var(--navy-line);
    display: flex; align-items: center; justify-content: center;
    font: 400 11px/1 var(--font-mono); color: var(--mist-muted);
    overflow: hidden;
}
.pr-portrait img { width: 100%; height: 100%; object-fit: cover; }
.pr-person { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.pr-person .pr-portrait { margin-top: 0; flex: none; }
.pr-social { display: flex; gap: 8px; }
.nx-social {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: var(--radius-md); color: var(--orange);
}
.nx-social svg { fill: currentColor; }
.nx-social:hover { color: var(--white); }

/* ==========================================================================
   Phones
   ========================================================================== */
@media (max-width: 640px) {
    .nx-wrap, .nx-wrap--wide { padding: 0 var(--space-4); }
    .nx-sec { padding-block: 64px; }
    .nx-hero { padding-block: 56px 48px; }
    .nx-hero--full { padding-bottom: 64px; }
    .nx-questions-wrap { padding-bottom: 64px; }
    .nx-close-inner { padding-block: 56px; }
    .nx-nav { padding-block: 12px; min-height: 72px; }
    .nx-links { gap: 4px 18px; }

    /* Phone menu: logo + Menu button; links drop down as a full-width list. */
    .js .nx-menu-btn { display: inline-flex; }
    .js .nx-header:not(.nx-header--home) .nx-links {
        display: none; flex: 1 1 100%; flex-direction: column; align-items: stretch; gap: 0;
        padding-bottom: 16px;
    }
    .js .nx-nav.is-open .nx-links { display: flex; }
    .js .nx-links a:not(.nx-btn) {
        min-height: 52px; font-size: 17px; border-bottom: 1px solid var(--navy-rule);
    }
    .js .nx-links a[aria-current="page"] { border-bottom-color: var(--navy-rule); border-left: 3px solid var(--orange); padding-left: 12px; }
    .js .nx-links .nx-btn { margin-top: 16px; height: 52px; justify-content: center; font-size: 16px; }
    .hm-hero { padding-block: 40px 56px; gap: 32px; }
    .hm-hero-art { justify-content: center; }
    .hm-hero-art svg { max-height: 26vh; }
    .bk-hero-cover img { width: 220px; height: 352px; }
    .tk-score-row { grid-template-columns: minmax(0, 110px) minmax(0, 1fr) 24px; }
    .bk-hc-opts { flex-wrap: wrap; }
}

/* Home: the fourth column (AI Labs) label is muted, not mist. */
.hm-col:nth-child(4) { --seq: var(--mist-muted); }

/* Tool Kit chapter cards carry the color on the number only. */
.nx-card.tk-chapter { border-top: 1px solid var(--navy-rule); }

/* ==========================================================================
   Contact
   ========================================================================== */
.ct-form { display: flex; flex-wrap: wrap; gap: 20px 24px; align-content: flex-start; }
.ct-row { flex: 1 1 100%; display: flex; flex-direction: column; gap: 8px; }
.ct-row--half { flex: 1 1 260px; }
.ct-row label { font-size: 15px; font-weight: 600; color: var(--white); }
.ct-optional { font-weight: 400; color: var(--mist-muted); }
.ct-row input, .ct-row select, .ct-row textarea {
    width: 100%; min-height: 48px; padding: 12px 14px;
    background: var(--navy-raised); color: var(--white);
    border: 1.5px solid var(--navy-line); border-radius: var(--radius-md);
    font: 400 16px/1.4 var(--font-sans);
}
.ct-row textarea { resize: vertical; }
.ct-row input::placeholder, .ct-row textarea::placeholder { color: var(--mist-muted); }
.ct-row input:focus-visible, .ct-row select:focus-visible, .ct-row textarea:focus-visible {
    outline: 2px solid var(--orange); outline-offset: 2px; border-color: var(--orange);
}
.ct-row [aria-invalid="true"] { border-color: var(--orange); }
.ct-error { font-size: 14px; color: var(--orange); }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-aside {
    background: var(--navy-panel); border: 1px solid var(--navy-rule);
    border-radius: var(--radius-xl); padding: 32px; color: var(--mist);
}
.ct-aside h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.015em; color: var(--white); }
.ct-aside .pr-list { margin-top: 16px; color: var(--white); }
.ct-aside > p { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--navy-rule); font-size: 15px; }
.ct-thanks {
    margin-top: 40px; max-width: 640px;
    background: var(--navy-panel); border: 1px solid var(--navy-rule); border-radius: var(--radius-xl); padding: 28px;
}
.ct-thanks h2 { font-size: 22px; font-weight: 800; color: var(--white); }
.ct-thanks p { margin-top: 8px; font-size: 16px; line-height: 1.6; color: var(--mist); }
