/* NoSlack Labs — site styles. Every value comes from tokens.css. Mirrors components/bundle.css in the design system. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + var(--space-4)); }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }

.nsl-mono { font-family: var(--font-mono); }
.nsl-label { font-family: var(--font-mono); font-size: 12px; line-height: 1.4; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); }
.nsl-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nsl-skip { position: absolute; left: var(--space-4); top: -100px; z-index: 60; background: var(--accent); color: var(--on-accent); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); font-weight: 500; text-decoration: none; }
.nsl-skip:focus { top: var(--space-3); }

/* Layout ------------------------------------------------------------ */
.nsl-container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.nsl-section { padding: var(--section-y) 0; border-top: var(--hairline) solid var(--border); }
.nsl-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.nsl-prose { max-width: var(--measure); }
.nsl-prose p { margin: 0 0 var(--space-4); }

/* Button ------------------------------------------------------------ */
.nsl-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: 52px; padding: 0 var(--space-6); border-radius: var(--radius-sm); border: var(--hairline) solid transparent; font: 500 16px/1 var(--font-sans); letter-spacing: 0.01em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color var(--duration-fast) ease-out, border-color var(--duration-fast) ease-out, color var(--duration-fast) ease-out; }
.nsl-btn-sm { height: 40px; padding: 0 var(--space-4); font-size: 14px; }
.nsl-btn-primary { background: var(--accent); color: var(--on-accent); }
.nsl-btn-primary:hover { background: var(--accent-hover); }
.nsl-btn-secondary { background: var(--surface-glass); color: var(--fg); border-color: var(--border-strong); }
.nsl-btn-secondary:hover { border-color: var(--fg); background: var(--surface); }
.nsl-btn-ghost { background: transparent; color: var(--fg); padding-left: 0; padding-right: 0; height: auto; }
.nsl-btn-ghost:hover { color: var(--accent-hover); }
.nsl-btn-arrow { font-family: var(--font-mono); transition: transform var(--duration-fast) ease-out; }
.nsl-btn:hover .nsl-btn-arrow, .nsl-link-arrow:hover .nsl-btn-arrow { transform: translateX(3px); }
.nsl-link-arrow { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; font: 500 16px/1.3 var(--font-sans); color: var(--fg); text-decoration: none; border-bottom: var(--hairline) solid var(--border-strong); transition: color var(--duration-fast) ease-out, border-color var(--duration-fast) ease-out; }
.nsl-link-arrow:hover { color: var(--accent-hover); border-bottom-color: var(--accent-hover); }

/* Tag + Status ------------------------------------------------------- */
.nsl-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.nsl-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 var(--space-2); border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-xs); font: 400 12px/1 var(--font-mono); letter-spacing: 0.02em; color: var(--fg-muted); white-space: nowrap; }
.nsl-status { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); white-space: nowrap; }
.nsl-status::before { content: ""; width: 8px; height: 8px; border-radius: 1px; border: var(--hairline) solid currentColor; }
.nsl-status-placeholder { color: var(--fg-muted); }
.nsl-status-placeholder::before { border-style: dashed; }
.nsl-status-planned { color: var(--fg-muted); }
.nsl-status-active { color: var(--accent); }
.nsl-status-active::before { background: var(--accent); border-color: var(--accent); }
.nsl-status-documented { color: var(--fg); }
.nsl-status-documented::before { background: var(--fg); border-color: var(--fg); }

/* Wordmark + clock edge ----------------------------------------------- */
.nsl-wordmark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 600 15px/1 var(--font-sans); letter-spacing: 0.14em; color: var(--fg); text-decoration: none; white-space: nowrap; }
.nsl-wordmark-edge { color: var(--accent); flex: none; }
.nsl-wordmark-labs { color: var(--fg-muted); font-weight: 500; }
.nsl-edge { color: var(--accent); overflow: visible; }
.nsl-edge path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }

