/* tayyibe.com · site.css
   Tokens, base, layout, header and locus bar, hero frame, sections, figure plate,
   lightbox, skills, timeline, talks, contact, footer. Tree internals live in tree.css. */

/* ------------------------------------------------------------------ 1. tokens */
/* White is the default for everyone; the dark theme applies only when a visitor picks it
   (html[data-theme="dark"], set by js/head.js from the saved choice). */
:root {
  color-scheme: light;

  --paper: #FFFFFF;          /* page ground: the white theme (cards are outlined) */
  --card: #FFFFFF;           /* cards and figure frames */
  --ink: #17142B;            /* indigo ink: text, DNA strands */
  --ink-2: #4B4766;          /* secondary text, track labels (8.8:1 on paper) */
  --line: rgba(23, 20, 43, .14);
  --line-2: rgba(23, 20, 43, .32);
  --open: #0B6E73;           /* accessible DNA, coverage, links */
  --tn5: #C3313F;            /* Tn5 insertions, focus ring, active state */
  --histone: #B9A2DA;        /* nucleosome fill (with an ink outline) */
  --peak: #E4A12F;           /* called peaks (with an ink outline) */
  --nucleus: #14112A;        /* optional deep hero band */
  --nucleus-ink: #ECEAF5;
  --mat: #FFFFFF;            /* thesis figures always sit on white */
  --base-a: #1F9E73;
  --base-c: #3D6FE0;
  --base-g: #E4A12F;
  --base-t: #D9475B;

  --font-display: "Anybody", "Arial Narrow", "Helvetica Neue", system-ui, sans-serif;
  --font-body: "Newsreader", Georgia, "Times New Roman", serif;
  --font-mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --maxw: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --pad-x: max(var(--gutter), calc((100% - var(--maxw)) / 2));
  --label-col: 8.25rem;      /* track-label gutter on wide screens */
  --col-gap: clamp(1.75rem, 3vw, 2.75rem);
  --header-h: 3.75rem;
  --locus-h: 1.25rem;
  --radius: 12px;
  --radius-sm: 6px;

  /* hero stage: height and track bands (fractions of the stage height, in %) */
  --stage-h: clamp(18.75rem, 25vw, 20rem);
  --trk-chromatin: 46;
  --trk-tn5: 14;
  --trk-coverage: 24;
  --trk-peaks: 16;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #100E1E;
  --card: #1A1730;
  --ink: #ECEAF5;
  --ink-2: #AAA5C4;
  --line: rgba(236, 234, 245, .14);
  --line-2: rgba(236, 234, 245, .32);
  --open: #45C7C3;
  --tn5: #FF6B76;
  --histone: #8E70BE;
  --peak: #F0B653;
  --base-a: #5FD3A6;
  --base-c: #7FA2FF;
  --base-g: #F2C15F;
  --base-t: #FF7E8C;
}

@media (min-width: 40rem) {
  :root { --header-h: 4rem; }
}

/* ------------------------------------------------------------------ 2. base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--locus-h) + 1.25rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html.menu-open, html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
img, svg, canvas, picture { max-width: 100%; }
img { display: block; height: auto; }
button { font: inherit; color: inherit; }

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 112%;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h3 {
  font-family: var(--font-display);
  font-weight: 650;
  font-stretch: 100%;
  font-size: 1.35rem;
  line-height: 1.22;
  letter-spacing: -0.003em;
  text-wrap: balance;
}

a {
  color: var(--open);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  transition: text-decoration-thickness .15s, color .15s;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--tn5);
  outline-offset: 2px;
}
:focus:not(:focus-visible) { outline: none; }
main:focus { outline: none; }

::selection { background: color-mix(in srgb, var(--histone) 55%, transparent); }

.mono,
.eyebrow,
.track-label,
.small-note {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-weight: 450;
  font-size: .78rem;
  line-height: 1.5;
  letter-spacing: .02em;
  color: var(--ink-2);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  padding: .7rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--paper);
  font: 500 .8rem/1 var(--font-mono);
  text-decoration: none;
}
.skip-link:focus { top: .75rem; }

.prose p + p { margin-top: 1em; }

.lead {
  font-size: clamp(1.25rem, 2.1vw, 1.5rem);
  line-height: 1.38;
  font-weight: 400;
  text-wrap: pretty;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.875rem;
  padding: .7rem 1rem;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font: 500 .8rem/1.2 var(--font-mono);
  font-stretch: 87.5%;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { border-color: var(--open); color: var(--open); }
@media (min-width: 40rem) { .btn { padding-inline: 1.2rem; } }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--open); border-color: var(--open); color: var(--paper); }

.btn-small,
.chromatin-pause,
.chromatin-reset,
.lightbox-bar button,
.plate-open {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.25rem;
  padding: 0 .9rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: 500 .72rem/1 var(--font-mono);
  font-stretch: 87.5%;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .15s, background-color .15s, color .15s;
}
.btn-small:hover,
.chromatin-pause:hover,
.chromatin-reset:hover,
.lightbox-bar button:hover,
.plate-open:hover { border-color: var(--ink); }

/* ------------------------------------------------------------------ 3. header, nav, locus bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
  padding-inline: var(--pad-x);
}
/* wordmark: the name as a DNA sequence (the .nt stacks are defined with the footer) */
.wordmark {
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink);
  text-decoration: none;
}
.seq {
  --stack: 8px;
  display: inline-flex;
  gap: .85ch;
  font: 600 .9rem/1 var(--font-mono);
  font-stretch: 100%;
  letter-spacing: 0;
}
.seq-word { display: inline-flex; }
.wordmark .nt::after { transform-origin: 50% 0; transition: transform .2s ease-out; }
.wordmark:hover .nt::after { transform: scaleY(1.45); }
@media (max-width: 31.99rem) {
  /* phones: TAYYIBE over KANSOY */
  .seq { --stack: 5px; flex-direction: column; gap: 4px; font-size: .74rem; }
}

