/* ============================================================
   NORFORGE — Layout, transitions, and interactive effects
   Hover/focus/active states, animation fallbacks, responsive.
   ============================================================ */

/* Skip-to-content link: visually hidden until focused by keyboard. */
.nf-skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--verdigris-400);
  color: var(--iron-900);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  text-decoration: none;
  transition: top 150ms ease;
}
.nf-skip-link:focus { top: 16px; }
html, body { margin: 0; background: var(--bg); scroll-behavior: smooth; }
* { box-sizing: border-box; }

/* Offset anchor targets so the sticky 60px nav doesn't cover section titles
   when scrolling to a #hash (both same-page clicks and cross-page landings). */
section[id] { scroll-margin-top: 80px; }

/* Link normalization */
a { color: inherit; text-decoration: none; }

/* Nav link hover — base colour lives here (not inline) so :hover can win.
   Used by the GitHub icon (and footer links): brighten to white on hover. */
.nf-nav-link { color: var(--iron-200); transition: color 200ms cubic-bezier(0.2, 0, 0, 1); }
.nf-nav-link:hover { color: var(--paper-pure); }

/* Header text links: a thin verdigris underline appears on hover (instead of
   brightening — that treatment is reserved for the GitHub icon). */
.nf-nav-textlink { position: relative; color: var(--iron-200); }
.nf-nav-textlink::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px;
  background: var(--accent); border-radius: 1px; opacity: 0;
}
.nf-nav-textlink:hover::after { opacity: 1; }

/* Buttons - a verdigris glow radiates from the button on hover (no movement),
   echoing the aurora. Secondary buttons are ghost by default and fill with the
   accent (verdigris ground, dark text) on hover. */
.nf-btn-primary { transition: box-shadow 240ms cubic-bezier(0.2, 0, 0, 1); }
.nf-btn-primary:hover { box-shadow: 0 0 20px color-mix(in srgb, var(--verdigris-400) 55%, transparent), 0 0 44px color-mix(in srgb, var(--verdigris-400) 30%, transparent); }
.nf-btn-secondary {
  background: transparent;
  color: var(--fog);
  border: 1px solid var(--border-strong);
  transition: background-color 200ms cubic-bezier(0.2, 0, 0, 1), border-color 200ms cubic-bezier(0.2, 0, 0, 1), color 200ms cubic-bezier(0.2, 0, 0, 1), box-shadow 240ms cubic-bezier(0.2, 0, 0, 1);
}
.nf-btn-secondary:hover {
  background: var(--verdigris-400);
  border-color: var(--verdigris-400);
  color: var(--iron-900);
  box-shadow: 0 0 16px color-mix(in srgb, var(--verdigris-400) 40%, transparent), 0 0 36px color-mix(in srgb, var(--verdigris-400) 22%, transparent);
}

/* Outlined accent button (Early access): accent text and a 60% accent
   border; the border goes solid with a faint glow on hover. */
.nf-btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  transition: border-color 200ms cubic-bezier(0.2, 0, 0, 1), box-shadow 240ms cubic-bezier(0.2, 0, 0, 1);
}
.nf-btn-outline:hover {
  border-color: var(--accent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--verdigris-400) 30%, transparent);
}

/* Form fields (early-access sign-in and request). Dark well, strong
   border; the accent border and a soft ring on focus, danger when invalid. */
.nf-input {
  display: block; width: 100%; height: 40px; padding: 0 12px;
  background: var(--iron-900); color: var(--fg-1);
  border: 1px solid var(--border-strong); border-radius: var(--radius-xs);
  font-family: var(--font-ui); font-size: 15px;
  transition: border-color 150ms cubic-bezier(0.2, 0, 0, 1), box-shadow 150ms cubic-bezier(0.2, 0, 0, 1);
}
/* A text box grows with its text from 5 lines to 20, then scrolls; where
   a browser cannot size it to its content, it stays 5 lines, resizable. */
textarea.nf-input { height: auto; min-height: calc(5lh + 22px); max-height: calc(20lh + 22px); padding: 10px 12px; line-height: 1.5; resize: vertical; field-sizing: content; }
.nf-input::placeholder { color: var(--fg-4); }
.nf-input:focus { outline: none; border-color: var(--border-focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.nf-input[aria-invalid="true"] { border-color: var(--danger); }
.nf-input[readonly] { background: transparent; color: var(--fg-2); }
/* The code field: big monospace digits with room between them. */
.nf-input.nf-code-input { height: 56px; font-family: var(--font-mono); font-size: 24px; letter-spacing: 0.2em; font-variant-numeric: tabular-nums; }
button.nf-btn-primary:disabled { opacity: 0.6; cursor: default; box-shadow: none; }

/* Text buttons: accent text, underline on hover. */
.nf-text-btn {
  padding: 4px 0; background: none; border: none; cursor: pointer;
  font-family: var(--font-ui); font-size: 13px; color: var(--accent);
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px;
  transition: text-decoration-color 150ms cubic-bezier(0.2, 0, 0, 1);
}
.nf-text-btn:hover { text-decoration-color: currentColor; }
.nf-text-btn:disabled { color: var(--fg-4); cursor: default; text-decoration: none; }

/* "Continue with Google" (EarlyAccessGoogle.jsx) under the email step,
   after an "or" between two rules. Google's mark and label on the site's
   dark control; the mark's size and the space around it are Google's
   (branding guidelines: a 20px mark, 12px before it, 10px after), and so
   is the label's 14/20 type. The "or" is mono under the type scale, as
   the sign-in's labels. */
.nf-ea-or {
  display: flex; align-items: center; gap: var(--space-3); margin: var(--space-5) 0;
  font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.1em;
}
.nf-ea-or::before, .nf-ea-or::after { content: ""; flex: 1; height: 1px; background: var(--border-strong); }
.nf-google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 40px; padding: 0 var(--space-3);
  background: var(--iron-900); color: var(--fg-1);
  border: 1px solid var(--border-control); border-radius: var(--radius-sm);
  font-family: var(--font-ui); font-size: var(--text-sm); line-height: 20px; font-weight: var(--fw-medium);
  text-decoration: none;
  transition: border-color var(--dur-default) var(--ease-out), box-shadow var(--dur-default) var(--ease-out);
}
.nf-google-btn:hover { border-color: var(--fg-2); }
.nf-google-btn:focus-visible { outline: none; border-color: var(--border-focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.nf-google-btn img { width: 20px; height: auto; flex: none; }

/* Early-access sign-in popover: a modal <dialog> on the raised surface.
   Centred over a scrim; anchored under the nav link (data-anchored, its
   top/right set inline) over a lighter one. */
.nf-ea-dialog {
  width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  padding: 0; margin: auto; overflow: auto;
  background: var(--iron-700); color: var(--fg-1);
  border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  box-shadow: var(--elev-overlay);
}
/* An early-access page's band in two columns (EarlyAccessFrame aside): the
   intro paragraph, the aside and the note under it on the left, the form's
   card on the right, from the top; one column on a phone: intro, note,
   card, aside. */
.nf-ea-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); grid-template-areas: "intro main" "aside main" "note main"; grid-template-rows: auto auto 1fr; column-gap: 72px; align-items: start; }
.nf-ea-intro { grid-area: intro; margin: 0 0 32px; }
.nf-ea-main { grid-area: main; }
.nf-ea-aside { grid-area: aside; }
.nf-ea-note { grid-area: note; margin-top: 32px; }
@media (max-width: 900px) {
  .nf-ea-split { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "note" "main" "aside"; grid-template-rows: auto; }
  .nf-ea-intro { margin-bottom: 24px; }
  .nf-ea-aside { margin-top: 40px; }
  .nf-ea-note { margin: 0 0 24px; }
}
/* Two short fields side by side (the request's name and company); one
   above the other on a phone. */
.nf-ea-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 480px) { .nf-ea-pair { grid-template-columns: minmax(0, 1fr); } }
.nf-ea-dialog::backdrop { background: var(--overlay-scrim); }
.nf-ea-dialog[data-anchored] { position: fixed; margin: 0; left: auto; bottom: auto; }
.nf-ea-dialog[data-anchored]::backdrop { background: color-mix(in srgb, var(--iron-900) 45%, transparent); }
.nf-ea-close { color: var(--fg-3); transition: color 150ms cubic-bezier(0.2, 0, 0, 1); }
.nf-ea-close:hover { color: var(--fg-1); }
@media (prefers-reduced-motion: no-preference) {
  .nf-ea-dialog[open] { animation: nf-ea-in 180ms cubic-bezier(0.2, 0, 0, 1); }
  @keyframes nf-ea-in { from { opacity: 0; transform: translateY(-6px); } }
}

/* Notice: something the page needs is unavailable or refused. A box with
   a 1px danger border; at its start a band shaded with the same colour,
   holding the warning icon; the text, links and action beside it
   (Notice.jsx). The same on a phone. */
.nf-notice {
  display: flex; align-items: stretch; overflow: hidden;
  border: 1px solid var(--danger); border-radius: var(--radius-sm);
}
.nf-notice:focus { outline: none; }
.nf-notice:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 30%, transparent); }
.nf-notice-band {
  flex: none; width: 44px; display: flex; justify-content: center; padding-top: 14px;
  background: color-mix(in srgb, var(--danger) 18%, transparent); color: var(--danger);
}
.nf-notice-body { flex: 1; min-width: 0; padding: 12px 16px; }

/* Title-line mask for GSAP reveal */
.nf-mask { display: block; overflow: hidden; padding-bottom: 0.08em; }
.nf-mask > span { display: block; will-change: transform; }

/* Pillar cards */
.nf-pillar { transition: border-color 250ms cubic-bezier(0.2, 0, 0, 1), transform 250ms cubic-bezier(0.2, 0, 0, 1); }
.nf-pillar:hover { border-color: color-mix(in srgb, var(--verdigris-400) 42%, transparent); transform: translateY(-2px); }

/* Team cards */
.nf-team-card { position: relative; cursor: default; overflow: hidden; transition: transform var(--dur-card) var(--ease-out), border-color var(--dur-card) var(--ease-out); }
.nf-team-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--verdigris-400) 45%, transparent); }
.nf-team-img-wrap { overflow: hidden; }
.nf-team-img { transition: transform var(--dur-card-photo) var(--ease-out), filter var(--dur-card-photo) var(--ease-out); filter: grayscale(0.55) contrast(1.02); }
.nf-team-card:hover .nf-team-img { transform: scale(1.04); filter: grayscale(0) contrast(1.05); }
.nf-team-card::before {
  content: ""; position: absolute; left: 20px; top: 20px; width: 6px; height: 6px;
  background: var(--accent); border-radius: 999px; opacity: 0; transform: scale(0.6);
  transition: opacity 300ms cubic-bezier(0.2, 0, 0, 1), transform 300ms cubic-bezier(0.2, 0, 0, 1);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--verdigris-400) 18%, transparent);
  z-index: 2;
}
.nf-team-card:hover::before { opacity: 1; transform: scale(1); }

/* Advisor cards (About.jsx AdvisorsSection): the team cards' hover, and a
   <details> whose marker is the chevron, turned when open. */
.nf-advisor { transition: transform var(--dur-card) var(--ease-out), border-color var(--dur-card) var(--ease-out); }
.nf-advisor:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--verdigris-400) 45%, transparent); }
.nf-advisor-img { transition: filter var(--dur-card-photo) var(--ease-out); filter: grayscale(0.55) contrast(1.02); }
.nf-advisor:hover .nf-advisor-img { filter: grayscale(0) contrast(1.05); }
.nf-advisor-focus > summary::-webkit-details-marker { display: none; }
.nf-advisor-focus > summary { transition: color var(--dur-slow) var(--ease-out); }
.nf-advisor-focus > summary:hover, .nf-advisor-focus > summary:focus-visible, .nf-advisor-focus[open] > summary { color: var(--accent); }
.nf-advisor-chevron { transition: transform var(--dur-slow) var(--ease-out); }
.nf-advisor-focus[open] .nf-advisor-chevron { transform: rotate(180deg); }

/* LinkedIn profile icon (next to names in the team + about rosters) */
.nf-linkedin { display: inline-flex; align-items: center; color: var(--iron-300); transition: color 200ms cubic-bezier(0.2, 0, 0, 1); position: relative; z-index: 3; }
.nf-linkedin:hover { color: var(--accent); }

/* The blog index's Feed link (Blog.jsx MktBlogIndex) */
.nf-bl-feed { transition: color 200ms cubic-bezier(0.2, 0, 0, 1); }
.nf-bl-feed:hover, .nf-bl-feed:focus-visible { color: var(--accent) !important; }

/* Section accent underline */
.nf-accent-bar { display: inline-block; width: 28px; height: 2px; background: var(--accent); margin-bottom: 18px; transform-origin: left center; }