/* Nav ---------------------------------------------------------------- */
.nsl-nav { position: sticky; top: 0; z-index: 40; border-bottom: var(--hairline) solid var(--border); }
/* The blur sits on a pseudo-element: backdrop-filter on the nav itself would trap the fixed mobile menu inside the nav bar */
.nsl-nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--surface-glass); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.nsl-nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-height); gap: var(--space-6); }
.nsl-nav-links { display: flex; align-items: center; gap: var(--space-8); margin: 0; padding: 0; list-style: none; }
.nsl-nav-link { position: relative; display: inline-flex; align-items: center; height: var(--nav-height); font: 500 15px/1 var(--font-sans); color: var(--fg-muted); text-decoration: none; transition: color var(--duration-fast) ease-out; }
.nsl-nav-link:hover { color: var(--fg); }
.nsl-nav-link[aria-current] { color: var(--fg); }
.nsl-nav-link[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.nsl-nav-cta { margin-left: var(--space-2); border-radius: var(--radius-pill); background: transparent; }
.nsl-nav-toggle { display: none; align-items: center; justify-content: center; gap: var(--space-2); height: 44px; min-width: 44px; padding: 0 var(--space-4); background: transparent; color: var(--fg); border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-pill); font: 500 12px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.nsl-nav-toggle-bars { position: relative; width: 14px; height: 8px; }
.nsl-nav-toggle-bars::before, .nsl-nav-toggle-bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform var(--duration-base) var(--ease-out), top var(--duration-base) var(--ease-out); }
.nsl-nav-toggle-bars::before { top: 0; }
.nsl-nav-toggle-bars::after { top: 6.5px; }
.nsl-nav[data-open="true"] .nsl-nav-toggle-bars::before { top: 3.25px; transform: rotate(45deg); }
.nsl-nav[data-open="true"] .nsl-nav-toggle-bars::after { top: 3.25px; transform: rotate(-45deg); }

/* Section header ------------------------------------------------------ */
.nsl-sechead { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: var(--space-8); align-items: end; margin-bottom: clamp(var(--space-12), 5vw, var(--space-24)); }
.nsl-sechead-index { align-self: start; padding-top: 14px; }
.nsl-sechead-index b, .nsl-index b { color: var(--accent); font-weight: 500; }
.nsl-sechead h2 { margin: 0; font-size: var(--fs-h2); line-height: 1.02; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
.nsl-sechead p { margin: var(--space-4) 0 0; max-width: 56ch; color: var(--fg-muted); font-size: var(--fs-lede); line-height: 1.55; }

/* Hero ---------------------------------------------------------------- */
.nsl-hero { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: calc(100svh - var(--nav-height)); max-height: 1080px; overflow: hidden; background: radial-gradient(ellipse 70% 60% at 72% 34%, rgba(0, 53, 102, 0.55), transparent 70%), var(--bg); }
.nsl-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 80%); }
.nsl-hero-stage { position: absolute; inset: 0; z-index: -1; }
.nsl-hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 600ms ease-out; touch-action: pan-y; }
.nsl-hero-fallback { position: absolute; top: 6%; right: -4%; width: min(64%, 980px); height: auto; opacity: 0.9; transition: opacity 600ms ease-out; }
.nsl-hero[data-3d="ready"] .nsl-hero-canvas { opacity: 1; }
.nsl-hero[data-3d="ready"] .nsl-hero-fallback { opacity: 0; }
.nsl-hero-scrim { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(0, 8, 20, 0.92) 0%, rgba(0, 8, 20, 0.55) 38%, rgba(0, 8, 20, 0) 62%), linear-gradient(0deg, rgba(0, 8, 20, 0.95) 0%, rgba(0, 8, 20, 0) 45%); }
.nsl-hero-inner { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-top: var(--space-24); padding-bottom: var(--space-12); }
.nsl-hero-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); margin: 0 0 var(--space-6); color: var(--fg); }
.nsl-hero-eyebrow b { font-weight: 500; white-space: nowrap; }
.nsl-hero-eyebrow span { color: var(--fg-muted); white-space: nowrap; }
.nsl-display { margin: 0; font-size: var(--fs-display); line-height: 0.92; font-weight: 600; letter-spacing: -0.045em; }
.nsl-display-muted { color: var(--fg-muted); }
.nsl-hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-8); align-items: end; margin-top: clamp(var(--space-8), 3vw, var(--space-12)); }
.nsl-hero-lede { margin: 0; max-width: 50ch; font-size: var(--fs-lede); line-height: 1.55; color: var(--fg-muted); }
.nsl-hero-lede strong { color: var(--fg); font-weight: 500; }
.nsl-hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.nsl-hero-rail { display: flex; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-4); padding-bottom: var(--space-4); border-top: var(--hairline) solid var(--border); }
.nsl-hero-rail ul { display: flex; gap: var(--space-6); margin: 0; padding: 0; list-style: none; }

