/* =========================================================
   NO WORRIES JUST SHAPES — site.css
   All of the site's styles (moved out of index.html as they were).
   Two filters that point at SVG filters inside index.html are set
   in a small <style> in index.html itself.
========================================================= */


:root {
  /* the "safe area" page content scrolls in (project pages, About, Contact,
     Works, the phone grids): below the title / menu row, and down to the
     pink origin line (.plate-rule.origin sits 70px up, 1.5px thick) */
  --content-top: 128px;
  --content-bottom: 72px;
  --body-line: 1.65;      /* line height of the body text — the card captions use it too */
  /* palette lifted from a developed TLC plate — pigment on thin, pink-cast paper */
  --ink: #1F2610;          /* deep olive-black — the object's darkest tone, used for text */
  --paper: #F5F4F0;        /* eggshell — warm off-white */
  --paper-hi: #FAF9F6;     /* the background's lighter middle… */
  --paper-lo: #EBE9E3;     /* …and its darker edges */
  --acid: 178, 200, 40;    /* #B2C828 — the object and the cursor trail */
  --deep: 153, 176, 26;    /* the object's fresnel-edge green (shader 'deep' 0.60,0.69,0.10) — thumbnail shadows */
  --pink: 255, 155, 178;   /* #FF9BB2 — the cursor and the origin line, a warm pink against the acid green */
  --ink-rgb: 31, 38, 16;   /* --ink as channels, for hairlines and tints */
  --magenta: 214, 51, 154; /* G2 / S2 */
  --plum: 128, 62, 112;    /* C1 / L1 */
  --vermilion: 228, 68, 26;/* G1 */
  --slate: 118, 136, 198;  /* E1 */
  --violet: 104, 82, 168;  /* H1 / M2 */
  --chip: color-mix(in srgb, var(--paper) 80%, transparent);
  /* pigment grain — fine dark-rose speckle, laid over the pink washes */
  --pigment-grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.55  0 0 0 0 0.22  0 0 0 0 0.32  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23g)'/></svg>");
  /* NO WORRIES JUST SHAPES (site <h1>) and the × button */
  --title-font: 'Kode Mono', monospace;
  /* headlines + thumbnail captions */
  --headline-font: 'Kode Mono', monospace;
  /* the big page headlines only — Liquida (Adobe Fonts), lowercase, with
     the green outline on every letter */
  --display-font: 'liquida', Georgia, serif;
  --display-scale: 1;
  --display-line: 1.44;
  --display-case: lowercase;
  --paint-initials: 1;
  /* sub-headlines (<h2>) */
  --subheadline-font: 'Kode Mono', monospace;
  /* running text and the loading line — Kode Mono Regular */
  --body-font: 'Kode Mono', monospace;
  /* menu and subtitle (Kode Mono Regular) */
  --ui-font: 'Kode Mono', monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 45%, var(--paper-hi) 0%, var(--paper) 55%, var(--paper-lo) 100%);
  color: var(--ink);
  font-family: var(--body-font);
  font-weight: 400;
  overflow: hidden;
  height: 100%;
}

/* ---- hide native cursor ---- */
html, body, body * {
  cursor: none !important;
}

/* ---- scrollbars — styled like the origin line: a soft pink hairline for
   the track and a soft pink pill for the thumb, no arrows. Scrollbars
   can't take a real blur, so the softness is built into the gradients.
   They're invisible until you scroll: site.js raises --sb-a to 1 on the
   area being scrolled and fades it back to 0 shortly after (see "scrollbars
   only while scrolling"). On phones there are no scrollbars at all. ---- */
*::-webkit-scrollbar {
  width: 14px;
  height: 14px;
  background: transparent;
}

*::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

*::-webkit-scrollbar-track:vertical {
  background: linear-gradient(
    to right,
    transparent 4.5px,
    rgba(var(--pink), calc(0.22 * var(--sb-a, 0))) 5.5px,
    rgba(var(--pink), calc(0.85 * var(--sb-a, 0))) 6.5px,
    rgba(var(--pink), calc(0.85 * var(--sb-a, 0))) 7.5px,
    rgba(var(--pink), calc(0.22 * var(--sb-a, 0))) 8.5px,
    transparent 9.5px
  );
}

*::-webkit-scrollbar-track:horizontal {
  background: linear-gradient(
    to bottom,
    transparent 4.5px,
    rgba(var(--pink), calc(0.22 * var(--sb-a, 0))) 5.5px,
    rgba(var(--pink), calc(0.85 * var(--sb-a, 0))) 6.5px,
    rgba(var(--pink), calc(0.85 * var(--sb-a, 0))) 7.5px,
    rgba(var(--pink), calc(0.22 * var(--sb-a, 0))) 8.5px,
    transparent 9.5px
  );
}

*::-webkit-scrollbar-thumb {
  border-radius: 999px;
  min-height: 40px;
  min-width: 40px;
}

*::-webkit-scrollbar-thumb:vertical {
  background: linear-gradient(
    to right,
    transparent 2.5px,
    rgba(var(--pink), calc(0.35 * var(--sb-a, 0))) 4px,
    rgba(var(--pink), calc(0.9 * var(--sb-a, 0))) 5.5px,
    rgba(var(--pink), calc(0.9 * var(--sb-a, 0))) 8.5px,
    rgba(var(--pink), calc(0.35 * var(--sb-a, 0))) 10px,
    transparent 11.5px
  );
}

*::-webkit-scrollbar-thumb:horizontal {
  background: linear-gradient(
    to bottom,
    transparent 2.5px,
    rgba(var(--pink), calc(0.35 * var(--sb-a, 0))) 4px,
    rgba(var(--pink), calc(0.9 * var(--sb-a, 0))) 5.5px,
    rgba(var(--pink), calc(0.9 * var(--sb-a, 0))) 8.5px,
    rgba(var(--pink), calc(0.35 * var(--sb-a, 0))) 10px,
    transparent 11.5px
  );
}

/* swells slightly when grabbed */
*::-webkit-scrollbar-thumb:vertical:hover,
*::-webkit-scrollbar-thumb:vertical:active {
  background: linear-gradient(
    to right,
    transparent 1.5px,
    rgba(var(--pink), calc(0.4 * var(--sb-a, 0))) 3px,
    rgba(var(--pink), calc(1 * var(--sb-a, 0))) 4.5px,
    rgba(var(--pink), calc(1 * var(--sb-a, 0))) 9.5px,
    rgba(var(--pink), calc(0.4 * var(--sb-a, 0))) 11px,
    transparent 12.5px
  );
}

*::-webkit-scrollbar-thumb:horizontal:hover,
*::-webkit-scrollbar-thumb:horizontal:active {
  background: linear-gradient(
    to bottom,
    transparent 1.5px,
    rgba(var(--pink), calc(0.4 * var(--sb-a, 0))) 3px,
    rgba(var(--pink), calc(1 * var(--sb-a, 0))) 4.5px,
    rgba(var(--pink), calc(1 * var(--sb-a, 0))) 9.5px,
    rgba(var(--pink), calc(0.4 * var(--sb-a, 0))) 11px,
    transparent 12.5px
  );
}

/* (kept inside @supports so Chrome doesn't let these override the rules above) */
@supports (-moz-appearance: none) {
  /* Firefox only allows a colour — pink, thin */
  * {
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--pink), calc(0.9 * var(--sb-a, 0))) transparent;
  }
}

/* ---- custom cursor dot ---- */
.nwjs-cursor-dot {
  position: fixed;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  /* the origin line's pink and glow (see .plate-rule), softer than the line */
  background: rgba(var(--pink), 0.85);
  box-shadow: 0 0 9px 2px rgba(var(--pink), 0.4);
  filter: blur(2.25px);
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  opacity: 0; /* hidden until the mouse first moves — never parked in a corner */
  transition: opacity 0.3s ease;
}

.nwjs-cursor-dot.is-active {
  opacity: 1;
}

/* ---- project lightbox: the cursor turns into a magnifying glass ----
   over the open image, the pink dot grows into a round loupe showing the
   image at its real 100% size, with a soft edge and a pink rim */
.nwjs-loupe {
  --loupe: 240px;
  position: fixed;
  left: 0;
  top: 0;
  width: var(--loupe);
  height: var(--loupe);
  margin: calc(var(--loupe) / -2) 0 0 calc(var(--loupe) / -2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999998;
  opacity: 0;
  transform: scale(0.067);              /* starts as big as the pink dot */
  /* slow enough to watch the dot swell into the glass (and shrink back) */
  transition:
    transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.6s ease;
}

.nwjs-loupe.is-on {
  opacity: 1;
  transform: scale(1);
}

/* the magnified image — feathered towards the rim */
.nwjs-loupe-lens {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-repeat: no-repeat;   /* past the image's edge: just the lightbox behind */
  -webkit-mask-image: radial-gradient(closest-side, #000 78%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 78%, transparent 100%);
}

/* the pink rim — the cursor's pink and glow, softly blurred like the dot */
.nwjs-loupe::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(var(--pink), 0.85);
  box-shadow: 0 0 9px 2px rgba(var(--pink), 0.4), inset 0 0 9px 2px rgba(var(--pink), 0.25);
  filter: blur(1.2px);
}

/* while the loupe is out, it IS the cursor — the dot steps aside */
html.nwjs-loupe-active .nwjs-cursor-dot {
  opacity: 0;
  transition-duration: 0.6s;   /* hands over as slowly as the glass grows */
}

@media (hover: none), (pointer: coarse) {
  .nwjs-loupe { display: none; }
}

/* touch screens have no cursor to replace — a tap shouldn't leave a pink dot behind */
@media (hover: none), (pointer: coarse) {
  .nwjs-cursor-dot {
    display: none;
  }
}

/* ---- global title ---- */
.title {
  position: fixed;
  top: 28px;
  left: 36px;
  z-index: 99999;
  margin: 0;
  padding: 0;
  color: var(--ink) !important;
  font-family: var(--title-font) !important;
  font-optical-sizing: auto;
  /* a monospace space is a full character wide, which spreads the title
     apart — tighten just the gaps between words (letters untouched).
     Negative = tighter, 0 = the font's default, positive = wider. */
  word-spacing: -0.3em;
  font-style: normal;
  font-weight: 400 !important;
  font-size: clamp(18px, 2.16vw, 28.8px) !important;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: none !important;
  pointer-events: auto;
}

h1.title .title-link {
  color: inherit;
  text-decoration: none;
  cursor: none !important;
}

/* ---- global subtitle ---- */
.subtitle {
  position: fixed;
  bottom: 28px;
  right: 36px;
  z-index: 99999;
  margin: 0;
  padding: 0;
  color: var(--ink) !important;
  font-family: var(--ui-font) !important; /* Kode Mono Regular */
  font-weight: 400 !important;
  font-size: 11px !important;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: right;
  white-space: nowrap;
  pointer-events: none;
}

/* ---- global site nav (About Us / Contact) ---- */
.nwjs-site-nav {
  /* the row is as thick as the top row (the title's height + a little air),
     centred on the title */
  --row-h: calc(clamp(18px, 2.16vw, 28.8px) + 14px);
  position: fixed;
  top: calc(28px - 7px);
  right: 0;
  height: var(--row-h);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 36px 0 26px;
  font-family: var(--ui-font); /* Kode Mono Regular */
  font-style: normal;
  font-size: 17px;               /* same size as the labels */
  line-height: 1;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  pointer-events: none;   /* only the plume itself (and, once open, the links) react */
}

.nwjs-nav-link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
  cursor: none !important;
}