/* Hero grid layer uses will-change for smoother parallax */
.nf-hero-grid { will-change: transform; }

/* The hero title breaks after "in" at every width: the two-column layout
   gives it a narrower column, so the controlled break yields a stable
   two-line title everywhere instead of an unpredictably wrapping one. */
.nf-hero-br { display: inline; }

/* Hero title/tagline two columns with a hairline divider between. Below the
   mobile ground the columns stack and center, and the divider drops out.
   !important: the inline styles carry textAlign:left; there is no
   non-important path past an inline declaration. */
@media (max-width: 760px) {
  .nf-hero-cols { flex-direction: column; gap: 20px; }
  .nf-hero-title, .nf-hero-tagline { text-align: center !important; }
  .nf-hero-divider { display: none; }
}

/* ============================================================
   Hero — three core messages side by side.
   All three show at once as a 3-column grid over the aurora, no card chrome,
   and fade/rise in on entry with a stagger (driven in JS). All three text
   blocks live in the DOM and are visible with no JS, so nothing is hidden
   from search or non-JS visitors.
   ============================================================ */
.nf-hero-stage { position: relative; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }

/* No card chrome - the message text floats directly over the aurora. */
.nf-hero-card { position: relative; box-sizing: border-box; min-width: 0; will-change: transform, opacity; }

/* Oversized index numeral, set high and to the right as a faint watermark. */
.nf-hero-card-num {
  position: absolute; top: -0.28em; right: -4px; z-index: 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(64px, 7vw, 100px); line-height: 0.8; letter-spacing: -0.05em;
  color: color-mix(in srgb, var(--verdigris-400) 13%, transparent); pointer-events: none; user-select: none;
}
.nf-hero-bar {
  position: relative; z-index: 1;
  display: block; width: 40px; height: 2px; background: var(--accent); margin-bottom: 20px;
  box-shadow: 0 0 12px color-mix(in srgb, var(--verdigris-400) 40%, transparent);
}
.nf-hero-card-head {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 500; line-height: 1.15; letter-spacing: -0.02em;
  color: var(--fog); margin: 0 0 14px; overflow-wrap: break-word;
}
.nf-hero-card-sub {
  position: relative; z-index: 1;
  font-family: var(--font-ui); font-size: clamp(14px, 1vw, 16px);
  line-height: 1.55; color: var(--iron-100); margin: 0;
}

@media (max-width: 760px) {
  .nf-hero-stage { grid-template-columns: 1fr; gap: 36px; }
  .nf-hero-card-num { font-size: clamp(70px, 20vw, 110px); }
}

/* ============================================================
   Render-without-animation fallback.
   The entrance/scroll animations reveal content by tweening it from an
   opacity:0 (or transformed) start state back to visible, which relies on the
   animation loop (requestAnimationFrame) advancing. A renderer that runs the
   JS but never advances rAF — notably Google's Web Rendering Service — applies
   the hidden start state and then captures it, so the page looks blank.

   The inline head script (Layout.jsx) adds `nf-no-anim` to <html> when a rAF
   callback hasn't fired within ~1s, i.e. the loop isn't running. That forces
   every animated-hidden element visible here; `!important` in the stylesheet
   overrides GSAP's inline styles and the scroll reveals' animations. Real
   users' rAF fires, so `nf-no-anim` is never added and the animations play
   as normal.

   Every element GSAP tweens from a hidden start state carries the shared
   `.nf-anim` marker. A scroll reveal ([data-reveal]) gets its opacity
   forced, and a wipe its transform: it waits collapsed at scaleX(0). The
   others wait at most 24px from their place, and some carry transforms of
   their own, so theirs is left alone.
   ============================================================ */
.nf-no-anim .nf-anim {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
.nf-no-anim [data-reveal] { opacity: 1 !important; }
.nf-no-anim [data-reveal="wipe"] { transform: none !important; }

/* A reveal group's elements stay hidden from first paint until
   src/lib/reveal.js holds them, so a group on screen can rise in on load
   (nf-reveal-wait, set and lifted as Layout.jsx says). */
@media (prefers-reduced-motion: no-preference) {
  .nf-reveal-wait [data-reveal-group] [data-reveal] { opacity: 0; }
}

/* Hero - wireframe cube drifting on all three axes behind the title and
   tagline. Pure CSS 3D: six bordered faces on a preserve-3d box, spun by one
   linear keyframe. Size comes from --cube (set inline on the scene) so the
   faces' translateZ can be derived with calc. Gated off for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .nf-hero-cube { animation: nf-cube-spin 46s linear infinite; }
}
.nf-hero-cube {
  position: relative;
  transform-style: preserve-3d;
}
.nf-hero-cube-face {
  position: absolute;
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--verdigris-400) 55%, transparent);
}
@keyframes nf-cube-spin {
  from { transform: rotateX(-22deg) rotateY(0deg) rotateZ(0deg); }
  to   { transform: rotateX(-22deg) rotateY(360deg) rotateZ(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .nf-hero-cube { animation: none; }
}

/* Hero promise line ("Know your agent") - static paint plus two slow
   phosphor behaviors: the scanline pattern drifts one period (3px) per
   2.5s, a seamless vertical crawl, and the whole readout flickers on an
   irregular ~3.4s cycle like a real tube's bloom. The block cursor shares
   the same scanline paint and drifts with it, while blinking on its own
   1.15s beat. All three are gated off for reduced motion: the paint stays
   static, the line holds full opacity, the cursor unblinks. */
@media (prefers-reduced-motion: no-preference) {
  .nf-know-text { animation: nf-know-drift 2.5s linear infinite; }
  .nf-hero-know { animation: nf-know-flicker 3.4s linear infinite; }
  .nf-hero-caret {
    animation: nf-know-blink 1.15s linear infinite,
               nf-know-drift 2.5s linear infinite;
  }
}
@keyframes nf-know-drift {
  from { background-position: 0 0; }
  to   { background-position: 0 3px; }
}
@keyframes nf-know-flicker {
  0%, 100% { opacity: 1; }
  6%  { opacity: 0.95; }
  9%  { opacity: 0.99; }
  13% { opacity: 0.9; }
  15%, 40% { opacity: 1; }
  44% { opacity: 0.96; }
  47% { opacity: 0.92; }
  49%, 70% { opacity: 0.98; }
  73% { opacity: 1; }
}
@keyframes nf-know-blink {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0; }
}

/* ============================================================
   Team carousel (homepage #team) - Glide.js (@glidejs/glide, ISC).
   React renders the slides; Glide owns the track after mount. Active
   slide emphasis via .glide__slide--active: full-color image, stronger
   verdigris shade, larger caption. Slider behavior is gated behind
   .nf-js so no-JS visitors get a wrapped grid of equal cards instead.
   ============================================================ */
/* Minimal stand-in for glide.core.css (the pipeline ships no library CSS):
   the track hides overflow, slides sit side by side and shrink to their
   JS-assigned width. */
.glide { position: relative; width: 100%; box-sizing: border-box; cursor: grab; }
.glide--dragging { cursor: grabbing; }
.glide__track { overflow: hidden; }
.glide__slides {
  display: flex; flex-wrap: nowrap; list-style: none;
  margin: 0; padding: 0; overflow: hidden; touch-action: pan-Y;
  will-change: transform;
}
.glide__slide { flex-shrink: 0; width: 100%; }
/* Drag hygiene from Glide's core CSS: no text selection or native image /
   link dragging while swiping. */
.glide__slides, .glide__slide { user-select: none; -webkit-user-select: none; }
.glide__slide a {
  -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
/* The frame: a 3D box after glidejs.com's hero. Green (verdigris) borders
   replace the site's translucent white ones; the front face carries the
   person, the two side walls rotate into depth and pick up the tilt. */
.nf-tc-frame {
  position: relative; height: 100%;
  transform-style: preserve-3d;
  transition: transform 1s ease-in-out;
  transform-origin: 50% 50%;
  will-change: transform;
}
.nf-tc-face {
  position: absolute; inset: 0; overflow: hidden;
  background: transparent;
  border: 2px solid color-mix(in srgb, var(--verdigris-400) 60%, transparent);
  border-radius: 2px;
  box-shadow: 0 .5rem 4rem 0 rgba(0, 0, 0, 0.5);
}
/* Each face is a link to that person's card on /team; covers the whole
   face so image and caption are both clickable. */
.nf-tc-link {
  position: absolute; inset: 0; z-index: 1; display: block;
  color: inherit; text-decoration: none;
}
.nf-tc-wall {
  position: absolute; top: 0; width: 3rem; height: 100%;
  border: 3px solid color-mix(in srgb, var(--verdigris-400) 60%, transparent);
  backface-visibility: hidden;
}
.nf-tc-wall--right {
  right: 0; border-right-width: 9px;
  transform: translate3d(-1px, 0, -3rem) rotateY(90deg);
  transform-origin: 100% 50%;
}
.nf-tc-wall--left {
  left: 0; border-left-width: 9px;
  transform: translate3d(1px, 0, -3rem) rotateY(-90deg);
  transform-origin: 0 50%;
}
.nf-tc-img {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  filter: saturate(0.72) brightness(0.82);
  transition: filter 1s ease-in-out, opacity 1s ease-in-out;
}
.glide__slide--active .nf-tc-img { filter: none; }
/* Verdigris shade, mixed from the palette greens so the caption sits on
   the card's own accent rather than a flat black box. */
.nf-tc-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--verdigris-400) 0%, transparent) 40%,
    color-mix(in srgb, var(--verdigris-500) 30%, transparent) 72%,
    color-mix(in srgb, var(--iron-900) 82%, transparent) 100%
  );
  opacity: 0.85;
}
.nf-tc-caption {
  position: absolute; left: 16px; bottom: 16px; z-index: 1;
  display: flex; flex-direction: column; gap: 5px;
  /* Text changes size and position as a slide becomes active; easing these
     over Glide's own 1s move keeps the swap from snapping. */
  transition: left 1s ease-in-out, bottom 1s ease-in-out;
}
.nf-tc-name {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em;
  font-size: 14px; color: var(--paper-pure); line-height: 1.2;
  transition: font-size 1s ease-in-out, color 1s ease-in-out;
}
.nf-tc-focus {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--verdigris-200); line-height: 1.3;
  transition: font-size 1s ease-in-out, color 1s ease-in-out;
}
.glide__slide--active .nf-tc-caption { left: 24px; bottom: 22px; }
.glide__slide--active .nf-tc-name { font-size: clamp(17px, 1.8vw, 22px); }
.glide__slide--active .nf-tc-focus { font-size: 11px; color: var(--verdigris-400); }
@media (prefers-reduced-motion: reduce) {
  .nf-tc-caption, .nf-tc-name, .nf-tc-focus { transition: none; }
}
/* Round side arrows, positioned over the row like glidejs.com's; hover
   fills with the palette green instead of their pink. */
.nf-tc-arrow {
  position: absolute; top: 50%; z-index: 2;
  width: 46px; height: 46px; margin-top: -23px;
  border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background-color: var(--iron-300); color: var(--iron-900);
  box-shadow: 0 .5rem 4rem 0 rgba(0, 0, 0, 0.5);
  transition: background-color 200ms cubic-bezier(0.2, 0, 0, 1);
}
.nf-tc-arrow:hover { background-color: var(--verdigris-400); }
.nf-tc-arrow--next { right: 1.5rem; }
.nf-tc-arrow--prev { left: 1.5rem; }
/* Cards on /team carry person-<userid> ids so the carousel links and the
   JSON-LD person nodes can deep-link to them; the offset keeps the sticky
   header from covering the landing position. */
[id^="person-"] { scroll-margin-top: 80px; }
.nf-tc-arrow:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
/* Edge vignettes: static gradient layers fading into the section ground so
   the outermost cards dissolve into the background. Pseudo-elements sit
   above the track but below the arrows, and never intercept pointers. */
.nf-tc::before, .nf-tc::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 20%;
  z-index: 1; pointer-events: none;
}
.nf-tc::before { left: 0; background: linear-gradient(90deg, var(--iron-900) 25%, transparent); }
.nf-tc::after { right: 0; background: linear-gradient(270deg, var(--iron-900) 25%, transparent); }
/* On very narrow screens the inactive captions clip; hide them there. */
@media (max-width: 560px) {
  .glide__slide:not(.glide__slide--active) .nf-tc-caption { display: none; }
}
/* Mobile: the overlay arrows sit where thumbs swipe, so below 900px they
   become a static centered row under the track (glidejs.com does the same
   under 42.4375em). The edge fade also eases off: narrower and never fully
   opaque, so more of the outermost frames stays visible on phones. */
