/* Konry Lab website — Phase 1 prototype stylesheet.

   Section 1 is the design-token block. It is the part that transfers to Wix Studio:
   DESIGN-TOKENS.md maps every token below to a Wix Studio Site Styles setting.
   Everything after it is prototype layout and can be rebuilt in the Wix editor.

   Two views share one markup (toggle in the prototype bar):
     design  — the proposed finish;
     outline — a greyscale wireframe that labels every section and image slot
               with what belongs there (the populate-it guide).                       */

/* Fonts (D1 bold serif, D2 mono eyebrows, Lato body) load from a <link> in every page's <head>.
   No @import here: it would be a second, later request for the same fonts. */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* Colour — Northeastern brand values from brand.northeastern.edu (checked 261021).
     NU Red is the only accent. It measures 2.76:1 on NU Cool Black, so the page base
     is a darker navy-black on which red reaches 3:1 for large headings and UI marks.
     Never use red for body text on dark. Ratios: DESIGN-TOKENS.md / tools/check_contrast.py. */
  --c-nu-red:        #C8102E;  /* NU Red, PMS 186 — buttons, rules, numerals, active nav */
  --c-nu-red-deep:   #A50D26;  /* hover/pressed state for red buttons */
  --c-ink-950:       #0F1115;  /* deepest — hero scrim */
  --c-ink-900:       #121419;  /* page base for dark sections */
  --c-ink-800:       #1E2028;  /* NU Cool Black — cards and panels on dark */
  --c-ink-700:       #2C2F38;  /* rules and borders on dark */
  --c-canvas:        #F6F6F4;  /* NU Canvas — text on dark (no light sections since D3, 261021) */
  --c-white:         #FFFFFF;  /* button text; text on the red band; form-field fill */
  --c-stone-300:     #D9DAD6;  /* reserved (was rules on light) */
  --c-grey-on-dark:  #B4B7BF;  /* secondary text on dark */
  --c-grey-on-light: #5B606B;  /* form-field borders (fields are white) */

  /* Type — bold serif display (D1: kept, made bolder/larger) + Lato body (NU's named web
     fallback for Real Head Pro) + IBM Plex Mono for eyebrows (D2). The serif departs from
     NU type rules: see REVIEW.md. Sizes follow notes/wyss_benchmark_261021.md §2.2. */
  --font-display: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-body:    "Lato", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fw-display: 700;        /* h1, h2, hero; h3 and smaller stay 600 */
  --fs-display: clamp(2rem, 1rem + 4.6vw, 4rem);         /* hero headline, 64 px desktop; min sized so "Immunotherapies" fits a 360 px phone */
  --fs-h1:      clamp(2.25rem, 1.25rem + 3vw, 3.75rem);  /* page and section titles, 60 px at 1440 */
  --fs-h2:      clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);  /* 40 px at 1440 */
  --fs-h3:      clamp(1.375rem, 1.2rem + 0.5vw, 1.625rem); /* 26 px at 1440 */
  --fs-h4:      1.125rem;
  --fs-body:    clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem); /* 17 px phone → 19 px desktop */
  --fs-lede:    clamp(1.1875rem, 1.05rem + 0.45vw, 1.375rem); /* 19 → 22 px */
  --fs-small:   clamp(0.9375rem, 0.9rem + 0.15vw, 1.0625rem); /* card text, 15 → 17 px */
  --fs-eyebrow: 0.8125rem;  /* 13 px mono */
  --fs-stat:    clamp(3rem, 1.5rem + 5vw, 5.5rem);       /* impact numerals, 88 px desktop */
  --lh-tight:   1.1;
  --lh-body:    1.6;
  --tracking-eyebrow: 0.2em;

  /* Spacing — 4 px base */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px; --space-10: 128px;
  --section-pad-y: clamp(56px, 4vw + 24px, 96px);  /* tighter since 261021: rules separate sections */
  --gutter:        clamp(16px, 4vw, 40px);
  --container:     1360px; /* near edge-to-edge at 1440 (Wyss benchmark §2.3) */
  --measure:       68ch;   /* max line length for long text */
  --radius:        4px;    /* buttons and form fields */
  --radius-media:  0;      /* images, cards and tiles are square-cornered */
  --ar-tile:       3 / 2;  /* the one image ratio for cards and tiles */
  --rule-accent:   3px;    /* the short red bar under numerals and active nav */
  --dur-zoom:      1.6s;   /* image hover zoom */
  --dur-reveal:    0.4s;   /* scroll entrance: short, so a section you jump to isn't blank for long */

  /* Breakpoints (Wix Studio defaults) — CSS variables cannot drive media queries,
     so these are documentation: desktop ≥1001, tablet 751–1000, mobile ≤750.
     Large monitors (261104): ≥1800 and ≥2300 scale the whole page up, below. */
}
/* Large monitors: a bigger rem scales every font token; the px tokens (spacing, container, gutter)
   are restated larger, so the page fills a 1920 or 2560 screen in proportion instead of sitting in a
   1440 px column with laptop-size text. Wix: the same values for a custom ≥1800 breakpoint, if added. */
@media (min-width: 1800px) {
  html { font-size: 112.5%; }  /* 18 px rem */
  :root { --container: 1600px; --gutter: 56px; --section-pad-y: 112px;
          --space-5: 28px; --space-6: 36px; --space-7: 56px; --space-8: 72px; --space-9: 108px; --space-10: 144px; }
}
@media (min-width: 2300px) {
  html { font-size: 125%; }    /* 20 px rem */
  :root { --container: 1920px; --gutter: 72px; --section-pad-y: 128px;
          --space-5: 30px; --space-6: 40px; --space-7: 60px; --space-8: 80px; --space-9: 120px; --space-10: 160px; }
}

/* Section colour schemes. Components read --bg/--fg/--muted/--rule/--focus,
   so a section changes scheme with one class — like a Wix Studio section scheme.
   D3 (261021): the site is ALL DARK. .scheme-light is kept as a class so existing pages
   still work, but it now means "text-heavy dark panel" (NU Cool Black), not a light band.
   NU red is decorative on --c-ink-800 (2.76:1): only fills and bars there, never text. */
.scheme-dark  { --bg: var(--c-ink-900); --panel: var(--c-ink-800); --fg: var(--c-canvas);
                --muted: var(--c-grey-on-dark); --rule: var(--c-ink-700); --focus: var(--c-canvas); }
.scheme-panel,
.scheme-light { --bg: var(--c-ink-800); --panel: var(--c-ink-900); --fg: var(--c-canvas);
                --muted: var(--c-grey-on-dark); --rule: var(--c-ink-700); --focus: var(--c-canvas); }
/* NU-red band (CTA). White text 5.88:1; focus ring white (5.88:1). */
.scheme-red   { --bg: var(--c-nu-red); --panel: var(--c-nu-red-deep); --fg: var(--c-white);
                --muted: var(--c-white); --rule: color-mix(in srgb, var(--c-white) 45%, transparent); --focus: var(--c-white); }

/* ============================================================
   2. BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-ink-900);
  color: var(--c-canvas);
  font: 400 var(--fs-body)/var(--lh-body) var(--font-body);
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: var(--lh-tight); margin: 0 0 var(--space-4); }
h1 { font-size: var(--fs-h1); font-weight: var(--fw-display); letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); font-weight: var(--fw-display); letter-spacing: -0.005em; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-family: var(--font-body); font-weight: 700; }
p { margin: 0 0 var(--space-4); max-width: var(--measure); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }  /* all dark: hover = thicker underline, never red text */
:focus-visible { outline: 3px solid var(--focus, var(--c-canvas)); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }  /* filters use the hidden attribute; component display rules must not override it */
main [id] { scroll-margin-top: 96px; }  /* anchor jumps (sub-nav, #patents) clear the sticky header */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--space-4); top: -100px; z-index: 100; background: var(--c-canvas);
             color: var(--c-ink-900); padding: var(--space-3) var(--space-4); font-weight: 700; }
