/* VENDORED from base.nivk.com src/client/logo/logo-tokens.css (c1f7240). Do not edit here. */
/* PLAN-LOGO-MOTION-16: the logo's material colours, in one place (gate:brand skips this file only).
   They are measured from the clay renders, not invented: Nivk green is the panel of the official
   logo artwork; the clay ramps are the lit-to-shaded tones of the white and black masters. */
:root {
  --nivk-green: #0f2015;                 /* sampled from the official logo artwork's background */

  /* White clay, lit → shaded (the pixel tiles before they melt into the real letters). */
  --clay-white-1: #ffffff;
  --clay-white-2: #f7f8f7;
  --clay-white-3: #e4e8e5;
  --clay-white-4: #c9cfcb;
  --clay-white-occlusion: rgba(24, 40, 30, .22);

  /* Black clay, lit → shaded. */
  --clay-black-1: #6b6b6b;
  --clay-black-2: #2c2c2c;
  --clay-black-3: #111111;
  --clay-black-4: #000000;
  --clay-black-ink: #161616;             /* typed ".com" on paper (dotcom/) */

  /* The ".com" dot: one clay pixel in the brand emerald (accent ramp), lighter on dark surfaces.
     Restored 03-11 for the typed ".com" (owner: "same style as the bdr emails"). */
  --clay-dot-dark-1: #eaf7f0;            /* accent-50 */
  --clay-dot-dark-2: #9cd8bb;            /* accent-200 */
  --clay-dot-dark-3: #63bf96;            /* accent-300 */
  --clay-dot-dark-4: #2ba478;            /* accent-400 */
  --clay-dot-light-1: #cdebdb;           /* accent-100 */
  --clay-dot-light-2: #2ba478;           /* accent-400 */
  --clay-dot-light-3: #0e8a5f;           /* accent-500 */
  --clay-dot-light-4: #075a40;           /* accent-700 */
  --clay-dot-occlusion: rgba(7, 60, 40, .35);

  /* Motion lab surfaces (dev only). */
  --lab-paper: #fbfaf7;
  --lab-fg-dark: #e8efe9;
  --lab-fg-light: #17201a;
  --lab-accent: #63bf96;
}

/* VENDORED from base.nivk.com src/client/logo/nivk-logo.css (c1f7240). Do not edit here. */

/* PLAN-LOGO-MOTION-16: the clay NIVK launch. Only transform + opacity animate.
   Rest state (no animation, reduced motion, print, data-state=rest) = the official logo; ".com" is
   dotcom/ (Part B).
   Sizes scale with --nl-h; inside the mark 1em = 1% of the logo height. */