@media (max-width: 900px) {
  .nf-tc [data-glide-el="controls"] {
    display: flex; justify-content: center; gap: 12px; margin-top: 18px;
  }
  .nf-tc-arrow { position: static; margin-top: 0; }
  .nf-tc::before, .nf-tc::after { width: 10%; }
  .nf-tc::before { background: linear-gradient(90deg, color-mix(in srgb, var(--iron-900) 78%, transparent), transparent); }
  .nf-tc::after { background: linear-gradient(270deg, color-mix(in srgb, var(--iron-900) 78%, transparent), transparent); }
}
/* No-JS fallback: without Glide the track wraps into equal green-bordered
   cards; the 3D walls would render as flat slivers, so hide them. */
html:not(.nf-js) .glide__slides { flex-wrap: wrap; gap: 24px; }
html:not(.nf-js) .glide__slide { width: 220px !important; }
html:not(.nf-js) .nf-tc-wall { display: none; }
html:not(.nf-js) .nf-tc-arrow { display: none; }
html:not(.nf-js) .nf-tc::before, html:not(.nf-js) .nf-tc::after { display: none; }


/* ============================================================
   Work records as filing folders: a tab strip of folder tabs sits on the
   active dossier; the active tab shares the panel's ground and merges
   with its top border (no bottom edge, overlapping by 1px), while the
   inactive tabs sit a step lower and dimmer - index tabs sticking out of
   the stack. No-JS: tabs hide, every dossier un-hides and stacks.
   ============================================================ */
.nf-wk-tabs { position: relative; display: flex; gap: 6px; }
.nf-wk-tab {
  position: relative; z-index: 0;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--iron-300);
  background: var(--iron-700); border: 1px solid var(--border-subtle); border-bottom: none;
  border-radius: 8px 8px 0 0; padding: 9px 14px 11px; cursor: pointer;
  margin-bottom: -1px; transform: translateY(7px);
  transition: transform 200ms cubic-bezier(0.2, 0, 0, 1), background-color 200ms cubic-bezier(0.2, 0, 0, 1), color 200ms cubic-bezier(0.2, 0, 0, 1);
}
.nf-wk-tab:hover { color: var(--fog); }
.nf-wk-tab:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
/* Layering: the panel covers the inactive tabs (they tuck behind its top
   edge), and the selected tab rises above the panel so its ground merges
   with the dossier's frame. */
.nf-wk-panel { position: relative; z-index: 1; }
.nf-wk-tab[aria-selected="true"] { background: var(--iron-700); color: var(--fog); transform: none; z-index: 2; }
@media (max-width: 760px) {
  .nf-wk-tabs { flex-wrap: wrap; }
  /* Compact phone tabs: index only, the sector rides on wider screens. */
  .nf-wk-tab { transform: none; padding: 8px 10px 9px; font-size: 9px; }
  .nf-wk-tab-sector { display: none; }
  .nf-wk-tab[aria-selected="true"] { border-radius: 8px 8px 0 0; }
}
/* No-JS fallback: the active index never changes, so un-hide every panel
   and drop the tab strip - the dossiers stack like plain documents. */
html:not(.nf-js) .nf-wk-tab { display: none !important; }
html:not(.nf-js) .nf-wk-record[hidden] { display: block !important; }

/* Dossier panels: at phone widths the 56px panel padding is too much. */
@media (max-width: 760px) {
  .nf-wk-panel { padding: 28px 22px !important; }
}

/* ============================================================
   About-page register popup - one click-through panel per person.
   Backdrop and panel fade/rise in; the keyframe pair is gated off for
   reduced motion (static appearance, instant dismiss).
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .nf-person-modal { animation: nf-person-backdrop 200ms cubic-bezier(0.2, 0, 0, 1); }
  .nf-person-modal-panel { animation: nf-person-panel 200ms cubic-bezier(0.2, 0, 0, 1); }
}
@keyframes nf-person-backdrop {
  from { opacity: 0; }
}
@keyframes nf-person-panel {
  from { opacity: 0; transform: translateY(14px); }
}

/* On phones the desktop 80px indent would squeeze the copy; sections 2
   and 4 drop it and go flush like the others. */
@media (max-width: 760px) {
  .nf-svcs-inner { padding-left: 0 !important; }
}

/* Phone FAQ backdrop: gentler than desktop, and dimmed further - on
   phones the aurora fades darker so only a whisper of texture shows.
   The image also shifts rightward so the visible slice is the darker
   sky beside the arc, not the bright sweep itself. */
@media (max-width: 760px) {
  .nf-faq-bg { background-position: right center !important; opacity: 0.6 !important; }
  .nf-faq-bg-fade {
    background: linear-gradient(180deg, color-mix(in srgb, var(--iron-900) 70%, transparent) 0%, color-mix(in srgb, var(--iron-900) 0%, transparent) 55%), linear-gradient(90deg, var(--iron-800) 0%, var(--iron-800) 20%, color-mix(in srgb, var(--iron-800) 18%, transparent) 65%, color-mix(in srgb, var(--iron-800) 10%, transparent) 100%) !important;
  }
}

/* Visually hidden, but available to screen readers and search engines. */
.nf-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Responsive */
/* Nav: six links, temper and Contact us need the full row, so the links
   fold into the burger panel at 1080px and below. Contact us goes with
   them: the panel carries the same link, and keeping both spends header
   width the logo needs. */
@media (max-width: 1080px) {
  .nf-nav-links { display: none !important; }
  .nf-nav-burger { display: flex !important; margin-left: auto !important; }
  .nf-nav-panel { display: flex; }
  .nf-nav-cta { display: none !important; }
  /* Author display beats the UA's [hidden] rule, so the collapsed panel
     needs its own override or it would render open. */
  .nf-nav-panel[hidden] { display: none !important; }
}
@media (max-width: 900px) {
  .nf-pillar-grid { grid-template-columns: 1fr !important; }
  /* Two link columns side by side beat three stacked ones on a phone. */
  .nf-footer-cols { grid-template-columns: repeat(3, 1fr) !important; }
  .nf-footer-inner { grid-template-columns: 1fr !important; }
  /* Mobile footer compaction: the stacked brand block + 3 link columns with
     desktop spacing runs very tall on a phone. Tighter paddings/margins and
     smaller link rhythm cut the height without dropping any content. */
  .nf-footer { padding: 48px var(--gutter) 24px !important; }
  .nf-footer-inner { gap: 32px !important; }
  .nf-footer-cols { gap: 20px !important; }
  .nf-footer-cols > div > a { margin-bottom: 2px !important; }
  .nf-footer-cols > div > div { margin-bottom: 8px !important; }
  .nf-footer-bt { margin-bottom: 0 !important; }
  .nf-footer-address { margin-top: 12px !important; }
  .nf-footer-bottom { margin-top: 32px !important; padding-top: 16px !important; }
}
@media (max-width: 560px) {
  /* Phone footer: the link columns go two-up (Services | Company, then
     Contact), the tagline drops - the logo carries identity - and the
     address runs inline on one or two lines instead of three. */
  .nf-footer { padding: 36px var(--gutter) 20px !important; }
  .nf-footer-inner { gap: 24px !important; }
  .nf-footer-bt { display: none !important; }
  .nf-footer-address { margin-top: 8px !important; font-size: 11px !important; }
  .nf-footer-address br { display: none !important; }
  .nf-footer-address div { margin-bottom: 4px !important; }
  .nf-footer-cols { gap: 16px !important; }
  .nf-footer-cols > div > a { font-size: 12px !important; margin-bottom: 3px !important; }
  .nf-footer-cols > div > div { margin-bottom: 6px !important; }
  .nf-footer-bottom { margin-top: 20px !important; padding-top: 12px !important; font-size: 10px !important; }
}
@media (min-width: 1081px) {
  .nf-nav-burger { display: none !important; }
  .nf-nav-panel { display: none !important; }
}
@media (max-width: 560px) {
  .nf-section-h2 { font-size: 32px !important; }
}
/* Mobile proof: the 6-column card grid cannot fit a phone - and the cards'
   chrome would only pad it. Below 900px the pillars become full-width
   readout lines (dot, index, title, body) under the same drawing rules:
   no card background or border, identical copy, all visible. */
@media (max-width: 900px) {
  .nf-proof-grid { grid-template-columns: 1fr !important; gap: 0 !important; }
  .nf-proof-row {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 22px 0 4px !important;
  }
  /* The membership card's 2x2 logo grid stacks to one column on narrow
     grounds (the phoenix mark is wide). */
  .nf-members-logos { grid-template-columns: repeat(1, auto) !important; }
  /* The membership row spans 6 inline, which would fabricate five implicit
     tracks under the 1fr template; stack it like every other row. */
  .nf-proof-members { grid-column: auto !important; }
}

/* On phones the hero is tall and narrow, so object-fit:cover magnifies the 16:9
   aurora until it dominates. Keep the sky at the top and the mountains at the
   bottom, but dim the middle band behind the text so the copy stays legible. */
@media (max-width: 760px) {
  .nf-hero-aurora {
    opacity: 0.7;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 20%, rgba(0,0,0,0.28) 48%, rgba(0,0,0,0.5) 72%, #000 96%);
            mask-image: linear-gradient(to bottom, #000 0%, #000 20%, rgba(0,0,0,0.28) 48%, rgba(0,0,0,0.5) 72%, #000 96%);
  }
}

/* ============================================================
   Audience toggle — a large segmented pill (Investors | Leaders) with a
   sliding verdigris indicator; the content panel below swaps with a GSAP fade.
   ============================================================ */
.nf-aud-toggle { position: relative; display: inline-flex; padding: 5px; border-radius: 999px; background: var(--iron-800); border: 1px solid color-mix(in srgb, var(--fog) 12%, transparent); }
.nf-aud-toggle-ind {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: 150px; border-radius: 999px;
  background: var(--accent); box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--verdigris-400) 60%, transparent);
  transition: transform 380ms cubic-bezier(0.2,0,0,1);
}
.nf-aud-toggle-ind[data-pos="leaders"] { transform: translateX(150px); }
.nf-aud-seg {
  position: relative; z-index: 1; width: 150px; border: 0; background: transparent; cursor: pointer;
  padding: 13px 0; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--iron-200); transition: color 380ms cubic-bezier(0.2,0,0,1);
}
.nf-aud-seg:hover { color: var(--fog); }
.nf-aud-seg.is-active, .nf-aud-seg.is-active:hover { color: var(--on-accent); font-weight: 500; }

@media (max-width: 380px) {
  .nf-aud-toggle-ind { width: 130px; }
  .nf-aud-toggle-ind[data-pos="leaders"] { transform: translateX(130px); }
  .nf-aud-seg { width: 130px; }
}
@media (prefers-reduced-motion: reduce) {
  .nf-aud-toggle-ind, .nf-aud-seg { transition: none; }
}

/* ============================================================
   Investor lifecycle timeline — diligence → hold → exit read as a connected
   path. A verdigris line draws across three glowing nodes; the phase label is
   the prominent headline of each pillar (highlighted), the value line sits
   under it in verdigris. (Animated in JS; static + legible with no JS.)
   ============================================================ */
.nf-lifecycle { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 40px 0 8px; }
/* Connecting line, drawn between the first and last node centres. */
.nf-lc-line { position: absolute; top: 7px; left: 16.66%; right: 16.66%; height: 2px; background: color-mix(in srgb, var(--verdigris-400) 30%, transparent); z-index: 0; }
.nf-lc-stage { position: relative; z-index: 1; text-align: center; }
.nf-lc-node {
  display: block; width: 16px; height: 16px; margin: 0 auto 26px; border-radius: 50%;
  background: var(--iron-900); border: 2px solid var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--verdigris-400) 10%, transparent), 0 0 16px color-mix(in srgb, var(--verdigris-400) 55%, transparent);
}
.nf-lc-label { font-family: var(--font-display); font-size: clamp(20px, 2.3vw, 26px); font-weight: 500; color: var(--fog); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 10px; }
.nf-lc-head { font-family: var(--font-ui); font-size: 15px; font-weight: 500; color: var(--accent); line-height: 1.4; margin: 0 0 12px; }
.nf-lc-body { font-family: var(--font-ui); font-size: 14px; color: var(--iron-200); line-height: 1.6; margin: 0 auto; max-width: 300px; }

@media (max-width: 760px) {
  .nf-lifecycle { grid-template-columns: 1fr; gap: 38px; }
  .nf-lc-line { display: none; }
  .nf-lc-node { margin-bottom: 16px; }
}

/* ============================================================
   Engagement journey — Feel It → Reach It → Anchor It read as a connected
   path (arrows between the steps), with a lift + verdigris glow on hover and
   the number badge inverting to a solid chip.
   ============================================================ */
.nf-eng-flow { display: flex; align-items: stretch; gap: 4px; }
.nf-eng-flow > .nf-eng-card { flex: 1 1 0; min-width: 0; }