.skip-link:focus { top: var(--space-4); }

/* ============================================================
   3. LAYOUT — full-width sections map 1:1 to Wix Studio sections
   ============================================================ */
.section { background: var(--bg); color: var(--fg); padding: var(--section-pad-y) 0; position: relative; }
.section--tight { padding: var(--space-8) 0; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-7); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1000px) {
  .grid-4, .grid-5, .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3.grid--keep-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }  /* the 3 pillar cards: no lone third card on tablets */
}
@media (max-width: 750px) {
  .grid-2, .grid-3, .grid-4, .grid-3.grid--keep-3 { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .grid-5, .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Eyebrow / kicker: IBM Plex Mono, uppercase, wide tracking (D2). Same look as .card__kicker. */
.eyebrow, .kicker { font: 500 var(--fs-eyebrow)/1.35 var(--font-mono); letter-spacing: var(--tracking-eyebrow);
           text-transform: uppercase; color: var(--muted); margin: 0 0 var(--space-4); }
.lede { font-size: var(--fs-lede); color: var(--fg); }
.muted { color: var(--muted); }
.section-head { margin-bottom: var(--space-7); }
.section-head p { color: var(--muted); }
/* Two-column section header (Wyss benchmark §2.3): thin rule above, big title left,
   summary right. Add --split to any .section-head; the summary column is optional.
   Wix: a 2-column strip at the top of the section with a 1 px top border. */
.section-head--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-5) var(--space-7);
                       align-items: end; border-top: 1px solid var(--rule); padding-top: var(--space-5); }
.section-head--split h2 { font-size: var(--fs-h1); margin: 0; }
.section-head--split .eyebrow { margin-bottom: var(--space-3); }
.section-head__summary p { font-size: var(--fs-lede); margin: 0 0 var(--space-3); }
.section-head__summary p:last-child { margin-bottom: 0; }
.section-head__summary a { color: var(--fg); font-weight: 700; }
@media (max-width: 750px) { .section-head--split { grid-template-columns: minmax(0, 1fr); } }
/* --text: title left, lead + body text right, top-aligned (Technologies "Why microfluidics", 261109).
   The body stays outside the header (launch mode hides a section whose only text is in its header)
   and .prose--right-col lines it up under the lead: the right column starts at 50% + half the gap. */
.section-head--text { align-items: start; margin-bottom: var(--space-5); }
.prose--right-col { margin-left: calc(50% + var(--space-7) / 2); }
@media (max-width: 750px) { .prose--right-col { margin-left: 0; } }
.red-bar { display: block; width: 40px; height: var(--rule-accent); background: var(--c-nu-red); margin: var(--space-3) 0 var(--space-4); }

/* Buttons — white on NU Red is 5.88:1 */
.btn { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 48px; padding: 0 var(--space-5);
       font: 700 1rem/1 var(--font-body); text-decoration: none; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; }
.btn--primary { background: var(--c-nu-red); color: var(--c-white); }
.btn--primary:hover { background: var(--c-nu-red-deep); text-decoration: none; }
.btn--ghost { border-color: currentColor; color: var(--fg); background: transparent; }
.btn--ghost:hover { background: color-mix(in srgb, var(--fg) 10%, transparent); text-decoration: none; }
/* Inverse button for the red band: ink on white (17+:1); hover canvas. */
.btn--inverse { background: var(--c-white); color: var(--c-ink-900); }
.btn--inverse:hover { background: var(--c-canvas); text-decoration: underline; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-6); }
.arrow::after { content: "→"; font-family: var(--font-body); }

/* ============================================================
   4. PROTOTYPE BAR (not part of the site; not mapped to Wix)
   ============================================================ */
.proto-bar { background: #FFE58F; color: #1E2028; font: 600 0.8125rem/1.3 var(--font-body); }
.proto-bar .container { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); padding-top: var(--space-2); padding-bottom: var(--space-2); }
.proto-bar strong { letter-spacing: 0.08em; }
.proto-bar a { color: #1E2028; }
.view-toggle { display: inline-flex; border: 1px solid #1E2028; border-radius: 999px; overflow: hidden; }
.view-toggle button { font: inherit; background: transparent; color: #1E2028; border: 0; padding: 4px 12px; cursor: pointer; min-height: 32px; }
.view-toggle button[aria-pressed="true"] { background: #1E2028; color: #FFE58F; }
.view-toggle button:focus-visible { outline: 3px solid #1E2028; outline-offset: 2px; }
.proto-bar :focus-visible { outline-color: #1E2028; }

/* ============================================================
   5. HEADER + NAV (Wix: global header)
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--c-ink-900) 94%, transparent);
               backdrop-filter: blur(8px); border-bottom: 1px solid var(--c-ink-700); --focus: var(--c-canvas);
               transition: transform 0.3s ease; }
/* Hides on scroll down, returns on scroll up or when anything in it takes focus (site.js).
   Not in outline view (header is static there) and never under reduced motion (site.js skips). */
html:not([data-view="outline"]) .site-header.is-hidden { transform: translateY(-100%); }
/* Header height, border included: 77 px, 61 px on phones (enough for the 44 px menu button). */
:root { --header-h: 77px; }
@media (max-width: 750px) { :root { --header-h: 61px; } }
/* site.js adds the header after the page first paints; hold its height until then so nothing jumps. */
body:not(.has-chrome)::before { content: ""; display: block; height: var(--header-h); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); min-height: calc(var(--header-h) - 1px); }
.wordmark { display: flex; align-items: center; gap: var(--space-4); text-decoration: none; color: var(--c-canvas); line-height: 1.1; }
/* Lab logo, inline SVG from site.js (content/derived/logos/konrylab-logo-on-dark.svg). Wix: header logo image. */
.wordmark__logo { display: block; height: 46px; width: auto; flex: none; }
.wordmark__univ { font: 400 0.8125rem/1.3 var(--font-body); color: var(--c-grey-on-dark); letter-spacing: 0.02em; max-width: 24ch;
                  border-left: 1px solid var(--c-ink-700); padding-left: var(--space-4); }
.wordmark__lab { font: 600 1.625rem/1.1 var(--font-display); }
@media (max-width: 750px) {
  .wordmark__univ { display: none; }  /* phone: logo only; the footer names the university */
  .wordmark__logo { height: 38px; }
}
.nav-toggle { display: none; }
.site-nav ul { display: flex; align-items: center; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.site-nav a { display: inline-block; padding: var(--space-2) 0; text-decoration: none; color: var(--c-canvas); font-weight: 400; border-bottom: var(--rule-accent) solid transparent; }
.site-nav a:hover { border-bottom-color: var(--c-ink-700); }
.site-nav a[aria-current="page"] { font-weight: 700; border-bottom-color: var(--c-nu-red); } /* weight + bar: not colour alone */
.site-nav .btn { display: inline-flex; align-items: center; margin-left: var(--space-3); border-bottom: 0; padding: 0 var(--space-5); font-weight: 700; }
/* Menu button up to 1100 px: at 1001–1100 px the full nav no longer fits beside the logo (Contact Us ran off the edge at 1024). */
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-4);
                background: transparent; color: var(--c-canvas); border: 1px solid var(--c-ink-700); border-radius: var(--radius); font: 700 1rem var(--font-body); cursor: pointer; }
  /* The open menu scrolls inside itself when the screen is short (a phone held sideways). */
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--c-ink-900); border-bottom: 1px solid var(--c-ink-700); display: none;
              max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; }
  .site-nav[data-open="true"] { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-3) var(--gutter) var(--space-5); }
  .site-nav li a { display: block; padding: var(--space-3) 0; border-bottom: 1px solid var(--c-ink-700); }
  .site-nav a[aria-current="page"] { border-bottom: 1px solid var(--c-ink-700); border-left: var(--rule-accent) solid var(--c-nu-red); padding-left: var(--space-3); }
  .site-nav .btn { margin: var(--space-4) 0 0; justify-content: center; }
}