.nwjs-nav-link:hover,
.nwjs-nav-link:focus-visible {
  border-color: var(--ink);
}

/* ---- desktop menu: a plume from the right edge ----
   Closed, a short plume grows in from the right edge of the window, as
   thick as the top row, with MENU on it. Hovering it lets the plume grow
   out to the left over 3 seconds — slowly, like water creeping into a
   test strip — and the menu points appear as its edge passes them.
   Leaving draws it back. Built like the wicking plumes: flat where it
   leaves the window edge, densest there, thinning toward its rounded tip. */
.nwjs-menu-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: var(--bar-closed, 120px);
  z-index: 0;
  border-radius: 999px 0 0 999px;
  background:
    linear-gradient(to left,
      hsla(346, 90%, 77%, 0.3) 0%,
      hsla(346, 90%, 77%, 0.24) 60%,
      hsla(346, 90%, 77%, 0.13) 90%,
      hsla(346, 90%, 77%, 0.03) 100%);
  filter: blur(1.3px);
  pointer-events: auto;
  cursor: none !important;
}

.nwjs-site-nav.is-open .nwjs-menu-bar {
  width: var(--bar-open, 520px);
}

/* the plume under the menu is switched off — the hover effect stays */
.nwjs-menu-bar {
  display: none !important;
}

.nwjs-menu-word {
  position: absolute;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: var(--ink);
  pointer-events: none;
}

.nwjs-site-nav.is-open .nwjs-menu-word {
  opacity: 0;
}

.nwjs-menu-items {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 26px;
  word-spacing: -0.3em;   /* tightened word gap ("ABOUT US") */
  /* revealed from the right as the plume's edge passes — same 3s curve */
  clip-path: inset(-12px -12px -12px 100%);
  pointer-events: none;
}

.nwjs-site-nav.is-open .nwjs-menu-items {
  clip-path: none;
  pointer-events: auto;
}

.nwjs-menu-items > .nwjs-nav-link {
  position: relative;
}

.nwjs-menu-items > .nwjs-nav-link:hover,
.nwjs-menu-items > .nwjs-nav-link:focus-visible {
  border-color: transparent; /* the green glaze replaces the underline */
}

/* chromatography spots — light pink blots shooting down below a hovered
   menu point. Each is built like the green hover glaze: three overlapping
   capsule strokes, slightly shifted and resized, so the outline is
   organic — but kept straight (no tilt). No hard rim: just a soft wash,
   densest at the bottom and thinning upward like the plumes. Normal
   blending, so overlaps stay light, never muddy. */
/* Modelled on the reference strips:
   - each spot is a horizontal pill (about 3–4 : 1), all the same size,
     lined up in an even column with a small gap between them
   - a pale, slightly mottled inside where the pigment pooled unevenly
   - a thin, darker rim where the wet edge dried (soft, not a hard line)
   - the colour bleeds out into a wide, soft haze around the whole column
   - the strength changes gradually along the strip */
.nwjs-chroma-spot {
  position: fixed;
  z-index: 99990;
  pointer-events: none;
  opacity: 0;
  border-radius: 999px;
  will-change: transform, opacity;
  /* layers (top → bottom): two random pigment pools (set in JS),
     the dried rim, and the pale wash inside */
  background:
    radial-gradient(ellipse var(--p1w, 30%) var(--p1h, 45%) at var(--p1x, 35%) var(--p1y, 50%), hsla(346, 62%, 74%, var(--p1a, 0.3)), hsla(346, 62%, 74%, 0) 100%),
    radial-gradient(ellipse var(--p2w, 26%) var(--p2h, 40%) at var(--p2x, 65%) var(--p2y, 55%), hsla(346, 62%, 74%, var(--p2a, 0.25)), hsla(346, 62%, 74%, 0) 100%),
    radial-gradient(ellipse farthest-side,
      hsla(346, 62%, 87%, 0.5) 0%,
      hsla(346, 62%, 84%, 0.6) 75%,
      hsla(346, 62%, 82%, 0.66) 100%);
  /* the dried rim follows the pill's own shape: a thin darker edge with a
     soft fall-off inward */
  box-shadow:
    inset 0 0 0 1.5px hsla(346, 60%, 70%, 0.7),
    inset 0 0 5px 1px hsla(346, 60%, 72%, 0.45);
}

/* a fine, feathery fringe of pigment just outside each spot's rim — the
   faint fibres where the colour crept into the paper. A thin halo ring,
   broken up by a fine noise mask so it reads as specks and threads
   rather than a line. Kept very faint. */
.nwjs-chroma-spot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 4px hsla(346, 58%, 74%, 0.32),
    0 0 2px 1px hsla(346, 58%, 76%, 0.12);
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' seed='5' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  3.2 0 0 0 -1.25'/></filter><rect width='100%25' height='100%25' filter='url(%23f)'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' seed='5' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  3.2 0 0 0 -1.25'/></filter><rect width='100%25' height='100%25' filter='url(%23f)'/></svg>");
  -webkit-mask-size: 120px 120px;
  mask-size: 120px 120px;
  -webkit-mask-position: var(--fx, 0px) var(--fy, 0px);
  mask-position: var(--fx, 0px) var(--fy, 0px);
  filter: blur(0.35px);
  pointer-events: none;
}

/* under each pink spot: a thinner plume of green, running on through the
   gaps — densest at the bottom, thinning upward like the wicking plumes */
.nwjs-chroma-under {
  position: fixed;
  z-index: 99990;          /* same layer as the spots; each one is added just before its spot, so it sits underneath */
  pointer-events: none;
  opacity: 0;
  border-radius: 999px;
  background:
    linear-gradient(to top,
      hsla(78, 70%, 46%, 0.62) 0%,
      hsla(78, 68%, 50%, 0.52) 50%,
      hsla(78, 66%, 56%, 0.3) 85%,
      hsla(78, 66%, 58%, 0.06) 100%);
  filter: blur(1.4px);
  will-change: transform, opacity;
}

/* the colour that bled out of the spots into the paper around the column */
.nwjs-chroma-haze {
  position: fixed;
  z-index: 99989;
  pointer-events: none;
  opacity: 0;
  border-radius: 999px;
  background: radial-gradient(closest-side, hsla(346, 70%, 82%, 0.5), hsla(346, 70%, 84%, 0.22) 60%, hsla(346, 70%, 84%, 0) 100%);
  filter: blur(14px);
}

/* the green glaze under the hovered point (mixes with the pink) */
.nwjs-nav-blob {
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0;
  transform: translateX(0);
  /* leaving: dries out slowly */
  transition: opacity 2.6s cubic-bezier(0.4, 0, 0.6, 1);
}

.nwjs-nav-blob.is-on {
  opacity: 1;
  /* arriving: a quick bloom */
  transition: opacity 0.35s ease;
}

/* The glaze is three overlapping strokes of green, like fresh wet paint
   put down with a brush: each lands small and spreads out a little,
   each with its own size, offset, timing and saturation (randomised
   in JS every time the glaze is laid down). Their uneven overlap is what
   makes the outline organic. Afterwards they keep drifting very slightly,
   the way wet pigment never sits quite still. */
.nwjs-nav-pigment {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(var(--acid), 0.12), rgba(var(--acid), 0) 100%),
    linear-gradient(to top,
      rgba(var(--acid), 0.3) 0%,
      rgba(var(--acid), 0.25) 60%,
      rgba(var(--acid), 0.13) 88%,
      rgba(var(--acid), 0) 100%);
  filter: blur(1.4px) saturate(var(--sat, 1));
  translate: var(--dx, 0px) var(--dy, 0px);
  scale: calc(var(--sx, 1) * 1.45) calc(var(--sy, 1) * 1.3);
}

.nwjs-nav-pigment.is-spreading {
  animation:
    nwjsPigmentSpread var(--spread, 1.4s) cubic-bezier(0.15, 0.75, 0.25, 1) both,
    nwjsPigmentDrift var(--drift, 7s) ease-in-out var(--spread, 1.4s) infinite alternate;
}

@keyframes nwjsPigmentSpread {
  from {
    translate: 0px 0px;
    scale: calc(var(--sx, 1) * 0.55) calc(var(--sy, 1) * 0.7);
    opacity: 0.3;
  }
  /* twice the growth of before (0.55 → 1.45 wide, 0.7 → 1.3 tall), same
     time — so it runs out past the word on every side */
  to {
    translate: var(--dx, 0px) var(--dy, 0px);
    scale: calc(var(--sx, 1) * 1.45) calc(var(--sy, 1) * 1.3);
    opacity: 1;
  }
}