/* One considered entrance: text rises once, the board fades in when its first frame is ready */
@keyframes nsl-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.js .nsl-hero-inner > * { animation: nsl-rise var(--duration-slow) var(--ease-out) both; }
.js .nsl-hero-inner > :nth-child(2) { animation-delay: 80ms; }
.js .nsl-hero-inner > :nth-child(3) { animation-delay: 200ms; }

/* Statement (about) ----------------------------------------------------- */
.nsl-statement { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-8); }
.nsl-statement h2 { margin: 0 0 var(--space-8); max-width: 16ch; font-size: var(--fs-h2); line-height: 1.02; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
.nsl-statement-lede { margin: 0; max-width: 34ch; font-size: var(--fs-statement); line-height: 1.3; letter-spacing: -0.015em; color: var(--fg); text-wrap: pretty; }
.nsl-statement-lede .nsl-dim { color: var(--fg-muted); }
.nsl-statement-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); margin: clamp(var(--space-12), 5vw, var(--space-24)) 0 0; padding-top: var(--space-6); border-top: var(--hairline) solid var(--border); }
.nsl-statement-meta div { display: grid; gap: var(--space-2); }
.nsl-statement-meta dt { margin: 0; }
.nsl-statement-meta dd { margin: 0; font-size: 16px; line-height: 1.45; color: var(--fg); }
.nsl-statement-meta a { text-decoration: none; border-bottom: var(--hairline) solid var(--border-strong); }
.nsl-statement-meta a:hover { color: var(--accent-hover); border-bottom-color: var(--accent-hover); }

/* Project feature -------------------------------------------------------- */
.nsl-features { display: grid; gap: clamp(var(--space-16), 9vw, 160px); }
.nsl-feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(var(--space-8), 4vw, 72px); align-items: start; }
.nsl-feature-flip .nsl-feature-media { order: 2; }
.nsl-feature-media { position: relative; margin: 0; }
.nsl-feature-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border: var(--hairline) solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.nsl-feature-frame img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform 700ms var(--ease-out); }
.nsl-feature:hover .nsl-feature-frame img { transform: scale(1.015); }
.nsl-feature-frame-drawing { background-color: var(--bg); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; }
.nsl-feature-frame-drawing svg { width: 100%; height: 100%; }
.nsl-feature-caption { display: flex; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-3); }
.nsl-feature-body { position: sticky; top: calc(var(--nav-height) + var(--space-8)); display: flex; flex-direction: column; gap: var(--space-6); }
.nsl-feature-body h2, .nsl-feature-body h3 { margin: 0; font-size: var(--fs-h3); line-height: 1; font-weight: 600; letter-spacing: -0.035em; }
.nsl-feature-body h2 a, .nsl-feature-body h3 a { text-decoration: none; }
.nsl-feature-body h2 a:hover, .nsl-feature-body h3 a:hover { color: var(--accent-hover); }
.nsl-feature-lede { margin: 0; font-size: var(--fs-lede); line-height: 1.45; color: var(--fg); }
.nsl-feature-body p { margin: 0; color: var(--fg-muted); }
.nsl-facts { margin: 0; border-top: var(--hairline) solid var(--border); }
.nsl-facts div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--space-4); padding: var(--space-3) 0; border-bottom: var(--hairline) solid var(--border); }
.nsl-facts dt { padding-top: 3px; }
.nsl-facts dd { margin: 0; font-size: 15px; line-height: 1.55; color: var(--fg); }
.nsl-facts dd .nsl-status { margin-right: var(--space-2); vertical-align: 1px; }
.nsl-facts dd .nsl-tags { padding-top: 1px; }
.nsl-feature-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-8); }

.nsl-more { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: var(--space-8); align-items: center; margin-top: clamp(var(--space-16), 8vw, 140px); padding: var(--space-8) 0; border-top: var(--hairline) dashed var(--border-strong); border-bottom: var(--hairline) dashed var(--border-strong); }
.nsl-more h2, .nsl-more h3 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.nsl-more p { margin: var(--space-2) 0 0; color: var(--fg-muted); }