/* ============================================================
   6. IMAGE SLOTS — design rendering
   ============================================================ */
.slot { margin: 0; position: relative; }
.slot:empty { aspect-ratio: var(--ar, 16 / 9); }  /* holds the space until site.js fills the slot */
.slot__media { position: relative; overflow: hidden; background: var(--panel, var(--c-ink-800)); aspect-ratio: var(--ar, 16 / 9); border-radius: var(--radius-media); }
.slot__media img, .slot__media video { width: 100%; height: 100%; object-fit: cover; }
/* slots.json designFit "contain": the whole frame, centred, not a cover crop. */
.slot__media > .slot__img--contain { object-fit: contain; }
.slot--native .slot__media { aspect-ratio: auto; }
.slot--native .slot__empty { position: static; min-height: 280px; }  /* native-ratio slot has no intrinsic height to fill */
.slot--native .slot__media img { height: auto; object-fit: contain; width: auto; max-width: 100%; min-width: min(100%, 560px); margin: 0 auto; }  /* figures at natural size, never blown up past ~2× */
.slot__empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: var(--space-4);
               color: var(--muted); font-size: var(--fs-small); border: 1px dashed var(--rule);
               background: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--fg) 5%, transparent) 14px 15px); }
.slot__caption { font-size: var(--fs-small); color: var(--muted); margin-top: var(--space-3); max-width: var(--measure); }
.slot__outline { display: none; }
/* Images switch (prototype bar): a slot with a mockup alternative renders both images and
   this pair of rules shows one. !important because the outline view's own image rules are
   more specific and the switch must win in both views. */
html:not([data-art="mockup"]) .slot__img--mockup { display: none !important; }
html[data-art="mockup"] .has-mockup .slot__img--lab { display: none !important; }
html:not([data-art="mockup"]) .only-mockup, html[data-art="mockup"] .only-lab { display: none !important; }  /* captions that follow the switch */

/* Separate phone artwork (slots.json designUseMobile): the wide file above 750 px, the phone file at or below. */
@media (min-width: 751px) { .slot__media > .only-narrow { display: none !important; } }
@media (max-width: 750px) { .slot__media > .only-wide { display: none !important; } }

/* Badge on anything that is not lab data (AI art and mockup crops, publisher cover art). */
.art-badge { position: absolute; left: 8px; bottom: 8px; z-index: 2; pointer-events: none; max-width: calc(100% - 16px);
  font: 700 0.6875rem/1.25 var(--font-body); letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--c-white); background: rgba(15, 17, 21, 0.9); padding: 4px 8px; border-radius: 3px; }
.hero .art-badge, .page-head .art-badge { left: auto; right: var(--gutter); top: var(--space-4); bottom: auto; }  /* clear of the scrim */
[data-view="outline"] .art-badge { top: 8px; bottom: auto; left: 8px; right: auto; }

/* A note-only slot annotates a group of small images (icon set, logo strip): invisible in
   design view, a short annotation strip in outline view. */
.slot--note { display: none; }
[data-view="outline"] .slot--note { display: block; margin-bottom: var(--space-5); }
[data-view="outline"] .slot--note .slot__media { aspect-ratio: auto; }

/* ============================================================
   7. COMPONENTS
   ============================================================ */
/* HOME-01 Hero — shorter since D4 (261021) so the featured mosaic shows above the fold at 1440×900 */
.hero { padding: 0; min-height: min(60vh, 540px); display: grid; isolation: isolate; overflow: hidden; }
.hero .hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero .hero__bg .slot, .page-head .page-head__bg .slot { position: absolute; inset: 0; }
.hero .hero__bg .slot__media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  /* solid scrim behind the text column so text contrast never depends on the image */
  background: linear-gradient(90deg, var(--c-ink-950) 0%, var(--c-ink-950) 57%, color-mix(in srgb, var(--c-ink-950) 55%, transparent) 78%, color-mix(in srgb, var(--c-ink-950) 15%, transparent) 100%); }
.hero .container { align-self: center; padding-top: var(--space-7); padding-bottom: var(--space-8); }
.hero__copy { max-width: 760px; }  /* stays inside the solid part of the scrim (57% of 1440 = 820 px) */
.hero h1 { font-size: var(--fs-display); margin-bottom: var(--space-4); }
.hero .btn-row { margin-top: var(--space-5); }
.hero h1 .accent { color: var(--c-nu-red); }  /* large text on --c-ink-950: ≥3:1, see contrast table */
.hero .lede { color: var(--c-canvas); max-width: 56ch; }
.hero__pause { position: absolute; left: var(--gutter); bottom: var(--space-5); min-height: 40px; }
/* HOME-02 Pillar cards — 3:2 image (overrides the slot's 4:3 here; see slots.json note) */
.pillar-card { display: flex; flex-direction: column; background: var(--panel); border-radius: var(--radius-media); overflow: hidden; height: 100%; }
.pillar-card .slot { --ar: var(--ar-tile) !important; }  /* !important beats the inline --ar site.js sets from slots.json */
.pillar-card__body { display: flex; flex-direction: column; flex: 1; padding: var(--space-5); }
.pillar-card__num { font: 500 var(--fs-eyebrow)/1 var(--font-mono); letter-spacing: var(--tracking-eyebrow); color: var(--muted); }
.pillar-card h3 { margin-top: var(--space-2); }
.pillar-card p { color: var(--muted); font-size: var(--fs-small); flex: 1; }
.pillar-card a.stretched { text-decoration: none; }
.pillar-card a.stretched::after { content: ""; position: absolute; inset: 0; }
.pillar-card { position: relative; }
.pillar-card .arrow { color: var(--c-nu-red); font-size: 1.5rem; }
.pillar-card:hover { outline: 1px solid var(--rule); }
.pillar-card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.pillar-card a.stretched:focus-visible { outline: none; }
@media (max-width: 750px) { .pillar-card .slot { --ar: 3 / 1 !important; } }  /* phone: a short image band, so four cards don't fill four screens */

/* HOME-03 Capability row — icon above text so the six narrow columns read at 16–17 px */
.capability { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); align-content: start; padding-right: var(--space-3); }
.capability + .capability { border-left: 1px solid var(--rule); padding-left: var(--space-4); }
.capability svg { width: 40px; height: 40px; color: var(--c-nu-red); }  /* decorative; 3.13:1 on ink-900 */
.capability h3 { font: 700 var(--fs-small)/1.3 var(--font-body); margin: 0 0 var(--space-1); }
.capability p { font-size: var(--fs-small); color: var(--muted); margin: 0; }
@media (max-width: 1000px) { .capability + .capability { border-left: 0; padding-left: 0; } }
/* Row alignment (261109): each capability is a 3-row subgrid of the list (icon, title, caption), so a
   one-line title's caption starts level with a two-line title's. Older browsers keep the plain stack. */