/* the slow settle — a hair of turning, so the edges keep shifting */
@keyframes nwjsPigmentDrift {
  from { rotate: calc(var(--tilt, 0deg) * -1); }
  to   { rotate: var(--tilt, 0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .nwjs-nav-pigment.is-spreading { animation: none; }
}

.nwjs-nav-toggle {
  display: none;
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: none !important;
}

.nwjs-nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 14px;
  flex-direction: column;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 14px 18px;
  white-space: nowrap;
}

/* mobile: the open menu is a plume that runs down over the whole page,
   top to bottom, covering everything, with the menu points big and full-frame */
@media (max-width: 780px) {
  .nwjs-nav-dropdown {
    position: fixed;
    inset: 0;
    margin: 0;
    padding: 110px 20px 60px;
    border: 0;
    z-index: 0;
    justify-content: center;
    align-items: center;          /* the menu points centred */
    gap: 0.9em;                   /* an even rhythm, in step with the type size */
    font-size: clamp(22px, 7vw, 34px);
    white-space: normal;
    background: none;
  }

  /* the plume itself: the page's paper with the pink soaked into it,
     densest at the top where it starts, and a soft, wet leading edge */
  .nwjs-nav-dropdown::before {
    content: '';
    position: absolute;
    left: -40px;              /* larger than the screen, so its wandering edges stay off-screen */
    right: -40px;
    top: -40px;
    height: calc(100% + 130px);
    z-index: -1;
    background:
      linear-gradient(to bottom,
        hsla(346, 90%, 80%, 0.55) 0%,
        hsla(346, 90%, 82%, 0.42) 60%,
        hsla(346, 90%, 84%, 0.32) calc(100% - 90px),
        hsla(346, 90%, 84%, 0) 100%),
      linear-gradient(to bottom, var(--paper) calc(100% - 90px), transparent 100%);
    /* its edges wander like pigment soaking into paper */
    /* filter: set in index.html (it points at an SVG filter in that page) */
    transform: translateY(-100%);
  }

  /* closing: the whole menu dissolves from the top down */
  .nwjs-nav-dropdown.closing {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 38%, #000 62%, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, transparent 38%, #000 62%, #000 100%);
    -webkit-mask-size: 100% 260%;
    mask-size: 100% 260%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    animation: nwjsMenuDissolve 0.9s cubic-bezier(0.4, 0, 0.6, 1) forwards;
  }

  .nwjs-nav-dropdown.closing::before {
    animation: none;
    transform: translateY(0);
  }

  .nwjs-nav-dropdown.closing .nwjs-nav-link {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .nwjs-nav-dropdown.open::before {
    animation: nwjsMenuPlume 1.1s cubic-bezier(0.15, 0.7, 0.25, 1) forwards;
  }

  /* the paper's own grain on top of the plume — exactly the noise of the
     main page (same tile, same scale, same strength), unblurred, so the
     plume reads as the same paper soaked pink. It travels with the plume
     and thins out with its wet leading edge. */
  .nwjs-nav-dropdown::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: calc(100% + 90px);
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: multiply;
    opacity: 0.55;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.26  0 0 0 0 0.34  0 0 0 0 0.46  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 90px), transparent 100%);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 90px), transparent 100%);
    transform: translateY(-100%);
  }

  .nwjs-nav-dropdown.open::after {
    animation: nwjsMenuPlume 1.1s cubic-bezier(0.15, 0.7, 0.25, 1) forwards;
  }

  .nwjs-nav-dropdown.closing::after {
    animation: none;
    transform: translateY(0);
  }

  .nwjs-nav-dropdown .nwjs-nav-link {
    font-family: var(--display-font);   /* Liquida, like the headlines */
    font-size: clamp(22px, 7vw, 34px);
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    /* the same even spacing as the headlines: moderate tracking, the
       font's own pair spacing and joined forms on, and a mid-word A
       pulled in (see tightenLiquidaA) */
    letter-spacing: 0.1em;
    word-spacing: 0.12em;
    font-kerning: normal;
    font-variant-ligatures: common-ligatures contextual;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
    color: var(--ink);
    border: 0;
    opacity: 0;
    transform: translateY(-14px);
  }

  .nwjs-nav-dropdown.open .nwjs-nav-link {
    animation: nwjsMenuItemIn 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }

  .nwjs-nav-dropdown.open .nwjs-nav-link:nth-child(1) { animation-delay: 0.35s; }
  .nwjs-nav-dropdown.open .nwjs-nav-link:nth-child(2) { animation-delay: 0.45s; }
  .nwjs-nav-dropdown.open .nwjs-nav-link:nth-child(3) { animation-delay: 0.55s; }
  .nwjs-nav-dropdown.open .nwjs-nav-link:nth-child(4) { animation-delay: 0.65s; }
  .nwjs-nav-dropdown.open .nwjs-nav-link:nth-child(5) { animation-delay: 0.75s; }

  /* Instagram: set like the links on the Contact page — Kode Mono,
     regular size, underlined, with the outward arrow */
  .nwjs-nav-dropdown .nwjs-nav-link.nwjs-nav-external {
    font-family: var(--body-font);
    font-size: 14px;
    line-height: 1.65;
    text-transform: none;
    letter-spacing: 0;
    word-spacing: 0;
    margin-top: 0.4em;
  }

  .nwjs-nav-toggle {
    z-index: 1; /* stays above the open menu */
  }
}

@keyframes nwjsMenuPlume {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

@keyframes nwjsMenuDissolve {
  from { -webkit-mask-position: 0 100%; mask-position: 0 100%; }
  to   { -webkit-mask-position: 0 0;    mask-position: 0 0; }
}

@keyframes nwjsMenuItemIn {
  to { opacity: 1; transform: translateY(0); }
}

.nwjs-nav-dropdown.open {
  display: flex;
}

@media (max-width: 780px) {
  .nwjs-site-nav {
    top: 20px;
    right: 20px;
  }

  .nwjs-nav-dropdown {
    word-spacing: -0.3em;
  }

  .nwjs-menu-bar,
  .nwjs-menu-word,
  .nwjs-menu-items,
  .nwjs-nav-blob {
    display: none; /* replaced by the dropdown toggle on mobile */
  }

  .nwjs-site-nav {
    height: auto;
    padding: 0;
    pointer-events: auto;
    font-size: 14px;
    text-transform: lowercase;
    letter-spacing: 0;
  }

  /* the menu button is one of the cursor trail's chloroplasts — a soft
     green cell with a slightly darker rim. The button itself is a full
     44px tap target; the cell sits in its middle. */
  .nwjs-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    /* grown from 44px around the same centre (37px in from the top and the
       right edge), so the button doesn't move */
    margin: -9px -9px 0 0;
  }
}

.nwjs-nav-cell {
  display: block;
  width: 34px;                      /* about the close button's size */
  height: 31px;
  border-radius: 50%;
  /* a trail cell, opened up: a very light, nearly even inside and a thin
     darker rim, softly falling off */
  background: radial-gradient(closest-side,
    rgba(200, 216, 172, 0.7) 0%,    /* a muted, pale sage — not neon */
    rgba(188, 208, 158, 0.75) 80%,
    rgba(40, 139, 38, 0.95) 87%,
    rgba(29, 100, 27, 1) 90%,
    rgba(29, 100, 27, 0) 97%);
  filter: blur(1.2px);
  opacity: 0.62;                    /* see-through, like the cells in the trail */
  transform: rotate(-18deg);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.35s ease;
  /* alive, very slowly: the colour drifts between the trail's greens and
     the cell breathes up to 20% larger — on different, unrelated periods
     so the two never fall into a visible loop */
  animation:
    nwjsCellColour 23s ease-in-out infinite,
    nwjsCellBreathe 14s ease-in-out infinite;
}

.nwjs-nav-toggle[aria-expanded="true"] .nwjs-nav-cell {
  transform: rotate(-18deg) scale(1.06); /* swells a touch while the menu is open */
  opacity: 0.75;
}

/* chlorophyll green → fresh green → toward the acid yellow-green → back */
/* the × that appears on the cell while the menu is open — drawn exactly
   like the close button's × (pink, glow, soft) */
.nwjs-nav-toggle {
  position: relative;
}

/* ---- mobile menu button: the blob, in the line's pink ----
   (drawn by the 3D script into this little canvas; until it has loaded,
   or if it can't, the green cell below shows instead) */
.nwjs-nav-blob3d {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 104px;             /* the blob is ~80px */
  height: 104px;
  /* centred on the same spot as the ring × that replaces it when open */
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.nwjs-nav-toggle.has-blob .nwjs-nav-blob3d {
  opacity: 1;
}

.nwjs-nav-toggle.has-blob .nwjs-nav-cell {
  opacity: 0 !important;
  animation: none;
}

/* open: the blob shrinks away and the ring-with-× (as on the close button) takes its place */
.nwjs-nav-toggle[aria-expanded="true"] .nwjs-nav-blob3d {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2) rotate(90deg);
}

.nwjs-nav-toggle[aria-expanded="true"] .nwjs-nav-cell {
  opacity: 0 !important;
}

.nwjs-nav-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  /* the object's acid green, here (it sits on the pink plume) */
  color: rgba(var(--acid), 0.95);
  text-shadow: 0 0 6px rgba(var(--acid), 0.45);
  filter: blur(0.9px);
  font-family: var(--title-font);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  text-transform: none;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.4) rotate(-90deg);
  transition: opacity 0.35s ease 0.1s, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s;
}

.nwjs-nav-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2.25px solid rgba(var(--acid), 0.95);
  border-radius: 50%;
  box-shadow: 0 0 6px 1px rgba(var(--acid), 0.45), inset 0 0 6px 1px rgba(var(--acid), 0.3);
}

.nwjs-nav-toggle[aria-expanded="true"] .nwjs-nav-ring {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
}


@keyframes nwjsCellColour {
  0%, 100% { filter: blur(1.2px) hue-rotate(0deg) saturate(1); }
  35%      { filter: blur(1.2px) hue-rotate(-18deg) saturate(1.1); }
  65%      { filter: blur(1.2px) hue-rotate(-38deg) saturate(1.25) brightness(1.15); }
}

/* uses the separate `scale` property, so it stacks with the rotate/open-state transform */
@keyframes nwjsCellBreathe {
  0%, 100% { scale: 1; }
  50%      { scale: 1.2; }
}

@media (prefers-reduced-motion: reduce) {
  .nwjs-nav-cell { animation: none; }
}

/* ---- specimen viewer ---- */
#viewer-container {
  position: fixed;
  inset: 0;
  z-index: 1;
  /* normal blend: the acid green shows true, like the trail (multiply
     into the blue ground was turning it olive) */
  filter: drop-shadow(0 0 16px rgba(var(--acid), 0.35));
}

/* ?caps / ?lower at the end of the address: the big headlines in all
   capitals or all lowercase (lowercase is the default) */
:root.nwjs-caps {
  --display-case: uppercase;
}

:root.nwjs-lower {
  --display-case: lowercase;
}

/* speed test: open the site with ?noglow at the end of the address to see
   it without the green glow around the object (the glow is a full-screen
   blur, redone on every frame) */
html.nwjs-noglow #viewer-container {
  filter: none;
}

#viewer-container canvas {
  display: block;
  touch-action: none;
}

/* (the Lab soft-focus is switched off — so no filter at all on the canvas:
   even a 0px blur made the browser run a filter over the whole screen
   on every frame) */
#viewer-container canvas.nwjs-specimen-canvas {
  filter: none;
}


#viewer-sharp {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: none;
}

/* ---- focus curtain — dims the object while zoomed in, so the
   thumbnails/lines in front read as the actual focus ---- */
#focus-curtain {
  position: fixed;
  inset: 0;
  z-index: 2;
  background: var(--paper);
  opacity: 0;
  pointer-events: none;
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
  transition: opacity 0.5s ease, backdrop-filter 0.8s ease, -webkit-backdrop-filter 0.8s ease;
}

#focus-curtain.active,
#focus-curtain.intense,
#focus-curtain.about-intense,
#focus-curtain.works-intense {
  -webkit-backdrop-filter: blur(9px) saturate(1.15);
  backdrop-filter: blur(9px) saturate(1.15);
}

#focus-curtain.active {
  opacity: 0.6;
}

