/* Homepage (RNA design focus) ***********************************************/

.vo-home {
  --ink: #1c2330;
  --muted: #5d6675;
  --rule: #e2e5ea;
  --nt-a: #3a9b4a;
  --nt-u: #d2463f;
  --nt-g: #e2a21b;
  --nt-c: #2e6bd1;
  --serif: "Spectral", Georgia, serif;
  --sans: "Work Sans", system-ui, sans-serif;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  max-width: 1040px;
  margin: 0 auto;
}

.vo-home a { color: var(--nt-c); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.vo-home a:hover { color: var(--ink); }
.vo-home a:focus-visible, .vo-replay:focus-visible { outline: 2px solid var(--nt-c); outline-offset: 3px; border-radius: 2px; }

.vo-home h1, .vo-home h2, .vo-home h3 { font-family: var(--serif); color: var(--ink); letter-spacing: -0.01em; }

/* Hero */
.vo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  gap: 2.5rem;
  align-items: center;
  padding: 2.25rem 0 2.75rem;
  border-bottom: 1px solid var(--rule);
}

.vo-photo {
  width: 84px; height: 84px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  margin-bottom: 1.25rem;
}

.vo-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 500;
  line-height: 1.05;
  margin: 0 0 0.5rem;
}

.vo-role {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.vo-lede {
  font-size: 1.3rem;
  line-height: 1.55;
  max-width: 34em;
  margin: 0 0 1.75rem;
}

.vo-links { font-family: var(--sans); font-size: 0.95rem; margin: 0; display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* Story animation: fold, learn, design */
.vo-story { margin: 0; }
.vo-story svg { display: block; width: 100%; height: auto; overflow: visible; }
.vo-story figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  min-height: 2.6em;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--muted);
}
#rna-caption { transition: opacity 0.2s; }
#rna-caption.swap { opacity: 0; }
.vo-replay {
  flex: none;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0.25rem 0;
  cursor: pointer;
}
.vo-replay:hover { color: var(--ink); }

.rs-backbone { fill: none; stroke: #b9c0ca; stroke-width: 2.5; stroke-linecap: round; }
.rs-bp { stroke: #1c2330; stroke-opacity: 0.55; stroke-width: 2.5; stroke-linecap: round; }
.rs-letter { font-family: "Work Sans", system-ui, sans-serif; font-size: 12px; font-weight: 600; fill: #fff; }
.rs-letter-G { fill: #3a2900; }
.rs-ring { fill: none; stroke: #1c2330; stroke-width: 1.5; }
.rs-end, .rs-label { font-family: "Work Sans", system-ui, sans-serif; font-size: 12px; fill: #5d6675; }
.rs-end { font-size: 13px; }
.rs-A { fill: #3a9b4a; }
.rs-U { fill: #d2463f; }
.rs-G { fill: #e2a21b; }
.rs-C { fill: #2e6bd1; }
.rs-yes { fill: #1c2330; }
.rs-no { fill: #fff; stroke: #5d6675; stroke-width: 1.5; }
.rs-box { fill: #fff; stroke: #1c2330; stroke-width: 1.5; }
.rs-edge { stroke: #b9c0ca; stroke-width: 1; }
.rs-neuron { fill: #2e6bd1; stroke: #fff; stroke-width: 1.5; }
.rs-track { fill: #e2e5ea; }
.rs-bar { fill: #3a9b4a; }
.rs-tick { stroke: #5d6675; stroke-width: 1.5; }
.rs-check { fill: none; stroke: #3a9b4a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rs-verdict { font-family: "Work Sans", system-ui, sans-serif; font-size: 12px; font-weight: 600; fill: #1c2330; }
.rs-link { fill: none; stroke: #5d6675; stroke-width: 1.5; stroke-linecap: round; }

/* Recent work */
.vo-work { padding: 2.5rem 0 1rem; }
.vo-work > h2 { font-size: 1.6rem; font-weight: 500; margin: 0 0 2rem; }

.vo-paper {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3.5rem;
}
.vo-paper:nth-of-type(even) .vo-paper-fig { order: 2; }

.vo-paper-fig { display: block; }
.vo-paper-fig img { display: block; width: 100%; height: auto; max-height: 320px; object-fit: contain; }

.vo-venue { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); margin: 0 0 0.4rem; }
.vo-paper h3 { font-size: 1.5rem; font-weight: 500; line-height: 1.25; margin: 0 0 0.6rem; }
.vo-paper h3 a { color: var(--ink); text-decoration: none; }
.vo-paper h3 a:hover { color: var(--nt-c); }
.vo-authors { font-size: 0.95rem; color: var(--muted); margin: 0 0 0.9rem; }
.vo-authors strong { color: var(--ink); font-weight: 600; }
.vo-summary { margin: 0 0 1rem; max-width: 36em; }
.vo-paper .vo-links { font-size: 0.9rem; }

/* Small screens */
@media (max-width: 768px) {
  .vo-hero { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 1.5rem; }
  .vo-lede { font-size: 1.15rem; }
  .vo-paper { grid-template-columns: 1fr; gap: 1.25rem; }
  .vo-paper:nth-of-type(even) .vo-paper-fig { order: 0; }
}

/* CV page ********************************************************************/
.vo-cv { max-width: 860px; margin: 0; padding: 1rem 0 3rem; }
.vo-cv-head { padding-bottom: 1.75rem; border-bottom: 1px solid var(--rule); margin-bottom: 0.5rem; }
.vo-cv-head h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 500; line-height: 1.1; margin: 0 0 0.4rem; }
.vo-cv-head .vo-role { margin-bottom: 1.25rem; }
.vo-cv section { padding: 1.5rem 0 0.5rem; }
.vo-cv h2 { font-size: 1.4rem; font-weight: 500; margin: 0 0 1rem; }
.vo-cv-list { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.6rem 1.5rem; margin: 0; }
.vo-cv-list dt { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); padding-top: 0.2rem; font-weight: 400; }
.vo-cv-list dd { margin: 0; }
.vo-cv-list strong { font-weight: 600; }
.vo-cv-note { font-size: 0.95rem; color: var(--muted); }
@media (max-width: 768px) {
  .vo-cv-list { grid-template-columns: 1fr; gap: 0; }
  .vo-cv-list dd { margin-bottom: 0.75rem; }
}