@supports (grid-template-rows: subgrid) {
  .grid > .capability { grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
  .capability > div { display: contents; }
  .capability svg { margin-bottom: var(--space-3); }
}

/* HOME-04 Counters — red numerals (large text on ink-900, 3.13:1); count up in site.js */
.counter { border-top: 1px solid var(--rule); padding-top: var(--space-5); }
.counter__value { font: var(--fw-display) var(--fs-stat)/1 var(--font-display); color: var(--c-nu-red); font-variant-numeric: tabular-nums; }
.counter__value--ph { font: 400 1.125rem/1.4 var(--font-body); color: var(--fg); min-height: var(--fs-stat); display: flex; align-items: center; }
.counter__label { margin-top: var(--space-3); font: 500 var(--fs-eyebrow)/1.35 var(--font-mono); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; }
.counter__note { font-size: var(--fs-small); color: var(--muted); margin-top: var(--space-2); }
.counter__link { display: block; color: inherit; text-decoration: none; }
.counter__live { text-decoration: underline; }
.counter__link:hover .counter__label, .counter__link:focus-visible .counter__label { text-decoration: underline; }

/* Generic cards (inner pages: past projects, news) */
.card { background: var(--panel); border-radius: var(--radius-media); overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.card__kicker { font: 500 var(--fs-eyebrow)/1.35 var(--font-mono); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--muted); }
.card h3 { font-size: 1.375rem; margin: 0; }
.card p { font-size: var(--fs-small); color: var(--muted); margin: 0; }
.card .more { margin-top: auto; padding-top: var(--space-3); font-weight: 700; }

/* Image tiles — HOME-05 featured mosaic and HOME-08 explore. One 3:2 ratio, square
   corners, eyebrow + title bottom-left over a dark scrim that darkens on hover.
   Scrim is ≥85% --c-ink-950 under the text, so contrast never depends on the image.
   Wix: image with a gradient overlay + text; hover effect on the image. */
.tile { position: relative; display: flex; flex-direction: column; background: var(--panel); }
.tile .slot { --ar: var(--ar-tile) !important; }
.tile__media { position: relative; overflow: hidden; }
.tile__media::before, .tile__media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.tile__media::before { background: linear-gradient(to top, rgba(15, 17, 21, 0.94) 0%, rgba(15, 17, 21, 0.86) 45%, rgba(15, 17, 21, 0.2) 85%, rgba(15, 17, 21, 0) 100%); }
.tile__media::after { background: linear-gradient(to top, rgba(15, 17, 21, 0.5), rgba(15, 17, 21, 0.3)); opacity: 0; transition: opacity 0.6s ease; }
.tile:hover .tile__media::after, .tile:focus-within .tile__media::after { opacity: 1; }
.tile__over { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: var(--space-5); color: var(--c-canvas); }
.tile__over .kicker { color: var(--c-grey-on-dark); margin-bottom: var(--space-2); }
.tile__over h3 { margin: 0; font-size: 1.375rem; line-height: 1.2; }
.tile .art-badge { top: 8px; bottom: auto; }  /* the text owns bottom-left */
/* Collaborate tiles with a partner logo (261106): the logo on its own panel, eyebrow + title below it
   (no scrim needed). Logos are the on-dark versions used in the logo row. */
.tile--logo .tile__media::before { display: none; }
.tile--logo .tile__over { position: static; padding-bottom: 0; }
.tile__logo { aspect-ratio: 2 / 1; display: grid; place-items: center; padding: var(--space-5);
              background: var(--c-ink-950); border-bottom: 1px solid var(--c-ink-700); }
.tile__logo img { display: block; width: auto; height: auto; max-width: 62%; max-height: 112px; }  /* wide marks hit the width cap, stacked ones (BCH) the height cap */
.tile__body { padding: var(--space-4) var(--space-5) var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.tile__body p { font-size: var(--fs-small); color: var(--muted); margin: 0; }
.tile__body .more { margin-top: auto; padding-top: var(--space-2); font-weight: 700; }
.tile__body .tile__related { margin-top: auto; padding-top: var(--space-2); font-weight: 700; }
.tile__related a { position: relative; z-index: 4; }  /* above the title's stretched link (z-index 3) */
.tile a.stretched { text-decoration: none; }
.tile a.stretched::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.tile a.stretched:hover { text-decoration: underline; }
.tile a.stretched:focus-visible { outline: none; }
.tile:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Featured mosaic: one ⅔ tile + two stacked */
.mosaic { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--space-5); }
.mosaic .tile--lg { grid-row: span 2; }
.tile--lg .tile__media { flex: 1; display: flex; flex-direction: column; }
.tile--lg .slot { flex: 1; display: flex; flex-direction: column; }
.tile--lg .slot__media { flex: 1; aspect-ratio: auto; min-height: 320px; }
.tile--lg .slot__media > img, .tile--lg .slot__media > video { position: absolute; inset: 0; }
.tile--lg .tile__body { flex: 0 0 auto; }  /* the image, not the caption, takes the spare height */
.tile--lg .tile__over { padding: var(--space-6); }
.tile--lg .tile__over h3 { font-size: var(--fs-h2); font-weight: var(--fw-display); max-width: 24ch; }
.section--mosaic { padding-top: var(--space-5); }
/* Desktop only: the two stacked tiles show label + title + link (Wyss pattern) so the large
   tile stays near 3:2; their summaries stay in the page for screen readers and show on
   tablet, phone and in outline view. Review item, see the section's review flags. */
@media (min-width: 1001px) {
  html:not([data-view="outline"]) .mosaic .tile:not(.tile--lg) .tile__body p {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 1000px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic .tile--lg { grid-row: auto; grid-column: 1 / -1; }
  .tile--lg .slot__media { aspect-ratio: var(--ar-tile); min-height: 0; }
  /* Half-width tiles: long titles would climb past the strong part of the scrim, so they
     sit on the solid panel below the image (as the hero does). Explore labels stay overlaid. */
  .mosaic .tile:not(.tile--lg) .tile__over { position: static; padding: var(--space-4) var(--space-5) 0; }
  .mosaic .tile:not(.tile--lg) .tile__media::before { display: none; }
}
@media (max-width: 750px) {
  .mosaic { grid-template-columns: minmax(0, 1fr); }
  /* Phone: the large tile's title moves below its image too. */
  .mosaic .tile__over { position: static; padding: var(--space-4) var(--space-5) 0; }
  .mosaic .tile__media::before { display: none; }
  .mosaic .tile--lg .tile__over h3 { font-size: var(--fs-h3); }
}

/* HOME-08 Explore: 2 × 2 link tiles, label + arrow only */
.explore-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.tile--link .tile__over { top: 0; display: flex; align-items: end; justify-content: space-between; gap: var(--space-4); }
.tile--link .tile__over h3 { font-size: var(--fs-h2); font-weight: var(--fw-display); }
.tile--link .tile__over .arrow { font-size: 2rem; line-height: 1; }
@media (max-width: 750px) {  /* phone: still 2 × 2, as square tiles */
  .explore-grid { gap: var(--space-4); }
  .tile--link .slot { --ar: 1 / 1 !important; }
  /* the arrow goes under the label, so "Technologies" fits a tile even at 320 px */
  .tile--link .tile__over { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: var(--space-1); padding: var(--space-3); }
  .tile--link .tile__over h3 { font-size: 1.125rem; }
  .tile--link .tile__over .arrow { font-size: 1.25rem; }
}

/* HOME-09 In the lab: one muted clip + two photos, portrait 9:16 (the footage's native ratio).
   Three across at every width since 261109 (life.photo.1 removed: the clip already shows that scene). */
.life-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.slot > .video-pause { margin-top: var(--space-3); min-height: 40px; }  /* every looping clip (site.js wirePause) */
.tile__body > .video-pause { align-self: flex-start; min-height: 40px; }  /* a tile's clip: button under the tile text */
@media (max-width: 750px) { .life-grid { gap: var(--space-3); } }

/* HOME-07 Call-to-action band (NU red) */
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5) var(--space-7); }
.cta-band h2 { font-size: var(--fs-h1); margin: 0 0 var(--space-2); }
.cta-band p { font-size: var(--fs-lede); margin: 0; }