#focus-curtain.intense {
  opacity: 0.55;
}

#focus-curtain.about-intense {
  opacity: 0.85;
}

#focus-curtain.works-intense {
  opacity: 0.7;
}

/* ---- focus close button — a persistent, obvious way back out, for
   anyone who doesn't think to click the empty backdrop ---- */
.nwjs-focus-close {
  position: fixed;
  bottom: 28px;
  left: 36px;
  z-index: 99999;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 50%;
  /* the × is drawn like the line too: same pink, glow and softness */
  color: rgba(var(--pink), 0.85);
  text-shadow: 0 0 6px rgba(var(--pink), 0.4);
  filter: blur(0.9px);              /* softens ring and × together */
  font-family: var(--title-font);
  font-weight: 700;                 /* thicker stroke, to match the ring and the line */
  font-size: 24px;                  /* a touch larger — the soft pink × reads lighter than ink did */
  line-height: 1;
  padding: 0;
  cursor: none !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

/* the ring — the origin line's pink, glow and softness */
.nwjs-focus-close::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2.25px solid rgba(var(--pink), 0.85); /* about the scrollbar's weight */
  border-radius: 50%;
  box-shadow: 0 0 6px 1px rgba(var(--pink), 0.4), inset 0 0 6px 1px rgba(var(--pink), 0.25);
  pointer-events: none;
}

.nwjs-focus-close:hover,
.nwjs-focus-close:focus-visible {
  transform: scale(1.1);
}

.nwjs-focus-close.visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 780px) {
  .nwjs-focus-close {
    bottom: 20px;
    left: 20px;
  }

  /* the open menu covers everything — its own × at the top is the way out */
  body:has(.nwjs-nav-dropdown.open) .nwjs-focus-close {
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* ---- project preview — a two-column mockup (text + images) that fades
   in once the deep zoom onto the surface point settles ---- */
#project-preview {
  position: fixed;
  inset: 0;            /* still the full-screen backdrop — a click on it closes the panel */
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

#project-preview.visible {
  opacity: 1;
  pointer-events: auto;
}

/* The scrolling area: its left edge lines up with the NO WORRIES JUST
   SHAPES title, and its scrollbar sits on the right where the menu ends.
   (The scrollbar is 14px wide with its line in the middle, hence -7px.) */
.nwjs-preview-grid {
  position: absolute;
  top: var(--content-top);  /* clear gap below the title / menu row */
  bottom: var(--content-bottom);
  left: 36px;                    /* = .title left */
  right: calc(36px - 7px);       /* scrollbar line at the menu's right end */
  /* keeps the content clear of the scrollbar. The content always runs the
     full width, title edge to menu edge — on a big screen the images
     simply get bigger and the text splits into two columns (see below) */
  padding-right: 48px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); /* 2/3 images, 1/3 text */
  gap: 48px;
  align-content: start;
  overflow-y: auto;
  /* always keep the scrollbar's room, whether or not it's showing — so
     nothing jumps sideways when a page (or a fold-out) becomes scrollable */
  scrollbar-gutter: stable;
}

.nwjs-preview-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* the text column starts a little lower than the image next to it,
   so the headline doesn't sit flush on the image's top edge */
.nwjs-preview-text {
  padding-top: 40px;
}

@media (max-width: 780px) {
  .nwjs-preview-text {
    padding-top: 24px;
  }
}

.nwjs-preview-text p {
  margin: 0 0 1.1em 0;
  font-family: var(--body-font);
  font-weight: 400;
  font-size: 14px;   /* a mono runs wide — a bit smaller than the serif was */
  line-height: var(--body-line);
  color: var(--ink);
}

/* panel headline — Kode Mono Medium */
.nwjs-preview-text h1 {
  margin: 0 0 0.35em 0;
  font-family: var(--display-font);
  font-style: normal;
  font-weight: 400;
  font-size: calc(56px * var(--h1-scale, 1) * var(--display-scale, 1));   /* --h1-scale: per project, for long titles; --display-scale: per font */
  /* words are never broken apart (a too-long word makes the whole headline
     a little smaller instead — see fitHeadlines in the script) */
  overflow-wrap: normal;
  hyphens: manual;
  text-wrap: balance;             /* lines of even length — no lone word left on a line */
  line-height: var(--display-line, 1.44);   /* room for the font's tall shapes — lines no longer touch; per font: --display-line */
  /* even spacing: wide tracking (190) switched off the font's own pair
     spacing and joined forms, which left odd gaps (MESS AGE). A moderate
     tracking with the font's kerning and contextual forms kept on reads
     evenly; the word gap is widened so words stay clearly apart. */
  letter-spacing: 0.1em;
  word-spacing: 0.12em;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures contextual;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  text-transform: var(--display-case, lowercase);   /* all lowercase (written in Title Case in the project list); per font: --display-case */
  color: var(--ink);
}

/* headlines painted in the object's shader (see "HEADLINES IN THE
   OBJECT'S SHADER" at the end): the painted copy sits exactly over the
   real text, which turns invisible once the copy is up — still there to
   be found, read aloud and selected */
.nwjs-preview-text h1 {
  position: relative;
}

.nwjs-headline-paint {
  position: absolute;
  left: -10px;                     /* set by the script to its padding */
  top: -10px;
  pointer-events: none;
}

.nwjs-nav-dropdown .nwjs-nav-link:not(.nwjs-nav-external) {
  position: relative;              /* the painted copy sits over the menu point */
}

.nwjs-nav-dropdown .nwjs-nav-link.nwjs-headline-painted {
  color: transparent !important;
}

.nwjs-preview-text h1.nwjs-headline-painted {
  color: transparent;
}

/* Liquida's A carries extra room on its left — inside a word it's pulled
   in a little so it matches the spacing of the other letters (the spans
   are added by tightenLiquidaA() in the script) */
.nwjs-kern-a {
  margin-left: -0.16em;
}

/* sub-headline — Kode Mono Bold, all caps */
.nwjs-preview-text h2 {
  margin: 0 0 1.6em 0;
  font-family: var(--subheadline-font);
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

/* big screens: the text column of a project / About Us is wide enough for
   two columns of text — headline and sub-headline still run across both.
   (Contact stays one column — see below.) */
@media (min-width: 1900px) {
  .nwjs-preview-grid:not(.nwjs-contact) .nwjs-preview-text {
    display: block;              /* columns instead of the flex stack */
    column-count: 2;
    column-gap: 40px;
  }

  /* headline, sub-headline and the client / credits list run across the
     full width on top; everything after them flows through the two columns */
  .nwjs-preview-grid:not(.nwjs-contact) .nwjs-preview-text > h1,
  .nwjs-preview-grid:not(.nwjs-contact) .nwjs-preview-text > h2,
  .nwjs-preview-grid:not(.nwjs-contact) .nwjs-preview-text > .nwjs-credits:not(.nwjs-credits-after) {
    column-span: all;
  }

  /* paragraphs may continue from one column into the next, so both columns
     always come out evenly filled (never a lone line at either end);
     only a credits entry and the links stay in one piece */
  .nwjs-preview-grid:not(.nwjs-contact) .nwjs-preview-text > p {
    break-inside: auto;
    orphans: 3;
    widows: 3;
  }

  .nwjs-preview-grid:not(.nwjs-contact) .nwjs-credits > div,
  .nwjs-preview-grid:not(.nwjs-contact) .nwjs-preview-text > .nwjs-project-links {
    break-inside: avoid;
  }

  .nwjs-preview-grid:not(.nwjs-contact) .nwjs-preview-text > *:not(h1):not(h2):not(:last-child) {
    margin-bottom: max(16px, 1.1em);   /* the gap the flex stack used to give */
  }
}

/* ---- Contact ---- */
/* desktop: the same column split as About Us (2/3 coral, 1/3 text, same
   gap) — the contact text sits on the right and stays one column; the
   coral gets the full height between the menu and the bottom */
@media (min-width: 781px) {
  .nwjs-contact .nwjs-contact-face {
    height: max(280px, min(calc(100vh - 128px - 96px), 900px));
  }
}

/* the mail address — set like the About text, the names straight under it */
.nwjs-preview-text .nwjs-contact-mail-line {
  margin: 0;
}

/* desktop: Imprint and DSGVO sit at the bottom of the column */
@media (min-width: 781px) {
  .nwjs-contact .nwjs-legal {
    min-height: calc(100vh - 128px - 96px);   /* the scrolling area's height */
  }

  .nwjs-contact .nwjs-legal details:first-of-type {
    margin-top: auto;
  }
}

.nwjs-contact-info {
  margin: 0 0 2.2em 0;
  font-family: var(--body-font);
  font-style: normal;          /* <address> is italic by default */
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
}

.nwjs-contact-face {
  position: relative;
  height: min(62vh, 640px);
  min-height: 280px;
}

/* Contact: the coral's canvas and the words around it */
.nwjs-contact-canvas {
  position: fixed;          /* over the page, so the coral isn't clipped by the panel */
  z-index: 501;
  display: block;
  pointer-events: none;
}

.nwjs-contact-word {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 502;
  font-family: var(--body-font);
  font-size: 18px;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
  pointer-events: none;
  will-change: transform;
}

@media (max-width: 780px) {
  .nwjs-contact-word { font-size: 14px; }   /* phones: the coral is smaller, so are its words */
}

.nwjs-typeloop-caret {
  display: inline-block;
  width: 0.5em;
  height: 1em;
  margin-left: 1px;
  vertical-align: -0.12em;
  background: var(--ink);
  animation: nwjs-caret 1s steps(1) infinite;
}

@keyframes nwjs-caret {
  50% { opacity: 0; }
}

.nwjs-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}


@media (max-width: 780px) {

  /* the text column opens up so its parts can sit in the page's order:
     the coral, headline, sub-headline, e-mail, names and links, then
     Imprint / DSGVO — like About */
  .nwjs-contact.nwjs-preview-grid { gap: 0; }
  .nwjs-contact .nwjs-legal { display: contents; }
  .nwjs-contact .nwjs-contact-mail-line { order: 2; }
  .nwjs-contact .nwjs-contact-info { order: 3; margin-bottom: 28px; }
  /* the coral (with its words) on top, like About's picture: a box of its
     own, the headline below it. The coral is the size it would be in a 4:3
     box; the box is square, so the words have room around it inside. */
  .nwjs-contact .nwjs-contact-face {
    order: -1;
    width: 100%;
    /* square: as tall as the column is wide (screen minus the 20px margins) —
       set as a height, since a grid row doesn't grow with aspect-ratio */
    height: calc(100vw - 40px);
    min-height: 0;
  }
  .nwjs-contact .nwjs-legal details { order: 5; }
}

.nwjs-contact-mail {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
  text-transform: lowercase;     /* an address reads as an address */
  font-weight: 400;              /* like the About text; underlined on hover */
  border-bottom-color: rgba(var(--ink-rgb, 31, 38, 16), 0.35);
  cursor: none !important;
  overflow-wrap: anywhere;
}