/* Engineering focus ------------------------------------------------------ */
.nsl-areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: var(--hairline) solid var(--border); }
.nsl-area { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--space-4); padding: clamp(var(--space-8), 3.5vw, var(--space-12)) clamp(var(--space-4), 3vw, var(--space-12)) clamp(var(--space-8), 3.5vw, var(--space-12)) 0; border-bottom: var(--hairline) solid var(--border); }
.nsl-area:nth-child(even) { padding-left: clamp(var(--space-4), 3vw, var(--space-12)); padding-right: 0; border-left: var(--hairline) solid var(--border); }
.nsl-area-num { padding-top: 8px; font: 500 13px/1 var(--font-mono); color: var(--accent); }
.nsl-area h3 { margin: 0 0 var(--space-3); font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.nsl-area p { margin: 0; max-width: 46ch; color: var(--fg-muted); }
.nsl-area-where { display: block; margin-top: var(--space-4); font: 400 13px/1.55 var(--font-mono); color: var(--fg); }
.nsl-area-where::before { content: "\2192\00a0"; color: var(--accent); }

/* How we build ------------------------------------------------------------- */
.nsl-process { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(var(--space-8), 5vw, 88px); align-items: center; }
.nsl-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; border-top: var(--hairline) solid var(--border); }
.nsl-step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--space-4); padding: var(--space-6) 0; border-bottom: var(--hairline) solid var(--border); counter-increment: step; }
.nsl-step::before { content: "0" counter(step); padding-top: 6px; font: 500 13px/1 var(--font-mono); color: var(--accent); }
.nsl-step h3 { margin: 0 0 var(--space-1); font-size: 21px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.nsl-step h3 .nsl-step-arrow { font-family: var(--font-mono); font-weight: 400; color: var(--fg-muted); }
.nsl-step p { margin: 0; color: var(--fg-muted); font-size: 16px; line-height: 1.55; }
.nsl-process-figure { margin: 0; }
.nsl-process-figure .nsl-feature-frame img { object-position: center top; }

/* Collaborate ---------------------------------------------------------------- */
.nsl-collab { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(var(--space-8), 5vw, 88px); align-items: start; }
.nsl-collab h2 { margin: 0 0 var(--space-6); font-size: var(--fs-h2); line-height: 1.02; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
.nsl-collab p { margin: 0 0 var(--space-8); max-width: 44ch; font-size: var(--fs-lede); line-height: 1.55; color: var(--fg-muted); }
.nsl-support { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-8); margin: 0; padding: 0; list-style: none; border-top: var(--hairline) solid var(--border); }
.nsl-support li { display: flex; align-items: baseline; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: var(--hairline) solid var(--border); font-size: 18px; line-height: 1.4; }
.nsl-support li span { font: 400 12px/1 var(--font-mono); color: var(--fg-muted); }
.nsl-collab .nsl-collab-note { max-width: none; margin: var(--space-6) 0 0; font: 400 13px/1.6 var(--font-mono); color: var(--fg-muted); }

/* Contact -------------------------------------------------------------------- */
.nsl-contact { padding: clamp(var(--space-24), 12vw, 200px) 0 clamp(var(--space-16), 8vw, var(--space-32)); border-top: var(--hairline) solid var(--border); text-align: center; background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(0, 53, 102, 0.45), transparent 70%); }
.nsl-contact h2 { margin: var(--space-6) auto var(--space-6); max-width: 14ch; font-size: var(--fs-display); line-height: 0.95; font-weight: 600; letter-spacing: -0.045em; text-wrap: balance; }
.nsl-contact > .nsl-container > p { margin: 0 auto var(--space-8); max-width: 50ch; font-size: var(--fs-lede); color: var(--fg-muted); }
.nsl-contact-cta { margin-bottom: var(--space-12); }
.nsl-contact-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 960px; margin: 0 auto; padding: 0; list-style: none; text-align: left; border-top: var(--hairline) solid var(--border); }
.nsl-contact-list li { display: grid; gap: var(--space-2); padding: var(--space-6) var(--space-6) var(--space-6) 0; }
.nsl-contact-list li + li { padding-left: var(--space-6); border-left: var(--hairline) solid var(--border); }
.nsl-contact-list a { font-size: 18px; line-height: 1.35; text-decoration: none; overflow-wrap: anywhere; }
.nsl-contact-list a:hover { color: var(--accent-hover); }