/* HOME-06 Logo marquee — one row of logos scrolling sideways on the dark band, lettering white and
   shapes in their own colours (on-dark variants, see site.js logoStrip). The track holds the row twice;
   moving it by -50% lands exactly on the copy, so the loop is seamless. */
.logo-note { margin: 0 0 var(--space-5); color: var(--muted); font-size: var(--fs-small); }
.logo-marquee { overflow: hidden;
                -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
                mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.logo-track { display: flex; width: max-content; animation: logo-scroll 50s linear infinite; }
.logo-marquee:hover .logo-track, .logo-marquee:focus-within .logo-track, .logo-marquee.is-paused .logo-track { animation-play-state: paused; }
.logo-row { display: flex; align-items: center; gap: var(--space-8); list-style: none; margin: 0; padding: 0 var(--space-8) 0 0; }
.logo-row li { flex: none; display: flex; align-items: center; height: 80px; }
.logo-tile a { display: block; }
.logo-tile img { display: block; height: 44px; width: auto; max-width: 200px; object-fit: contain;
                 opacity: 0.92; transition: opacity 0.2s; }
.logo-tile img.is-compact { height: 68px; }
.logo-tile img.is-wide { max-width: 340px; }
.logo-tile a:hover img, .logo-tile a:focus-visible img { opacity: 1; }
.logo-name { color: var(--fg); font: 600 1.125rem/1.2 var(--font-body); white-space: nowrap; opacity: 0.78; }
.logo-pause { margin-top: var(--space-4); }
@keyframes logo-scroll { to { transform: translateX(-50%); } }
@media (max-width: 750px) {
  .logo-row { gap: var(--space-7); padding-right: var(--space-7); }
  .logo-tile img { height: 34px; max-width: 150px; }
  .logo-tile img.is-compact { height: 52px; }
  .logo-tile img.is-wide { max-width: 240px; }
}
@media (prefers-reduced-motion: reduce) {  /* no motion: the logos wrap onto as many rows as they need */
  .logo-marquee { -webkit-mask-image: none; mask-image: none; }
  .logo-track { width: auto; }
  .logo-row { flex-wrap: wrap; gap: var(--space-4) var(--space-7); padding-right: 0; }
  .logo-row[aria-hidden="true"] { display: none; }
}

/* Motion (design view only). Image slow zoom on hover; entrance fade-up on scroll
   (site.js adds .reveal only when JS runs and motion is allowed, so content is
   always visible without JS). All of it is switched off under reduced motion below. */
.tile .slot__media > img, .tile .slot__media > video,
.pillar-card .slot__media > img, .card .slot__media > img { transition: transform var(--dur-zoom) cubic-bezier(0.2, 0.6, 0.2, 1); }
@media (hover: hover) {  /* not on touch screens, where a tap would leave the image zoomed */
  html:not([data-view="outline"]) .tile:hover .slot__media > img, html:not([data-view="outline"]) .tile:hover .slot__media > video,
  html:not([data-view="outline"]) .pillar-card:hover .slot__media > img, html:not([data-view="outline"]) .card:hover .slot__media > img { transform: scale(1.05); }
}
.reveal { transition: opacity var(--dur-reveal) ease var(--reveal-delay, 0s), transform var(--dur-reveal) cubic-bezier(0.2, 0.7, 0.2, 1.08) var(--reveal-delay, 0s); }
html.motion:not([data-view="outline"]) .reveal:not(.is-in) { opacity: 0; transform: translateY(24px); }
@media print { .reveal { opacity: 1 !important; transform: none !important; transition: none !important; } }  /* print everything, scrolled to or not */

/* Page header band (Research, Technologies, Collaborate, pillar pages) */
.page-head { padding: 0; min-height: 360px; display: grid; isolation: isolate; overflow: hidden; }
.page-head .page-head__bg { position: absolute; inset: 0; z-index: -2; }
.page-head .page-head__bg .slot__media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--c-ink-950) 0%, color-mix(in srgb, var(--c-ink-950) 88%, transparent) 50%, color-mix(in srgb, var(--c-ink-950) 55%, transparent) 100%); }
.page-head .container { align-self: end; padding-top: var(--space-9); padding-bottom: var(--space-8); }
.page-head p { color: var(--c-canvas); font-size: var(--fs-lede); }
.page-head--plain { min-height: 0; }
.page-head--plain::before { display: none; }
.page-head--plain .container { padding-top: var(--space-8); padding-bottom: var(--space-7); }
/* Index-page opening (Wyss benchmark §3.2): H1 + one large lead paragraph, then an optional CTA or sub-nav. */
.page-head .page-lead { font-size: var(--fs-h3); line-height: 1.4; max-width: 44ch; margin-bottom: 0; }
.page-head .btn-row { margin-top: var(--space-6); }

/* Category sub-nav (People): mono anchor links under the page lead. Wix: horizontal menu with anchors. */
.subnav ul { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-6); list-style: none; margin: var(--space-6) 0 0; padding: var(--space-4) 0 0; border-top: 1px solid var(--rule); }
.subnav a { display: inline-block; padding: var(--space-2) 0; font: 500 var(--fs-eyebrow)/1.35 var(--font-mono); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--fg); text-decoration: none; }
.subnav a:hover { text-decoration: underline; }

/* Card tiles on inner pages (research pillars, platforms, collaborations): same 3:2 tile with the
   title on the scrim; below 1001 px the title sits on the panel under the image, as in the mosaic,
   so long titles never climb past the strong part of the scrim. */
.tile--card .tile__over h3 { font-size: var(--fs-h3); }
/* Row alignment (261109): where tiles sit side by side, each title reserves two lines, so one- and
   two-line titles start level; tag chips sit at the foot of the tile body, level across the row. */
@media (min-width: 751px) { .tile--card .tile__over h3 { min-height: 2.4em; } }
.tile--card .tag-list { margin-top: auto; padding-top: var(--space-2); }
/* Collaborate, "Collaborations to date" (261109): a photo tile shows its title under a 2:1 image, as the
   logo tiles do under their 2:1 logo panel, and each tile is a 4-row subgrid (image, kicker, title, text),
   so kickers, titles and text start level across a row however many lines each takes. */
.collab-grid .tile .slot { --ar: 2 / 1 !important; }
.collab-grid .tile__over { position: static; padding-bottom: 0; }
.collab-grid .tile__media::before { display: none; }
@supports (grid-template-rows: subgrid) {
  .collab-grid > .tile { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; }
  .collab-grid .tile__media { grid-row: span 3; display: grid; grid-template-rows: subgrid; }
  .collab-grid .tile__over { grid-row: span 2; display: grid; grid-template-rows: subgrid; }
}
@media (max-width: 1000px) {
  .tile--card .tile__over { position: static; padding: var(--space-4) var(--space-5) 0; }
  .tile--card .tile__media::before { display: none; }
}

/* Publication cards (Publications page, pillar key papers): year + badges, mono journal label,
   bold title, authors, DOI link with an external-link icon. Wix: repeater card. */
