/* Selected work, the landscape cover, and the TrialTrace dossier. */
:root {
  --iris: #d3c4ff;
  --cover-accent: var(--iris);
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}
:root[data-preview="roamrep"] { --cover-accent: var(--lime); }
:root[data-preview="worldlayer"] { --cover-accent: #f4c8a3; }
html { scroll-padding-top: 5.25rem; }
.skip-link:not(:focus) { opacity: 0; }
.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: .65rem;
  padding-block: .8rem;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.site-header > .wordmark { justify-self: start; gap: .6rem; min-height: 44px; }
.is-scrolled .site-header {
  background: linear-gradient(180deg, #14131be6, #15121c9c 78%, transparent);
  backdrop-filter: none;
}
.brand-name { font-size: 1rem; letter-spacing: -.04em; text-shadow: 0 1px 8px #141019; }
.site-header .brand-symbol { text-shadow: 0 1px 10px #141019; }
.header-nav .index-button > span { font-size: 1.05rem; line-height: 1; }
.header-nav .lab-nav { color: #f1dfff; }
.site-header .motion-toggle { display: none; }
.js .site-header .motion-toggle {
  display: inline-flex;
  gap: .45rem;
  justify-self: end;
  min-height: 44px;
  min-width: 44px;
  padding: .55rem .85rem;
  font-size: .8125rem;
}
.world-shade {
  background: linear-gradient(90deg, #101018a8, #12101848 37%, transparent 63%),
              linear-gradient(0deg, #0e0f16a6, transparent 33%, transparent 79%, #11111850);
}
.world-fallback {
  background: radial-gradient(ellipse at 75% 42%, #80719b66, transparent 53%),
              linear-gradient(170deg, #1c1d28, #41394d 52%, #1f2129 74%);
}
.world-fallback:before {
  border-color: var(--cover-accent);
  box-shadow: inset 0 0 0 2px #292433, inset -7px -5px 0 #c4bbd3, 4px 5px 0 #50495c, 8px 9px 0 #aea1c0;
}
:root[data-preview="roamrep"] .world-fallback { background: radial-gradient(ellipse at 70% 46%, #606744, #1b251c 72%); }
:root[data-preview="roamrep"] .world-fallback:before,
:root[data-preview="roamrep"] .world-fallback:after {
  content: '';
  position: absolute;
  top: 34%;
  right: 16%;
  width: 18vmin;
  height: 26vmin;
  border: 1.6vmin solid #d2df8b;
  border-radius: 50%;
  transform: rotate(52deg);
  box-shadow: inset 1px 3px #434c2b, 2px 5px #869151;
}
:root[data-preview="roamrep"] .world-fallback:after { right: 25%; top: 43%; transform: rotate(51deg) scaleX(.7); }
:root[data-preview="worldlayer"] .world-fallback { background: radial-gradient(ellipse at 72% 40%, #986f5e, #302721 75%); }
:root[data-preview="worldlayer"] .world-fallback:before {
  top: 29%; right: 18%; width: 19vmin; height: 8vmin;
  border: 2px solid #fbd7b5; border-radius: 46% 57% 39% 49%;
  background: linear-gradient(155deg, #dbb498, #8c614c);
  transform: rotate(-9deg);
  box-shadow: 0 2.5vmin 0 .6vmin #a8775f, 0 5.4vmin 0 1.4vmin #ddab85, 0 8.5vmin 0 2.3vmin #926750, 0 11.8vmin 0 3.1vmin #be8a6b, 0 15.2vmin 0 4vmin #9e7057, 0 18.8vmin 0 4.8vmin #bc896c;
}
.cover {
  min-height: clamp(37rem, 96svh, 68rem);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  grid-template-rows: 1fr auto;
  row-gap: 1.5rem;
  overflow: clip;
  padding-block: clamp(6rem, 13svh, 10rem) clamp(2.25rem, 5svh, 4rem);
  border-bottom: 1px solid #ede4ff32;
  background: linear-gradient(0deg, #101016ce, transparent 35%);
}
.cover-intro { grid-area: 1 / 1; align-self: center; position: relative; z-index: 1; }
.cover-role, .project-kicker, .work-strip h2, .dossier-header, .contact-address h2 {
  font: 500 .8125rem/1.45 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.cover-role { display: flex; align-items: center; gap: .65em; color: #ede9ee; }
.cover-role span, .signature-period { color: var(--cover-accent); }
.cover h1 {
  margin: .19em 0 .17em -.045em;
  font-size: clamp(5.5rem, 11.9vw, 13.75rem);
  line-height: .98;
  letter-spacing: -.085em;
  white-space: nowrap;
}
.cover h1 em { letter-spacing: -.068em; }
.signature-period { display: inline-block; position: relative; margin-left: .025em; }
.signature-bat {
  position: absolute;
  left: 50%; bottom: 15%;
  width: clamp(1.4rem, 2.3vw, 2.4rem);
  height: auto; fill: currentColor; opacity: 0; pointer-events: none;
}
.cover-note { max-width: 25em; color: #dedbe4; font-size: clamp(1rem, 1.4vw, 1.35rem); line-height: 1.56; }
.cover-lab { margin-top: clamp(1.15rem, 2vw, 1.85rem); }
.sculpture-stage:not([hidden]) {
  grid-area: 1 / 2;
  display: flex;
  min-width: 0;
}
.sculpture-surface { flex: 1; cursor: ew-resize; touch-action: pan-y pinch-zoom; user-select: none; }
.sculpture-control:not([hidden]) {
  display: inline-flex; align-items: center; gap: 1rem;
  min-height: 44px;
  padding: 0 .875rem;
  color: #ede8f2;
  font: .8125rem/1.3 var(--mono);
}
#sculpture-dial {
  appearance: none;
  width: 7.25rem; height: 44px; margin: 0;
  background: transparent;
  color: var(--cover-accent);
  cursor: ew-resize;
}
#sculpture-dial:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
#sculpture-dial::-webkit-slider-runnable-track {
  height: .9rem;
  background: repeating-linear-gradient(90deg, #dcd5e280 0 1px, transparent 1px 7.1%);
  border-block-end: 1px solid #dcd5e268;
}
#sculpture-dial::-moz-range-track {
  height: .9rem;
  background: repeating-linear-gradient(90deg, #dcd5e280 0 1px, transparent 1px 7.1%);
  border-block-end: 1px solid #dcd5e268;
}
#sculpture-dial::-webkit-slider-thumb {
  appearance: none;
  width: 16px; height: 22px; margin-top: -4px;
  background: repeating-linear-gradient(90deg, transparent 0 2px, #29233252 2px 3px), currentColor;
  border: 2px solid currentColor; border-radius: 3px;
  box-shadow: 0 2px 5px #120f1d99;
}
#sculpture-dial::-moz-range-thumb {
  width: 12px; height: 18px;
  background: repeating-linear-gradient(90deg, transparent 0 2px, #29233252 2px 3px), currentColor;
  border: 2px solid currentColor; border-radius: 3px;
}
.work-strip { grid-area: 2 / 1 / 3 / -1; min-width: 0; }
.work-strip-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .7rem; }
.work-strip h2 { color: #e5dfed; }
.work-entries {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: .3rem;
  padding: .29rem;
  border: 1px solid #cdc3ec52;
  border-radius: 1rem;
  background: #211a2fbd;
  box-shadow: inset 0 1px #f1e7ff24, 0 10px 28px #110b1c38;
}
.work-entry {
  --entry-accent: var(--iris);
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 1.1vw, 1.25rem);
  min-height: 4.2rem;
  padding: .7rem clamp(.5rem, 1.2vw, 1.15rem);
  min-width: 0;
  border-radius: .7rem;
  transition: background .28s, box-shadow .28s;
}
.work-entry:before {
  content: '';
  position: absolute;
  inset: auto 12% 4px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--entry-accent), transparent);
  transform: scaleX(0);
  transition: transform .42s var(--ease);
}
.work-entry:is(:focus-visible, :hover, .is-previewed):before { transform: scaleX(1); }
.work-entry:is(:focus-visible, :hover, .is-previewed) { background: #e0d0fe19; box-shadow: inset 0 1px #f1e4ff2b; }
.work-entry strong { display: block; font-size: clamp(1.25rem, 2.05vw, 2.2rem); line-height: 1.17; letter-spacing: -.045em; font-weight: 500; }
.work-entry small { display: block; margin-top: .25rem; color: #d4d0d9; font-size: .875rem; }
.work-entry--roam { --entry-accent: var(--lime); }
.work-entry--world { --entry-accent: #f4c8a3; }
.work-glyph { position: relative; display: block; flex: none; width: 2.35rem; height: 2.5rem; color: var(--entry-accent); }
.work-glyph i { position: absolute; border: 1.5px solid; }
.work-entry--trace i { inset: 17% 22%; border-radius: 50%; transform: rotate(32deg); }
.work-entry--trace i:nth-child(2) { translate: -.26rem -.08rem; }
.work-entry--trace i:last-child { translate: .26rem .08rem; }
.work-entry--roam i { width: 56%; height: 44%; left: 1%; top: 35%; border-radius: 65% 25%; transform: rotate(-28deg); }
.work-entry--roam i + i { left: 39%; top: 21%; }
.work-entry--world i { width: 63%; height: 48%; left: 18%; top: 13%; transform: rotate(-30deg) skewX(27deg) scaleY(.72); }
.work-entry--world i:nth-child(2) { translate: 0 .3rem; }
.work-entry--world i:last-child { translate: 0 .6rem; }

.trial-feature {
  color: #25212e;
  background: #eae6ed;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(2.75rem, 7vw, 9rem);
  padding-block: clamp(4rem, 7.2vw, 8rem);
}
.project-kicker { margin-bottom: 1.45rem; }
.project-kicker span { margin-inline: .25em; opacity: .6; }
.trial-feature .project-kicker { color: #5f536a; }
.trial-feature h2 {
  font-size: clamp(4.25rem, 7.6vw, 8.5rem);
  letter-spacing: -.073em;
  line-height: .98;
}
.trial-feature h2 em { color: #655378; }
.trial-question { max-width: 16em; margin-top: 1.65rem; font-size: clamp(1.4rem, 2.15vw, 2.4rem); line-height: 1.2; letter-spacing: -.04em; }
.trial-description { max-width: 34em; margin-top: 1rem; line-height: 1.65; font-size: 1.0625rem; color: #504858; }
.trial-links { display: flex; align-items: center; flex-wrap: wrap; gap: 1.35rem; margin-top: 1.8rem; }
.trial-launch, .trial-source { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; }
.trial-launch { padding: .8rem 1.35rem; background: #30263d; color: #faf6ff; border-radius: 3rem; }
.trial-launch:hover { background: #503b65; }
.trial-source, .record-body a, .dossier-link, .footer-links a:hover { text-decoration: underline; text-underline-offset: .25em; }
.trial-feature :focus-visible { outline-color: #6c4f86; }
.dossier {
  min-width: 0;
  padding: clamp(1.35rem, 2.9vw, 3.25rem);
  color: #f3eef8;
  border-radius: .45rem;
  background: radial-gradient(ellipse at 100% 75%, #433752, transparent 70%), #211e2b;
  box-shadow: 0 1.5rem 3.5rem -2.75rem #36253db3;
}
.dossier-header { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .9rem; border-bottom: 1px solid #d1c7db48; color: #e1d5f0; }
.dossier-header time { letter-spacing: 0; color: #c4b8cc; }
.dossier h3 { margin-top: 1.3rem; font-size: clamp(1.85rem, 3.15vw, 3.75rem); line-height: 1.09; letter-spacing: -.04em; }
.dossier h3 span { color: #ac95c2; font-size: .7em; }
.dossier h3 em { color: #e1d1fa; }
.record-stack { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 1%; padding-block: 1.15rem .6rem; }
.record-stack i {
  display: block;
  position: relative;
  height: clamp(3.4rem, 5.8vw, 6rem);
  border: 1px solid #d5c6ee8a;
  border-radius: 2px;
  background: linear-gradient(118deg, #ede5ff -16%, #a498bd 16%, #706280 36%, #494351 75%, #afa0bd 145%);
  transform: skewY(-16deg);
  transition: transform .46s var(--ease), opacity .4s ease;
}
.record-stack i:after {
  content: '';
  position: absolute;
  inset: 23% 17% auto;
  height: 2px;
  background: #2b203e76;
  box-shadow: 0 5px #2b203e55, 0 10px #2b203e44;
}
.record-stack i:first-child { background: linear-gradient(123deg, #fcf7ff, #d6b8f5 36%, #87649e); }
.dossier:has(details[open]) .record-stack i { opacity: .28; transform: skewY(-16deg) scaleY(.75); }
.dossier:has(details[open]) .record-stack i:first-child { opacity: 1; transform: translateY(-.25rem) skewY(-16deg); }
.record-count { color: #d3c8df; font-size: .875rem; line-height: 1.5; margin: .35rem 0 1.1rem; }
.record-count strong { color: #f5f1fa; font-weight: 600; }
.record-count span { margin-inline: .35rem; }
.record-disclosure { border-block: 1px solid #c3b7d052; }
.record-disclosure summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 48px; cursor: pointer; list-style: none; font-size: 1rem; }
.record-disclosure summary::-webkit-details-marker { display: none; }
.disclosure-mark { width: 1rem; height: 1rem; position: relative; }
.disclosure-mark:before, .disclosure-mark:after { content: ''; position: absolute; inset: 45% 0 auto; height: 1.5px; background: currentColor; }
.disclosure-mark:after { transform: rotate(90deg); transition: transform .25s; }
details[open] .disclosure-mark:after { transform: rotate(0); }
.record-body { padding: 0 0 1rem; color: #ded6e6; line-height: 1.55; }
.record-body strong { color: #fff; }
.record-body a { display: inline-block; margin-top: .65rem; color: #dec8fa; }
.dossier-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: .4rem; font-size: .875rem; color: #ded1eb; }
.dossier :focus-visible { outline: 2px solid #f2ddff; outline-offset: 3px; }

.project { min-height: 0; padding-block: clamp(4rem, 7vw, 8rem); border-bottom: 1px solid var(--line); }
.project .project-kicker { color: #e3dfcd; }
.project .project-description { font-size: 1.0625rem; line-height: 1.65; max-width: 28em; }
.roam-section h2 em { color: var(--lime); }
.project :is(.pill-link, .domain-links) { margin-top: 1.5rem; }
.project-actions .pill-link { margin-top: 0; }
.project .pill-link, .project .source-link { font-size: .9375rem; }
.project-meta { font-size: .875rem; }
.lab-feature {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  padding-block: clamp(3.65rem, 7vw, 8rem);
  overflow: clip;
  border-block: 1px solid #e6d5ff40;
  background: radial-gradient(ellipse at 82% 48%, #2c2043, transparent 72%), #15111e;
}
.lab-feature h2 {
  font-size: clamp(4.7rem, 9.4vw, 10.8rem);
  line-height: .88;
  letter-spacing: -.075em;
}
.lab-feature h2 em { color: #ddc3fa; letter-spacing: -.053em; }
.lab-feature p { max-width: 25em; margin-block: 1.4rem; color: #d5c9e2; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.6; }
.lab-feature-image { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid #e1d5f970; border-radius: .85rem; background: #252035; box-shadow: 0 24px 50px -26px #020106; }
.lab-feature-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.lab-feature-caption { position: absolute; inset: auto 1rem 1rem auto; pointer-events: none; }
.js.reveal-ready .reveal:focus-within { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.motion-paused) .lab-feature-image:hover img { transform: scale(1.035); }
}
.gene-traces path {
  fill: none;
  stroke: #ffd9a8;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
  transition: opacity .2s, stroke-dashoffset .55s var(--ease);
}
.galaxy-field:has(.node-apoe[aria-pressed="true"]) .trace-apoe,
.galaxy-field:has(.node-trem[aria-pressed="true"]) .trace-trem,
.galaxy-field:has(.node-abca[aria-pressed="true"]) .trace-abca { stroke-dashoffset: 0; opacity: 1; }
.galaxy-node { font-size: .8125rem; }
.galaxy-detail p { font-size: 1rem; }
.galaxy-detail a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; }
.highlights .achievement p, .learning-description, .domain-link small { font-size: .9375rem; }
.highlights .achievement a { font-size: .875rem; }
.highlights .achievement-label, .project .small-label { font-size: .75rem; }
.index-dialog { background: #1c1b23fa; max-height: 85svh; }
.index-dialog .dialog-heading h2 { font-size: 1rem; letter-spacing: -.01em; }
.index-list { margin-top: .6rem; }
.index-list > a { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding-block: .65rem; font-size: clamp(1.15rem, 2.2vw, 2rem); }
.index-list > a > em { font-size: .8125rem; color: #c7bdcf; }

.contact-strip {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  padding-block: clamp(2rem, 3.8vw, 4rem);
  border-top: 1px solid #ddd2e03d;
  background: #19191e;
}
.contact-address { max-width: 100%; }
.contact-address h2 { color: #cfc4de; margin-bottom: .5rem; }
.address-line, .footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem 1.1rem; }
.address-line a { line-height: 1.2; font-size: clamp(1.25rem, 3.1vw, 3.1rem); letter-spacing: -.05em; overflow-wrap: anywhere; }
.address-line a:hover { color: var(--iris); }
#copy-email { font-size: .875rem; }
#copy-status { display: block; color: var(--iris); font-size: .875rem; }
#copy-status:not(:empty) { margin-top: .3rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; }
.footer-links a:last-child { color: #c1b9c8; }

@media (max-width: 850px) {
  .trial-feature { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 1.8rem; }
  .work-entry { gap: .65rem; }
  .work-glyph { width: 1.8rem; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 4.5rem; }
  .site-header { padding-block: .65rem; gap: .4rem; }
  .header-nav .index-button > span { display: none; }
  .js .site-header .motion-toggle { width: 44px; padding: 0; justify-content: center; }
  .motion-toggle .motion-label { display: none; }
  .cover {
    min-height: clamp(40rem, 94svh, 56rem);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(6.3rem, 1fr) auto;
    row-gap: .95rem;
    padding-block: 5.65rem 1.5rem;
  }
  .cover-intro { align-self: start; max-width: 31rem; }
  .sculpture-stage:not([hidden]) { grid-area: 2 / 1; }
  .sculpture-control:not([hidden]) { gap: .65rem; padding-inline: .55rem; }
  #sculpture-dial { width: 6rem; }
  .work-strip { grid-row: 3; }
  .cover h1 { font-size: clamp(4.5rem, 18vw, 7rem); }
  .cover-note { max-width: 24em; }
  .cover-role { font-size: .75rem; }
  .work-entries { grid-template-columns: 1fr; gap: .14rem; }
  .work-entry { gap: .75rem; min-height: 48px; padding: .48rem .6rem; }
  .work-entry:before { inset: 24% auto 24% 2px; width: 2px; height: auto; transform: scaleY(0); background: var(--entry-accent); }
  .work-entry:is(:focus-visible, :hover, .is-previewed):before { transform: scaleY(1); }
  .work-entry > span:last-child { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .8rem; }
  .work-entry strong { font-size: 1.17rem; }
  .work-entry small { margin-top: 0; font-size: .8125rem; }
  .work-glyph { width: 1.8rem; height: 1.9rem; }
  .trial-feature { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .lab-feature { grid-template-columns: minmax(0, 1fr); }
  .dossier { width: 100%; max-width: 34rem; }
  .project, .trial-feature { padding-block: 3.75rem; }
  .project { gap: 1.8rem; }
  .project .project-art { margin-top: 0; }
  .project-kicker { margin-bottom: 1rem; }
  .trial-feature h2 { font-size: clamp(3.5rem, 16vw, 5.5rem); }
  .index-list > a { min-height: 44px; }
  .index-list > a > em { display: none; }
}
@media (max-width: 440px) {
  .site-header { padding-inline: .9rem; grid-template-columns: auto minmax(0, 1fr) auto; gap: .375rem; }
  .site-header .brand-name { display: none; }
  .header-nav { justify-self: center; }
  .header-nav > a { padding-inline: .42rem; }
  .drag-instruction { display: none; }
  .sculpture-control > span::first-letter { text-transform: uppercase; }
  #sculpture-dial { width: 5rem; }
}
@media (max-width: 380px) {
  .header-nav > a { padding-inline: .35rem; }
  .work-strip h2 { font-size: .75rem; letter-spacing: .045em; white-space: nowrap; }
  #sculpture-dial { width: 4.25rem; }
  .work-entry { padding-block: .4rem; }
  .work-entry > span:last-child { display: block; }
  .work-entry small { margin-top: .12rem; }
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.motion-paused) .cover-intro { animation: cover-arrival .65s var(--ease) both; }
  html:not(.motion-paused) .signature-bat.in-flight { animation: signature-flight 1.15s ease-in-out; }
  @keyframes cover-arrival { from { transform: translateY(.7rem); } to { transform: none; } }
  @keyframes signature-flight {
    0% { opacity: 0; transform: translate(-40%, 15%) rotate(-18deg) scale(.15); }
    16% { opacity: 1; transform: translate(2vw, -3vh) rotate(-22deg) scale(.85, 1); }
    32% { opacity: 1; transform: translate(7vw, -8vh) rotate(5deg) scale(.82, .55); }
    54% { opacity: 1; transform: translate(13vw, -6vh) rotate(12deg) scale(.7, .85); }
    75% { opacity: .8; transform: translate(21vw, -10vh) rotate(-14deg) scale(.48, .55); }
    100% { opacity: 0; transform: translate(28vw, -14vh) rotate(-10deg) scale(.12); }
  }
}
.motion-paused *, .motion-paused *:before, .motion-paused *:after { transition-duration: 0s !important; }
@media (forced-colors: active) {
  #sculpture-dial { appearance: auto; }
  .work-entry, .record-stack i { border-color: CanvasText; }
  .work-entry:before, .disclosure-mark:before, .disclosure-mark:after { background: CanvasText; }
  .trial-launch { border: 1px solid LinkText; }
}