/* Figure (image slot) -------------------------------------------------- */
.nsl-figure { position: relative; margin: 0; aspect-ratio: 16 / 10; background-color: var(--bg); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 16px 16px; border-bottom: var(--hairline) solid var(--border); overflow: hidden; }
.nsl-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-base) ease-out; }
.nsl-figure svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.nsl-figure-tag { position: absolute; left: var(--space-3); top: var(--space-3); font: 500 10px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); background: var(--bg); border: var(--hairline) solid var(--border); padding: 5px 6px; border-radius: var(--radius-xs); }

/* Project card -------------------------------------------------------- */
.nsl-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: var(--hairline) solid var(--border); border-radius: var(--radius-md); overflow: hidden; color: inherit; text-decoration: none; transition: border-color var(--duration-base) ease-out; }
.nsl-card:hover { border-color: var(--border-strong); }
.nsl-card:hover .nsl-figure img { transform: scale(1.02); }
.nsl-card-body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); flex: 1; }
.nsl-card-meta { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); font: 400 12px/1.4 var(--font-mono); letter-spacing: 0.04em; color: var(--fg-muted); }
.nsl-card h3 { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; }
.nsl-card h3 a { text-decoration: none; }
.nsl-card h3 a::after { content: ""; position: absolute; inset: 0; }
.nsl-card h3 a:focus-visible { outline: none; }
.nsl-card:focus-within { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.nsl-card p { margin: 0; color: var(--fg-muted); font-size: 15px; line-height: 1.55; }
.nsl-card-foot { margin-top: auto; padding-top: var(--space-3); }

/* Spec list ----------------------------------------------------------- */
.nsl-specs { margin: 0; display: grid; grid-template-columns: max-content 1fr; font: 400 13px/1.6 var(--font-mono); border-top: var(--hairline) solid var(--border); }
.nsl-specs dt, .nsl-specs dd { margin: 0; padding: 8px 0; border-bottom: var(--hairline) solid var(--border); }
.nsl-specs dt { color: var(--fg-muted); padding-right: var(--space-6); text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; line-height: 2; }
.nsl-specs dd { color: var(--fg); }
.nsl-specs a { text-decoration: none; border-bottom: var(--hairline) solid var(--border-strong); }
.nsl-specs a:hover { color: var(--accent-hover); }

/* Lab note row -------------------------------------------------------- */
.nsl-notes { margin: 0; padding: 0; list-style: none; border-top: var(--hairline) solid var(--border); }
.nsl-note { position: relative; display: grid; grid-template-columns: 140px 150px minmax(0, 1fr) auto; gap: var(--space-6); align-items: baseline; padding: var(--space-6) var(--space-4); margin: 0 calc(-1 * var(--space-4)); border-bottom: var(--hairline) solid var(--border); border-radius: var(--radius-sm); transition: background-color var(--duration-base) ease-out; }
.nsl-note:hover { background: var(--surface); }
.nsl-note:focus-within { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.nsl-note-date { font: 400 13px/1.6 var(--font-mono); color: var(--fg-muted); }
.nsl-note-kind { font: 500 11px/1.6 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); }
.nsl-note h3 { margin: 0 0 var(--space-1); font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.nsl-note h3 a { text-decoration: none; }
.nsl-note h3 a::after { content: ""; position: absolute; inset: 0; }
.nsl-note h3 a:focus-visible { outline: none; }
.nsl-note p { margin: 0; color: var(--fg-muted); font-size: 15px; line-height: 1.55; max-width: 60ch; }
.nsl-note-arrow { font-family: var(--font-mono); color: var(--fg-muted); transition: color var(--duration-fast) ease-out, transform var(--duration-fast) ease-out; }
.nsl-note:hover .nsl-note-arrow { color: var(--accent); transform: translateX(3px); }

/* Footer ------------------------------------------------------------------ */
.nsl-footer { position: relative; overflow: hidden; background: var(--surface); border-top: var(--hairline) solid var(--border); padding: var(--space-16) 0 0; }
.nsl-footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
.nsl-footer h2 { margin: 0 0 var(--space-4); }
.nsl-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2); }
.nsl-footer a { color: var(--fg); text-decoration: none; font-size: 15px; }
.nsl-footer ul a { display: inline-block; padding: 2px 0; }
.nsl-footer a:hover { color: var(--accent-hover); }
.nsl-footer p { margin: var(--space-4) 0 0; color: var(--fg-muted); font-size: 15px; max-width: 40ch; }
.nsl-footer-base { display: flex; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-16); padding-top: var(--space-6); border-top: var(--hairline) solid var(--border); }
.nsl-footer-mark { margin-top: var(--space-8); padding-bottom: clamp(var(--space-4), 2.4vw, var(--space-8)); }
.nsl-footer-mark svg { width: 100%; height: auto; overflow: visible; }
.nsl-footer-mark text { font: 600 160px/1 var(--font-sans); letter-spacing: -0.02em; fill: none; stroke: var(--border-strong); stroke-width: 1; opacity: 0.55; }
.nsl-footer-mark .nsl-footer-mark-edge { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: square; }
.nsl-placeholder-note { display: inline-block; font: 400 12px/1.5 var(--font-mono); color: var(--fg-muted); border: var(--hairline) dashed var(--border-strong); border-radius: var(--radius-xs); padding: 2px 6px; }