.pub-card .card__body { gap: var(--space-3); }
/* Key papers: figure or issue cover on white, shown whole (figures are not cropped) */
.slot--contain .slot__media { background: var(--c-white); }
.slot--contain .slot__media img { object-fit: contain; }
.key-papers .slot__caption { padding: 0 var(--space-5); }
.key-years { margin-top: var(--space-8); }
.key-years h3 { margin: 0 0 var(--space-4); }
[data-render="pillar-figure"] .slot + .slot { margin-top: var(--space-7); }  /* a pillar with two figures */
.pub-card__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); font-size: var(--fs-small); color: var(--muted); }
.pub-card__badges { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pub-card .badge { color: var(--muted); }
.pub-card .badge--accent { color: var(--c-white); }
.pub-card .kicker { margin: 0; }
.kicker mark.ph { font: 400 0.8125rem/1.35 var(--font-body); letter-spacing: normal; text-transform: none; }  /* placeholder journals stay readable */
.pub-card h3 { font: 700 1.1875rem/1.35 var(--font-display); }
.pub-card__link { margin-top: auto; padding-top: var(--space-2); font-size: var(--fs-small); font-weight: 700; overflow-wrap: anywhere; }
/* Row alignment (261109): in a list, each card is a 6-row subgrid (figure + credit, year/badges, journal,
   title, authors, DOI link), so every part starts level with its neighbours' however many lines a credit,
   journal name or title takes. A card with no figure leaves row 1 empty. The body keeps its own gap.
   Wix repeaters can't share rows; there, give the journal and title boxes fixed heights instead. */
@supports (grid-template-rows: subgrid) {
  .grid > .pub-card { display: grid; grid-template-rows: subgrid; grid-row: span 6; row-gap: 0; }
  .pub-card > .slot { grid-row: 1; }
  .pub-card > .card__body { grid-row: 2 / span 5; display: grid; grid-template-rows: subgrid; }
  .pub-card__top { grid-row: 1; }
  .pub-card .kicker { grid-row: 2; }
  .pub-card h3 { grid-row: 3; }
  .pub-card .card__body > p:not(.kicker) { grid-row: 4; }
  .pub-card__link { grid-row: 5; margin-top: 0; }
}
.ext-icon { display: inline-block; width: 0.85em; height: 0.85em; margin-left: 0.3em; vertical-align: -0.05em; }

/* Patent cards and status filter chips (Technologies). Wix: repeater + filter buttons. */
.patent .kicker { margin: 0; color: var(--fg); }
.patent h3 { font: 600 1.1875rem/1.35 var(--font-display); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: 0 0 var(--space-4); }
.chip-btn { min-height: 44px; padding: 0 var(--space-4); font: 500 var(--fs-eyebrow)/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase;
            background: transparent; color: var(--fg); border: 1px solid var(--muted); border-radius: var(--radius); cursor: pointer; }
.chip-btn:hover { background: color-mix(in srgb, var(--fg) 10%, transparent); }
.chip-btn[aria-pressed="true"] { background: var(--c-canvas); color: var(--c-ink-800); border-color: var(--c-canvas); }

/* Detail template (pillar pages, Wyss benchmark §3.3): facts table + text left, sticky contact card right. */
.detail { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--space-7); align-items: start; }
.detail__aside { position: sticky; top: 100px; }
.side-card { background: var(--bg); color: var(--fg); padding: var(--space-6); }
.detail__clip { margin-bottom: var(--space-5); }  /* pillar 3: organoid clip, caption and pause button above the card */
/* With the clip the column is 600–850 px tall (the clip widens with the screen), so a sticky column would keep the
   card's button off short screens. Instead the column scrolls with the page and only the card sticks, down the
   full height of the text beside it. */
.detail__aside--clip { position: static; align-self: stretch; }
.detail__aside--clip .side-card { position: sticky; top: 100px; }
.side-card h2 { font-size: var(--fs-h3); margin-bottom: var(--space-5); }
.detail .prose + .prose { margin-top: var(--space-8); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); margin: 0 0 var(--space-8); }
.facts > div { border-top: 1px solid var(--rule); padding-top: var(--space-4); }
.facts dt { font: 500 var(--fs-eyebrow)/1.35 var(--font-mono); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--muted); margin-bottom: var(--space-2); }
.facts dd { margin: 0; font-size: var(--fs-small); }
.facts dd ul { list-style: none; margin: 0; padding: 0; }
.facts dd a { display: inline-block; padding-block: 3px; }  /* tap target ≥ 24 px (WCAG 2.5.8) */
@media (max-width: 1000px) {
  .detail { grid-template-columns: minmax(0, 1fr); }
  .detail__aside { position: static; }
}
@media (max-width: 750px) { .facts { grid-template-columns: minmax(0, 1fr); } }

/* Tablet and phone: the copy is wider than the scrim's solid zone, so instead of putting
   text over an unknown image, stack the image above the copy on a solid background.
   Contrast then never depends on which image the lab chooses. Must come after the hero
   and page-head rules above: same specificity, so source order decides. */
@media (max-width: 1000px) {
  .hero, .page-head:not(.page-head--plain) { min-height: 0; display: block; background: var(--c-ink-950); }
  .hero::before, .page-head::before { display: none; }
  .hero .hero__bg, .page-head .page-head__bg { position: relative; inset: auto; z-index: auto; height: 46vw; max-height: 420px; }
  .hero .container, .page-head .container { padding-top: var(--space-7); padding-bottom: var(--space-8); }
  [data-view="outline"] .hero .hero__bg, [data-view="outline"] .page-head .page-head__bg { height: auto; max-height: none; }
}


/* Long text (light sections) */
.prose p { max-width: var(--measure); }
.prose h3 { margin-top: var(--space-7); }
.prose h3:first-child { margin-top: 0; }
.side-note { font-size: var(--fs-small); color: var(--muted); border-left: var(--rule-accent) solid var(--c-nu-red); padding-left: var(--space-4); }

/* Lists: badges, filters, people */
.list-plain { list-style: none; margin: 0; padding: 0; }
.badge { display: inline-block; font: 700 0.75rem/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 8px;
         border-radius: 999px; border: 1px solid currentColor; vertical-align: middle; }
.badge--accent { background: var(--c-nu-red); color: var(--c-white); border-color: var(--c-nu-red); }
.filters { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: end; padding: var(--space-5); background: var(--panel); border-radius: var(--radius); margin-bottom: var(--space-6); }
.field { display: grid; gap: var(--space-1); font-size: var(--fs-small); font-weight: 700; }
.field input[type="search"], .field select { font: 400 1rem var(--font-body); min-height: 44px; padding: 0 var(--space-3); border: 1px solid var(--c-grey-on-light);
         border-radius: var(--radius); background: var(--c-white); color: var(--c-ink-800); min-width: 220px; }
.field--check { display: flex; align-items: center; gap: var(--space-2); min-height: 44px; }
.field--check input { width: 20px; height: 20px; accent-color: var(--c-nu-red); }
.result-count { font-size: var(--fs-small); color: var(--muted); }
/* Publications: year, journal and "featured" sit behind a disclosure on phones (site.js opens it on wider screens). */
.filters__more > summary { display: none; }
.filters__more-body { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: end; }
@media (max-width: 750px) {
  .filters__more { display: block; flex-basis: 100%; }
  .filters__more > summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 700; font-size: var(--fs-small); }
  .filters__more[open] > summary { margin-bottom: var(--space-3); }
  .field input[type="search"], .field select { min-width: 0; width: 100%; }
  .filters .field:not(.field--check) { flex: 1 1 100%; }
}
.empty-state { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); padding: var(--space-5); background: var(--panel); border-radius: var(--radius); }
.empty-state p { margin: 0; }
.year-jump { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-6); }
.year-jump a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--space-3); border: 1px solid var(--rule); border-radius: 999px;
               font: 500 var(--fs-eyebrow)/1 var(--font-mono); text-decoration: none; }