.nwjs-contact-mail:hover,
.nwjs-contact-mail:focus-visible {
  border-color: currentColor;
}


.nwjs-legal details {
  position: relative;
}

/* the dividers — the origin line exactly: pink, glow, 0.9px blur */
.nwjs-legal details::before,
.nwjs-legal details:last-child::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: rgba(var(--pink), 0.85);
  box-shadow: 0 0 6px 1px rgba(var(--pink), 0.4);
  filter: blur(0.9px);
  pointer-events: none;
}

.nwjs-legal details::before {
  top: 0;
}

/* the dividers run on past the text, right out to the edge of the panel —
   up to the scrollbar (the panel's right padding: 48px, 20px on phones) */
.nwjs-legal details::before,
.nwjs-legal details:last-child::after {
  right: -48px;
}

@media (max-width: 780px) {
  .nwjs-legal details::before,
  .nwjs-legal details:last-child::after {
    right: -20px;
  }
}

.nwjs-legal details:last-child::after {
  bottom: 0;
}

.nwjs-legal summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  font-family: var(--subheadline-font);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: none !important;
}

.nwjs-legal summary::-webkit-details-marker {
  display: none;
}

.nwjs-legal summary::after {
  content: '+';
  font-family: var(--title-font);
  font-weight: 400;
  font-size: 18px;
  transition: transform 0.3s ease;
}

.nwjs-legal details[open] summary::after {
  transform: rotate(45deg);
}

.nwjs-legal-body {
  padding: 0 0 18px 0;
}

.nwjs-preview-text .nwjs-legal-body p {
  font-size: 12px;
  line-height: 1.6;
}

.nwjs-legal-body h3 {
  margin: 1.4em 0 0.4em;
  font-family: var(--subheadline-font);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nwjs-legal-body a {
  color: inherit;
}

/* no sub-headline (About Us): keep the same gap before the text */
.nwjs-preview-text h1:not(:has(+ h2)) {
  margin-bottom: 0.9em;
}

@media (max-width: 780px) {
  .nwjs-preview-text h1 {
    font-size: calc(min(35px, 8.2vw) * var(--h1-scale, 1) * var(--display-scale, 1)); /* never wider than a phone allows */
    margin-bottom: 0.5em;          /* a little more room down to the sub-headline */
  }
  .nwjs-preview-text h2 {
    line-height: 1.6;              /* sub-headlines often wrap on a phone — more room between the lines */
  }
}

.nwjs-preview-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.nwjs-preview-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 780px) {
  /* left edge on the title, scrollbar centred on the chloroplast menu
     button (its centre is 37px in from the right edge) */
  .nwjs-preview-grid {
    top: var(--content-top);   /* phones: 80px, see the end of this file */
    bottom: var(--content-bottom);   /* ends on the pink origin line */
    left: 20px;                  /* = .title left on mobile */
    right: calc(37px - 7px);     /* scrollbar line through the menu cell's centre */
    padding-right: 20px;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

/* phones: one picture or film first (.nwjs-mobile-lead, moved there by
   placeMobileLead in specimen.js), then the headline, sub-headline, credits
   and text, then the rest of the films and images. The text column
   dissolves into the panel's own order for this (display: contents), so
   nothing is duplicated. */
@media (max-width: 780px) {
  .nwjs-preview-grid:not(.nwjs-contact) {
    gap: 0;
  }

  .nwjs-preview-grid:not(.nwjs-contact) .nwjs-preview-text {
    display: contents;
  }

  /* room above it: the headline font's tall shapes (and the painted copy
     around them) reach well over the line — at the very top of the
     scrolling area they'd otherwise be cut off */
  .nwjs-preview-grid:not(.nwjs-contact) .nwjs-mobile-lead { order: -3; }
  .nwjs-preview-grid:not(.nwjs-contact) .nwjs-preview-text > h1 { order: -2; margin-top: 0.8em; }
  .nwjs-preview-grid:not(.nwjs-contact) .nwjs-preview-text > h2 { order: -1; }
  .nwjs-preview-grid:not(.nwjs-contact) .nwjs-preview-text > *:not(h1):not(h2) { order: 0; }
  .nwjs-preview-grid:not(.nwjs-contact) .nwjs-preview-images { order: 1; margin-top: 28px; }

  /* the lead picture / film: full width, its own proportions */
  .nwjs-mobile-lead > .nwjs-kasten-item,
  .nwjs-mobile-lead > img,
  .nwjs-mobile-lead > .nwjs-project-header {
    display: block;
    width: 100%;
    height: auto;
  }
  .nwjs-mobile-lead > .nwjs-kasten-item img {
    height: auto;
  }

  /* Contact: set like About — the headline gets the same room above it */
  .nwjs-contact .nwjs-preview-text > h1 { margin-top: 0.8em; }
}

/* ---- project video + credits ---- */
/* several videos: next to each other, equal widths, the image grid's gap */
.nwjs-video-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

/* each film takes a share of the row matching its proportions — so films
   of different shapes still come out exactly the same height */
.nwjs-video-row > .nwjs-video {
  flex: var(--a, 1.7778) 1 0;
  min-width: 0;
}

.nwjs-video-row .nwjs-video {
  margin-bottom: 0;
}

/* phones: too narrow for three across — one under the other */
@media (max-width: 780px) {
  .nwjs-video-row {
    flex-direction: column;
    gap: 8px;
  }

  .nwjs-video-row > .nwjs-video {
    flex: none;
    width: 100%;
  }
}

.nwjs-video {
  width: 100%;
  margin-bottom: 10px;
  background: none;   /* no grey box — the frame takes the film's own shape */
}

.nwjs-self-embed {
  position: relative;
  width: 100%;
  margin-bottom: 10px;
  overflow: hidden;
  outline: 1.5px solid rgba(var(--pink), 0.85);
  box-shadow: 0 0 6px 1px rgba(var(--pink), 0.35);
  background: #fff;
}

/* the page inside, at full desktop size, scaled down from the top left */
.nwjs-self-embed-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 1440px;
  height: 900px;
  transform-origin: 0 0;
}

.nwjs-self-embed-stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.nwjs-self-embed-live {
  position: absolute;
  top: 8px;
  right: 10px;
  font-family: var(--body-font);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgb(var(--pink));
  pointer-events: none;
  animation: nwjsLiveBlink 1.6s ease-in-out infinite;
}

@keyframes nwjsLiveBlink {
  50% { opacity: 0.35; }
}

/* the bottom of the rabbit hole */
.nwjs-self-embed-end {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--body-font);
  font-size: 40px;
  line-height: 1.4;
  color: var(--ink);
}

/* picture(s) and film(s) side by side, all the same height */
.nwjs-media-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

/* (two classes, so the Setzkasten's own `flex: 0 0 auto` on its items
   can't win over this — that made the picture keep its full pixel size) */
.nwjs-media-row > .nwjs-media-item,
.nwjs-media-row > .nwjs-video {
  flex: var(--a, 1.3333) 1 0;
  min-width: 0;
  width: auto;
  height: auto;
  margin: 0;
}

.nwjs-media-row > .nwjs-media-item {
  aspect-ratio: 4 / 3;     /* until the picture's own proportions are known */
}

@media (max-width: 780px) {
  .nwjs-media-row {
    flex-direction: column;
    gap: 8px;
  }

  .nwjs-media-row > .nwjs-media-item,
  .nwjs-media-row > .nwjs-video {
    flex: none;
    width: 100%;
  }
}

/* ---- 3D objects on a project page: square frames, three per row. The models themselves are drawn by one
   shared canvas laid over the page (.nwjs-models-canvas) ---- */
.nwjs-models {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.nwjs-model {
  position: relative;
  aspect-ratio: 1 / 1;
  cursor: none;
}



.nwjs-model-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--body-font);
  font-size: 12px;
  color: var(--ink);
  opacity: 0.45;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.nwjs-models {
  position: relative;        /* holds the cell (modelsCell) */
}

/* one organic cell around all the 3D objects (modelsCell) — its membrane
   painted like the headlines: x-ray green, extruded, slowly morphing,
   with a faint wash inside */
.nwjs-cell {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.nwjs-model.is-loaded .nwjs-model-loading {
  opacity: 0;
}

.nwjs-models-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 501;              /* just over the project panel, like the Contact coral */
  pointer-events: none;      /* dragging is caught by each model's frame */
}

.nwjs-models.is-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.nwjs-models.is-cloud .nwjs-model {
  flex: none;
  width: calc(var(--s, 0.32) * 100%);
  margin: calc(var(--lift, 0%) * 1) -1% 0;   /* a little overlap, so they huddle */
}

@media (max-width: 780px) {
  .nwjs-models {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .nwjs-models.is-cloud .nwjs-model {
    width: min(100%, calc(var(--s, 0.32) * 155%));
  }

}

.nwjs-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.nwjs-kasten-item {
  position: relative;
}

/* a project's header picture: full width of the image column, whole */
.nwjs-project-header {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}

/* header picture + slideshow side by side: each takes a share of the width
   matching its proportions, so both come out exactly the same height and
   nothing is cropped (the slideshow frame is 3:2, each photo fitted inside) */
.nwjs-header-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: flex-start;
}

.nwjs-header-row > .nwjs-project-header {
  flex: 1.5 1 0;            /* until its real proportions are known */
  min-width: 0;
  width: auto;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  margin: 0;
}

.nwjs-header-row > .nwjs-slideshow {
  flex: 1.5 1 0;            /* = its 3:2 frame */
  min-width: 0;
  width: auto;
  margin: 0;
}

/* phones: one under the other, each the full width */
@media (max-width: 780px) {
  .nwjs-header-row {
    flex-direction: column;
    gap: 8px;
  }

  .nwjs-header-row > .nwjs-project-header,
  .nwjs-header-row > .nwjs-slideshow {
    flex: none;
    width: 100%;
  }
}

/* the slideshow: one frame in a fixed shape, each photo fitted inside it
   whole — so the frame doesn't jump as the photos change */
.nwjs-slideshow {
  width: 100%;
  aspect-ratio: 3 / 2;
  margin-bottom: 10px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.nwjs-slideshow.is-ready {
  opacity: 1;
}

.nwjs-slideshow img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 0;
}

/* the old version, fading out on top of the new one */
.nwjs-version-fade {
  position: absolute;
  inset: 0;
  opacity: 1;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

/* the version switch above the images: 100% / 70% — as used in the film */
.nwjs-version-toggle {
  margin: 0 0 12px 0;
  font-family: var(--body-font);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}

.nwjs-version-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 10px;
}

.nwjs-version-toggle button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: none !important;
  opacity: 0.45;
  border-bottom: 1.5px solid transparent;
  transition: opacity 0.25s ease, border-color 0.25s ease;
}