/* Pages ----------------------------------------------------------------- */
.nsl-pagehead { padding: clamp(var(--space-16), 8vw, 140px) 0 clamp(var(--space-12), 5vw, var(--space-16)); }
.nsl-pagehead .nsl-sechead { margin-bottom: 0; }
.nsl-pagehead h1 { margin: 0; font-size: var(--fs-h2); line-height: 1; font-weight: 600; letter-spacing: -0.04em; text-wrap: balance; }
.nsl-pagehead .nsl-sechead p { font-size: var(--fs-lede); line-height: 1.55; }
.nsl-breadcrumb { display: inline-flex; gap: var(--space-2); margin-bottom: var(--space-6); }
.nsl-breadcrumb a { text-decoration: none; color: var(--fg); }
.nsl-breadcrumb a:hover { color: var(--accent-hover); }
.nsl-detail { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-8); align-items: start; }
.nsl-detail .nsl-figure { border: var(--hairline) solid var(--border); border-radius: var(--radius-sm); }
.nsl-article { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-8); }
.nsl-article h2 { margin: var(--space-12) 0 var(--space-4); font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.nsl-article h2:first-child { margin-top: 0; }
.nsl-article ul, .nsl-article ol { margin: 0 0 var(--space-4); padding-left: 1.2em; }
.nsl-article li { margin-bottom: var(--space-2); }
.nsl-article li::marker { color: var(--fg-muted); }
.nsl-article code { font-family: var(--font-mono); font-size: 0.9em; background: var(--surface); border: var(--hairline) solid var(--border); border-radius: var(--radius-xs); padding: 1px 5px; }
.nsl-article figure { margin: var(--space-8) 0; }
.nsl-article figcaption { margin-top: var(--space-2); font: 400 13px/1.6 var(--font-mono); color: var(--fg-muted); }
.nsl-article figure.nsl-wide { margin-right: 0; }
.nsl-article .nsl-wide img { width: 100%; height: auto; border-radius: var(--radius-sm); border: var(--hairline) solid var(--border); }
.nsl-table { width: 100%; border-collapse: collapse; margin: 0 0 var(--space-6); font-size: 15px; }
.nsl-table th, .nsl-table td { padding: var(--space-3) var(--space-4) var(--space-3) 0; text-align: left; vertical-align: top; border-bottom: var(--hairline) solid var(--border); }
.nsl-table th { font: 500 11px/1.5 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); }
.nsl-table-wrap { overflow-x: auto; }
.nsl-callout { margin: 0 0 var(--space-6); padding: var(--space-4) var(--space-6); border-left: 2px solid var(--accent); background: var(--surface); color: var(--fg); }
.nsl-empty { padding: var(--space-8); border: var(--hairline) dashed var(--border-strong); border-radius: var(--radius-md); color: var(--fg-muted); }
.nsl-empty strong { color: var(--fg); font-weight: 500; }
.nsl-404 { min-height: 60vh; display: flex; align-items: center; }
.nsl-404 h1 { margin: var(--space-6) 0 var(--space-4); font-size: var(--fs-display); line-height: 0.95; font-weight: 600; letter-spacing: -0.045em; }