.year-jump a:hover { border-color: var(--fg); }
.pub-year + .pub-year { margin-top: var(--space-7); }
.pub-year > h3 { font: 500 var(--fs-eyebrow)/1.35 var(--font-mono); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--muted);
                 border-top: 1px solid var(--rule); padding-top: var(--space-3); margin: 0 0 var(--space-4); }
@media (max-width: 750px) {  /* phone: one swipeable row of years, and tighter cards */
  .year-jump { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) var(--space-2); }
  .year-jump a { flex: none; }
  .pub-year + .pub-year { margin-top: var(--space-5); }
  .pub-year .grid { gap: var(--space-4); }
  .pub-card .card__body { padding: var(--space-4); gap: var(--space-2); }
}
/* Technologies on phones: the first six filings, then "Show all" (site.js). */
.show-all { display: none; margin-top: var(--space-5); }
@media (max-width: 750px) {
  .patent-list:not(.is-expanded) > .patent:nth-child(n+7) { display: none; }
  .patent-list:not(.is-expanded) + .show-all { display: inline-flex; }
}
.table-wrap { overflow-x: auto; }
.person { display: grid; gap: var(--space-3); }
.person .slot__media { aspect-ratio: 1 / 1; }
.person__media .slot__media > img, .person__media .slot__media > video { display: block; position: absolute; inset: 0; }
.person__media .person__clip { opacity: 0; object-fit: contain; background: var(--c-ink-950); transition: opacity 180ms ease; pointer-events: none; }
.person__media.is-playing .person__clip { opacity: 1; }
.person__clip-toggle { position: absolute; z-index: 1; right: 10px; bottom: 10px; min-height: 44px; max-width: calc(100% - 20px); padding: 8px 12px; border: 1px solid rgba(255,255,255,.6); border-radius: var(--radius); background: rgba(18,20,25,.9); color: #fff; cursor: pointer; font: 600 .8125rem/1.3 var(--font-body); }
.person__clip-toggle:hover { background: var(--c-ink-950); }
.person__clip-toggle:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.person__media:has(.person__clip-toggle:focus-visible) .slot__media { outline: 2px solid var(--focus, #fff); outline-offset: 3px; }
.person__name { font: 600 1.125rem/1.3 var(--font-display); margin: 0; }
.person__role { font-size: var(--fs-small); color: var(--muted); margin: 0; }
.person__links { display: flex; gap: var(--space-3); font-size: var(--fs-small); }
.people-group + .people-group { margin-top: var(--space-8); }
@media (max-width: 750px) { .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-4); } }  /* two headshots per row on phones */
.alumni-cols { columns: 3 220px; column-gap: var(--space-6); font-size: var(--fs-small); }
.alumni-cols li { break-inside: avoid; padding: 2px 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; margin: var(--space-3) 0 0; }
.tag-list li { font-size: 0.8125rem; border: 1px solid var(--rule); border-radius: 999px; padding: 4px 10px; }
.tag-list a { display: inline-block; margin: -4px -10px; padding: 4px 10px; }  /* the whole pill is the link */
.contact-affil { margin-top: var(--space-4); }  /* Contact: affiliations under the PI's name (261109) */
.contact-block address { font-style: normal; line-height: 1.7; }
.contact-block h3 { margin-top: var(--space-6); margin-bottom: var(--space-2); }
.pillar-nav { display: flex; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; }

/* Footer (Wix: global footer) */
.site-footer { font-size: var(--fs-small); }
.site-footer h2 { font: 500 var(--fs-eyebrow)/1.35 var(--font-mono); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--muted); margin-bottom: var(--space-4); }
/* Newsletter row (D5) — placeholder only: no action URL, controls disabled, submit prevented in site.js */
.newsletter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4) var(--space-7); align-items: end;
              padding-bottom: var(--space-7); margin-bottom: var(--space-7); border-bottom: 1px solid var(--rule); }
.newsletter p { margin: 0; }
.newsletter__form { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: end; }
.newsletter__form .field { flex: 1 1 240px; }
.newsletter__form input[type="email"] { font: 400 1rem var(--font-body); min-height: 48px; padding: 0 var(--space-3); border: 1px solid var(--c-grey-on-light);
         border-radius: var(--radius); background: var(--c-white); color: var(--c-ink-800); width: 100%; }
.newsletter__form :disabled { cursor: not-allowed; opacity: 0.7; }
@media (max-width: 750px) { .newsletter { grid-template-columns: minmax(0, 1fr); } }
.site-footer h2.footer-logo { margin-bottom: var(--space-4); text-transform: none; letter-spacing: normal; }  /* don't leak the eyebrow style into the SVG text */
.footer-logo__svg { display: block; height: 88px; width: auto; }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer a { display: inline-block; padding-block: 2px; }  /* tap target ≥ 24 px (WCAG 2.5.8) */
.site-footer ul { list-style: none; padding: 0; margin: 0; line-height: 2; }
.site-footer .legal { margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid var(--rule); color: var(--muted); }