.nf-eng-card { position: relative; transition: transform 300ms cubic-bezier(0.2,0,0,1), box-shadow 300ms cubic-bezier(0.2,0,0,1); }
.nf-eng-card:hover { transform: translateY(-5px); box-shadow: 0 22px 44px -24px rgba(0,0,0,0.5), inset 0 0 0 1px color-mix(in srgb, var(--verdigris-400) 50%, transparent); }
/* Accent bar at the card's top edge - drawn in left-to-right as the step activates. */
.nf-eng-bar { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); border-radius: 6px 6px 0 0; transform-origin: left center; }

.nf-eng-num {
  flex-shrink: 0; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.05em;
  color: var(--accent); background: transparent; border: 1px solid color-mix(in srgb, var(--verdigris-400) 40%, transparent); border-radius: 6px; padding: 6px 9px;
  transition: background 300ms cubic-bezier(0.2,0,0,1), color 300ms cubic-bezier(0.2,0,0,1), border-color 300ms cubic-bezier(0.2,0,0,1);
}
.nf-eng-card:hover .nf-eng-num { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

.nf-eng-arrow { flex: 0 0 auto; align-self: center; display: flex; align-items: center; justify-content: center; padding: 0 8px; color: var(--accent); opacity: 0.6; }
.nf-eng-arrow span { display: block; font-family: var(--font-ui); font-size: 22px; line-height: 1; }

@media (max-width: 900px) {
  .nf-eng-flow { flex-direction: column; align-items: stretch; gap: 4px; }
  .nf-eng-arrow { padding: 4px 0; }
  .nf-eng-arrow span { transform: rotate(90deg); }
}

.nf-share { transition: color 300ms cubic-bezier(0.2,0,0,1), border-color 300ms cubic-bezier(0.2,0,0,1); }
.nf-share:hover { color: var(--verdigris-400); border-color: var(--verdigris-400); }

/* ============================================================
   Blog article body (/blog/<slug>) - every construct the markdown
   parser produces, rendered by Blog.jsx. Site-owned: a post brings
   content only, never its own CSS. Every post gets the
   reading-progress rule, and the contents rail and back-to-top unless
   its frontmatter sets `contents: false`.
   ============================================================ */

/* Layout: the article alone runs to 900px inside the 1000px container;
   with a rail the container splits into article column + rail. */
.nf-post { max-width: 900px; min-width: 0; }
.nf-post-layout.has-rail {
  display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 56px;
  align-items: start;
}
.nf-post-layout.has-rail .nf-post { max-width: none; }

/* Sections. The first follows the hero directly, so it keeps the band's own
   breathing room; later ones are spaced by margin, which the last
   paragraph's bottom margin collapses into. A long-form post with a rail
   reads as chapters and gets the wider gap. */
.nf-post-section[id] { scroll-margin-top: 84px; } /* outranks section[id] */
.nf-post-section:first-child { padding-top: 8px; }
.nf-post-section + .nf-post-section { margin-top: 40px; }
.has-rail .nf-post-section + .nf-post-section { margin-top: 72px; }
.nf-post h2 {
  font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); font-weight: var(--fw-semibold);
  letter-spacing: -0.02em; line-height: 1.2; color: var(--fog); margin: 0 0 16px;
}
/* Section number, matching the contents rail: 01, 02 ... then A, B for
   appendices. */
.nf-post-num { color: var(--verdigris-400); margin-right: 0.5em; font-variant-numeric: tabular-nums; }
.nf-post p,
.nf-post-list {
  font-family: var(--font-ui); font-size: clamp(16px, 1.4vw, 17px); line-height: var(--lh-loose);
  color: var(--iron-100); margin: 0 0 16px;
}
.nf-post-list { padding-left: 1.4em; }
.nf-post-list li { margin-bottom: 6px; }
.nf-post-list li::marker { color: var(--iron-250); }
.nf-post code {
  font-family: var(--font-mono); font-size: 0.86em; color: var(--fog);
  background: var(--iron-700); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs); padding: 1px 6px; overflow-wrap: anywhere;
}
.nf-post-link {
  color: var(--fog); text-decoration: underline; text-underline-offset: 3px;
  transition: color var(--dur-slow) var(--ease-out);
}
.nf-post-link:hover { color: var(--verdigris-400); }

/* Mono caps labels: rail heading, quote label, table caption, fact and
   stat labels, kickers. */
.nf-post-rail-label,
.nf-post-quote-label,
.nf-post-table figcaption,
.nf-post-facts dt,
.nf-post-stats dt,
.nf-post-kicker {
  font-family: var(--font-mono); font-size: 11px; font-weight: var(--fw-medium);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.nf-post-kicker { color: var(--verdigris-400); }

/* Subheading, with an optional kicker line above ("Case 1"). */
.nf-post-h3 {
  display: flex; flex-direction: column; gap: 6px; margin: 40px 0 14px;
  font-family: var(--font-display); font-size: 20px; font-weight: var(--fw-semibold);
  letter-spacing: -0.02em; line-height: var(--lh-snug); color: var(--fog);
}

/* Code block. */
.nf-post-code {
  margin: 8px 0 24px; padding: 16px 20px; overflow-x: auto;
  background: var(--iron-900); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
}
.nf-post .nf-post-code code {
  display: block; background: none; border: 0; padding: 0; overflow-wrap: normal;
  font-size: 13.5px; line-height: 1.6; white-space: pre; tab-size: 4;
}
/* Highlighted runs (blog-code.mjs), mapped as DESIGN.md §1 sets out: the
   code-* hues, verdigris-300 and the iron ramp, so code reads in the
   brand's colours rather than an editor theme's. Plain text stays fog. */
.nf-tok-kw, .nf-tok-link, .nf-tok-ins { color: var(--verdigris-300); }
.nf-tok-str { color: var(--code-sand); }
.nf-tok-fn { color: var(--code-steel); }
.nf-tok-const { color: var(--code-clay); }
.nf-tok-param, .nf-tok-chg { color: var(--iron-100); }
.nf-tok-punct { color: var(--iron-200); }
.nf-tok-cmt, .nf-tok-del { color: var(--iron-250); }
.nf-tok-link { text-decoration: underline; text-underline-offset: 3px; }

/* Facts card: optional kicker + title, then up to six label/value pairs. */
.nf-post-facts {
  margin: 40px 0 20px; padding: 20px 24px;
  background: var(--iron-700); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
}
.nf-post-facts h3 {
  display: flex; align-items: baseline; gap: 14px; margin: 0 0 16px;
  font-family: var(--font-display); font-size: 24px; font-weight: var(--fw-bold);
  letter-spacing: -0.02em; color: var(--fog);
}
.nf-post-facts dl {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin: 0;
}
.nf-post-facts dt, .nf-post-stats dt { color: var(--iron-200); margin-bottom: 4px; }
.nf-post-facts dd {
  margin: 0; font-family: var(--font-ui); font-size: 16px; font-weight: var(--fw-medium); color: var(--fog);
}

/* Key figures. */
.nf-post-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px;
  margin: 28px 0 8px;
}
.nf-post-stats > div {
  padding: 18px 20px; background: var(--iron-700);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
}
.nf-post-stats dd {
  margin: 6px 0 0; font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 38px);
  font-weight: var(--fw-bold); letter-spacing: var(--tracking-tightest); line-height: 1; color: var(--fog);
}

/* Figures open full size in the lightbox. A captioned figure is framed; an
   uncaptioned one is plain artwork straight on the band's ground. */
.nf-post-zoom { display: block; cursor: zoom-in; }
.nf-post-zoom img { display: block; width: 100%; height: auto; }
.nf-post-plain { margin: 6px 0 24px; }
.nf-post-figure { margin: 28px 0 32px; }
.nf-post-figure .nf-post-zoom {
  border-radius: var(--radius-md); overflow: hidden;
  background: var(--iron-700); border: 1px solid var(--border-subtle);
  transition: border-color var(--dur-slow) var(--ease-out);
}
.nf-post-figure .nf-post-zoom:hover,
.nf-post-figure .nf-post-zoom:focus-visible { border-color: var(--verdigris-400); }
.nf-post-figure figcaption {
  margin-top: 10px; font-family: var(--font-ui); font-size: 14px; line-height: var(--lh-body);
  color: var(--iron-200);
}
/* zoom: off - the image without the lightbox link. */
.nf-post-still img { display: block; width: 100%; height: auto; }
.nf-post-figure .nf-post-still {
  border-radius: var(--radius-md); overflow: hidden;
  background: var(--iron-700); border: 1px solid var(--border-subtle);
}

/* :::figure sizes. small and medium are a third and two thirds of the
   column, centred unless floated beside the text; wide breaks out of the
   column toward the band's width (the band is the size container), centred
   on the 1000px container. With a contents rail beside the article there is
   no room to break out into, so wide draws as full there. */
.nf-post-band { container-type: inline-size; }
.nf-fig-small { width: 33.333%; margin-left: auto; margin-right: auto; }
.nf-fig-medium { width: 66.667%; margin-left: auto; margin-right: auto; }
.nf-fig-wide {
  width: min(1200px, 100cqw);
  margin-left: calc((min(1000px, 100cqw) - min(1200px, 100cqw)) / 2);
}
.has-rail .nf-fig-wide { width: auto; margin-left: 0; }
.nf-post .nf-fig-left { float: left; clear: both; margin: 6px 28px 16px 0; }
.nf-post .nf-fig-right { float: right; clear: both; margin: 6px 0 16px 28px; }
/* Floats stay beside prose only: every other block, and the section's end,
   clears them; a list next to one keeps its markers clear of it. */
.nf-post-section::after { content: ''; display: block; clear: both; }
.nf-post-section > :is(.nf-post-h3, .nf-post-figure, .nf-post-plain, .nf-gallery, .nf-post-table,
  .nf-post-quote, .nf-post-code, .nf-post-facts, .nf-post-stats, .nf-tl):not(.nf-fig-left, .nf-fig-right) { clear: both; }
.nf-fig-left ~ .nf-post-list, .nf-fig-right ~ .nf-post-list { display: flow-root; }
.nf-post-section [id] { scroll-margin-top: 84px; }

/* Details: a native <details> under the image, so the text reads without
   JS; with JS its summary opens the lightbox, which shows the text in a
   panel beside the large image. */
.nf-post-details { margin-top: 10px; }
.nf-post-details summary {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
  padding: 5px 10px; border: 1px solid var(--border-subtle); border-radius: var(--radius-xs);
  font-family: var(--font-mono); font-size: 11px; font-weight: var(--fw-medium);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--verdigris-400);
  transition: border-color var(--dur-slow) var(--ease-out);
}
.nf-post-details summary::-webkit-details-marker { display: none; }
.nf-post-details summary::after { content: '+'; color: var(--iron-200); }
.nf-post-details[open] summary::after { content: '\2212'; }
.nf-post-details summary:hover,
.nf-post-details summary:focus-visible { border-color: var(--verdigris-400); }
.nf-post-details-body { margin-top: 12px; }
.nf-post .nf-post-details-body p,
.nf-post .nf-post-details-body .nf-post-list { font-size: 15px; margin-bottom: 10px; }

/* Phones: every figure is full width, nothing floats. */
@media (max-width: 640px) {
  .nf-post .nf-fig-small, .nf-post .nf-fig-medium {
    width: auto; float: none; margin-left: 0; margin-right: 0;
  }
  .nf-post .nf-fig-left, .nf-post .nf-fig-right { margin-top: 20px; margin-bottom: 24px; }
}

/* Gallery: framed figures one at a time on a stage shaped like the most
   common slide; other shapes sit contained on the raised ground. Inactive
   slides stay laid out (so lazy loading sees them) but hidden. A shuffled gallery
   hides its contents until the browser has drawn the order; without JS,
   or when the animation loop never runs, it shows source order. */
.nf-gallery-stage {
  position: relative; overflow: hidden; border-radius: var(--radius-md);
  background: var(--iron-700); border: 1px solid var(--border-subtle);
  transition: border-color var(--dur-slow) var(--ease-out);
}
.nf-gallery-stage:hover,
.nf-gallery-stage:focus-within { border-color: var(--verdigris-400); }
.nf-gallery .nf-gallery-slide {
  position: absolute; inset: 0; border: 0; border-radius: 0; background: none;
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-slow) var(--ease-out), visibility 0s linear var(--dur-slow);
}
.nf-gallery .nf-gallery-slide.is-active {
  opacity: 1; visibility: visible;
  transition: opacity var(--dur-slow) var(--ease-out), visibility 0s;
}
.nf-gallery-slide img { height: 100%; object-fit: contain; }
/* Controls sit under the stage, never over the artwork: marks, counter,
   then prev/next. */