.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex;
  gap: clamp(.9rem, 1.9vw, 1.9rem);
  list-style: none;
}
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink-2);
  font: 450 .8rem/1 var(--font-mono);
  font-stretch: 87.5%;
  letter-spacing: .02em;
  text-decoration: none;
  transition: color .15s;
}
.site-nav a:hover,
.site-nav a[aria-current="true"] { color: var(--ink); }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .55rem;
  height: 2px;
  border-radius: 1px;
  background: var(--tn5);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease-out;
}
.site-nav a[aria-current="true"]::after { transform: scaleX(1); }

/* theme switch: white / dark. js/head.js sets html[data-theme] before first paint and
   adds .has-theme-switch, so without JS the switch never shows. */
.theme-switch { display: none; }
.has-theme-switch .theme-switch {
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--card);
}
.theme-opt {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 2.25rem;
  padding: 0 .7rem 0 .55rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: 500 .72rem/1 var(--font-mono);
  font-stretch: 87.5%;
  letter-spacing: .02em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.theme-opt:hover { color: var(--ink); }
.theme-opt[aria-pressed="true"] { background: var(--ink); color: var(--paper); cursor: default; }
.theme-swatch {
  flex: none;
  width: .8rem;
  height: .8rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.theme-opt[data-theme-choice="light"] .theme-swatch { background: #FFFFFF; }
.theme-opt[data-theme-choice="dark"] .theme-swatch { background: var(--nucleus); }

.menu-toggle { display: none; }

@media (max-width: 54.99rem) {
  .menu-toggle {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-left: auto;
    min-height: 2.75rem;
    padding: 0 1.05rem;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: var(--card);
    color: var(--ink);
    font: 500 .78rem/1 var(--font-mono);
    font-stretch: 87.5%;
    cursor: pointer;
  }
  .menu-toggle::before {
    content: "";
    width: .9rem;
    height: 6px;
    border-block: 1.5px solid currentColor;
    transition: transform .2s;
  }
  .menu-toggle[aria-expanded="true"]::before {
    height: 0;
    border-bottom: 0;
    transform: rotate(0);
  }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    margin: 0;
    padding: calc(var(--header-h) + 1.25rem) var(--gutter) 2.5rem;
    overflow-y: auto;
    background: var(--paper);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-.5rem);
    transition: opacity .2s ease-out, transform .2s ease-out, visibility 0s linear .2s;
  }
  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .2s ease-out, transform .2s ease-out;
  }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-top: 1px solid var(--line); }
  .site-nav li:last-child { border-bottom: 1px solid var(--line); }
  .site-nav a {
    display: flex;
    justify-content: space-between;
    min-height: 3.6rem;
    color: var(--ink);
    font: 400 1.75rem/1.1 var(--font-body);
    letter-spacing: -.005em;
  }
  .site-nav a::after {
    position: static;
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    transform: scale(0);
  }
  .site-nav a[aria-current="true"]::after { transform: scale(1); }

  .has-theme-switch .theme-switch { margin-left: auto; }
  .has-theme-switch .menu-toggle { margin-left: 0; }
}
@media (max-width: 29.99rem) {
  .header-inner { gap: .75rem; }
}
@media (max-width: 23.99rem), (min-width: 55rem) and (max-width: 63.99rem) {
  /* small phones, and laptops where the full nav is tight: swatches only;
     the words stay for screen readers */
  .theme-opt { padding: 0 .55rem; }
  .theme-word {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* locus bar: a chromosome ideogram of the page, drawn by nav.js */
.locus {
  position: relative;
  height: var(--locus-h);
  padding-inline: var(--pad-x);
}
.locus svg { display: block; width: 100%; height: 100%; overflow: visible; }
.lc-band { cursor: pointer; }
.lc-s0 { fill: color-mix(in srgb, var(--ink) 5%, var(--card)); }
.lc-s1 { fill: color-mix(in srgb, var(--ink) 38%, var(--card)); }
.lc-s2 { fill: color-mix(in srgb, var(--ink) 16%, var(--card)); }
.lc-s3 { fill: color-mix(in srgb, var(--ink) 60%, var(--card)); }
.lc-band:hover { fill: color-mix(in srgb, var(--open) 55%, var(--card)); }
.lc-outline { fill: none; stroke: var(--line-2); stroke-width: 1; }
.lc-view {
  fill: color-mix(in srgb, var(--tn5) 8%, transparent);
  stroke: var(--tn5);
  stroke-width: 2;
  pointer-events: none;
}

/* ------------------------------------------------------------------ 4. hero */
.hero {
  display: grid;
  row-gap: clamp(2rem, 4vw, 2.75rem);
  padding: clamp(2rem, 4.5vw, 3.25rem) var(--pad-x) clamp(3.5rem, 7vw, 5.5rem);
}
.hero[data-hero-theme="dark"] {
  color-scheme: dark;
  --paper: var(--nucleus);
  --card: #1C1837;
  --ink: var(--nucleus-ink);
  --ink-2: #AAA5C4;
  --line: rgba(236, 234, 245, .14);
  --line-2: rgba(236, 234, 245, .32);
  --open: #45C7C3;
  --tn5: #FF6B76;
  --histone: #8E70BE;
  --peak: #F0B653;
  --base-a: #5FD3A6;
  --base-c: #7FA2FF;
  --base-g: #F2C15F;
  --base-t: #FF7E8C;
  background: var(--nucleus);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.hero-text { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero .eyebrow { margin-bottom: clamp(.9rem, 2vw, 1.4rem); }
.hero-name {
  --name-open: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.1rem, 10.5vw, 8.75rem);
  font-stretch: calc(62% + var(--name-open) * 63%);
  line-height: .9;
  letter-spacing: -.015em;
  margin-left: -.04em;
}
/* set by js/head.js when motion is allowed, so the name is compact from the first paint
   and hero.js can open it; beats the inline style until hero.js removes the class */
.hero-armed .hero-name { --name-open: 0 !important; }
.hero-name span { display: block; white-space: nowrap; }
.tagline {
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  line-height: 1.22;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.intro {
  margin-top: .9rem;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

@media (min-width: 68rem) {
  .hero-text {
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 23rem);
    grid-template-rows: auto 1fr auto auto;
    grid-template-areas:
      "eyebrow eyebrow"
      "name    tagline"
      "name    intro"
      "name    actions";
    column-gap: clamp(1.5rem, 3vw, 3rem);
  }
  .hero .eyebrow { grid-area: eyebrow; }
  .hero-name { grid-area: name; align-self: end; }
  .tagline { grid-area: tagline; align-self: end; margin-top: 0; }
  .intro { grid-area: intro; font-size: 1.04rem; }
  .hero-actions { grid-area: actions; margin-top: 1.25rem; }
}

/* chromatin figure: a framed panel (stage + status bar), the note sits below it.
   The hero module sizes the canvas from the stage box and places the track labels
   (li: absolute, left 0, translateY(-50%), top in px). The defaults below serve the
   no-JS still and the moment before the module mounts. */
.chromatin {
  --panel-pad: .75rem;
  --label-w: 0px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-inline: var(--panel-pad);
}
.chromatin::before {
  content: "";
  grid-row: 1 / 3;
  grid-column: 1;
  margin-inline: calc(var(--panel-pad) * -1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  /* a faint violet and teal wash, like stained nucleoplasm */
  background:
    radial-gradient(42% 80% at 24% 34%, color-mix(in srgb, var(--hero-histone) 13%, transparent), transparent 72%),
    radial-gradient(38% 80% at 76% 70%, color-mix(in srgb, var(--hero-open) 9%, transparent), transparent 72%),
    var(--card);
}
/* Hero palette: richer than the page tokens, scoped to the stage (canvas, labels and the
   no-JS still). hero.js reads them from the stage at mount and on every theme change. */
.chromatin {
  --hero-ink: #2E2470;
  --hero-histone: #9B82E8;
  --hero-open: #0B8F8C;
  --hero-tn5: #E23E5B;
  --hero-peak: #F2A11F;
}
:root[data-theme="dark"] .chromatin {
  --hero-ink: #ECEAF5;
  --hero-histone: #A48BF2;
  --hero-open: #4FD8CF;
  --hero-tn5: #FF6A86;
  --hero-peak: #FFC34D;
}
.chromatin-stage {
  --ink: var(--hero-ink);
  --histone: var(--hero-histone);
  --open: var(--hero-open);
  --tn5: var(--hero-tn5);
  --peak: var(--hero-peak);
}
.chromatin-stage {
  position: relative;
  grid-row: 1;
  grid-column: 1;
  height: var(--stage-h);
  margin-top: var(--panel-pad);
  border-radius: var(--radius-sm);
  overflow: clip;
  touch-action: pan-y;
}
.chromatin-stage:focus-visible { outline-offset: 3px; }
.chromatin-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}
.chromatin-fallback {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: var(--label-w);
  z-index: 0;
  width: calc(100% - var(--label-w));
  height: 100%;
  overflow: hidden;
}
.chromatin-fallback[hidden] { display: none; }
@media (max-width: 47.99rem) {
  /* phones: shift the still so its first open region clears the label chips */
  .chromatin-fallback { width: calc(100% + 4rem); max-width: none; }
}

.track-labels {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}
.track-labels li {
  position: absolute;
  left: 0;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .66rem;
  font-weight: 450;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--ink-2);
}
/* default label rows (centres of the four bands of the still) */
.track-labels li:nth-child(1) { top: 30.6%; }
.track-labels li:nth-child(2) { top: 53%; }
.track-labels li:nth-child(3) { top: 72%; }
.track-labels li:nth-child(4) { top: 91.2%; }
/* phones: while the still shows, labels sit on small chips above the drawing */
.chromatin-stage:has(.chromatin-fallback:not([hidden])) .track-labels li {
  padding: .22rem .38rem;
  border-radius: 3px;
  background: color-mix(in srgb, var(--card) 86%, transparent);
}
.chromatin-stage:has(.chromatin-fallback:not([hidden])) .track-labels li:nth-child(1) { top: 9%; }

.chromatin-bar {
  grid-row: 2;
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .6rem;
  margin-top: var(--panel-pad);
  padding: .65rem 0 .75rem;
  border-top: 1px solid var(--line);
}
.chromatin-hint {
  flex: 1 1 100%;
  font-size: .95rem;
  line-height: 1.4;
  color: var(--ink-2);
  text-wrap: pretty;
}
.chromatin-readout {
  flex: 1 1 auto;
  min-height: 1.2em;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .72rem;
  letter-spacing: .02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.chromatin-pause[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chromatin-note {
  grid-row: 3;
  grid-column: 1;
  margin-top: .75rem;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .68rem;
  line-height: 1.5;
  letter-spacing: .02em;
  color: var(--ink-2);
}

@media (min-width: 40rem) {
  .chromatin { --panel-pad: 1rem; }
  .chromatin-hint { flex: 1 1 18rem; }
  .chromatin-readout { flex: 0 1 auto; min-width: 11.5rem; text-align: right; }
  .track-labels li { font-size: .72rem; }
}
@media (min-width: 48rem) {
  .chromatin { --label-w: 6.25rem; }
  .chromatin-stage:has(.chromatin-fallback:not([hidden])) .track-labels li {
    padding: 0;
    background: none;
  }
  .chromatin-stage:has(.chromatin-fallback:not([hidden])) .track-labels li:nth-child(1) { top: 30.6%; }
  /* the still's own band rules continue into the label gutter */
  .chromatin-stage:has(.chromatin-fallback:not([hidden]))::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: calc(var(--label-w) - .5rem);
    background:
      linear-gradient(var(--line), var(--line)) 0 46% / 100% 1px no-repeat,
      linear-gradient(var(--line), var(--line)) 0 60% / 100% 1px no-repeat,
      linear-gradient(var(--line), var(--line)) 0 84% / 100% 1px no-repeat;
  }
}

/* phones: the band sits right under the name, edge to edge, and js/hero-mobile.js plays it.
   .hero-text dissolves into the hero grid so the band can sit between name and tagline. */
@media (max-width: 47.99rem) {
  .hero { row-gap: 0; }
  .hero-text { display: contents; }
  .hero .eyebrow { order: 1; }
  .hero-name { order: 2; }
  .chromatin { order: 3; }
  .tagline { order: 4; }
  .intro { order: 5; }
  .hero-actions { order: 6; }
  .chromatin {
    --panel-pad: 0px;
    margin: clamp(1rem, 4vw, 1.5rem) calc(var(--pad-x) * -1) 0;
  }
  .chromatin::before { border-inline: 0; border-radius: 0; }
  .chromatin-stage { height: clamp(11.5rem, 50vw, 14rem); margin-top: 0; border-radius: 0; }
  .chromatin-bar, .chromatin-note { padding-inline: var(--gutter); }
  .chromatin-bar { flex-wrap: nowrap; padding-block: .55rem .6rem; }
  .chromatin-bar .chromatin-readout { flex: 1 1 0; min-width: 0; }
  .chromatin-bar button { flex: none; }
  .chromatin-stage.is-phone .track-labels { display: none; }
  .chromatin-stage.is-phone + .chromatin-bar .chromatin-hint {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
@media (max-width: 23.99rem) {
  .chromatin-bar { gap: .4rem; }
  .chromatin-bar button { padding-inline: .65rem; }
}

/* fallback drawing (no-JS still of the hero) */
.cf-bands path { fill: none; stroke: var(--line); stroke-width: 1; }
.cf-strand { fill: none; stroke: var(--ink); stroke-width: 1.15; stroke-linejoin: round; }
.cf-rung { fill: none; stroke: var(--ink); stroke-opacity: .3; stroke-width: 1; }
.cf-bp { fill: none; stroke-width: 1.7; }
.cf-bp-a { stroke: var(--base-a); }
.cf-bp-c { stroke: var(--base-c); }
.cf-bp-g { stroke: var(--base-g); }
.cf-bp-t { stroke: var(--base-t); }
.cf-wrap-out { fill: none; stroke: var(--ink); stroke-width: 4.6; stroke-linecap: round; stroke-linejoin: round; }
.cf-wrap-in { fill: none; stroke: var(--card); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.cf-drum { fill: color-mix(in srgb, var(--histone) 74%, var(--ink)); stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; }
.cf-face { fill: var(--histone); stroke: var(--ink); stroke-width: 1.3; }
.cf-lobe, .cf-seam { fill: none; stroke: var(--ink); stroke-opacity: .32; stroke-width: .9; }
.cf-tn5 { fill: var(--tn5); }
.cf-tick { fill: none; stroke: var(--tn5); stroke-width: 1.25; }
.cf-base { fill: none; stroke: var(--line-2); stroke-width: 1; }
.cf-cov-area { fill: var(--open); fill-opacity: .25; }
.cf-cov-line { fill: none; stroke: var(--open); stroke-width: 1.5; stroke-linejoin: round; }
.cf-peak { fill: var(--peak); stroke: var(--ink); stroke-width: 1.2; }
.cf-peak-label {
  fill: var(--ink);
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
}

/* ------------------------------------------------------------------ 5. sections and track labels */
.section { padding: 0 var(--pad-x) clamp(4.5rem, 9vw, 7.5rem); }
.section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  border-top: 1px solid var(--line);
  padding-top: clamp(1.1rem, 2.4vw, 1.6rem);
}
.track-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .7rem;
  font-size: .74rem;
}
.track-label::before {
  content: "";
  width: .5rem;
  height: .5rem;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}
.section-inner > h2 { margin-bottom: clamp(1.75rem, 3.6vw, 2.75rem); }

@media (min-width: 64rem) {
  .section-inner {
    grid-template-columns: var(--label-col) minmax(0, 1fr);
    column-gap: var(--col-gap);
  }
  .section-inner > * { grid-column: 2; }
  .section-inner > .track-label {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    margin: .5rem 0 0;
  }
}

/* about */
.about-grid { display: grid; gap: 2.5rem; }
.glance {
  align-self: start;
  padding: 1.35rem 1.5rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.glance h3 {
  font-size: 1.05rem;
  font-stretch: 110%;
  margin-bottom: .9rem;
}
.glance dl > div {
  padding-block: .7rem;
  border-top: 1px solid var(--line);
}
.glance dt {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .7rem;
  letter-spacing: .02em;
  color: var(--ink-2);
  text-transform: lowercase;
}
.glance dd { margin-top: .2rem; font-size: 1.02rem; line-height: 1.4; }
@media (min-width: 52rem) {
  .about-grid { grid-template-columns: minmax(0, 1.85fr) minmax(15rem, 1fr); gap: clamp(2.5rem, 5vw, 4.5rem); }
}

/* research */
.themes {
  display: grid;
  gap: 2.75rem;
  margin-top: clamp(2.25rem, 4.5vw, 3.5rem);
}
.theme {
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.theme h3 { margin: 1.1rem 0 .55rem; }
.theme p { font-size: 1.05rem; line-height: 1.6; color: var(--ink); text-wrap: pretty; }
@media (min-width: 48rem) {
  .themes { grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 4.5vw, 4rem); row-gap: 3.25rem; }
}

.glyph { display: block; width: 100px; height: 64px; overflow: visible; }
.glyph * { vector-effect: non-scaling-stroke; }
.g-ink, .g-cov, .g-edge, .g-arrow, .g-arrow-head, .g-needle {
  fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.g-wrap { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.g-side { fill: color-mix(in srgb, var(--histone) 74%, var(--ink)); stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; }
.g-face { fill: var(--histone); stroke: var(--ink); stroke-width: 1.3; }
.g-bp { fill: none; stroke-width: 1.8; }
.g-a { stroke: var(--base-a); }
.g-c { stroke: var(--base-c); }
.g-g { stroke: var(--base-g); }
.g-t { stroke: var(--base-t); }
.g-tn5 { fill: var(--tn5); }
.g-cov { stroke: var(--open); stroke-width: 1.5; }
.g-fill-cov { fill: var(--open); fill-opacity: .22; }
.g-edge { stroke: var(--line-2); stroke-width: 1.3; }
.g-path { fill: none; stroke: var(--tn5); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.g-node { fill: var(--card); stroke: var(--ink); stroke-width: 1.3; }
.g-group { stroke-dasharray: 2.5 2; }
.g-leaf { fill: color-mix(in srgb, var(--open) 16%, var(--card)); stroke: var(--open); stroke-width: 1.3; }
.g-on { stroke: var(--tn5); stroke-width: 1.7; }
.g-cell { fill: var(--card); stroke: var(--open); stroke-width: 1.4; }
.g-faint { stroke-dasharray: 2 2; stroke: var(--ink-2); }
.g-drop { fill: color-mix(in srgb, var(--tn5) 14%, var(--card)); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.g-mass { fill: color-mix(in srgb, var(--histone) 40%, var(--card)); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.g-arrow { stroke-dasharray: 3 3; }
.g-cellbody { fill: var(--card); stroke: var(--ink); stroke-width: 1.4; }
.g-nucleus { fill: var(--histone); stroke: var(--ink); stroke-width: 1.3; }
.g-dial { fill: none; stroke-width: 4; stroke-linecap: butt; }
.g-dial-1 { stroke: var(--open); }
.g-dial-2 { stroke: var(--peak); }
.g-dial-3 { stroke: var(--tn5); }
.g-needle { stroke-width: 1.8; }
.g-hub { fill: var(--ink); }

/* thesis */
.thesis-head { max-width: 50rem; }
.thesis-title {
  margin: .5rem 0 .85rem;
  font-size: clamp(1.75rem, 3.7vw, 2.85rem);
  font-weight: 620;
  font-stretch: 86%;
  line-height: 1.02;
  letter-spacing: -.01em;
}
.thesis-meta { font-style: italic; color: var(--ink-2); font-size: 1.08rem; }
.thesis-record {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem 1rem;
  margin-top: .75rem;
}
.thesis-record a,
.entry-link a,
.contact-links a {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .01em;
}
.thesis-record a::after,
.entry-link a::after,
.contact-links a::after {
  content: "\2197" / "";
  display: inline-block;
  margin-left: .3em;
  text-decoration: none;
}
.small-note { font-size: .72rem; }

.thesis-plain {
  display: grid;
  gap: 2rem;
  margin-top: clamp(2.75rem, 5.5vw, 4rem);
}
.thesis-plain h3 { margin-bottom: .8rem; }
.numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1rem;
  align-content: start;
  list-style: none;
}
.numbers li {
  display: grid;
  gap: .6rem;
  padding: 1.15rem 1.35rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.number {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(3.25rem, 6vw, 4.6rem);
  line-height: .85;
  letter-spacing: -.02em;
  font-variant-numeric: lining-nums;
}
.number-label { font-size: 1rem; line-height: 1.4; color: var(--ink-2); max-width: 18rem; }
@media (min-width: 56rem) {
  .thesis-plain { grid-template-columns: minmax(0, 1fr) minmax(14rem, 17rem); gap: clamp(2.5rem, 5vw, 4.5rem); }
  .numbers { grid-template-columns: 1fr; padding-top: 2.4rem; }
}

/* tree surroundings (the tree itself, its static list, controls, breadcrumb and
   detail line are styled in css/tree.css by the tree module) */
.tree-block { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.tree-block > h3 { margin-bottom: .6rem; }
.tree-lead { color: var(--ink-2); font-size: 1.05rem; }
.tree-notes {
  display: grid;
  gap: .9rem;
  margin-top: 1.25rem;
}
.tree-note {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .7rem;
  letter-spacing: .02em;
  color: var(--ink-2);
}
.tree-honesty {
  padding-left: 1rem;
  border-left: 2px solid var(--peak);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--ink);
}

/* figure plate */
.plate {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  padding: clamp(1rem, 2.4vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.plate-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .72rem;
  letter-spacing: .02em;
  color: var(--ink-2);
}
.plate-open::before {
  content: "";
  width: .7rem;
  height: .7rem;
  background:
    linear-gradient(currentColor, currentColor) left top / 4px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) left top / 1.5px 4px no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / 4px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / 1.5px 4px no-repeat;
}
.plate-title { margin: 1.1rem 0 1rem; }
.plate-zoom {
  display: block;
  width: 100%;
  padding: clamp(.4rem, 1.8vw, 1.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--mat);
  cursor: zoom-in;
}
.plate-zoom img { width: 100%; aspect-ratio: 1600 / 1143; }
.plate figcaption {
  margin-top: 1rem;
  font-size: .98rem;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* key terms */
.terms {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.terms summary {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 3.25rem;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .02em;
  cursor: pointer;
  list-style: none;
}
.terms summary::-webkit-details-marker { display: none; }
.terms summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  font-size: .85rem;
  line-height: 1;
}
.terms[open] summary::before { content: "\2212"; }
.terms dl { display: grid; gap: 1.25rem 2.5rem; padding: .5rem 0 1.75rem; }
.terms dt { font-family: var(--font-display); font-weight: 650; font-size: 1.05rem; }
.terms dd { margin-top: .25rem; font-size: 1rem; line-height: 1.55; color: var(--ink-2); }
@media (min-width: 48rem) { .terms dl { grid-template-columns: 1fr 1fr; } }

/* skills: one track per group */
.skill-track {
  display: grid;
  gap: .7rem;
  padding-block: 1.15rem 1.3rem;
  border-top: 1px solid var(--line);
}
.skill-track:last-child { border-bottom: 1px solid var(--line); }
.skill-name {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.4;
  color: var(--ink-2);
  text-transform: lowercase;
}
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; }
.chips li {
  padding: .3rem .75rem .34rem;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--card);
  font-size: 1rem;
  line-height: 1.3;
}
.chips .chips-also {
  padding-inline: .25rem;
  border: 0;
  background: none;
  align-self: center;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .7rem;
  color: var(--ink-2);
}
.chips .chip-minor { border-style: dashed; background: transparent; color: var(--ink-2); }
@media (min-width: 48rem) {
  .skill-track { grid-template-columns: 13rem minmax(0, 1fr); gap: 1.5rem; }
  .skill-name { padding-top: .4rem; }
}

/* timeline and talks: years as coordinates */
.timeline, .talks { list-style: none; }
.timeline > li, .talks > li { display: grid; grid-template-columns: minmax(0, 1fr); }
.coord {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.4;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.entry {
  position: relative;
  padding: 0 0 2.1rem 1.6rem;
  border-left: 1px solid var(--line-2);
}
.entry::before {
  content: "";
  position: absolute;
  left: -5px;
  top: .45rem;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}
.timeline > li:last-child .entry,
.talks > li:last-child .entry { padding-bottom: .25rem; }
.timeline .coord, .talks .coord { padding: 0 0 .5rem 1.6rem; border-left: 1px solid var(--line-2); }
.timeline > li:first-child .coord, .talks > li:first-child .coord { border-left-color: transparent; }
.timeline h3 { font-size: 1.2rem; line-height: 1.25; }
.entry p { margin-top: .4rem; font-size: 1.02rem; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.entry .entry-link { margin-top: .5rem; }
.talk-title { margin-top: 0 !important; font-size: 1.2rem !important; line-height: 1.3 !important; color: var(--ink) !important; }
.talk-support { font-style: italic; font-size: .95rem !important; }

@media (min-width: 64rem) {
  .section-inner > .timeline,
  .section-inner > .talks { grid-column: 1 / -1; }
  .timeline > li, .talks > li {
    grid-template-columns: var(--label-col) minmax(0, 1fr);
    column-gap: var(--col-gap);
  }
  .timeline .coord, .talks .coord {
    padding: .25rem 0 0;
    border-left: 0;
    text-align: left;
    position: relative;
  }
  .timeline .coord::after, .talks .coord::after {
    content: "";
    position: absolute;
    top: .95rem;
    right: calc(var(--col-gap) * -1);
    width: calc(var(--col-gap) - .6rem);
    border-top: 1px dotted var(--line-2);
  }
  .entry { padding-left: 2rem; }
  .timeline > li:first-child .entry::after,
  .talks > li:first-child .entry::after {
    content: "";
    position: absolute;
    left: -1px;
    top: 0;
    height: .45rem;
    border-left: 1px solid var(--paper);
  }
}

/* contact */
.section-contact { padding-bottom: clamp(4rem, 8vw, 6rem); }
.contact-email {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: clamp(1.35rem, 6.2vw, 3.25rem);
  font-weight: 450;
  line-height: 1.1;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}
.contact-email a { color: var(--ink); text-decoration-color: var(--open); text-decoration-thickness: 2px; text-underline-offset: .14em; }
.contact-email a:hover { color: var(--open); text-decoration-thickness: 3px; }
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.75rem;
  margin-top: 1.75rem;
  list-style: none;
}
.contact-links a { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* footer */
.site-footer {
  padding: 1.5rem var(--pad-x) 2.25rem;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .7rem;
  letter-spacing: .02em;
  color: var(--ink-2);
}
.iupac-line { display: flex; flex-flow: row-reverse wrap; justify-content: flex-end; align-items: center; gap: .5rem .9rem; }
.iupac {
  display: inline-flex;
  gap: 1px;
  padding: .25rem .3rem;
  border-radius: 3px;
  color: var(--ink);
  font-size: .76rem;
  font-weight: 500;
  font-stretch: 100%;
  letter-spacing: 0;
  cursor: help;
}
/* The name as a DNA sequence (header wordmark and footer). Under each letter that is an
   IUPAC nucleotide code sits a stack with one band per base it stands for, like a column
   of a sequence logo: Y = C or T, B = C, G or T, K = G or T, N = any base, S = C or G.
   I, E and O are not codes: a dimmed letter over an alignment gap. */
.iupac { --stack: 6px; }
.nt {
  position: relative;
  display: inline-block;
  width: 1.2ch;
  padding-bottom: calc(var(--stack, 6px) + 3px);
  text-align: center;
}
.nt::after {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 0;
  height: var(--stack, 6px);
  border-radius: 1.5px;
}
.nt-gap { display: inline-block; width: .9ch; }
.nt-x { color: var(--ink-2); opacity: .7; }
.nt-x::after { bottom: calc(var(--stack, 6px) / 2 - .5px); height: 1px; border-radius: 0; background: var(--line-2); }
.nt-t::after { background: var(--base-t); }
.nt-a::after { background: var(--base-a); }
.nt-y::after { background: linear-gradient(var(--base-c) 0 50%, var(--base-t) 0); }
.nt-b::after { background: linear-gradient(var(--base-c) 0 33.4%, var(--base-g) 0 66.7%, var(--base-t) 0); }
.nt-k::after { background: linear-gradient(var(--base-g) 0 50%, var(--base-t) 0); }
.nt-s::after { background: linear-gradient(var(--base-c) 0 50%, var(--base-g) 0); }
.nt-n::after { background: linear-gradient(var(--base-a) 0 25%, var(--base-c) 0 50%, var(--base-g) 0 75%, var(--base-t) 0); }
.iupac-note { opacity: 0; transition: opacity .2s; }
.iupac:hover + .iupac-note,
.iupac:focus-visible + .iupac-note,
.iupac-note:hover { opacity: 1; }
@media (hover: none) { .iupac-note { opacity: 1; } }

/* text blocks fill their column. From tablet width up, longer paragraphs are justified with
   hyphenation so their right edges line up with the figures and cards beside them; phones
   keep a ragged right edge, which reads better in a narrow column. The figure caption runs
   in two columns under the figure, so its lines stay a comfortable length. */
@media (min-width: 48rem) {
  .prose p,
  .theme p,
  .plate figcaption,
  .entry p,
  .terms dd,
  .tree-honesty {
    text-align: justify;
    -webkit-hyphens: auto;
    hyphens: auto;
  }
}
@media (min-width: 56rem) {
  .plate figcaption { column-count: 2; column-gap: clamp(1.75rem, 3vw, 2.75rem); }
}

/* ------------------------------------------------------------------ 6. lightbox */
.lightbox {
  width: calc(100vw - 2rem);
  height: calc(100dvh - 2rem);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  overflow: hidden;
}
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgba(12, 10, 26, .78); }
.lightbox-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1rem;
  padding: .7rem .8rem .7rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.lightbox-title { font-size: 1rem; line-height: 1.3; }
.lightbox-fig {
  margin-right: .5rem;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .72rem;
  color: var(--ink-2);
}
.lightbox-actions { display: flex; gap: .5rem; }
.lightbox-view {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--mat);
}
.lightbox-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: clamp(.5rem, 2vw, 1.5rem);
  object-fit: contain;
  cursor: zoom-in;
}
.lightbox-view.is-zoomed .lightbox-img {
  position: static;
  width: 3200px;
  max-width: none;
  height: auto;
  padding: 0;
  cursor: grab;
}
.lightbox-view.is-dragging .lightbox-img { cursor: grabbing; }
.lightbox.is-loading .lightbox-view::after {
  content: "loading full size";
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: .3rem .6rem;
  border-radius: 999px;
  background: rgba(23, 20, 43, .78);
  color: #fff;
  font: 500 .68rem/1 var(--font-mono);
}

/* ------------------------------------------------------------------ 7. motion and print */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  :root { --paper: #fff; --card: #fff; --ink: #000; --ink-2: #333; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .skip-link, .chromatin-canvas, .chromatin-bar, .tree-controls, .tree-detail, .theme-switch,
  .plate-open, .lightbox, .hero-actions, .iupac-note { display: none !important; }
  .hero { padding-top: 0; background: none !important; }
  .chromatin-fallback { display: block !important; }
  .section { padding-bottom: 2rem; }
  .plate, .theme, .timeline > li, .talks > li, .skill-track, .glance { break-inside: avoid; }
  .terms dl { display: grid !important; }
  a[href^="http"]::after, a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #333; }
}