.nwjs-version-toggle button:hover {
  opacity: 0.8;
}

.nwjs-version-toggle button.is-active {
  opacity: 1;
  font-weight: 700;
  border-bottom-color: rgba(var(--pink), 0.85);
}

.nwjs-version-note {
  margin: 4px 0 0 0;
  opacity: 0.7;
}

/* production credits after the text: a little air above, none needed below */
.nwjs-credits.nwjs-credits-after {
  margin: 0.6em 0 0 0;
}

.nwjs-credits {
  margin: 0 0 1.8em 0;
  font-family: var(--body-font);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}

/* one line per entry: the category in bold, straight followed by the
   value in regular — no fixed column after the category */
.nwjs-credits > div {
  margin: 0 0 4px 0;
}

.nwjs-credits dt,
.nwjs-credits dd {
  display: inline;
  margin: 0;
}

.nwjs-credits dt {
  font-weight: 700;
}

.nwjs-credits dt::after {
  content: ' ';
  white-space: pre;
}

/* every external link on the site (anything opening in a new tab):
   underlined in ink, with a small arrow pointing outwards */
a[target="_blank"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  cursor: none !important;
}

a[target="_blank"]:hover,
a[target="_blank"]:focus-visible {
  text-decoration-thickness: 2px;
}

/* inline-block keeps the arrow itself out of the underline */
a[target="_blank"]::after {
  content: '\2197';
  display: inline-block;
  margin-left: 0.25em;
  text-decoration: none;
}

/* ---- Setzkasten — a project's images in a randomised type-case grid ---- */
.nwjs-kasten {
  display: flex;
  flex-direction: column;
  opacity: 0;                      /* appears once the images have been measured */
  transition: opacity 0.5s ease;
}

.nwjs-kasten.is-ready {
  opacity: 1;
}

.nwjs-kasten-row {
  display: flex;
}

.nwjs-kasten-item {
  flex: 0 0 auto;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  overflow: hidden;
  cursor: none !important;
}

/* imageTone: the photos in the object's palette, as a specimen print
   (see the #nwjs-specimen-tone filter) — in the grid and in the lightbox */
.nwjs-kasten-toned .nwjs-kasten-item img,
.nwjs-photo-lightbox.is-toned img,
.nwjs-photo-lightbox.is-toned .nwjs-lab-carousel-item img,
body:has(.nwjs-photo-lightbox.is-toned.open) .nwjs-loupe-lens {
  /* filter: set in index.html (it points at an SVG filter in that page) */
}

.nwjs-kasten-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;             /* the box already has the image's proportions — nothing is cut */
}


/* ---- leader line layer ---- */
#line-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

#line-layer line {
  stroke: var(--ink);
  stroke-width: 1;
  opacity: 0.55;
}

#line-layer circle {
  fill: var(--ink);
}


/* ---- Lab dots — each one is a project image. At rest it's a small,
   blurred, feathered spot multiplied into the film (so it reads as a
   watercolour bloom of that image's colours); hover pulls it into a crisp,
   larger circle showing the actual image. ---- */
.nwjs-lab-thumb {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 55;
  border-radius: 47% 53% 51% 49% / 52% 48% 52% 48%;
  background: var(--img) center / cover no-repeat;
  /* feathered edge, like pigment thinning out at the rim */
  -webkit-mask-image: radial-gradient(closest-side, #000 52%, rgba(0, 0, 0, 0.65) 78%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 52%, rgba(0, 0, 0, 0.65) 78%, transparent 100%);
  mix-blend-mode: multiply;
  filter: blur(3.5px) saturate(1.15);
  opacity: 0;
  pointer-events: auto;
  cursor: none !important;
  transform: translate(-50%, -50%);
  transition:
    width 0.35s cubic-bezier(0.33, 1, 0.68, 1),
    height 0.35s cubic-bezier(0.33, 1, 0.68, 1),
    filter 0.35s ease,
    border-radius 0.35s ease,
    opacity 0.4s ease;
}

.nwjs-lab-thumb.is-hovered {
  border-radius: 50%;
  /* ends fully sharp, edge included — no feathered rim. The blur eases
     out over the same 0.35s as the grow (and back in as it shrinks). */
  -webkit-mask-image: none;
  mask-image: none;
  mix-blend-mode: normal;
  filter: blur(0px) saturate(1);
}

/* ---- Works grid lines — the visible cell boundaries behind the
   scattered project cards, matching the site's technical-drawing feel ---- */
#works-grid-lines {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 49; /* just below the thumbnail cards (50), above the curtain */
  pointer-events: none;
}

#works-grid-lines line {
  stroke: var(--ink);
  stroke-width: 1;
  opacity: 0.55;
  /* roughly matches how long the camera's zoom-in takes to settle, so
     the grid finishes drawing itself around the same moment the zoom lands */
  transition: stroke-dashoffset 1.6s cubic-bezier(0.33, 1, 0.68, 1);
}

/* hidden while its label is the active/focused one — same reasoning as
   hiding the label text itself: redundant once "NO WORRIES JUST ___"
   already shows it and the camera is zoomed onto that exact tip */
#line-layer line.is-active-hidden,
#line-layer circle.is-active-hidden {
  opacity: 0;
}

/* ---- the plate ---- */
#plate {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* cursor trail — a sparse scatter of soft algae cells */
#trail {
  /* inside the plate, behind the object and everything else */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* normal blend, so the bleach can lighten the film (multiply only darkens) */
  filter: blur(1.6px);
}

/* origin line along the bottom of the plate — in the cursor's pink and
   soft-focus like it, as if the pigment had already wet the paper a little */
.plate-rule {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: rgba(var(--pink), 0.85);
  box-shadow: 0 0 6px 1px rgba(var(--pink), 0.4);
  filter: blur(0.9px);
}

.plate-rule.origin { bottom: 70px; }   /* --content-bottom (72px) ends right on top of it */

/* the scale on the origin line — 11 evenly spaced ticks */
.plate-scale {
  position: absolute;
  bottom: 70px;
  left: 5vw;
  right: 5vw;
  height: 0;
  display: flex;
  justify-content: space-between;
}

.plate-mark {
  position: relative;
  width: 0;
}

.plate-mark::before {
  content: '';
  position: absolute;
  left: -0.75px;
  top: -4.5px;
  width: 1.5px;
  height: 9px;
  background: rgba(var(--pink), 0.9);
  filter: blur(0.9px);
}

/* test-strip wicking — every so often a little pigment climbs up from the
   origin line, like water rising through thin paper. Bottom edge sits on
   the line; drawn in JS (see "wicking" script). */
#wick {
  position: absolute;
  left: 0;
  bottom: 70px;
  width: 100%;
  height: calc(100% - 70px); /* everything above the line, so a plume can climb off the top */
  pointer-events: none;
  filter: blur(1.3px);
  transition: opacity 0.9s ease;
}

/* faded out whenever we leave the main page (a label's focus, Works, Lab, About) */
#wick.is-away {
  opacity: 0;
}

/* paper grain + film grain, over the specimen but under the UI */
#grain {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.55;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(var(--ink-rgb), 0.10) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.26  0 0 0 0 0.34  0 0 0 0 0.46  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---- Lab dot canvas — all the resting dots, drawn in one go, multiplied
   into the film like the individual dots used to be ---- */
/* ---- Lab in negative ----
   While Lab is open the whole page is inverted — paper goes dark, ink
   light, the object and every line turn to their opposite colours. The
   images (the dots, an enlarged dot, the lightbox) are inverted a second
   time, so they show in their true colours. The filter sits on the page's
   root only while Lab is open, so the rest of the site pays nothing for it.
   (An x-ray black-and-white and a blueprint-blue variant were tried and
   set aside for now.) */
html.nwjs-lab-inverted {
  filter: invert(1);
  animation: nwjsLabInvertIn 1.6s cubic-bezier(0.4, 0, 0.2, 1);   /* a slow develop into the negative */
}

@keyframes nwjsLabInvertIn {
  from { filter: invert(0); }
  to   { filter: invert(1); }
}

html.nwjs-lab-inverted #lab-dots,
html.nwjs-lab-inverted .nwjs-lab-lightbox img,
html.nwjs-lab-inverted .nwjs-lab-lightbox video {
  filter: invert(1);
}

/* a dot as a real element (the one under the cursor): its own soft focus
   kept, inverted back too — same list of filters at rest and enlarged, so
   the unblur still animates */
html.nwjs-lab-inverted .nwjs-lab-thumb {
  filter: invert(1) blur(3.5px) saturate(1.15);
}

html.nwjs-lab-inverted .nwjs-lab-thumb.is-hovered {
  filter: invert(1) blur(0px) saturate(1);
}

/* ---- Lab in blue (#3798FF) ----
   The page is inverted in Lab, so every colour here is written as the
   OPPOSITE of the blue it should show: rgb(200, 103, 0) comes out as
   #3798FF. (Opposite hues sit 180° apart, so a pink at hue 346° is
   moved to 31° to show up as the blue at 211°.) Text keeps the
   plain inverted ink. */
html.nwjs-lab-inverted {
  --pink: 200, 103, 0;   /* cursor, origin line, ticks, scrollbars, × button, loupe */
}

/* the object's glow, blue instead of the acid green */
html.nwjs-lab-inverted #viewer-container {
  filter: drop-shadow(0 0 18px rgba(200, 103, 0, 0.55));   /* a stronger glow in Lab */
}

html.nwjs-noglow.nwjs-lab-inverted #viewer-container {
  filter: none;
}

/* desktop menu: the spots running down from a hovered point */
html.nwjs-lab-inverted .nwjs-chroma-spot {
  background:
    radial-gradient(ellipse var(--p1w, 30%) var(--p1h, 45%) at var(--p1x, 35%) var(--p1y, 50%), hsla(31, 62%, 50%, var(--p1a, 0.3)), hsla(31, 62%, 50%, 0) 100%),
    radial-gradient(ellipse var(--p2w, 26%) var(--p2h, 40%) at var(--p2x, 65%) var(--p2y, 55%), hsla(31, 62%, 50%, var(--p2a, 0.25)), hsla(31, 62%, 50%, 0) 100%),
    radial-gradient(ellipse farthest-side,
      hsla(31, 62%, 66%, 0.5) 0%,
      hsla(31, 62%, 62%, 0.6) 75%,
      hsla(31, 62%, 58%, 0.66) 100%);
  box-shadow:
    inset 0 0 0 1.5px hsla(31, 64%, 44%, 0.7),
    inset 0 0 5px 1px hsla(31, 64%, 48%, 0.45);
}

html.nwjs-lab-inverted .nwjs-chroma-spot::after {
  box-shadow:
    inset 0 0 0 4px hsla(31, 60%, 50%, 0.32),
    0 0 2px 1px hsla(31, 60%, 54%, 0.12);
}