.nf-gallery-arrow {
  flex: none; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center; padding: 0;
  background: var(--iron-700); border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  color: var(--fog); font-family: var(--font-ui); font-size: 18px; line-height: 1; cursor: pointer;
  transition: color var(--dur-slow) var(--ease-out), border-color var(--dur-slow) var(--ease-out);
}
.nf-gallery-arrow:hover,
.nf-gallery-arrow:focus-visible { color: var(--verdigris-400); border-color: var(--verdigris-400); }
.nf-gallery-foot {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
}
.nf-gallery-foot .nf-gallery-count { margin: 0 4px 0 8px; }
/* The marks share one row and narrow to fit however many slides there are;
   the counter never wraps. */
.nf-gallery-dots { display: flex; flex: 1 1 auto; min-width: 0; gap: 6px; }
.nf-gallery-dots button {
  flex: 0 1 22px; min-width: 0; height: 20px; padding: 0; background: none; border: 0; cursor: pointer;
}
.nf-gallery-dots button::before {
  content: ''; display: block; height: 3px; border-radius: var(--radius-xs);
  background: var(--iron-400); transition: background var(--dur-slow) var(--ease-out);
}
.nf-gallery-dots button:hover::before { background: var(--iron-200); }
.nf-gallery-dots button[aria-current]::before { background: var(--verdigris-400); }
.nf-gallery-count {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--iron-200);
  font-variant-numeric: tabular-nums; white-space: nowrap; flex: none;
}
.nf-js .nf-gallery-pending > * { opacity: 0; }
.nf-no-anim .nf-gallery-pending > * { opacity: 1; }
/* Random gallery (show: random): one image, a line saying so and the
   "Show another" button, which needs JS and is hidden without it. */
.nf-gallery-random .nf-gallery-foot { justify-content: space-between; }
.nf-gallery-random .nf-gallery-count {
  text-transform: uppercase; white-space: normal; flex: 1 1 auto; min-width: 0; line-height: 1.5;
}
.nf-gallery-another {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; white-space: nowrap; flex: none;
  background: var(--iron-700); border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  color: var(--fog); font-family: var(--font-ui); font-size: 14px; cursor: pointer;
  transition: color var(--dur-slow) var(--ease-out), border-color var(--dur-slow) var(--ease-out);
}
.nf-gallery-another:hover,
.nf-gallery-another:focus-visible { color: var(--verdigris-400); border-color: var(--verdigris-400); }
.nf-gallery-another svg { width: 16px; height: 16px; transition: transform calc(var(--dur-slow) * 2) var(--ease-out); }
html:not(.nf-js) .nf-gallery-another { display: none; }
.nf-gallery-another[aria-disabled="true"] { cursor: progress; }
/* A request that failed: said quietly where the count stood, in the
   early-access forms' error style. */
.nf-gallery-random .nf-gallery-count.is-failed {
  font-family: var(--font-ui); font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--danger);
}
@media (prefers-reduced-motion: reduce) {
  .nf-gallery .nf-gallery-slide,
  .nf-gallery .nf-gallery-slide.is-active,
  .nf-gallery-another svg { transition: none; }
}
@media (max-width: 560px) {
  .nf-gallery-dots { gap: 3px; }
}

/* Quote, with an optional label ("Translation"). */
.nf-post-quote {
  margin: 8px 0 28px; padding: 4px 0 4px 22px;
  border-left: 2px solid var(--verdigris-400);
}
.nf-post-quote-label { color: var(--verdigris-400); margin-bottom: 10px; }
.nf-post .nf-post-quote p { color: var(--iron-200); margin-bottom: 8px; }

/* Data tables. Inline code in a cell reads as plain mono and never wraps
   (identifiers, addresses). */
.nf-post-table { margin: 28px 0 32px; }
.nf-post-table figcaption { color: var(--verdigris-400); margin-bottom: 12px; }
.nf-post-table-scroll {
  overflow-x: auto; background: var(--iron-700);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
}
.nf-post-table table { width: 100%; border-collapse: collapse; }
.nf-post-table th {
  text-align: left; padding: 12px 16px; background: var(--iron-900);
  font-family: var(--font-mono); font-size: 10.5px; font-weight: var(--fw-medium);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--iron-200);
}
.nf-post-table td {
  padding: 11px 16px; vertical-align: top;
  font-family: var(--font-ui); font-size: 14px; line-height: var(--lh-body); color: var(--iron-100);
}
.nf-post-table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--iron-800) 55%, transparent); }
.nf-post-table td:first-child { color: var(--fog); font-weight: var(--fw-medium); min-width: 150px; }
.nf-post-table td code { background: none; border: 0; padding: 0; white-space: nowrap; overflow-wrap: normal; }

/* Back to top, at the end of a post with a contents rail. */
.nf-post-top {
  display: block; margin-top: 36px; padding: 0; background: none; border: 0; cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--iron-200); transition: color var(--dur-slow) var(--ease-out);
}
.nf-post-top:hover { color: var(--verdigris-400); }

/* Reading progress: a thin accent rule under the sticky nav. */
.nf-post-progress {
  position: fixed; top: 60px; left: 0; right: 0; height: 2px; z-index: 19;
  pointer-events: none;
}
.nf-post-progress span {
  display: block; height: 100%; background: var(--verdigris-400);
  transform-origin: left center;
}

/* Contents rail: follows the reader; the current section is marked. */
.nf-post-rail { position: sticky; top: 100px; padding-top: 10px; }
.nf-post-rail-label { color: var(--iron-250); margin-bottom: 14px; }
.nf-post-rail-nav { display: flex; flex-direction: column; }
.nf-post-rail-nav a {
  display: flex; gap: 10px; padding: 7px 0 7px 14px; margin-left: -1px;
  border-left: 1px solid var(--border-strong);
  font-family: var(--font-ui); font-size: 13px; line-height: 1.35;
  color: var(--iron-200); text-decoration: none;
  transition: color var(--dur-slow) var(--ease-out), border-color var(--dur-slow) var(--ease-out);
}
.nf-post-rail-nav a span {
  flex: 0 0 18px; font-family: var(--font-mono); font-size: 11px; color: var(--iron-250);
  padding-top: 1px;
}
.nf-post-rail-nav a:hover { color: var(--fog); }
.nf-post-rail-nav a.is-active { color: var(--fog); border-left-color: var(--verdigris-400); }
.nf-post-rail-nav a.is-active span { color: var(--verdigris-400); }

/* Lightbox: a figure at full size over the scrim. It takes every touch
   gesture, so a pinch zooms the image (Lightbox.jsx) and never the page; with
   details it still scrolls vertically, and stops while the image is zoomed. */
.nf-post-lightbox {
  position: fixed; inset: 0; z-index: 40; display: flex;
  align-items: center; justify-content: center; padding: 48px 24px;
  background: var(--overlay-scrim); backdrop-filter: blur(6px); cursor: zoom-out;
  touch-action: none;
}
.nf-post-lightbox.has-details { touch-action: pan-y; }
.nf-post-lightbox.is-zoomed { overflow: hidden; }
.nf-post-lightbox img {
  position: relative; z-index: 1;
  max-width: min(1600px, 100%); max-height: 100%; width: auto; height: auto;
  border-radius: var(--radius-md); border: 1px solid var(--border-strong); background: var(--iron-700);
  cursor: zoom-in; touch-action: none; transform-origin: 0 0; user-select: none; -webkit-user-select: none;
}
.nf-post-lightbox img.is-zoomed { cursor: grab; }
.nf-post-lightbox img.is-zoomed:active { cursor: grabbing; }
.nf-post-lightbox img.is-settling { transition: transform var(--dur-slow) var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  .nf-post-lightbox img.is-settling { transition: none; }
}
.nf-post-lightbox button {
  position: absolute; top: 16px; right: 20px; z-index: 2; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--iron-700); border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  color: var(--fog); font-family: var(--font-ui); font-size: 22px; line-height: 1; cursor: pointer;
}
.nf-post-lightbox button:hover { border-color: var(--verdigris-400); color: var(--verdigris-400); }
/* With details: the image and a text panel side by side; stacked and
   scrolling on narrow screens. */
.nf-post-lightbox-body {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  width: 100%; height: 100%; max-width: 1600px;
}
.nf-post-lightbox-body img { min-width: 0; max-width: calc(100% - 364px); }
.nf-post-lightbox-panel {
  flex: 0 0 340px; max-height: 100%; overflow-y: auto; padding: 20px 22px;
  background: var(--iron-800); border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  cursor: auto;
}
.nf-post-lightbox-label {
  margin-bottom: 12px; font-family: var(--font-mono); font-size: 11px; font-weight: var(--fw-medium);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--verdigris-400);
}
.nf-post-lightbox-panel p,
.nf-post-lightbox-panel .nf-post-list {
  margin: 0 0 12px; font-family: var(--font-ui); font-size: 15px; line-height: var(--lh-body); color: var(--iron-100);
}
.nf-post-lightbox-panel .nf-post-list { padding-left: 1.4em; }
.nf-post-lightbox-panel code {
  font-family: var(--font-mono); font-size: 0.86em; color: var(--fog);
  background: var(--iron-700); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs); padding: 1px 6px;
}
@media (max-width: 760px) {
  .nf-post-lightbox.has-details { overflow-y: auto; align-items: flex-start; padding-top: 72px; }
  .nf-post-lightbox-body { flex-direction: column; height: auto; }
  .nf-post-lightbox-body img { max-width: 100%; max-height: 70vh; }
  .nf-post-lightbox.has-details img:not(.is-zoomed) { touch-action: pan-y; }
  .nf-post-lightbox-panel { flex: none; width: 100%; max-height: none; }
}

/* Narrow screens: the rail folds away and the article takes the width. */
@media (max-width: 960px) {
  .nf-post-layout.has-rail { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .nf-post-rail { display: none; }
}
@media (max-width: 560px) {
  .nf-post-facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}



/* ============================================================
   Blog timeline (:::timeline, BlogTimeline.jsx) - projects on panels
   in three layouts: .nf-tl-lanes (swimlanes, quiet hours folded),
   .nf-tl-bursts (a burst map over one card per burst) and .nf-tl-log
   (an activity strip over a log). Under 600px of block width lanes
   and bursts fall back to the day-grouped list; the log keeps its
   strip. One accent: verdigris marks the selection and its links;
   ember marks failure.
   ============================================================ */
.nf-tl {
  --nf-tl-name: 64px;
  container: nf-tl / inline-size;
  margin: 28px 0 32px;
  background: var(--iron-700); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  font-family: var(--font-ui); color: var(--iron-100);
}
.nf-tl button { font: inherit; color: inherit; }
.nf-tl-mono {
  font-family: var(--font-mono); font-size: 11px; font-weight: var(--fw-medium);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.nf-tl-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 6px 18px; padding: 18px 20px 12px;
}
.nf-tl-kicker { color: var(--verdigris-400); margin-bottom: 6px; }
.nf-tl-title {
  font-family: var(--font-display); font-size: 19px; font-weight: var(--fw-semibold);
  letter-spacing: -0.01em; line-height: var(--lh-snug); color: var(--fog); margin: 0;
}
.nf-tl-meta { color: var(--iron-250); }
.nf-tl-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0 20px 14px; color: var(--iron-200); }
.nf-tl-legend span { display: inline-flex; align-items: center; gap: 7px; }
.nf-tl-legend svg { width: 11px; height: 11px; fill: var(--iron-100); }
.nf-tl-legend .fail svg { fill: var(--ember); }
.nf-tl-legend .act svg { fill: var(--iron-800); stroke: var(--fog); stroke-width: 1.6; }
.nf-tl-legend .bar { width: 14px; height: 5px; border-radius: 1px; background: var(--iron-300); }
.nf-tl-legend .brk { width: 12px; height: 12px; border-inline: 1px dashed var(--iron-300); }

/* Lanes: lanes layout and every burst card. */
.nf-tl-scroll { overflow-x: auto; background: var(--iron-800); border-top: 1px solid var(--border-subtle); }
.nf-tl-board { position: relative; min-width: 600px; padding-bottom: 4px; }
.nf-tl-axis { position: relative; height: 44px; margin-left: var(--nf-tl-name); margin-right: 16px; }
.nf-tl-axis span { position: absolute; top: 24px; white-space: nowrap; font-family: var(--font-mono); }
.nf-tl-axis .d {
  top: 7px; font-size: 10.5px; font-weight: var(--fw-medium); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--iron-200);
}
.nf-tl-axis .t { transform: translateX(-50%); font-size: 11px; color: var(--iron-250); font-variant-numeric: tabular-nums; }
.nf-tl-over { position: absolute; top: 44px; bottom: 4px; left: var(--nf-tl-name); right: 16px; pointer-events: none; }
.nf-tl-over .gl { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--border-subtle); }
.nf-tl-over .br {
  position: absolute; top: 0; bottom: 0; border-inline: 1px dashed var(--iron-400);
  background: color-mix(in srgb, var(--iron-900) 70%, transparent);
}
/* A fold's length, at the top of the fold itself so it never reads as part
   of a time on the axis. The fold holds no points, so nothing sits under it. */