/* Placeholders and flags in text — visible in both views */
mark.ph { background: color-mix(in srgb, #FFE58F 85%, transparent); color: #1E2028; padding: 0 3px; border-radius: 2px; font-size: 0.92em; }
.review-flags { display: none; }

/* Reduced motion: no autoplay, no smooth effects */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  /* no hover zoom, no entrance offset, header never hidden (site.js also skips these) */
  .slot__media > img, .slot__media > video { transform: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .site-header.is-hidden { transform: none !important; }
}

/* ============================================================
   8. OUTLINE VIEW — greyscale wireframe + annotations
   Tokens are swapped to greys so the page reads as structure. Since D3 (all dark) every
   scheme is a dark grey; the red band is marked with a dashed red outline.
   ============================================================ */
[data-view="outline"] .scheme-dark,
[data-view="outline"] .scheme-panel,
[data-view="outline"] .scheme-light,
[data-view="outline"] .scheme-red { --bg: #3B3E45; --panel: #4A4E57; --fg: #FFFFFF; --muted: #E3E4E7; --rule: #6B6F78; --focus: #FFFFFF; }
[data-view="outline"] .scheme-red { outline-color: #C8102E !important; }
[data-view="outline"] .side-card { outline: 2px dashed #C8102E; outline-offset: -2px; }  /* the red sticky card, marked like the red band */
[data-view="outline"] .tile__media::before, [data-view="outline"] .tile__media::after { display: none; }
[data-view="outline"] .tile__over { position: static; padding: var(--space-4) var(--space-4) 0; color: var(--fg); }
[data-view="outline"] .tile__over .kicker { color: var(--muted); }
[data-view="outline"] .tile--lg .slot__media > img, [data-view="outline"] .tile--lg .slot__media > video { position: static; }
[data-view="outline"] .tile--lg .slot__media { min-height: 0; }
[data-view="outline"] body, body[data-view="outline"] { background: #3B3E45; }
[data-view="outline"] .hero::before, [data-view="outline"] .page-head::before { background: none; }
[data-view="outline"] .hero, [data-view="outline"] .page-head { min-height: 0; }
[data-view="outline"] .hero .hero__bg, [data-view="outline"] .page-head .page-head__bg { position: static; z-index: auto; }
[data-view="outline"] .hero .hero__bg .slot__media, [data-view="outline"] .page-head .page-head__bg .slot__media { position: relative; }
[data-view="outline"] .hero__pause { display: none; }
[data-view="outline"] .btn--primary { background: #1E2028; color: #FFFFFF; outline: 2px dashed #C8102E; outline-offset: 2px; }
[data-view="outline"] .hero h1 .accent { color: inherit; text-decoration: underline 3px #C8102E; }
[data-view="outline"] .section { padding-top: 14px; padding-bottom: calc(var(--section-pad-y) * 0.6); outline: 2px dashed var(--rule); outline-offset: -10px; }
[data-view="outline"] .site-header { position: relative; outline: 2px dashed #6B6F78; outline-offset: -6px; }

/* Section label (injected by site.js) */
.sec-label { display: none; }
/* in normal flow, so a label that wraps to several lines on a phone pushes content down instead of covering it */
[data-view="outline"] .sec-label { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; position: relative; margin: 0 14px calc(var(--section-pad-y) * 0.45); z-index: 5;
  font: 600 0.75rem/1.35 ui-monospace, "SF Mono", Menlo, monospace; color: #1E2028; }
[data-view="outline"] .sec-label > * { background: #FFE58F; padding: 2px 8px; border-radius: 3px; }
[data-view="outline"] .sec-label .sec-label__wix { background: #DCE7FF; }
[data-view="outline"] .sec-label .sec-label__src { background: #E8F5E0; }

/* Slot in outline view: the image that fills it (or a hatched "Image needed" panel) at the
   slot's ratio on top, and the slot's brief underneath — so the skeleton shows real pictures. */
[data-view="outline"] .slot__media { background: #F7F7F5; border: 2px solid #1E2028; color: #1E2028; aspect-ratio: auto; overflow: visible; }
[data-view="outline"] .slot__media > img, [data-view="outline"] .slot__media > video {
  display: block; width: 100%; height: auto; aspect-ratio: var(--ar, 16 / 9); object-fit: cover; border-bottom: 2px solid #1E2028; background: #1E2028; }
[data-view="outline"] .slot--native .slot__media > img { aspect-ratio: auto; object-fit: contain; }
[data-view="outline"] .slot__media > .slot__empty { position: static; aspect-ratio: var(--ar, 16 / 9); border: 0; border-bottom: 2px solid #1E2028; color: #1E2028;
  background: repeating-linear-gradient(135deg, #F7F7F5 0 12px, #E6E6E2 12px 13px); font-weight: 700; }
[data-view="outline"] .slot--note .slot__media > .slot__empty, [data-view="outline"] .slot--compact .slot__media > .slot__empty { aspect-ratio: auto; min-height: 0; }
[data-view="outline"] .slot--note .slot__media > .slot__empty { display: none; }
[data-view="outline"] .hero .slot__media, [data-view="outline"] .page-head .slot__media { min-height: 0; }
[data-view="outline"] .hero .slot__media > img, [data-view="outline"] .page-head .slot__media > img { aspect-ratio: var(--ar, 16 / 9); }
[data-view="outline"] .slot__outline { display: block; padding: var(--space-3); font: 400 0.8125rem/1.45 var(--font-body); color: #1E2028; }
[data-view="outline"] .slot .slot__outline p, [data-view="outline"] .slot .slot__outline span:not(.chip) { color: #1E2028; font-size: 0.8125rem; }  /* beat component text colours */
/* Background slots (hero, page headers): in outline view a labelled box above the copy */
[data-view="outline"] .hero .hero__bg .slot, [data-view="outline"] .page-head .page-head__bg .slot { position: relative; inset: auto; max-width: 760px; }
[data-view="outline"] .hero__bg, [data-view="outline"] .page-head__bg { max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto var(--space-5); padding: 0 var(--gutter); }
[data-view="outline"] .hero__bg .slot__outline::before, [data-view="outline"] .page-head__bg .slot__outline::before {
  content: "Full-bleed background behind this section's text"; display: block; font-weight: 700; color: #A50D26; margin-bottom: 4px; }
.slot__outline .so-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; font: 600 0.75rem/1.3 ui-monospace, "SF Mono", Menlo, monospace; }
.slot__outline .so-purpose { font-weight: 700; margin: 0 0 4px; }
.slot__outline .so-row { margin: 0 0 3px; max-width: none; }
.slot__outline .so-row b { font-weight: 700; }
.slot__outline .so-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.slot__outline .so-thumbs img { height: 52px; width: auto; border: 1px solid #1E2028; background: #FFF; }
.slot--compact .slot__outline .so-row, .slot--compact .slot__outline .so-thumbs { display: none; }
.chip { display: inline-block; padding: 2px 8px; border-radius: 999px; font: 700 0.6875rem/1.4 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid #1E2028; color: #1E2028; }
.chip--have { background: #BDE8C4; }
.chip--candidate { background: #FFE2A8; }
.chip--needed { background: #FFC9C9; }
.chip--blocked { background: #DCD0F5; }
[data-view="outline"] .review-flags { display: block; margin: var(--space-2) 0 0; padding: var(--space-2) var(--space-3); list-style: none;
  background: #FFF4CC; color: #1E2028; border-left: 4px solid #C8102E; font-size: 0.8125rem; line-height: 1.45; border-radius: 2px; }
[data-view="outline"] .review-flags li + li { margin-top: 2px; }
[data-view="outline"] .consent-chip { display: inline-block; }
.consent-chip { display: none; }

/* Per-page slot legend (outline view only; injected by site.js) */
.slot-legend { display: none; }
[data-view="outline"] .slot-legend { display: block; }
.legend-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; background: #FFFFFF; color: #1E2028; }
.legend-table th, .legend-table td { border: 1px solid #C9CAC6; padding: 8px; text-align: left; vertical-align: top; }
.legend-table th { background: #F1F1EF; }
.legend-table td img { height: 56px; width: auto; border: 1px solid #1E2028; margin: 0 4px 4px 0; display: inline-block; }
.legend-table code { font-size: 0.75rem; }

/* outline.html — the site map */
.map-tree { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--space-5); }
.map-page { background: var(--panel); border-radius: var(--radius); padding: var(--space-4); }
.map-page h3 { font: 700 1rem/1.3 var(--font-body); margin: 0 0 var(--space-3); }
.map-page ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.map-sec { border: 1px solid var(--rule); border-radius: 3px; padding: 6px 8px; font-size: 0.8125rem; line-height: 1.35; }
.map-sec--dark { background: #3B3E45; color: #FFFFFF; border-color: #3B3E45; }
.map-sec--light { background: #FFFFFF; color: #1E2028; }
.map-sec small { display: block; opacity: 0.85; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.6875rem; }
.map-preview { display: block; margin: 0 0 var(--space-3); max-height: 320px; overflow: hidden; border: 1px solid var(--rule); border-radius: 3px; background: #121419; }
.map-preview img { width: 100%; height: auto; }
.map-thumbs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.map-thumbs img { height: 40px; width: auto; max-width: 72px; object-fit: cover; border: 1px solid #FFFFFF; border-radius: 2px; background: #FFFFFF; }
.map-thumbs img.is-art { outline: 2px solid #C8102E; outline-offset: 0; }
.map-thumb-empty { display: inline-grid; place-items: center; height: 40px; padding: 0 8px; font: 700 0.625rem/1 var(--font-body); text-transform: uppercase;
  color: #1E2028; border: 1px dashed currentColor; border-radius: 2px; background: repeating-linear-gradient(135deg, #F7F7F5 0 6px, #E6E6E2 6px 7px); }
.status-summary { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: 0 0 var(--space-5); padding: 0; list-style: none; }