/* Responsive ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .nsl-nav-links { gap: var(--space-6); }
  .nsl-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nsl-footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .nsl-sechead, .nsl-statement, .nsl-article, .nsl-more { grid-template-columns: 1fr; gap: var(--space-4); }
  .nsl-sechead-index { padding-top: 0; }
  .nsl-sechead-action { justify-self: start; }
  .nsl-feature, .nsl-process, .nsl-collab, .nsl-detail { grid-template-columns: 1fr; }
  .nsl-feature-flip .nsl-feature-media { order: 0; }
  .nsl-feature-body { position: static; }
  .nsl-statement-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nsl-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nsl-note { grid-template-columns: 120px minmax(0, 1fr) auto; }
  .nsl-note-kind { grid-column: 2; grid-row: 1; }
  .nsl-note-main { grid-column: 2; }
  .nsl-note-arrow { grid-column: 3; grid-row: 1; }
}
/* Tablets and portrait screens: the board gets its own band below the text instead of sitting behind the headline */
@media (max-width: 960px), (max-aspect-ratio: 1/1) {
  .nsl-hero { max-height: none; min-height: 0; }
  .nsl-hero-stage { position: relative; inset: auto; order: 2; height: min(80vw, 540px); margin-top: var(--space-4); }
  .nsl-hero-fallback { top: 8%; right: 50%; width: min(112%, 760px); transform: translateX(50%); }
  .nsl-hero-scrim { background: linear-gradient(0deg, rgba(0, 8, 20, 0.85) 0%, rgba(0, 8, 20, 0) 30%); }
  .nsl-hero-inner { order: 1; padding-top: var(--space-16); padding-bottom: 0; }
  .nsl-hero-rail { order: 3; }
  .nsl-hero-foot { grid-template-columns: 1fr; gap: var(--space-6); }
}
@media (max-width: 860px) {
  .js .nsl-nav-toggle { display: inline-flex; }
  .js .nsl-nav-links { position: fixed; left: 0; right: 0; top: var(--nav-height); bottom: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-6) var(--gutter) var(--space-12); background: var(--bg); border-top: var(--hairline) solid var(--border); overflow-y: auto; }
  .js .nsl-nav[data-open="true"] .nsl-nav-links { display: flex; }
  .js .nsl-nav-link { width: 100%; height: 64px; font-size: 26px; font-weight: 500; letter-spacing: -0.02em; color: var(--fg); border-bottom: var(--hairline) solid var(--border); }
  .js .nsl-nav-link[aria-current]::after { left: auto; right: 0; top: 50%; bottom: auto; width: 8px; height: 8px; transform: translateY(-50%); }
  .js .nsl-nav-cta-item { margin-top: var(--space-8); }
  .js .nsl-nav-cta { width: 100%; height: 56px; margin: 0; font-size: 16px; }
  .js.nsl-menu-open, .js.nsl-menu-open body { overflow: hidden; }
  .nsl-nav-inner { flex-wrap: wrap; height: auto; min-height: var(--nav-height); }
  .js .nsl-nav-inner { flex-wrap: nowrap; height: var(--nav-height); }
  .nsl-nav-links { flex-wrap: wrap; gap: var(--space-4); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nsl-hero-stage { height: min(80vw, 420px); }
  .nsl-hero-rail ul { display: none; }
  .nsl-hero-actions .nsl-btn { flex: 1 1 100%; }
  .nsl-statement-meta dd { overflow-wrap: anywhere; }
  .nsl-table { font-size: 14px; }
  .nsl-table th, .nsl-table td { padding-right: var(--space-3); }
  .nsl-grid-3 { grid-template-columns: 1fr; }
  .nsl-areas, .nsl-support { grid-template-columns: 1fr; }
  .nsl-area, .nsl-area:nth-child(even) { grid-template-columns: 44px minmax(0, 1fr); padding: var(--space-8) 0; border-left: 0; }
  .nsl-facts div { grid-template-columns: 1fr; gap: var(--space-1); }
  .nsl-feature-caption { flex-direction: column; gap: var(--space-1); }
  .nsl-contact-list { grid-template-columns: 1fr; }
  .nsl-contact-list li, .nsl-contact-list li + li { padding: var(--space-4) 0; border-left: 0; border-bottom: var(--hairline) solid var(--border); }
  .nsl-note { grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2) var(--space-4); padding: var(--space-4); }
  .nsl-note-date { grid-column: 1; grid-row: 1; }
  .nsl-note-kind { grid-column: 1; grid-row: 2; }
  .nsl-note-main { grid-column: 1 / -1; grid-row: 3; }
  .nsl-note-arrow { grid-column: 2; grid-row: 1; }
  .nsl-footer-grid { grid-template-columns: 1fr 1fr; }
  .nsl-footer-base { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