.nf-tl-over .g {
  position: absolute; top: 6px; transform: translateX(-50%); white-space: nowrap;
  padding: 1px 3px; border-radius: var(--radius-xs); background: var(--iron-900);
  font-family: var(--font-mono); font-size: 10px; color: var(--iron-200);
}
.nf-tl-lane { position: relative; height: 48px; }
.nf-tl-lane.alt { background: color-mix(in srgb, var(--iron-700) 45%, transparent); }
.nf-tl-lane-name {
  position: absolute; left: 16px; top: 20px; transform: translateY(-50%);
  color: var(--iron-200); font-size: 10.5px; white-space: nowrap;
}
.nf-tl-track { position: absolute; left: var(--nf-tl-name); right: 16px; top: 0; bottom: 0; }
.nf-tl-pt {
  position: absolute; top: 12px; width: 16px; height: 16px; margin-left: -8px; padding: 0;
  border: 0; background: none; cursor: pointer; z-index: 1;
  transition: opacity var(--dur-slow) var(--ease-out);
}
.nf-tl-pt svg {
  display: block; width: 16px; height: 16px; overflow: visible;
  fill: var(--iron-100); stroke: var(--iron-800); stroke-width: 1.6;
  transition: fill var(--dur-slow) var(--ease-out);
}
.nf-tl-pt:hover svg { fill: var(--fog); }
.nf-tl-pt.failed svg { fill: var(--ember); }
.nf-tl-pt.rel svg { fill: var(--fog); }
.nf-tl-pt.active svg { fill: var(--iron-800); stroke: var(--fog); }
.nf-tl-pt.sel { z-index: 2; }
.nf-tl-pt.sel svg { fill: var(--verdigris-400); }
.nf-tl-pt.active.sel svg { fill: var(--iron-800); stroke: var(--verdigris-400); }
.nf-tl-pt.sel::after {
  content: ''; position: absolute; inset: -4px;
  border: 1.5px solid var(--verdigris-400); border-radius: 50%;
}
.nf-tl-pt.dim { opacity: 0.45; }
.nf-tl-st {
  position: absolute; top: 33px; height: 5px; min-width: 3px; border-radius: 1px; background: var(--iron-300);
  transition: opacity var(--dur-slow) var(--ease-out), background var(--dur-slow) var(--ease-out);
}
.nf-tl-st.open { background: linear-gradient(90deg, var(--iron-300) 60%, transparent); }
.nf-tl-st.sel { background: var(--verdigris-400); z-index: 1; }
.nf-tl-st.open.sel { background: linear-gradient(90deg, var(--verdigris-400) 60%, transparent); }
.nf-tl-st.dim { opacity: 0.4; }
.nf-tl-links {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; overflow: visible; z-index: 3;
}
.nf-tl-links path { fill: none; stroke: var(--verdigris-400); stroke-width: 1.5; }
.nf-tl-links path.head { fill: var(--verdigris-400); stroke: none; }
.nf-tl-links path.likely { stroke-dasharray: 4 4; }
.nf-tl-detail { padding: 18px 20px 20px; border-top: 1px solid var(--border-subtle); }

/* Bursts: the map of the whole run, then one card per burst. */
.nf-tl-map { position: relative; height: 58px; margin: 0 20px 16px; }
.nf-tl-map .rail { position: absolute; left: 0; right: 0; top: 26px; height: 1px; background: var(--iron-400); }
.nf-tl-map .burst {
  position: absolute; top: 14px; height: 25px; min-width: 20px; padding: 0;
  border: 1px solid var(--iron-300); border-radius: var(--radius-xs); background: var(--iron-600);
  cursor: pointer; color: var(--fog); font-family: var(--font-mono); font-size: 11px; font-weight: var(--fw-medium);
  transition: border-color var(--dur-slow) var(--ease-out);
}
.nf-tl-map .burst:hover { border-color: var(--fog); }
.nf-tl-map .burst.sel {
  border-color: var(--verdigris-400);
  background: color-mix(in srgb, var(--verdigris-400) 22%, var(--iron-700));
}
.nf-tl-map .d {
  position: absolute; top: 44px; transform: translateX(-50%); white-space: nowrap;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--iron-250);
}
.nf-tl-map .d.first { transform: none; }
.nf-tl-cards { display: grid; gap: 14px; padding: 0 14px 14px; }
.nf-tl-card {
  border: 1px solid var(--border-subtle); border-radius: var(--radius-sm);
  overflow: hidden; background: var(--iron-800);
}
.nf-tl-card.has-sel { border-color: color-mix(in srgb, var(--verdigris-400) 45%, transparent); }
.nf-tl-card-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
  padding: 12px 16px; background: var(--iron-700);
}
.nf-tl-card-head .n { color: var(--verdigris-400); }
.nf-tl-card-head .w {
  font-family: var(--font-display); font-size: 16px; font-weight: var(--fw-semibold); color: var(--fog);
}
.nf-tl-card-head .c { color: var(--iron-250); margin-left: auto; }
.nf-tl-card .nf-tl-scroll { border-top: 0; }
.nf-tl-card .nf-tl-detail { background: var(--iron-700); }

/* Log: the activity strip, then the log rows with a duration bar. */
.nf-tl-strip { position: relative; margin: 0 20px 6px; }
.nf-tl-strip-row { position: relative; height: 11px; }
.nf-tl-strip-row .nm {
  position: absolute; left: 0; top: -1px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.06em; color: var(--iron-250);
}
.nf-tl-strip-row .tr {
  position: absolute; left: 44px; right: 0; top: 3px; height: 5px; border-radius: 1px;
  background: color-mix(in srgb, var(--iron-600) 60%, transparent);
}
.nf-tl-tick {
  position: absolute; top: -2px; width: 4px; height: 9px; margin-left: -2px; padding: 0;
  border: 0; border-radius: 1px; background: var(--iron-100); cursor: pointer;
}
.nf-tl-tick.failed { background: var(--ember); }
.nf-tl-tick.active { background: var(--iron-800); box-shadow: inset 0 0 0 1.2px var(--fog); }
.nf-tl-tick.rel { background: var(--fog); }
.nf-tl-tick.sel {
  background: var(--verdigris-400); z-index: 2;
  box-shadow: 0 0 0 2px var(--iron-700), 0 0 0 3px var(--verdigris-400);
}
.nf-tl-tick.dim { opacity: 0.45; }
.nf-tl-strip-axis { position: relative; height: 22px; margin-left: 44px; }
.nf-tl-strip-axis span {
  position: absolute; top: 5px; transform: translateX(-50%); white-space: nowrap;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--iron-250);
}
.nf-tl-strip-axis span.first { transform: none; }
.nf-tl .nf-tl-log .nf-tl-row { grid-template-columns: 48px 46px minmax(0, 1fr) 112px; }
.nf-tl-log .du {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; color: var(--iron-250); font-variant-numeric: tabular-nums;
}
.nf-tl-log .du i { display: block; height: 5px; border-radius: 1px; background: var(--iron-300); }
.nf-tl-log .nf-tl-row[aria-expanded="true"] .du i { background: var(--verdigris-400); }

/* Details of the selected project. */
.nf-tl-d-kicker { color: var(--verdigris-400); }
.nf-tl-d h4 {
  font-family: var(--font-display); font-size: 18px; font-weight: var(--fw-semibold);
  letter-spacing: -0.01em; line-height: var(--lh-snug); color: var(--fog); margin: 6px 0 4px;
}
.nf-tl-d-time {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; color: var(--iron-200); font-variant-numeric: tabular-nums;
}
.nf-tl-failed,
.nf-tl-active {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: var(--fw-medium); letter-spacing: 0.1em;
  text-transform: uppercase; border-radius: var(--radius-xs); padding: 1px 6px;
}
.nf-tl-failed { color: var(--ember); border: 1px solid var(--ember); }
.nf-tl-active { color: var(--fog); border: 1px solid var(--iron-250); }
.nf-tl-d-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 32px; margin-top: 16px;
}
.nf-tl-d-col { display: grid; gap: 14px; align-content: start; min-width: 0; }
.nf-tl-sub {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: var(--fw-medium); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--iron-200); margin-bottom: 4px;
}
.nf-post .nf-tl-d p { margin: 0; font-size: 15px; line-height: var(--lh-body); color: var(--iron-100); }
.nf-tl-d p strong { color: var(--fog); font-weight: var(--fw-semibold); }
.nf-post .nf-tl-d code { background: var(--iron-800); }
.nf-tl-facts { display: flex; gap: 28px; }
.nf-tl-links-list { display: grid; gap: 8px; }
.nf-tl-link { display: grid; gap: 2px; justify-items: start; }
.nf-tl .nf-tl-chip {
  padding: 3px 9px; background: transparent; border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs); font-size: 13px; color: var(--fog); cursor: pointer; text-align: left;
  transition: border-color var(--dur-slow) var(--ease-out);
}
.nf-tl .nf-tl-chip:hover { border-color: var(--verdigris-400); }
.nf-tl .nf-tl-chip.likely { border-style: dashed; }
.nf-tl-chip .lk { color: var(--iron-250); font-size: 12px; margin-left: 5px; }
.nf-tl-ev { font-size: 13px; color: var(--iron-250); line-height: 1.45; }
.nf-tl-none { color: var(--iron-250); font-size: 14px; }
.nf-tl-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.nf-tl-steps li { display: grid; grid-template-columns: 48px 1fr auto; gap: 8px; font-size: 14px; color: var(--iron-100); }
.nf-tl-steps .t,
.nf-tl-steps .du {
  font-family: var(--font-mono); font-size: 12px; color: var(--iron-250);
  padding-top: 2px; font-variant-numeric: tabular-nums;
}

/* The day-grouped list: the narrow form of lanes and bursts, the body of
   the log. Rows past the first few fold behind "Show all" only when JS can
   unfold them; a selected row shows even while folded. */
.nf-tl-list { border-top: 1px solid var(--border-subtle); }
.nf-tl-lanes .nf-tl-list,
.nf-tl-bursts .nf-tl-list { display: none; }
.nf-tl-day { padding: 14px 16px 6px; color: var(--iron-200); background: var(--iron-800); }
.nf-tl .nf-tl-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: baseline;
  width: 100%; padding: 10px 16px; background: transparent; border: 0;
  border-top: 1px solid var(--border-subtle); text-align: left; cursor: pointer;
}
.nf-tl .nf-tl-row:hover,
.nf-tl .nf-tl-row[aria-expanded="true"] { background: var(--iron-600); }
.nf-tl-row .t { font-family: var(--font-mono); font-size: 12px; color: var(--iron-250); font-variant-numeric: tabular-nums; }
.nf-tl-row .ti {
  display: flex; gap: 8px; align-items: baseline; min-width: 0;
  color: var(--fog); font-size: 15px; line-height: 1.35;
}
.nf-tl-row .ti svg { width: 10px; height: 10px; fill: var(--iron-100); flex: none; }
.nf-tl-row.failed .ti svg { fill: var(--ember); }
.nf-tl-row.active .ti svg { fill: none; stroke: var(--fog); stroke-width: 1.6; }
.nf-tl-row .ln { color: var(--iron-250); font-size: 10px; }
.nf-tl-row-d { padding: 4px 16px 18px; background: var(--iron-600); }
.nf-js .nf-tl-more { display: none; }
.nf-js .nf-tl-list.all .nf-tl-more,
.nf-js .nf-tl-more.open { display: block; }
.nf-tl .nf-tl-showall {
  display: block; width: 100%; padding: 13px 16px; background: transparent; border: 0;
  border-top: 1px solid var(--border-subtle); cursor: pointer; text-align: left;
  font-family: var(--font-mono); font-size: 11px; font-weight: var(--fw-medium);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--verdigris-400);
  transition: color var(--dur-slow) var(--ease-out);
}
.nf-tl .nf-tl-showall:hover { color: var(--fog); }
html:not(.nf-js) .nf-tl-showall { display: none; }