.nl {
  --nl-h: 92px;
  --nl-spring: cubic-bezier(.2, .9, .25, 1.15);
  display: inline-flex; align-items: flex-end; gap: 0;  /* ".com" owns its gap to the K (DotCom) */
  direction: ltr;                  /* a right-to-left page must not put ".com" before NIVK */
  line-height: 1; vertical-align: middle;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
/* A damped spring (stiffness 260, damping 18), sampled; engines without linear() keep the bezier. */
@supports (animation-timing-function: linear(0, 1)) {
  .nl { --nl-spring: linear(0, .089 3.2%, .328 7.4%, .617 12.4%, .866 17.5%, 1.04 22.8%, 1.12 27.4%, 1.135 31.3%, 1.108 36.1%, 1.041 43.4%, .99 51.5%, .976 58.5%, .989 67%, 1.003 78%, 1); }
}
.nl-mark { position: relative; display: block; flex: none; height: var(--nl-h); font-size: calc(var(--nl-h) / 100); }
.nl-l { position: absolute; top: 0; height: 100%; transform-origin: 50% 100%; }
.nl-cells, .nl-ktiles, .nl-wave { position: absolute; inset: 0; }
/* The clay covers the whole mark (whole-mark canvases), placed back from inside the letter box. */
.nl-clay { position: absolute; top: 0; bottom: 0; left: var(--img-x); width: var(--img-w); transform-origin: var(--ox) 100%; }
.nl-body { position: absolute; inset: 0; width: 100%; height: 100%; display: block; max-width: none; pointer-events: none; -webkit-user-drag: none; }
.nl-restimg { display: block; height: var(--nl-h); width: auto; }
.nl-text { font: 800 calc(var(--nl-h) * .9) / 1 var(--font-sans, system-ui, sans-serif); letter-spacing: .02em; }
.nl-white .nl-text { color: #fff; }
.nl-black .nl-text { color: var(--clay-black-3); }

/* ---- The clay pixel: one rounded tile in the logo's own material (top-left light, soft occlusion). */
.nl-cell, .nl-kt { position: absolute; box-sizing: border-box; border-radius: 2.4em; }
.nl-white :is(.nl-cell, .nl-kt) {
  background: radial-gradient(120% 110% at 26% 18%, var(--clay-white-1) 0%, var(--clay-white-2) 34%, var(--clay-white-3) 70%, var(--clay-white-4) 100%);
  box-shadow: inset -.5em -.7em 1.1em var(--clay-white-occlusion), inset .4em .5em .8em rgba(255, 255, 255, .95), 0 .8em 1.6em rgba(0, 0, 0, .28);
}
/* Black tiles cast no shadow: on paper a drop shadow reads as grey slabs beside the letters (and the
   master has no cast shadow either). PLAN-LOGO-BLACK-16 phase 6. */
.nl-black :is(.nl-cell, .nl-kt) {
  background: radial-gradient(120% 110% at 26% 18%, var(--clay-black-1) 0%, var(--clay-black-2) 30%, var(--clay-black-3) 68%, var(--clay-black-4) 100%);
  box-shadow: inset -.5em -.7em 1.1em rgba(0, 0, 0, .5), inset .4em .5em .8em rgba(255, 255, 255, .22);
}
.nl-cell { transform: scale(.86); }                 /* gaps between pixels: the grid stays visible */
.nl-kt { border-radius: 3.2em; }

/* ---- Light: a shade the letters land in (white clay only: white can't get whiter), and a band. */
/* Both sit on the letter's own box inside the whole-mark clay; their whole-mark masks are scaled up by
   --k and shifted so the letter's part lines up. */
.nl-shade, .nl-sweep {
  position: absolute; top: 0; bottom: 0; left: var(--lb-x); width: var(--lb-w); pointer-events: none;
  mask-size: calc(var(--k) * 100%) 100%; -webkit-mask-size: calc(var(--k) * 100%) 100%;
  mask-position: var(--mask-pos) 0; -webkit-mask-position: var(--mask-pos) 0;
  mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat;
}
.nl-shade { background: rgba(8, 20, 12, .10); opacity: 0; }
.nl-sweep { overflow: hidden; }
.nl-band {
  /* --band-x/--band-w are relative to the mark (lockupBand); the sweep box is the letter, so scale. */
  position: absolute; top: 0; bottom: 0; left: calc(var(--band-x) * var(--k) - var(--kl)); width: calc(var(--band-w) * var(--k));
  background: linear-gradient(104deg, transparent 0%, transparent 38%, rgba(255, 255, 255, .55) 46%, #fff 50%, rgba(255, 255, 255, .55) 54%, transparent 62%, transparent 100%);
  transform: translateX(-110%);
}
.nl-black .nl-band { background: linear-gradient(104deg, transparent 0%, transparent 40%, rgba(255, 255, 255, .35) 47%, rgba(255, 255, 255, .8) 50%, rgba(255, 255, 255, .35) 53%, transparent 60%, transparent 100%); }

/* Rest: pixel layers gone. */
.nl-cells, .nl-ktiles { opacity: 0; }

/* Until every layer has arrived the box stays empty, in every mode (launch, reduced motion, ?logo=off):
   a logo must never assemble itself letter by letter as files trickle in. "late" = the launch's moment
   has passed; when the layers are in, the whole logo fades in once at rest (data-arrived). */
.nl:is([data-state="wait"], [data-state="late"]) > :is(.nl-mark, .nl-dc) { opacity: 0; }
.nl[data-arrived] { animation: nl-in 240ms ease-out backwards; }

/* ---- Touch: the clay press (D6). Plain :active, so no JS per frame. */
/* Only a letter's own box takes the press: its clay, shade and sweep are whole-mark canvases that
   overflow the box, so without this the topmost letter (K) caught every press on the logo. */
.nl-press .nl-l * { pointer-events: none; }
.nl-press .nl-l { transition: transform 260ms var(--nl-spring); }
.nl-press .nl-l:active { transform: scale(1.05, .93); transition: transform 90ms cubic-bezier(.3, 0, .2, 1); }

/* =====================================================================================
   Launch. Runs while data-state is wait (paused) or go, unless reduced motion, print,
   or the gate set data-logo-rest. data-state=rest (layers too slow) = no launch at all.
   ===================================================================================== */
/* Every launch animation fills BACKWARDS only: it holds its first frame until it starts, and once it
   ends the element's own rest style applies. Each one ends exactly on that rest style, so nothing jumps;
   and a finished "forwards"/"both" animation would keep its element on a GPU layer, which renders the
   resting logo slightly differently from a still one (measured: up to 63/255 on edges in Chromium and
   Firefox). Checked by stress.mjs ("played-out = still"). */
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-logo-rest]) .nl:is([data-state="wait"], [data-state="go"]) {
    /* Stage 1: pixels light up in diagonal waves, hard steps like a pixel display. */
    /* Stepped animations use jump-start: the last step lands early, never "just before the end" (Chrome
       can finish a jump-end animation a hair short of progress 1 and hold the second-to-last step). */
    /* visibility is discrete: no compositor layer per wave (opacity made one each), just one tiny
       repaint when a wave switches on. */
    .nl-wave { animation: nl-pixel-on 1ms linear var(--d) backwards; }
    /* Stage 2: the clay comes in fully first, then the pixels under it leave (no ghost frames). */
    .nl-cells { animation: nl-out 160ms linear calc(var(--melt) + 150ms) backwards; }
    .nl-clay { animation: nl-land 640ms var(--nl-spring) var(--melt) backwards, nl-in 170ms linear var(--melt) backwards; }
    /* Stage 3: K blocks slide one cell on the grid, then the whole K clicks into its seat. */
    .nl-kt { animation: nl-kt-in var(--dur) steps(4, jump-start) var(--d) backwards; }
    .nl-ktiles { animation: nl-click 110ms cubic-bezier(.3, 0, .2, 1) var(--click) backwards, nl-out 160ms linear calc(var(--melt) + 150ms) backwards; }
    /* Stage 4: the letters land a little in shade; light reaches each one as the band passes. */
    .nl-shade { animation: nl-out 300ms ease-out calc(var(--sweep) + var(--lx) * var(--sweep-dur) / 120) backwards; }
    .nl-band { animation: nl-sweep var(--sweep-dur) cubic-bezier(.45, .05, .25, 1) var(--sweep) backwards; }
  }
  /* The K doesn't melt in the full launch: it is already pixels. The short launch has no pixels. */
  :root:not([data-logo-rest]) .nl-full:is([data-state="wait"], [data-state="go"]) .nl-K .nl-clay { animation: nl-in 170ms linear var(--melt) backwards; }
  /* Black on paper: half-transparent black is grey, so leaving pixels would show as grey squares
     outside the letters. They switch off in one step instead, the moment the clay is fully in. */
  :root:not([data-logo-rest]) .nl-black:is([data-state="wait"], [data-state="go"]) .nl-cells { animation-timing-function: steps(1, jump-start); }
  :root:not([data-logo-rest]) .nl-black:is([data-state="wait"], [data-state="go"]) .nl-ktiles { animation-timing-function: cubic-bezier(.3, 0, .2, 1), steps(1, jump-start); }
  /* Likewise the black clay arrives in one step (the squash carries the motion), never through grey. */
  :root:not([data-logo-rest]) .nl-black:is([data-state="wait"], [data-state="go"]) .nl-clay { animation-timing-function: var(--nl-spring), steps(1, jump-start); }
  :root:not([data-logo-rest]) .nl-black.nl-full:is([data-state="wait"], [data-state="go"]) .nl-K .nl-clay { animation-timing-function: steps(1, jump-start); }
  /* Waiting for layers, or the tab isn't visible yet: everything holds its first frame. */
  .nl[data-state="wait"] *, .nl[data-state="wait"] *::after,
  :root[data-logo-hidden] .nl *, :root[data-logo-hidden] .nl *::after { animation-play-state: paused !important; }

  /* Busy (the Google redirect is on its way): the four letters breathe in turn until the page leaves. */
  .nl[data-busy] .nl-l { animation: nl-breathe 1200ms ease-in-out calc(var(--i) * 150ms) infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .nl[data-busy] .nl-l { animation: nl-dim 1600ms ease-in-out calc(var(--i) * 200ms) infinite; }
  .nl-press .nl-l, .nl-press .nl-l:active { transition: none; transform: none; }
}

@keyframes nl-pixel-on { from { visibility: hidden; } to { visibility: visible; } }   /* a pixel switching on */
@keyframes nl-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes nl-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes nl-land { from { transform: scale(1.1, .8); } to { transform: none; } }
@keyframes nl-kt-in { from { opacity: 0; transform: translateX(var(--fx)); } 25% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes nl-click { 0% { transform: none; } 45% { transform: translateY(2.2%) scale(1.012, .985); } 100% { transform: none; } }
@keyframes nl-sweep { from { transform: translateX(-110%); } to { transform: translateX(110%); } }
@keyframes nl-breathe { 0%, 100% { transform: none; } 40% { transform: scale(1.035, .955); } 70% { transform: scale(.99, 1.015); } }
@keyframes nl-dim { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* Forced colours: the clay images stay; ".com" follows the system text colour. */
@media (forced-colors: active) {
  .nl-band, .nl-shade { display: none; }
}
@media print {
  .nl, .nl *, .nl *::after { animation: none !important; transition: none !important; }
  .nl > :is(.nl-mark, .nl-dc) { opacity: 1 !important; }   /* paper gets the logo, loaded or not */
  .nl-cells, .nl-ktiles, .nl-band, .nl-shade { display: none; }
}

/* VENDORED from base.nivk.com src/client/logo/dotcom/dotcom.css (c1f7240). Do not edit here. */
/* PLAN-LOGO-MOTION-16 Part B: the typed ".com", the default look (markup.ts dotcomHTML). The clay look
   lives in dotcom-clay.css; nivk.com ships only this file. */
/* =====================================================================================
   Typed ".com" (the default look, DotCom look="typed"): the style of the bdr emails' logo
   (owner 03-11). Bold sans a third of the logo's height, sitting on the clay's baseline, after one
   emerald clay pixel. Same motion as the email GIF: the pixel pops in on hard steps as the K clicks,
   then c · o · m type on behind a pixel caret that blinks twice. Only opacity and transform animate.
   ===================================================================================== */
/* The ".com"'s own font: Onest 700 with only ". c o m" (776 bytes, scripts/logo/com-font.py), so a
   page's fonts never change the logo. block: never shown in a fallback face (it's tiny, preloaded). */
@font-face {
  font-family: "Nivk Logo Com"; font-style: normal; font-weight: 700; font-display: block;
  src: url(/assets/brand/nivk/logo/nl-com.woff2?v=7a0d459747) format("woff2");
}
.nl-dc-typed {
  position: relative; flex: none; display: inline-flex; align-items: baseline; height: auto;
  font-family: "Nivk Logo Com", 'Onest', system-ui, sans-serif; font-weight: 700;
  font-size: calc(var(--nl-h) * .36); line-height: 1; letter-spacing: -.015em;
  /* The gap to the K scales with the logo but never drops under 4 px: at navbar sizes (22-35 px)
     .07 of the height is 1.5-2.4 px and ".com" read as jammed into the K (owner, 03-11). */
  margin-left: max(calc(var(--nl-h) * .07), 4px); margin-bottom: calc(var(--nl-h) * .015);
}
.nl-dc-typed.nl-dc-white { color: rgba(255, 255, 255, .9); }
.nl-dc-typed.nl-dc-black { color: var(--clay-black-ink); }
.nl-dc-typed .nl-dc-dot {
  display: inline-block; width: .3em; height: .3em; margin-right: .07em; border-radius: .085em;
  transform-origin: 50% 100%;
  background: radial-gradient(120% 110% at 28% 20%, var(--clay-dot-dark-1) 0%, var(--clay-dot-dark-2) 26%, var(--clay-dot-dark-3) 64%, var(--clay-dot-dark-4) 100%);
  box-shadow: inset -.03em -.04em .06em var(--clay-dot-occlusion), inset .025em .03em .04em rgba(255, 255, 255, .7), 0 .04em .08em rgba(0, 0, 0, .3);
}
.nl-dc-typed.nl-dc-black .nl-dc-dot {
  background: radial-gradient(120% 110% at 28% 20%, var(--clay-dot-light-1) 0%, var(--clay-dot-light-2) 26%, var(--clay-dot-light-3) 62%, var(--clay-dot-light-4) 100%);
}
.nl-dc-ch { position: relative; display: inline-block; transform-origin: 50% 100%; }
.nl-dc-ch::after {                                   /* the pixel caret, one per character */
  content: ""; position: absolute; left: 104%; bottom: .04em; width: .42em; height: .11em;
  background: currentColor; border-radius: .03em; opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  :root:not([data-logo-rest]) .nl:is([data-state="wait"], [data-state="go"]) .nl-dc-typed:not(.nl-dc-still) {
    /* The pixel switches on in three hard steps (fully opaque from the first, so black never greys). */
    .nl-dc-dot { animation: nl-dc-pixel 150ms steps(3, jump-start) var(--at) backwards; }
    /* Type-on, caret and blink fill BACKWARDS only: the rest state never depends on a last keyframe. */
    .nl-dc-ch { animation: nl-dc-type 40ms steps(1, jump-start) calc(var(--at) + 230ms + var(--k) * 75ms) backwards; }
    .nl-dc-ch::after { animation: nl-dc-on 75ms steps(1, jump-start) calc(var(--at) + 230ms + var(--k) * 75ms) backwards; }
    .nl-dc-ch:last-of-type::after { animation: nl-dc-blink 660ms linear calc(var(--at) + 380ms) backwards; }
  }
  /* Busy: ".com" breathes with the letters, as one object (4 letters + dot + c + o + m). */
  .nl[data-busy] .nl-dc-typed > span { animation: nl-breathe 1200ms ease-in-out calc(var(--i) * 150ms) infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .nl[data-busy] .nl-dc-typed > span { animation: nl-dim 1600ms ease-in-out calc(var(--i) * 200ms) infinite; }
}
.nl-dc-typed.nl-dc-still *, .nl-dc-typed.nl-dc-still *::after { animation: none !important; }

@keyframes nl-dc-pixel { from { opacity: 0; transform: scale(.35); } 1% { opacity: 1; transform: scale(.35); } to { opacity: 1; transform: none; } }
@keyframes nl-dc-type { from { opacity: 0; } to { opacity: 1; } }
@keyframes nl-dc-on { from { opacity: 0; } to { opacity: 1; } }
@keyframes nl-dc-blink { 0% { opacity: 0; } 1%, 24% { opacity: 1; } 26%, 49% { opacity: 0; } 51%, 74% { opacity: 1; } 76%, 100% { opacity: 0; } }

@media print { .nl-dc-typed *, .nl-dc-typed *::after { animation: none !important; } }
@media (forced-colors: active) {
  .nl-dc-typed { color: CanvasText; }
  .nl-dc-typed .nl-dc-dot { forced-color-adjust: none; background: CanvasText; box-shadow: none; }
}

/* VENDORED from base.nivk.com src/client/logo/core/site.css (c1f7240). Do not edit here. */
/* PLAN-LOGO-MOTION-SITE-16: website-only rules for the logo (site-head.ts + site.ts).
   The HTML arrives at rest, so a logo is visible without any script. Only when this visit may still
   launch (html[data-logo-play], set before the first paint) is a logo that is about to play held
   empty until site.ts boots it, so it never shows at rest first and then disappears to launch. */
:root[data-logo-play] .nl:is([data-play="header"], [data-play="hero"]):not([data-bound]) > :is(.nl-mark, .nl-dc) {
  opacity: 0;
  /* Failsafe: if the script never runs, the logo appears at rest after 2.5 s anyway. */
  animation: nl-site-failsafe 1ms linear 2.5s forwards;
}
/* A page with a hero logo launches the hero, never the header: the header shows at rest at once. */
:root[data-logo-play]:has(.nl[data-play="hero"]) .nl[data-play="header"]:not([data-bound]) > :is(.nl-mark, .nl-dc) {
  opacity: 1; animation: none;
}
@keyframes nl-site-failsafe { to { opacity: 1; } }
/* Reduced motion: site-head never sets data-logo-play then; should it be set anyway (a setting changed mid-visit), the
   logo shows at rest at once instead of waiting for the failsafe. */
@media (prefers-reduced-motion: reduce) {
  :root[data-logo-play] .nl[data-play]:not([data-bound]) > :is(.nl-mark, .nl-dc) { opacity: 1; animation: none; }
}
/* The site's home link already fades on hover; the logo inside it must not catch the link's focus ring
   offsets or select as text. */
.nl[data-play] { -webkit-user-select: none; user-select: none; }