html.nwjs-lab-inverted .nwjs-chroma-under {
  background:
    linear-gradient(to top,
      hsla(35, 70%, 40%, 0.62) 0%,
      hsla(35, 68%, 44%, 0.52) 50%,
      hsla(35, 66%, 50%, 0.3) 85%,
      hsla(35, 66%, 52%, 0.06) 100%);
}

html.nwjs-lab-inverted .nwjs-chroma-haze {
  background: radial-gradient(closest-side, hsla(31, 70%, 60%, 0.5), hsla(31, 70%, 62%, 0.22) 60%, hsla(31, 70%, 62%, 0) 100%);
}

/* phones: the menu plume and its × in blue */
@media (max-width: 780px) {
  html.nwjs-lab-inverted .nwjs-nav-dropdown::before {
    background:
      linear-gradient(to bottom,
        hsla(31, 70%, 45%, 0.55) 0%,
        hsla(31, 70%, 48%, 0.42) 60%,
        hsla(31, 70%, 50%, 0.32) calc(100% - 90px),
        hsla(31, 70%, 50%, 0) 100%),
      linear-gradient(to bottom, var(--paper) calc(100% - 90px), transparent 100%);
  }

  html.nwjs-lab-inverted .nwjs-nav-ring {
    color: rgba(200, 103, 0, 0.95);
    text-shadow: 0 0 6px rgba(200, 103, 0, 0.45);
  }

  html.nwjs-lab-inverted .nwjs-nav-ring::before {
    border-color: rgba(200, 103, 0, 0.95);
    box-shadow: 0 0 6px 1px rgba(200, 103, 0, 0.45), inset 0 0 6px 1px rgba(200, 103, 0, 0.3);
  }
}

#lab-dots {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 55;
  pointer-events: none;
  mix-blend-mode: multiply;
  display: none;
}

#lab-dots.visible {
  display: block;
}

/* ---- Lab lightbox — clicking an enlarged image opens it at full size.
   It grows out of the dot (circle opening into the full rectangle) and
   shrinks back into it on close. ---- */
.nwjs-lab-lightbox {
  position: fixed;
  inset: 0;
  z-index: 700;
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.nwjs-lab-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.nwjs-lab-lightbox img,
.nwjs-lab-lightbox video {
  position: absolute;
  display: block;
  max-width: none;
  will-change: transform, clip-path;
}

/* lightbox carousel (Lab + project images) — the open one in the middle,
   its neighbours either side on one straight line */
.nwjs-lab-carousel {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.nwjs-lab-carousel-item {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  pointer-events: auto;
  cursor: none;
  will-change: transform;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  /* only transform animates (size = scale), never width/height — animating
     the box size made the images wobble as they moved */
  transition:
    transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.4s ease,
    filter 0.4s ease;
}

.nwjs-lab-carousel-item img,
.nwjs-lab-carousel-item video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nwjs-lab-carousel-item video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.nwjs-lab-carousel-item video.is-playing {
  opacity: 1;
}

/* a Lab video inside its enlarged dot: fades in over the still once it plays */
.nwjs-lab-thumb-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.nwjs-lab-thumb-video.is-playing {
  opacity: 1;
}

/* ---- Lab hint — a label with a leader line to the object, like the
   labels on the main page (same type, same line and dot) ---- */
.nwjs-lab-hint {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 58;                     /* over the resting dots, under an enlarged one (60) */
  color: var(--ink);
  font-family: var(--body-font);
  font-style: normal;
  font-weight: 400;
  font-size: 15px;                 /* = .nwjs-specimen-label */
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;            /* as written */
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

#lab-hint-lines {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 56;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

#lab-hint-lines line {
  stroke: var(--ink);
  stroke-width: 1;
  opacity: 0.55;
}

#lab-hint-lines circle {
  fill: var(--ink);
}

@media (max-width: 780px) {
  .nwjs-lab-hint { z-index: 62; }      /* over every dot, even an enlarged one */
}

.nwjs-lab-hint.is-on,
#lab-hint-lines.is-on {
  opacity: 1;
  transition: opacity 0.8s ease 0.6s;  /* after Lab has zoomed in */
}

@media (max-width: 780px) {
  .nwjs-lab-hint { font-size: 11px; }
}

/* ---- loading text ---- */
#loading {
  position: fixed;
  bottom: 28px;
  left: 36px;
  z-index: 10;
  margin: 0;
  padding: 0;
  color: var(--ink) !important;
  font-family: var(--body-font) !important;
  font-size: 12px !important;
}

/* ---- floating specimen labels ---- */
.nwjs-specimen-label {
  position: fixed;
  z-index: 10;
  font-family: var(--body-font) !important; /* Kode Mono */
  font-style: normal;
  font-size: 15px !important;  /* a little smaller than the menu */
  line-height: 1.2;
  font-weight: 400 !important;
  letter-spacing: 0;
  text-transform: none;        /* exactly as spelled in `projects` */
  white-space: nowrap;
  cursor: none !important;
  pointer-events: auto;
  padding: 2px 0;
  transform: translateY(-50%);
  color: var(--ink) !important;
  transition: opacity 0.2s ease;
}

.nwjs-specimen-label.align-right {
  text-align: right;
}

@media (max-width: 780px) {
  .nwjs-specimen-label { font-size: 12.5px !important; }
}

/* hidden while focused — its info is already shown in the
   "NO WORRIES JUST ___" title, so showing both is redundant. */
.nwjs-specimen-label.is-active-hidden {
  opacity: 0;
}

.nwjs-specimen-label .nwjs-label-text {
  transition: opacity 0.2s ease;
}

/* the labels show exactly the spelling given in `projects` (no case changes) */
.nwjs-specimen-label .nwjs-label-text {
  display: inline-block;
}

/* the line break in "Workshops & / Talks", "Objects & / Sculptures" —
   phones only; a label going left keeps both lines flush to its line */
.nwjs-m-br { display: none; }

@media (max-width: 780px) {
  .nwjs-m-br { display: inline; }
  .nwjs-specimen-label.align-right .nwjs-label-text { text-align: right; }
}

/* no underline at rest — it only appears on hover / keyboard focus.
   Set on the inner span: the span is inline-block (for the capital first
   letter), and an underline on the link wouldn't reach into it. */
.nwjs-specimen-label {
  text-decoration: none;
}

.nwjs-specimen-label:hover .nwjs-label-text,
.nwjs-specimen-label:focus-visible .nwjs-label-text {
  text-decoration: underline;
  text-decoration-color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}

/* an invisible label can't be clicked — whether it's the focused one
   (shown in the title instead) or all of them faded out for Works, Lab,
   About, Contact or a project */
.nwjs-specimen-label.is-active-hidden,
.nwjs-specimen-label[style*="opacity: 0;"] {
  pointer-events: none;
}

/* ---- title glitch word ---- */
.title-shapes {
  display: inline-block;
  font-weight: 700; /* the changing word (SHAPES / the focused label) is bold */
  min-width: 6ch;
  position: relative;
  text-transform: uppercase;
  white-space: nowrap;
}

.title-shapes.glitching,
.title-prefix.glitching {
  animation: nwjsTitleGlitch 0.32s steps(2, end);
}

/* ---- title glitch prefix — "NO WORRIES JUST" glitches alongside the word ---- */
.title-prefix {
  display: inline-block;
  font-weight: 400; /* "NO WORRIES JUST" stays regular */
  white-space: nowrap;
}

@keyframes nwjsTitleGlitch {
  0%   { transform: translateX(0);    opacity: 1; }
  15%  { transform: translateX(-2px); opacity: 0.85; }
  30%  { transform: translateX(2px);  opacity: 1; }
  45%  { transform: translateX(-1px); opacity: 0.75; }
  60%  { transform: translateX(2px);  opacity: 0.9; }
  75%  { transform: translateX(-1px); opacity: 1; }
  100% { transform: translateX(0);    opacity: 1; }
}

/* ---- direction-triggered project thumbnails ---- */
.nwjs-thumb {
  position: fixed;
  /* 14% of the width, but never more than 28% of the height, so the cards
     shrink on short screens (a phone turned sideways) — mirrored in
     getThumbCardWidth() in specimen.js */
  width: clamp(min(160px, 28vh), min(14vw, 28vh), 255px);
  z-index: 50;
  border: 1px solid var(--ink);
  text-decoration: none;
  color: var(--ink) !important;
  cursor: none !important;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transform: translate(-50%, -50%) scale(0.75);
  transition: opacity 0.25s ease, transform 0.12s ease;   /* hover reacts quickly */
}

.nwjs-thumb-crop {
  display: block;
  overflow: hidden;
}

.nwjs-thumb-crop > img {
  transform: translate(var(--tx, 0%), var(--ty, 0%)) scale(var(--tz, 1));
}

.nwjs-thumb-img {
  display: block;
  width: 100%;
  height: auto; /* natural ratio — never cropped/normalized to a fixed box */
}

.nwjs-thumb.visible {
  opacity: 1;
  pointer-events: auto;
  /* --fan-scale: a label with many projects rests its cards smaller */
  transform: translate(-50%, -50%) scale(var(--fan-scale, 1));
}

/* on hover a card grows a step bigger than it rests — and always to at
   least the full size, however small it rested (a little slower than the
   plain fade, so the bigger jump stays smooth) */
.nwjs-thumb.visible:hover,
.nwjs-thumb.visible:focus-visible {
  transform: translate(-50%, -50%) scale(max(1.12, calc(var(--fan-scale, 1) * 1.1)));
  z-index: 51;
  transition: opacity 0.25s ease, transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* frames only on the project thumbnails that fan out after a label's zoom —
   not on the Works cards (the grid lines already frame those) */
.nwjs-thumb.nwjs-works-thumb,
.nwjs-mobile-grid-card.nwjs-works-card {
  border: none;
}

/* Works: the cards sit in a frame covering only the safe area (between
   --content-top and --content-bottom, like a project page's scrolling
   area). The transform makes it the cards' frame of reference, so the
   overflow cut-off applies to them too — a card can't grow over the
   safe bars, not even on hover. */
.nwjs-works-field {
  position: fixed;
  top: var(--content-top);
  bottom: var(--content-bottom);
  left: 0;
  right: 0;
  overflow: hidden;
  transform: translateZ(0);
  z-index: 50;
  pointer-events: none;
}

/* in Works the card sits inside a drawn grid cell — on hover it grows only
   until it meets that cell's frame (scale computed per layout in JS) */
.nwjs-thumb.nwjs-works-thumb.visible:hover,
.nwjs-thumb.nwjs-works-thumb.visible:focus-visible {
  transform: translate(-50%, -50%) scale(var(--hover-scale, 1));
}

.nwjs-thumb.pinned::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}