@container nf-tl (max-width: 600px) {
  .nf-tl-lanes .nf-tl-scroll,
  .nf-tl-lanes .nf-tl-detail,
  .nf-tl-bursts .nf-tl-cards,
  .nf-tl-bursts .nf-tl-map { display: none; }
  .nf-tl-lanes .nf-tl-list,
  .nf-tl-bursts .nf-tl-list { display: block; }
  .nf-tl-legend .lg-q { display: none; }
  .nf-tl-head, .nf-tl-legend { padding-left: 16px; padding-right: 16px; }
  .nf-tl-strip { margin-inline: 16px; }
  .nf-tl .nf-tl-log .nf-tl-row { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .nf-tl-log .nf-tl-row .ln { order: 3; }
  .nf-tl-log .du { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nf-tl * { transition: none !important; }
}

/* ============================================================
   HOMEPAGE - Temper Early Access (.nf-home, .nf-h-*)
   One design language for the page: two families (Space Grotesk for
   headings via --font-display, Inter Tight for everything else via
   --font-ui), the tokens in colors_and_type.css, one primary
   and one secondary button, one label, one card, one frame. Compositions
   follow the selected references; spacing, radii and surfaces are
   identical across sections. Breakpoints: compact < 760, medium
   760-1080, expanded > 1080.
   ============================================================ */
.nf-home [id] { scroll-margin-top: 76px; }
.nf-home button { font-family: inherit; }

.nf-h-container {
  width: 100%;
  max-width: calc(var(--container-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.nf-h-section { position: relative; padding-block: var(--space-section); overflow-x: clip; }
.nf-home ul.nf-h-diff-cards, .nf-home ul.nf-h-cap-grid,
.nf-home ul.nf-h-trust-pillars { list-style: none; margin: 0; padding: 0; }

/* --- Label: the one label style ------------------------------------- */
.nf-h-label {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--text-2xs);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* --- Headings: Space Grotesk 600, two-tone with the accent closing ---- */
.nf-h-h2, .nf-h-hero-title, .nf-h-ev-title, .nf-h-close-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--fg-strong);
  text-wrap: balance;
}
.nf-h-h2 {
  margin: 16px 0 0;
  font-size: var(--text-heading);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.nf-h-line { display: block; }
.nf-h-accent { color: var(--accent); }
.nf-h-muted { color: var(--fg-3); }
.nf-h-lede {
  margin: 0;
  font-size: var(--text-subheading); line-height: 1.45; color: var(--fg-3);
  text-wrap: balance;
}
.nf-h-note { margin: 0; font-size: var(--text-sm); color: var(--fg-faint); }

/* --- Buttons: one primary, one secondary ---------------------------- */
.nf-h-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  font-family: var(--font-ui); font-size: 15px; font-weight: 500;
  line-height: 1.2; letter-spacing: 0;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out),
    color 180ms var(--ease-out), box-shadow 240ms var(--ease-out), transform 100ms var(--ease-out);
}
.nf-h-btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.nf-h-btn--secondary { background: transparent; border-color: var(--border-strong); color: var(--fg-1); }
.nf-h-btn-arrow { flex-shrink: 0; transition: transform 180ms var(--ease-out); }
.nf-h-btn:active { transform: translateY(1px); }
.nf-h-btn:focus-visible, .nf-h-iconbtn:focus-visible,
.nf-h-inline-link:focus-visible, .nf-h-statement-link:focus-visible, .nf-h-trust-logo:focus-visible {
  outline: 2px solid var(--border-focus); outline-offset: 2px;
}
@media (hover: hover) and (pointer: fine) {
  .nf-h-btn--primary:hover {
    background: var(--accent-hover); border-color: var(--accent-hover);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent),
      0 10px 28px -10px color-mix(in srgb, var(--accent) 70%, transparent);
  }
  .nf-h-btn--secondary:hover {
    background: var(--accent); border-color: var(--accent); color: var(--on-accent);
  }
  .nf-h-btn:hover .nf-h-btn-arrow { transform: translateX(3px); }
}
/* Square icon control (carousel arrows), secondary treatment. */
.nf-h-iconbtn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0;
  background: transparent; color: var(--fg-1);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out),
    color 180ms var(--ease-out), transform 100ms var(--ease-out);
}
.nf-h-iconbtn:active { transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) {
  .nf-h-iconbtn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
}
.nf-h-inline-link {
  color: var(--fg-1); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--border-control);
  transition: color 150ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nf-h-inline-link:hover { color: var(--fg-accent); text-decoration-color: currentColor; }
}

/* --- Card, frame, slot, chip, tag: one treatment each --------------- */
.nf-h-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-stack);
}
.nf-h-frame {
  position: relative; margin: 0; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
}
.nf-h-frame-img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: left top;
}
/* A frame that opens its screenshot in the lightbox: a ZoomableImage, or
   the evidence screen. A block, like the figure it replaces; at zero
   specificity, so a frame with its own display (the evidence screen) keeps it. */
:where(a.nf-h-frame) { display: block; }
a.nf-h-frame { cursor: zoom-in; transition: border-color 180ms var(--ease-out); }
a.nf-h-frame:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  a.nf-h-frame:hover { border-color: var(--accent); }
}
.nf-h-slot {
  flex-shrink: 0;
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  background: var(--accent); color: var(--on-accent);
  border-radius: var(--radius-slot);
}
.nf-h-tag {
  display: inline-block; padding: 6px 10px;
  background: var(--surface-raised); color: var(--fg-1);
  border-radius: var(--radius-sm);
  font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; line-height: 1.2;
}
.nf-h-rule { border: 0; border-top: 1px solid var(--border-subtle); margin: 0; }

/* --- Hero (canvasly-01-hero) ----------------------------------------
   Centered display head over a row of five tilted, overlapping cards. The
   tilt and the entrance offset are CSS variables so the GSAP entrance
   animates them without replacing the resting rotate(). */
.nf-h-hero {
  position: relative; overflow: clip;
  padding-block: clamp(3rem, 5.5vw, 4.75rem) clamp(3.5rem, 6vw, 5.5rem);
  background: var(--bg-subtle);
}
.nf-h-hero-dots {
  position: absolute; inset: -10% 0 0 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--fog) 18%, transparent) 0.8px, transparent 0.8px);
  background-size: 24px 24px; opacity: 0.18;
  mask-image: radial-gradient(ellipse at 50% 35%, black 0%, transparent 68%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, black 0%, transparent 68%);
}
.nf-h-hero-scrim {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 28%,
    color-mix(in srgb, var(--bg-subtle) 80%, transparent) 0%,
    color-mix(in srgb, var(--bg-subtle) 40%, transparent) 60%, transparent 90%);
}
.nf-h-hero-inner { position: relative; z-index: 1; }
.nf-h-hero-head {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  max-width: 1000px; margin-inline: auto;
}
.nf-h-hero-title {
  margin: 20px 0 0;
  font-size: var(--text-display); line-height: 1.0; letter-spacing: -0.04em;
}
.nf-h-hero-body {
  margin: 24px 0 0; max-width: 34em;
  font-size: var(--text-subheading); line-height: 1.5; color: var(--fg-3);
  text-wrap: balance;
}
.nf-h-hero-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 16px 28px; margin-top: 36px;
}
.nf-h-hero-anchor { display: flex; align-items: center; gap: 12px; margin: 0; }
.nf-h-hero-shield { width: auto; height: 28px; display: block; }

.nf-h-hero-row {
  display: flex; justify-content: center; align-items: flex-start;
  width: min(100%, 1040px); margin: clamp(2.5rem, 5vw, 4.5rem) auto 0;
  padding-block: 12px;
}
.nf-h-hero-card {
  --tilt: 0deg;
  flex: 0 0 21.5%; margin-inline: -0.75%;
  aspect-ratio: 7 / 10;
  transform: translateY(var(--nf-rise, 0px)) rotate(calc(var(--tilt) + var(--nf-tilt-extra, 0deg)));
  box-shadow: 0 30px 60px -30px var(--bg-subtle);
}
.nf-h-hero-card--1 { --tilt: -4deg; z-index: 1; margin-top: 10px; }
.nf-h-hero-card--2 { --tilt: 3deg;  z-index: 2; }
.nf-h-hero-card--3 { --tilt: -1deg; z-index: 4; }
.nf-h-hero-card--4 { --tilt: 3deg;  z-index: 3; }
.nf-h-hero-card--5 { --tilt: 4deg;  z-index: 2; margin-top: 10px; }
.nf-h-hero-stat {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(16px, 1.8vw, 24px);
}
.nf-h-hero-stat-title {
  margin: 0;
  font-family: var(--font-display); font-size: var(--text-subheading); font-weight: 600;
  line-height: 1.12; letter-spacing: -0.02em; color: var(--fg-strong);
}
.nf-h-hero-stat-foot {
  display: flex; flex-direction: column; gap: 6px; margin: 0;
}
.nf-h-hero-stat-strong {
  padding-bottom: 8px; border-bottom: 1px solid var(--border-strong);
  font-size: var(--text-sm); font-weight: 600; color: var(--fg-1);
}
.nf-h-hero-stat-detail { font-size: var(--text-sm); line-height: 1.35; color: var(--fg-3); }
.nf-h-hero-stat--accent { background: var(--accent); border-color: var(--accent); }
.nf-h-hero-stat--accent .nf-h-hero-stat-title,
.nf-h-hero-stat--accent .nf-h-hero-stat-strong { color: var(--on-accent); }
.nf-h-hero-stat--accent .nf-h-hero-stat-strong { border-bottom-color: color-mix(in srgb, var(--on-accent) 35%, transparent); }
.nf-h-hero-stat--accent .nf-h-hero-stat-detail { color: color-mix(in srgb, var(--on-accent) 78%, transparent); }

@media (max-width: 1080px) {
  .nf-h-hero-card:not(.is-medium) { display: none; }
  .nf-h-hero-card { flex-basis: 31%; margin-inline: -1%; }
  .nf-h-hero-row { width: min(100%, 760px); }
}
@media (max-width: 759px) {
  .nf-h-hero-actions { flex-direction: column; width: 100%; }
  .nf-h-hero-actions .nf-h-btn { width: 100%; }
  .nf-h-hero-card:not(.is-compact) { display: none; }
  .nf-h-hero-card { flex-basis: 49%; margin-inline: -1%; }
  .nf-h-hero-card--2 { --tilt: -3deg; }
  .nf-h-hero-card--3 { --tilt: 2deg; }
  .nf-h-hero-row { margin-top: 3rem; }
}

/* --- Differentiators (fabrica-04-benefits) --------------------------- */
.nf-h-diff { background: var(--bg); }
.nf-h-diff-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  align-items: start;
}
.nf-h-diff-label { grid-column: 1 / -1; grid-row: 1; }
.nf-h-diff-title { grid-column: 1 / -1; grid-row: 2; margin: 16px 0 0; }
.nf-h-diff-media {
  grid-column: 1 / 5; grid-row: 3; margin-top: clamp(2.5rem, 5vw, 4rem);
  aspect-ratio: 3 / 5;
  position: sticky; top: 96px;
}
.nf-h-diff-media .nf-h-frame-img { object-position: left 40%; }
.nf-h-diff-body { grid-column: 6 / 13; grid-row: 3; margin-top: clamp(2.5rem, 5vw, 4rem); }
.nf-h-diff-cards {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  margin-top: var(--space-stack) !important;
}
.nf-h-contrast { display: flex; flex-direction: column; }
.nf-h-contrast-head { display: flex; align-items: flex-start; gap: 16px; }
.nf-h-contrast-title {
  margin: 0; padding-top: 2px;
  font-family: var(--font-display); font-size: var(--text-subheading); font-weight: 600;
  line-height: 1.15; letter-spacing: -0.015em; color: var(--fg-strong);
}
.nf-h-contrast-body {
  margin: 18px 0 0; font-size: var(--text-base); line-height: 1.55; color: var(--fg-3);
}
.nf-h-contrast-others {
  margin: auto 0 0; padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: var(--text-sm); line-height: 1.5; color: var(--fg-3);
}
.nf-h-contrast-body + .nf-h-contrast-others { margin-top: 18px; }
.nf-h-others-label { font-weight: 600; color: var(--fg-accent); }
@media (max-width: 1080px) {
  .nf-h-diff-media { grid-column: 1 / 6; grid-row: 3; }
  .nf-h-diff-body { grid-column: 6 / 13; grid-row: 3; }
  .nf-h-diff-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 759px) {
  .nf-h-diff-grid { display: block; }
  .nf-h-diff-title { margin-top: 16px; }
  .nf-h-diff-media { position: relative; top: auto; aspect-ratio: 7 / 5; margin-top: 2rem; }
  .nf-h-diff-body { margin-top: 2rem; }
  .nf-h-slot { width: 44px; height: 44px; }
}

/* --- Evidence browser -----------------------------------------------
   The Temper product page's viewer: a column of tabs, each with its line
   always in view, beside one screen. All five screens share one grid cell;
   only the selected one is visible, so a switch never waits on a download.
   Below the expanded width the tabs become a sideways row of labels and
   the line moves under the screen. */
.nf-h-ev { background: var(--bg-subtle); border-top: 1px solid var(--border-subtle); }
.nf-h-ev-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.nf-h-ev-title {
  margin: 16px 0 0;
  font-size: var(--text-display); line-height: 1.02; letter-spacing: -0.04em;
}
.nf-h-ev-show {
  display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 24px; align-items: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.nf-h-ev-tabs { position: relative; display: flex; flex-direction: column; gap: 4px; }
.nf-h-ev-tab {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 18px; text-align: left; cursor: pointer;
  font: inherit; color: var(--fg-3);
  background: transparent; border: 1px solid transparent; border-radius: var(--radius-md);
  transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out), color 180ms var(--ease-out);
}
.nf-h-ev-tab-label {
  font-family: var(--font-display); font-size: var(--text-base); font-weight: 600;
  line-height: 1.3; white-space: nowrap;
}
.nf-h-ev-tab-line { font-size: var(--text-sm); line-height: 1.5; color: var(--fg-faint); }
.nf-h-ev-tab[aria-selected="true"] {
  background: var(--surface); border-color: var(--border-strong); color: var(--fg-strong);
}
.nf-h-ev-tab[aria-selected="true"] .nf-h-ev-tab-line { color: var(--fg-3); }
.nf-h-ev-tab:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .nf-h-ev-tab[aria-selected="false"]:hover { color: var(--fg-1); }
}
.nf-h-ev-panel { min-width: 0; text-align: center; }
.nf-h-ev-screen {
  display: grid; width: 100%;
  box-shadow: 0 30px 80px -40px var(--bg-subtle);
}
.nf-h-ev-img {
  grid-area: 1 / 1; display: block; width: 100%; height: auto;
  opacity: 0; visibility: hidden;
}
.nf-h-ev-img.is-active { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: no-preference) {
  .nf-h-ev-img { transition: opacity 200ms var(--ease-out), visibility 0s linear 200ms; }
  .nf-h-ev-img.is-active { transition: opacity 200ms var(--ease-out), visibility 0s; }
}
.nf-h-ev-full, .nf-h-ev-text { display: none; }
.nf-h-ev-panel-title {
  margin: 0; text-wrap: balance;
  font-family: var(--font-display); font-size: var(--text-subheading); font-weight: 600;
  line-height: 1.3; color: var(--fg-strong);
}
@media (prefers-reduced-motion: no-preference) {
  .nf-h-ev-panel-title { animation: nf-h-fade 180ms var(--ease-out); }
}
@keyframes nf-h-fade { from { opacity: 0; } to { opacity: 1; } }
.nf-h-ev-panel-detail { margin: 8px 0 0; font-size: var(--text-base); color: var(--fg-3); }
.nf-h-ev-foot {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 20px; margin-top: clamp(2rem, 4vw, 3rem);
}
.nf-h-ev-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.nf-h-ev-arrows { display: flex; gap: 8px; }
@media (max-width: 1080px) {
  .nf-h-ev-show { display: block; }
  .nf-h-ev-tabs {
    flex-direction: row; gap: 8px; overflow-x: auto;
    margin: 0 calc(-1 * var(--gutter)) 16px;
    padding: 2px var(--gutter) 4px;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .nf-h-ev-tabs::-webkit-scrollbar { display: none; }
  .nf-h-ev-tab {
    flex: 0 0 auto; justify-content: center; min-height: 48px; padding: 10px 16px;
    border-color: var(--border-subtle);
  }
  .nf-h-ev-tab[aria-selected="true"] { border-color: var(--accent); }
  .nf-h-ev-tab-label { font-size: var(--text-sm); }
  .nf-h-ev-tab-line { display: none; }
  .nf-h-ev-full {
    display: inline-block; margin-top: 12px; padding: 12px 0;
    font-size: var(--text-sm);
  }
  .nf-h-ev-text { display: block; max-width: 40em; margin: 12px auto 0; }
  .nf-h-ev-foot { margin-top: 24px; }
}
@media (max-width: 759px) {
  .nf-h-ev-actions { flex-direction: column; width: 100%; }
  .nf-h-ev-actions .nf-h-btn { width: 100%; }
}

/* --- Capabilities (ritovex-10-articles) ------------------------------ */
.nf-h-cap { background: var(--bg); }
.nf-h-cap-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 24px;
}
.nf-h-cap-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  margin-top: clamp(2.5rem, 5vw, 4rem) !important;
}
.nf-h-cap-card { display: flex; flex-direction: column; }
.nf-h-cap-media {
  aspect-ratio: 7 / 5;
  border-bottom-left-radius: 0; border-bottom-right-radius: 0;
}
.nf-h-cap-panel {
  flex: 1;
  padding: var(--space-stack);
  background: var(--surface);
  border: 1px solid var(--border-subtle); border-top: 0;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.nf-h-cap-title {
  margin: 18px 0 0; padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-display); font-size: var(--text-subheading); font-weight: 600;
  line-height: 1.2; letter-spacing: -0.015em; color: var(--fg-strong);
}
.nf-h-cap-body { margin: 10px 0 0; font-size: var(--text-base); line-height: 1.55; color: var(--fg-3); }
.nf-h-cap-cta-end { display: none; }
@media (max-width: 1080px) {
  .nf-h-cap-grid { gap: 16px; }
}
@media (max-width: 759px) {
  .nf-h-cap-head { flex-direction: column; align-items: center; text-align: center; }
  .nf-h-cap-head > div { width: 100%; }
  .nf-h-cap-cta { display: none; }
  .nf-h-cap-cta-end { display: flex; width: 100%; margin-top: 32px; }
  .nf-h-cap-grid { grid-template-columns: minmax(0, 1fr); }
  .nf-h-cap-media { aspect-ratio: 2 / 1; }
}

/* --- Why trust NorForge (fabrica-09-metrics-approach) ---------------- */
.nf-h-trust { background: var(--bg); border-top: 1px solid var(--border-subtle); }
.nf-h-trust-title { margin: 0; }
.nf-h-trust-pillars {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 24px;
  margin-top: clamp(2.5rem, 5vw, 4rem) !important;
}
.nf-h-pillar-title {
  margin: 20px 0 0;
  font-family: var(--font-display); font-size: var(--text-subheading); font-weight: 600;
  line-height: 1.2; letter-spacing: -0.015em; color: var(--fg-strong);
}
.nf-h-pillar-body { margin: 10px 0 0; font-size: var(--text-sm); line-height: 1.6; color: var(--fg-3); }
.nf-h-trust .nf-h-rule { margin-block: clamp(3rem, 6vw, 5rem); }
.nf-h-trust-row {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 24px;
}
.nf-h-trust-aside { grid-column: 1 / 4; }
.nf-h-trust-board { margin: 12px 0 0; font-size: var(--text-sm); line-height: 1.6; color: var(--fg-3); }
.nf-h-trust-main { grid-column: 4 / 13; }
.nf-h-trust-statement {
  margin: 0;
  font-family: var(--font-display); font-size: var(--text-heading); font-weight: 600;
  line-height: 1.14; letter-spacing: -0.025em; color: var(--fg-strong);
  text-wrap: balance;
}
.nf-h-statement-link {
  color: inherit; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 0.14em; text-decoration-color: var(--border-strong);
  transition: color 150ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nf-h-statement-link:hover { color: var(--fg-accent); text-decoration-color: currentColor; }
}
.nf-h-trust-logos {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.nf-h-trust-logo { display: inline-flex; align-items: center; min-height: 44px; border-radius: var(--radius-sm); }
.nf-h-trust-logo img { display: block; }
.nf-h-trust-main > .nf-h-btn { margin-top: clamp(2rem, 4vw, 3rem); }
@media (max-width: 1080px) {
  .nf-h-trust-pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nf-h-trust-aside, .nf-h-trust-main { grid-column: 1 / -1; }
}
@media (max-width: 759px) {
  .nf-h-trust-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .nf-h-trust-pillars > :last-child { grid-column: 1 / -1; }
  .nf-h-trust-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .nf-h-trust-main > .nf-h-btn { width: 100%; }
}
@media (max-width: 420px) {
  .nf-h-trust-pillars { grid-template-columns: minmax(0, 1fr); }
}

/* --- Closing band (vistal-09-cta) ------------------------------------ */
.nf-h-close {
  position: relative; overflow: clip;
  display: flex; align-items: center;
  min-height: min(42vw, 680px);
  padding-block: var(--space-section);
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
}
.nf-h-close-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 0; pointer-events: none;
}
.nf-h-close-cube {
  position: absolute; inset: 0 50% 0 0; z-index: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  perspective: 750px; opacity: 0.55;
  --cube: clamp(200px, 30vmin, 360px);
}
.nf-h-cube { width: var(--cube); height: var(--cube); }
.nf-h-close-scrim {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%,
    color-mix(in srgb, var(--bg-subtle) 45%, transparent) 38%,
    color-mix(in srgb, var(--bg-subtle) 82%, transparent) 70%);
}
.nf-h-close-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  align-items: start;
}
.nf-h-close-main { grid-column: 5 / 13; }
.nf-h-close-title {
  margin: 0;
  font-size: var(--text-display); line-height: 1.02; letter-spacing: -0.04em;
}
.nf-h-close-main > div { margin-top: 36px; }
@media (max-width: 1080px) {
  .nf-h-close-main { grid-column: 1 / 11; }
  .nf-h-close-cube { inset: 0; justify-content: flex-start; padding-left: 4%; }
}
@media (max-width: 759px) {
  .nf-h-close { min-height: 0; }
  .nf-h-close-inner { display: block; }
  .nf-h-close-cube { --cube: clamp(150px, 50vw, 240px); justify-content: center; align-items: flex-start; padding: 24px 0 0; opacity: 0.35; }
  .nf-h-close-scrim { background: color-mix(in srgb, var(--bg-subtle) 60%, transparent); }
  .nf-h-close-main > div .nf-h-btn { width: 100%; }
}

/* Footer row: the three zones (brand / link columns / offices) flow as one
   grid row on desktop, the offices pair hugging the right edge. Below
   1000px the zones stack — the pair is too wide to share a row with the
   centered link columns and the brand track starts strangling — and the
   offices left-hug to match every other stacked footer row. On phones the
   pair's inline addresses turn into two equal columns with the divider
   centered. ft.offices/ft.inner ship as INLINE styles, so these overrides
   need !important to win the cascade at all. */
@media (max-width: 1000px) {
  .nf-footer-inner { grid-template-columns: 1fr !important; }
  .nf-footer-offices { justify-self: start !important; }
}

@media (max-width: 640px) {
  .nf-footer-offices {
    display: grid !important;
    grid-template-columns: 1fr 2px 1fr !important;
    gap: 20px !important;
    justify-items: stretch;
  }
}

/* ============================================================
   TEMPER GUIDE (/temper)
   The guide styles itself (its scoped stylesheet, Layout guideCss); the
   site only tells it how tall the sticky header is, so the guide's sticky
   chapter list stays below it.
   ============================================================ */
.nf-temper-guide { --temper-guide-top: 60px; }

/* The guide's version menu (Worker-written, src/early-access/core.js
   versionMenu): a <details> list of links in the header's extras slot,
   left of Contact us; below 900px beside the menu button, the word
   "Version" left out. Works as plain links without JS. Empty in a static
   build, where the slot takes no room. */
.nf-nav-extras { display: flex; align-items: center; flex-shrink: 0; }
.nf-nav-extras:empty { display: none; }
@media (max-width: 1080px) {
  .nf-nav-extras { margin-left: auto; }
  .nf-nav-extras:not(:empty) ~ .nf-nav-burger { margin-left: 0 !important; }
  .nf-guide-versions-word { display: none; }
}
.nf-guide-versions { position: relative; font-family: var(--font-ui); font-size: 13px; }
.nf-guide-versions > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 4px;
  color: var(--fg-1); background: var(--iron-800);
}
.nf-guide-versions > summary::-webkit-details-marker { display: none; }
.nf-guide-versions > summary::after {
  content: ''; width: 6px; height: 6px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.nf-guide-versions[open] > summary::after { margin-top: 3px; transform: rotate(-135deg); }
.nf-guide-versions > summary:hover { border-color: var(--accent); }
.nf-guide-versions > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nf-guide-versions ul {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; margin: 0; padding: 6px;
  list-style: none; background: var(--iron-700); border: 1px solid var(--border-subtle); border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.nf-guide-versions a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 10px; border-radius: 4px; color: var(--fg-1); text-decoration: none;
  font-family: var(--font-mono); font-size: 13px;
}
.nf-guide-versions a:hover, .nf-guide-versions a:focus-visible { background: var(--iron-600); }
.nf-guide-versions a[aria-current="page"] { color: var(--accent); }
.nf-guide-versions-tag {
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--iron-250);
}