.nwjs-thumb-caption {
  position: absolute;
  bottom: 8px;
  left: 8px;
  max-width: calc(100% - 16px); /* long titles wrap instead of running off the card */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

/* desktop (a mouse): the caption only shows while the card is hovered or
   focused; on touch screens there's no hover, so it's always there */
@media (hover: hover) and (pointer: fine) {
  .nwjs-thumb .nwjs-thumb-caption {
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  .nwjs-thumb:hover .nwjs-thumb-caption,
  .nwjs-thumb:focus-visible .nwjs-thumb-caption {
    opacity: 1;
  }
}

/* the second row: the project's client, a quieter chip under the title */
.nwjs-thumb-client {
  font-family: var(--body-font);
  font-style: normal;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: var(--body-line);   /* same as the body text */
  color: var(--ink);
}

.nwjs-thumb-word {
  font-family: var(--headline-font);
  font-style: normal;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: var(--body-line);   /* same as the body text */
}

/* ---- mobile scrollable grid (replaces the scattered thumbnails and
   the spheres entirely — this is the whole mobile focus UI) ---- */
.nwjs-mobile-grid {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: min-content; /* forces rows to size from each card's true natural height — without this, overflow:hidden on the cards can make the browser under-measure them for row sizing, causing cropping or overlap */
  gap: 12px;
  align-content: start;
  align-items: start; /* stops cards from stretching to match their row's tallest sibling */
  /* the same scrolling area as the About page: starts below the top row,
     ends just above the pink line, left edge on the title, scrollbar line
     through the menu button's centre. The light backdrop over the whole
     screen behind it is body::before (near the end of this file). */
  top: var(--content-top);
  bottom: var(--content-bottom);   /* ends on the pink origin line */
  right: calc(37px - 7px);
  padding: 0 20px 24px 20px;
  overflow-y: auto;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.nwjs-mobile-grid.visible {
  opacity: 1;
  pointer-events: auto;
}

.nwjs-mobile-grid-card {
  position: relative;
  border: none;                   /* no frame around the thumbnails on phones */
  text-decoration: none;
  color: var(--ink) !important;
  overflow: hidden;
}

.nwjs-mobile-grid-img {
  display: block;
  width: 100%;
  height: auto; /* natural ratio — never cropped/normalized to a fixed box */
}

/* phones: title and client sit in the same caption stack as on desktop
   (.nwjs-thumb-caption), a size smaller to suit the smaller cards */
.nwjs-mobile-grid-client {
  font-size: 10px;
}

.nwjs-mobile-grid-word {
  font-family: var(--headline-font);
  font-style: normal;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: var(--body-line);   /* same as the body text */
}

/* ---- mobile ---- */
@media (max-width: 780px) {
  .title {
    top: 37px;                    /* = the menu button's centre */
    transform: translateY(-50%);  /* the title's middle sits there, however many lines */
    left: 20px;
    font-size: 21px !important;
    white-space: normal; /* was nowrap — forces a wrap so it doesn't run under the Menu button */
    max-width: calc(100vw - 100px); /* leaves clear room for the nav toggle in the top-right */
    line-height: 1.15;
  }
  .subtitle { bottom: 20px; right: 20px; font-size: 10px !important; }
  .nwjs-specimen-label { font-size: 12.5px !important; }
}

/* ---- the × on the round close buttons ----
   Drawn as two crossing strokes instead of the font's × character, so it
   sits exactly in the middle of its ring (the character sat off-centre
   because of the font's own spacing). Same colour, weight and glow as
   the ring. Used by the close button bottom left and the phone menu's ×. */
.nwjs-focus-close,
.nwjs-nav-ring {
  font-size: 0 !important;          /* the × character stays for screen readers' sake, but isn't shown */
  text-shadow: none !important;
}

.nwjs-focus-close::after,
.nwjs-nav-ring::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--x-size, 14px);
  height: var(--x-size, 14px);
  transform: translate(-50%, -50%);
  background:
    linear-gradient(45deg, transparent calc(50% - 1.125px), currentColor calc(50% - 1.125px), currentColor calc(50% + 1.125px), transparent calc(50% + 1.125px)),
    linear-gradient(-45deg, transparent calc(50% - 1.125px), currentColor calc(50% - 1.125px), currentColor calc(50% + 1.125px), transparent calc(50% + 1.125px));
  filter: drop-shadow(0 0 3px currentColor);
  opacity: 1;
  pointer-events: none;
}

.nwjs-nav-ring {
  --x-size: 17px;                   /* its ring is bigger (42px vs 34px) */
}

/* the close button: tucked into the bottom-left corner, under the pink
   line — the same distance from the bottom and the left edge, so it sits
   squarely in the corner */
.nwjs-focus-close {
  bottom: 20px;
  left: 20px;
}

@media (max-width: 780px) {
  .nwjs-focus-close {
    bottom: 14px;
    left: 14px;
  }
}

/* Lab: the grain shows much more on the dark ground — turned down to 25% */
html.nwjs-lab-inverted #grain {
  opacity: 0.25;
}

/* ---- phones: nothing wider than the screen; the headline never cut ----
   The scrolling area of a project / About / Contact page starts at the
   screen's edge, with its 20px margin as padding — so the headline's
   painted copy (and Liquida's swashes), which reach out past the text on
   the left, have room there instead of being cut off at the area's edge.
   Sideways scrolling is switched off; long words and links wrap. */
@media (max-width: 780px) {
  .nwjs-preview-grid {
    left: 0;
    padding-left: 20px;
    overflow-x: hidden;
  }

  .nwjs-preview-grid > *,
  .nwjs-preview-col,
  .nwjs-preview-col > * {
    min-width: 0;
    max-width: 100%;
  }

  .nwjs-preview-text p,
  .nwjs-credits,
  .nwjs-contact-info,
  .nwjs-preview-text h2 {
    overflow-wrap: anywhere;
  }

  .nwjs-preview-images img,
  .nwjs-preview-images video,
  .nwjs-preview-images iframe {
    max-width: 100%;
  }

  /* the lightboxes: two-finger zoom is handled by the page itself */
  .nwjs-lab-lightbox {
    touch-action: none;
  }
}

/* ---- phones: no scrollbars anywhere, the content runs with the same
   margin on both sides (20px, = the title's left edge) ---- */
@media (max-width: 780px) {
  * {
    scrollbar-width: none;
  }

  *::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .nwjs-preview-grid {
    right: 20px;
    padding-right: 0;
    scrollbar-gutter: auto;
  }

  .nwjs-mobile-grid {
    right: 0;
    scrollbar-gutter: auto;
  }
}


/* the light backdrop behind the phone grid, over the whole screen */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 49;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
body:has(.nwjs-mobile-grid.visible)::before {
  opacity: 1;
}

/* phones: the top of the safe area sits a third higher (120px → 80px) */
@media (max-width: 780px) {
  :root { --content-top: 80px; }
}


/* ---- card captions: an index card from the lab ----
   Number, title, client and year on a slip of paper in the picture's own
   main colour, lightened (--card-tint, set by site.js from the picture),
   nearly opaque, with the page's paper grain. Phones: a smaller card
   at the bottom, always there. Desktop: it covers two thirds of the
   picture, and only shows on hover. */
.nwjs-thumb,
.nwjs-mobile-grid-card {
  container-type: inline-size;   /* lets the card's type scale with the card */
}

.nwjs-thumb-caption.nwjs-index-card {
  left: 0;                        /* flush with the picture's bottom-left corner */
  right: 12%;
  bottom: 0;
  max-width: none;
  align-items: stretch;
  padding: 8px 9px 6px;
  color: var(--ink);
  isolation: isolate;
}

/* the paper itself */
.nwjs-index-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.26  0 0 0 0 0.30  0 0 0 0 0.24  0 0 0 0.32 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    hsl(var(--card-tint, 45 18% 90%) / 0.97);
}

/* the index number, top right */
.nwjs-card-no {
  position: absolute;
  top: 7px;
  right: 9px;
  font-family: var(--body-font);
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1;
  opacity: 0.7;
}

.nwjs-index-card .nwjs-thumb-word {
  padding: 0.45em 36px 0.08em 0.32em;   /* a little down from the card's top; clear of the number; room for Liquida's swashes on the left */
  font-family: var(--display-font);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: var(--display-case);
  line-height: var(--display-line, 1.44);   /* the same room as the headlines */
  hyphens: none;                  /* words stay whole — site.js makes a too-long one smaller instead */
}

/* the ruled line, with the client on the left and the year on the right */
.nwjs-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
  padding-top: 3px;
  border-top: 1px solid rgba(31, 38, 16, 0.55);
}

.nwjs-index-card .nwjs-thumb-client {
  font-size: 10px;
  letter-spacing: 0.02em;
  line-height: var(--body-line);
}

.nwjs-card-year {
  flex: none;
  font-family: var(--body-font);
  font-size: 9px;
  letter-spacing: 0.06em;
  line-height: var(--body-line);
  opacity: 0.75;
}

/* desktop: two thirds of the picture, on hover */
@media (hover: hover) and (pointer: fine) {
  .nwjs-thumb .nwjs-thumb-caption.nwjs-index-card {
    left: 0;                      /* flush with the picture's bottom-left corner */
    right: auto;
    bottom: 0;
    width: 80%;
    height: 70%;
    padding: 10px 11px 8px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .nwjs-thumb:hover .nwjs-thumb-caption.nwjs-index-card,
  .nwjs-thumb:focus-visible .nwjs-thumb-caption.nwjs-index-card {
    opacity: 1;
    transform: none;
  }

  .nwjs-thumb .nwjs-index-card .nwjs-thumb-word {
    font-size: clamp(16px, 9cqw, 28px);   /* site.js shrinks it further if a long title wouldn't fit the card */
    padding-right: 40px;
  }

  .nwjs-thumb .nwjs-card-foot {
    margin-top: auto;             /* the ruled line sits at the bottom of the card */
  }

  .nwjs-thumb .nwjs-index-card .nwjs-thumb-client {
    font-size: 11px;
  }

  .nwjs-thumb .nwjs-card-no {
    top: 9px;
    right: 11px;
  }
}

/* phones: the index card hangs below the picture instead of lying on it —
   its top overlaps the picture's bottom edge by a little, the rest sits
   underneath, so the picture stays almost whole. The rows get more room
   between them for it. */
.nwjs-mobile-grid {
  row-gap: 22px;
}
.nwjs-thumb-caption.nwjs-index-card.nwjs-mobile-grid-caption {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;                    /* as wide as the picture */
  margin-top: -16px;              /* covers just the bottom edge of the picture */
}

/* a title's closing Roman numeral (Panopticon I) keeps its capitals in the
   lowercase headline font (see displayTitle in specimen.js) */
.nwjs-keep-case {
  text-transform: none;
}

