/* KHAVINSON · The Body, Regulated — the body, family by family.
   Four full-bleed sections: a bioregulator's name huge, what it targets, one number, Details;
   then the index of everything else.
   One type size, two tones, bone on the picture. Chartreuse only marks what is active.
   Everything is scoped under .atl inside #atlas-root. */

.atl {
  --atl-col: clamp(380px, 34vw, 520px);
  --atl-margin: var(--gutter, 20px);
  --atl-rule: var(--rule, rgba(236, 234, 228, 0.2));
  --atl-rule-strong: var(--rule-strong, rgba(236, 234, 228, 0.92));
  --atl-nav: var(--nav-h, 56px);
  --atl-ease: var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
  --atl-dim: rgba(236, 234, 228, 0.54);
  --atl-fs: var(--fs, 13px); --atl-lh: var(--lh, 16px);
  position: relative; isolation: isolate;
  background: var(--void, #050505); color: var(--bone, #ECEAE4);
  font-family: var(--font-sans, sans-serif); font-size: var(--atl-fs); line-height: var(--atl-lh); font-weight: 400;
}
.atl *, .atl *::before, .atl *::after { box-sizing: border-box; }
.atl [hidden] { display: none !important; }
.atl :focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
.atl--failed { min-height: 60svh; display: grid; place-items: center; padding: 24px; }

/* ---------- type atoms ---------- */
.atl-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--atl-margin); align-items: end; }
.atl-row > * { margin: 0; min-width: 0; }
.atl-d { color: var(--atl-dim); }
.atl-b { font: inherit; font-weight: 500; }
.atl-t { position: relative; padding: 0; border: 0; background: none; color: var(--atl-dim); font: inherit; text-decoration: none; cursor: pointer; white-space: nowrap; transition: color 0.25s linear; }
.atl-t::before { content: ''; position: absolute; inset: -14px -7px; }
.atl-t:hover, .atl-t:focus-visible, .atl-t[aria-expanded="true"] { color: inherit; }
.atl-details::after { content: '+'; display: inline-block; width: 12px; text-align: right; }
.atl-details[aria-expanded="true"]::after { content: '–'; }
.atl-dot { display: inline-block; width: 6px; height: 6px; margin-right: 8px; background: var(--signal, #CFE34A); vertical-align: 1px; }

/* ---------- the four sections ---------- */
.atl-track { position: relative; }
.atl-sec { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: clip; background: #050505; color: var(--bone, #ECEAE4); }
.atl-sec + .atl-sec { margin-top: var(--gap, 6px); }
/* the picture: a loop or a still, cropped round its subject; a new style arrives over the old one */
.atl-frame { position: absolute; inset: 0; }
.atl-m { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; object-fit: cover; animation: atl-m-in 1.1s linear both; }
/* index.js hangs each picture (left, top, width, height): a photograph fills the frame, an object
   on black is shown whole and clear of the name, its picture's edges fading into the frame */
.atl-m.is-cut {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fl, 0px), #000 calc(100% - var(--fr, 0px)), transparent), linear-gradient(180deg, transparent, #000 var(--ft, 0px), #000 calc(100% - var(--fb, 0px)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--fl, 0px), #000 calc(100% - var(--fr, 0px)), transparent), linear-gradient(180deg, transparent, #000 var(--ft, 0px), #000 calc(100% - var(--fb, 0px)), transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
/* the grained black a molecule or an ampoule hangs in: behind the picture, a ground with the same
   level and grain as the picture's own (measured: mean 10, deviation 4 of 255), so where the
   picture's edges fade there is nothing to see */
.atl-grain { display: none; position: absolute; inset: -120px; pointer-events: none; opacity: var(--atl-grain, 0.14); background-size: 240px 240px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.6 -.55'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"); }
.atl-bio--object { background: var(--atl-ground, #020202); }
.atl-bio--object .atl-grain { display: block; }
.atl-bio--object.is-on .atl-grain { animation: atl-grain 0.9s steps(1) infinite; }
@keyframes atl-grain {
  0% { transform: translate(0, 0); } 12% { transform: translate(-37px, 61px); } 25% { transform: translate(83px, -29px); }
  37% { transform: translate(-71px, -53px); } 50% { transform: translate(19px, 97px); } 62% { transform: translate(101px, 41px); }
  75% { transform: translate(-13px, -89px); } 87% { transform: translate(-97px, 23px); } 100% { transform: translate(0, 0); }
}
.atl.is-reframing .atl-frame .atl-m { transition: left 0.6s var(--atl-ease), top 0.6s var(--atl-ease), width 0.6s var(--atl-ease), height 0.6s var(--atl-ease); }
@keyframes atl-m-in { from { opacity: 0; } }
/* where the name and the one line of type stand, the picture falls off into black (the header brings its own fall-off) */
.atl-sec:not(.atl-explore)::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0) 46%, rgba(5, 5, 5, 0.42) 72%, rgba(5, 5, 5, 0.88) 100%); }
.atl-bio-in { position: absolute; z-index: 2; left: var(--atl-margin); right: var(--atl-margin); bottom: var(--line, 18px); }
/* the name: the one place the body leaves its one size */
/* line-height 0.8 lets a descender (the g of Vesugen, the p of Epitalon) hang 0.17em under the line box: the margin clears it */
.atl-bio-name { width: fit-content; margin: 0 0 calc(0.18em + 6px) -0.04em; font: 660 clamp(64px, 13.6vw, 230px) / 0.8 var(--font-sans, sans-serif); letter-spacing: -0.05em; white-space: nowrap; }
.atl-cap { opacity: 0; transition: opacity 0.9s linear 0.3s; }
.atl-sec.is-shown .atl-cap { opacity: 1; }
.atl-ch--dial .atl-cap { position: absolute; z-index: 2; left: var(--atl-margin); right: var(--atl-margin); bottom: var(--line, 18px); }
.atl-cap-a { grid-column: 1 / span 4; font-weight: 500; }
.atl-cap-b { grid-column: 5 / span 4; }
.atl-cap-z { grid-column: 9 / -1; justify-self: end; white-space: nowrap; display: flex; gap: 18px; }
.atl-style span { display: inline-block; min-width: 0.7em; color: var(--bone, #ECEAE4); }
/* with the details open the name and its line keep to the picture that is left */
.atl[data-layout="wide"] .atl-sec[data-open] :is(.atl-bio-in, .atl-cap) { right: calc(min(580px, 100vw) + var(--atl-margin)); }
.atl[data-layout="wide"] .atl-sec[data-open] .atl-bio-name { font-size: clamp(56px, 8.6vw, 150px); }
/* the dial: the picture held low behind the ring; the hour lifts it by day */
.atl-ch--dial { --day: 0.3; }
.atl-ch--dial .atl-m { animation: none; filter: brightness(calc(0.16 + 0.34 * var(--day))) contrast(1.1); transition: filter 0.9s linear; }

/* ---------- the details panel: calm, opaque, no grain ---------- */
.atl-drawer { position: fixed; z-index: 80; top: var(--atl-nav); right: 0; bottom: 0; width: min(580px, 100vw); overflow-y: auto; overscroll-behavior: contain;
  padding: 24px 40px 64px; background: var(--carbon, #0E0F10); border-left: 1px solid var(--atl-rule); box-shadow: -40px 0 80px rgba(0, 0, 0, 0.5);
  animation: atl-drawer 0.5s var(--atl-ease) both; scrollbar-width: thin; scrollbar-color: #2a2b2d transparent; }
@keyframes atl-drawer { from { transform: translateX(28px); opacity: 0; } }
/* Close stands on a bar of the panel's own colour, across its whole width: nothing scrolls past it */
.atl-drawer-top { position: sticky; top: -24px; z-index: 2; display: flex; justify-content: flex-end; margin: -24px -40px 0; padding: 20px 40px 12px; background: var(--carbon, #0E0F10); }
.atl-drawer-in { clear: both; }
.atl-panel--drawer { width: auto; }
.atl-panel--drawer .atl-eyebrow { margin-top: 4px; }
.atl-panel--drawer .atl-figs { margin-top: 22px; }
.atl-panel--drawer .atl-note { margin: 16px 0 0; }

/* ---------- shared small type ---------- */
.atl-eyebrow { display: flex; justify-content: space-between; gap: 16px; margin: 0; font: 500 10.5px/1.2 var(--font-mono, monospace); letter-spacing: 0.12em; text-transform: uppercase; color: var(--silver, #A8A8A4); }
.atl-num { color: var(--bone, #ECEAE4); }
.atl-k { font: 500 10px/1.3 var(--font-mono, monospace); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ash, #6B6B68); }
.atl-k--head { display: block; margin: 26px 0 0; padding-top: 10px; border-top: 1px solid var(--atl-rule); color: var(--silver, #A8A8A4); }
.atl-none { margin: 0; color: var(--silver, #A8A8A4); font-size: 12.5px; line-height: 1.5; }
.atl-note { margin: 0 0 18px; padding: 10px 12px; border: 1px dashed var(--atl-rule); color: var(--silver, #A8A8A4); font-size: 12.5px; line-height: 1.5; }
.atl-sub { margin: 14px 0 0; color: var(--silver, #A8A8A4); font-size: 12px; line-height: 1.55; }
.atl-sub .atl-k { display: block; margin-bottom: 3px; }

/* ---------- chapter panel ---------- */
.atl-h { margin: 16px 0 24px -0.03em; font-family: var(--font-serif, serif); font-weight: 400; font-size: clamp(46px, 4.7vw, 76px); line-height: 0.93; letter-spacing: -0.012em; text-wrap: balance; }
.atl-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 14px; margin: 0; }
.atl-stat { display: flex; flex-direction: column; padding-top: 9px; border-top: 1px solid var(--atl-rule); }
.atl-stat dd { margin: 0; font: 500 19px/1.1 var(--font-mono, monospace); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.atl-stat dt { margin-top: 6px; color: var(--silver, #A8A8A4); font-size: 11px; line-height: 1.25; }
.atl-figs--family .atl-stat dd { font-size: 23px; }

.atl-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.atl-btn { display: inline-flex; align-items: center; gap: 9px; min-height: 34px; padding: 0 13px; border: 1px solid var(--atl-rule); border-radius: 0;
  background: rgba(5, 5, 5, 0.55); color: var(--bone, #ECEAE4); font: 500 12px/1 var(--font-sans, sans-serif); letter-spacing: 0.02em; text-decoration: none; cursor: pointer;
  transition: border-color 0.25s var(--atl-ease), background-color 0.25s var(--atl-ease), color 0.25s var(--atl-ease); }
.atl-btn:hover { border-color: var(--bone, #ECEAE4); background: rgba(236, 234, 228, 0.06); }
.atl-btn--icon { justify-content: center; min-height: 28px; width: 28px; padding: 0; border-color: transparent; background: none; color: var(--silver, #A8A8A4); }
.atl-btn--icon:hover { color: var(--bone, #ECEAE4); border-color: var(--atl-rule); }
.atl-ic { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: fill 0.2s, stroke 0.2s; }
.atl-save[aria-pressed="true"] .atl-ic { fill: var(--signal, #CFE34A); stroke: var(--signal, #CFE34A); }
.atl-more { width: 100%; justify-content: space-between; margin-top: 12px; }

.atl-tabs { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: 38px; border-top: 1px solid var(--atl-rule); }
.atl-tab { position: relative; display: inline-flex; align-items: baseline; gap: 7px; margin-top: -1px; padding: 11px 0 9px; border: 0; border-top: 1px solid transparent; background: none;
  color: var(--silver, #A8A8A4); font: 500 13.5px/1 var(--font-sans, sans-serif); cursor: pointer; transition: color 0.25s var(--atl-ease); }
.atl-tab:hover { color: var(--bone, #ECEAE4); }
.atl-tab-n { font: 500 10.5px/1 var(--font-mono, monospace); color: var(--ash, #6B6B68); }
.atl-tab[aria-selected="true"] { color: var(--bone, #ECEAE4); border-top-color: var(--signal, #CFE34A); }
.atl-tab[aria-selected="true"]::before { content: ''; width: 6px; height: 6px; background: var(--signal, #CFE34A); align-self: center; }

.atl-card-host { min-height: 40svh; }
.atl-card { animation: atl-in 0.7s var(--atl-ease) both; }
@keyframes atl-in { from { opacity: 0; transform: translateY(10px); } }
.atl-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 22px; }
.atl-card-name { margin: 0; font-family: var(--font-serif, serif); font-weight: 400; font-size: 42px; line-height: 1; letter-spacing: -0.01em; }
.atl-card-idx { font: 500 10px/1 var(--font-mono, monospace); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ash, #6B6B68); white-space: nowrap; }

.atl-seq { display: flex; align-items: flex-start; margin-top: 16px; padding-left: 5px; }
.atl-res { display: flex; flex-direction: column; align-items: center; width: 40px; margin-left: -5px; }
.atl-res b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font: 600 12px/1 var(--font-mono, monospace); color: var(--bone, #ECEAE4);
  background: radial-gradient(circle at 34% 24%, #fff 0 3%, #8d8d89 8%, #2a2a2b 30%, #0c0c0d 62%, #050505 100%); box-shadow: inset -3px -5px 8px rgba(255, 255, 255, 0.07), 0 6px 14px rgba(0, 0, 0, 0.6); }
.atl-res:nth-child(even) b { color: #0a0a0a; background: radial-gradient(circle at 34% 24%, #fff 0 14%, #eceae4 34%, #a3a29e 76%, #6a6a67 100%); box-shadow: inset -3px -5px 9px rgba(0, 0, 0, 0.28), 0 6px 14px rgba(0, 0, 0, 0.6); }
.atl-res small { margin-top: 7px; font: 500 9.5px/1 var(--font-mono, monospace); letter-spacing: 0.04em; color: var(--silver, #A8A8A4); }
.atl-seq-letters { margin-left: auto; align-self: center; font: 500 22px/1 var(--font-mono, monospace); letter-spacing: 0.16em; color: var(--bone, #ECEAE4); }

.atl-fig { margin: 20px 0 0; border: 1px solid var(--atl-rule); background: radial-gradient(120% 90% at 50% 118%, #3a3b3c 0%, #17181a 46%, #08080a 100%); }
.atl-fig figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-top: 1px solid var(--atl-rule); background: rgba(5, 5, 5, 0.7);
  font: 500 10px/1.2 var(--font-mono, monospace); letter-spacing: 0.08em; text-transform: uppercase; color: var(--silver, #A8A8A4); }
.atl-mol { display: block; width: 100%; height: 250px; touch-action: pan-y; cursor: grab; }
.atl-mol:active { cursor: grabbing; }
.atl-legend { display: inline-flex; align-items: center; gap: 5px; }
.atl-el { width: 8px; height: 8px; border-radius: 50%; margin-left: 6px; border: 1px solid rgba(236, 234, 228, 0.45); }
.atl-el--c { background: #0b0b0b; } .atl-el--n { background: #4f4f4d; } .atl-el--o { background: #a9a7a2; } .atl-el--h { background: #f4f2ec; }
.atl-formula { padding: 6px 14px; color: var(--bone, #ECEAE4); min-height: 120px; }
.atl-formula svg { display: block; width: 100%; height: auto; }
.atl-fig--none { padding: 14px; border-style: dashed; background: none; }

.atl-summary { margin: 20px 0 0; font-size: 15px; line-height: 1.52; color: var(--bone, #ECEAE4); text-wrap: pretty; }
.atl-dossier { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--silver, #A8A8A4); }
.atl-dossier .atl-k { display: block; margin-bottom: 3px; }
.atl-meta { margin: 20px 0 22px; }
.atl-meta > div { display: grid; grid-template-columns: 132px 1fr; gap: 10px; padding: 7px 0; border-top: 1px solid var(--atl-rule); }
.atl-meta > div:last-child { border-bottom: 1px solid var(--atl-rule); }
.atl-meta dt { font: 500 10px/1.5 var(--font-mono, monospace); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ash, #6B6B68); }
.atl-meta dd { margin: 0; font-size: 13px; line-height: 1.35; }

.atl-tiers { margin-top: 18px; }
.atl-tiers-bar { display: flex; gap: 2px; height: 5px; }
.atl-tiers-bar i { min-width: 2px; background: #3b3b3a; }
.atl-tiers-bar i[data-t="1"] { background: var(--bone, #ECEAE4); } .atl-tiers-bar i[data-t="2"] { background: #c4c2bd; }
.atl-tiers-bar i[data-t="3"] { background: #8f8f8b; } .atl-tiers-bar i[data-t="4"] { background: #5d5d5a; }
.atl-tiers-key { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font: 500 10.5px/1.2 var(--font-mono, monospace); color: var(--silver, #A8A8A4); }
.atl-tiers-key b { font-weight: 600; color: var(--bone, #ECEAE4); }
.atl-tiers-key .is-zero, .atl-tiers-key .is-zero b { color: var(--ash, #6B6B68); }

.atl-studies { list-style: none; margin: 0; padding: 0; }
.atl-study { display: grid; grid-template-columns: 42px minmax(0, 1fr) 28px; gap: 4px; align-items: start; padding: 11px 0; border-bottom: 1px solid var(--atl-rule); }
.atl-study-y { padding-top: 2px; font: 500 11px/1.3 var(--font-mono, monospace); color: var(--silver, #A8A8A4); }
.atl-study-b { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.atl-study-t, .atl-fact-t { color: var(--bone, #ECEAE4); font-size: 13.5px; line-height: 1.35; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--atl-ease); }
.atl-study-t:hover, .atl-fact-t:hover { background-size: 100% 1px; }
.atl-study-m { font-size: 11.5px; line-height: 1.35; color: var(--silver, #A8A8A4); }

/* ---------- the dial ---------- */
.atl-dial-wrap { position: absolute; left: 0; top: 0; width: 0; height: 0; --r: 200px; will-change: transform, opacity; }
.atl-dial { position: absolute; left: calc(var(--r) * -1.3); top: calc(var(--r) * -1.3); width: calc(var(--r) * 2.6); height: calc(var(--r) * 2.6); overflow: visible; pointer-events: none; }
.atl-dial line, .atl-dial circle, .atl-dial path { fill: none; vector-effect: non-scaling-stroke; }
.atl-dial-ring { stroke: rgba(236, 234, 228, 0.55); stroke-width: 1px; }
.atl-dial-ticks line { stroke: rgba(236, 234, 228, 0.45); stroke-width: 1px; }
.atl-dial-ticks line.is-major { stroke: var(--bone, #ECEAE4); }
.atl-dial text { font-family: var(--font-mono, monospace); font-size: var(--fs, 5px); font-weight: 500; text-anchor: middle; fill: var(--silver, #A8A8A4); letter-spacing: 0.06em; }
.atl-dial-hr { fill: var(--bone, #ECEAE4) !important; }
.atl-dial-hr--named { fill: var(--silver, #A8A8A4) !important; }
.atl-dial-ph { text-transform: uppercase; letter-spacing: 0.14em !important; fill: var(--ash, #6B6B68) !important; transition: fill 0.3s; }
.atl-dial-ph.is-on { fill: var(--bone, #ECEAE4) !important; }
.atl-dial-pc { fill: var(--ash, #6B6B68) !important; }
.atl-dial-arc { stroke: rgba(236, 234, 228, 0.22); stroke-width: 1px; transition: stroke 0.3s; }
.atl-dial-arc--night { stroke-dasharray: 1 4; stroke-width: 2px; stroke: rgba(236, 234, 228, 0.4); }
.atl-dial-arc.is-on { stroke: var(--bone, #ECEAE4); }
.atl-dial-mark { fill: var(--bone, #ECEAE4) !important; stroke: var(--void, #050505); stroke-width: 1px; }
.atl-dial-hand { transition: transform 0.5s var(--atl-ease); }
.atl-dial-needle { stroke: var(--bone, #ECEAE4); stroke-width: 1px; }
.atl-dial-knob { fill: var(--signal, #CFE34A) !important; stroke: none; }
.atl-dial-hit { stroke: transparent; stroke-width: 34; pointer-events: stroke; cursor: grab; touch-action: none; }
.atl-dial-hit:active { cursor: grabbing; }
.atl-dial-slider { position: absolute; left: calc(var(--r) * -1); top: calc(var(--r) * -1); width: calc(var(--r) * 2); height: calc(var(--r) * 2); border-radius: 50%; pointer-events: none; }
.atl-dial-slider:focus-visible { outline-offset: 12px; }
.atl-dial-readout { position: absolute; left: 0; top: calc(var(--r) * 0.42); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; white-space: nowrap; }
.atl-dial-time { font: 500 clamp(18px, calc(var(--r) * 0.13), 34px)/1 var(--font-mono, monospace); letter-spacing: -0.02em; }
.atl-dial-phase { font: 500 10px/1 var(--font-mono, monospace); letter-spacing: 0.16em; text-transform: uppercase; color: var(--silver, #A8A8A4); }

.atl-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.atl-chips .atl-k { width: 84px; }
.atl-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 10px; border: 1px solid var(--atl-rule); background: none; color: var(--ash, #6B6B68);
  font: 500 12px/1 var(--font-sans, sans-serif); text-transform: capitalize; cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.atl-chip[aria-pressed="true"] { color: var(--bone, #ECEAE4); border-color: rgba(236, 234, 228, 0.6); }
.atl-chip-n { font: 500 10px/1 var(--font-mono, monospace); color: var(--silver, #A8A8A4); }
.atl-chip[aria-pressed="false"] .atl-chip-n { color: var(--ash, #6B6B68); }
.atl-dial-step { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding: 6px 0; border-top: 1px solid var(--atl-rule-strong); border-bottom: 1px solid var(--atl-rule); }
.atl-dial-now { font: 500 13px/1 var(--font-mono, monospace); letter-spacing: 0.06em; }
.atl-dial-step .atl-btn--icon { color: var(--bone, #ECEAE4); }
.atl-facts { min-height: 50svh; }
.atl-facts-sum { margin: 14px 0 0; font-size: 12px; color: var(--silver, #A8A8A4); }
.atl-facts > .atl-none { margin-top: 16px; }
.atl-facts-group { margin-top: 22px; }
.atl-facts-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; padding-bottom: 9px; border-bottom: 1px solid var(--atl-rule-strong);
  font: 500 15px/1 var(--font-mono, monospace); letter-spacing: 0.02em; }
.atl-fact { padding: 14px 0 12px; border-bottom: 1px solid var(--atl-rule); }
.atl-fact-q { margin: 0; font-size: 14.5px; line-height: 1.52; color: var(--bone, #ECEAE4); overflow-wrap: anywhere; }
.atl-fact-q mark { padding: 0 3px; background: var(--bone, #ECEAE4); color: var(--void, #050505); }
.atl-fact-src { display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 8px; align-items: start; margin-top: 10px; }
.atl-fact-meta { display: flex; flex-direction: column; gap: 3px; padding-left: 12px; border-left: 1px solid var(--atl-rule-strong); }
.atl-fact-t { font-size: 12.5px; color: var(--silver, #A8A8A4); }
.atl-fact-t:hover { color: var(--bone, #ECEAE4); }
.atl-loading { animation: atl-pulse 1.6s ease-in-out infinite; }
@keyframes atl-pulse { 50% { opacity: 0.45; } }

/* ---------- the rail: one tick per plate ---------- */
.atl-hud { position: sticky; top: 0; z-index: 5; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; pointer-events: none; mix-blend-mode: difference; color: #fff; }
.atl-rail { position: absolute; left: 0; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; pointer-events: auto; transition: opacity 0.6s linear; }
.atl-rail-i { display: flex; align-items: center; gap: 10px; height: 15px; color: rgba(255, 255, 255, 0.5); text-decoration: none; }
.atl-rail-i i { width: 9px; height: 1px; background: currentColor; transition: width 0.4s var(--atl-ease); }
.atl-rail-i.is-sub i { width: 5px; }
.atl-rail-i.is-index { margin-top: 9px; }
.atl-rail-l { white-space: nowrap; opacity: 0; transform: translateX(-4px); transition: opacity 0.3s linear, transform 0.4s var(--atl-ease); pointer-events: none; }
.atl-rail-i:hover, .atl-rail-i:focus-visible, .atl-rail-i.is-on { color: #fff; }
.atl-rail-i:hover i, .atl-rail-i:focus-visible i, .atl-rail-i.is-on i { width: 16px; }
.atl-rail-i:hover .atl-rail-l, .atl-rail-i:focus-visible .atl-rail-l { opacity: 1; transform: none; }
.atl[data-drawer="open"] .atl-rail { opacity: 0; pointer-events: none; }

/* ---------- the index: one table on a raised sheet, centred like the page's other columns ---------- */
.atl-explore { height: auto; min-height: 100svh; padding: calc(var(--atl-nav) + 28px) var(--atl-margin) 72px; background: var(--void, #050505); color: var(--bone, #ECEAE4); }
.atl-ix { --ix-sheet: #121315; --ix-line: rgba(236, 234, 228, 0.09); --ix-ink-2: #B7B6B1; --ix-ink-3: #94938E;
  max-width: 1100px; margin: 0 auto; padding: 30px 32px 24px; border-radius: 16px; background: var(--ix-sheet);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 0 0 1px rgba(236, 234, 228, 0.045), 0 1px 2px rgba(0, 0, 0, 0.5), 0 34px 80px -34px rgba(0, 0, 0, 0.95); }
.atl-ix-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 360px); gap: 16px 32px; align-items: end; margin-bottom: 14px; }
.atl-ix-title { margin: 0 0 0 -0.03em; font: 600 30px/1.05 var(--font-sans, sans-serif); letter-spacing: -0.025em; }
.atl-ix-lede { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 9px 0 0; font-size: 13.5px; line-height: 18px; color: var(--ix-ink-3); }
.atl-ix-count { color: var(--bone, #ECEAE4); }
.atl-ix-find { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 8px 0 12px; border-radius: 10px; background: #090A0B; color: var(--ix-ink-3); cursor: text;
  box-shadow: inset 0 0 0 1px rgba(236, 234, 228, 0.18), inset 0 2px 5px rgba(0, 0, 0, 0.55); transition: box-shadow 0.2s, color 0.2s; }
.atl-ix-find:hover { box-shadow: inset 0 0 0 1px rgba(236, 234, 228, 0.36), inset 0 2px 5px rgba(0, 0, 0, 0.55); }
.atl-ix-find:focus-within { color: var(--bone, #ECEAE4); box-shadow: inset 0 0 0 1px rgba(236, 234, 228, 0.7), inset 0 2px 5px rgba(0, 0, 0, 0.55), 0 0 0 3px rgba(236, 234, 228, 0.08); }
.atl-ix-find .atl-ic { width: 16px; height: 16px; }
.atl .atl-filter { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; border-radius: 0; outline: 0; background: none; color: var(--bone, #ECEAE4); font: 400 13.5px/1 var(--font-sans, sans-serif); appearance: none; }
.atl-filter::placeholder { color: var(--ix-ink-3); opacity: 1; }

.atl-ix-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 13.5px; line-height: 18px; }
.atl-ix-cap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.atl-c-seq { width: 176px; } .atl-c-type { width: 150px; } .atl-c-st { width: 108px; } .atl-c-n { width: 122px; } .atl-c-act { width: 84px; }
.atl-ix-table :is(th, td) { padding: 0 10px; text-align: left; font-weight: 400; vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atl-ix-table :is(th, td).atl-ix-n { padding-right: 18px; text-align: right; font-variant-numeric: tabular-nums; }
.atl-ix-table :is(th, td).atl-ix-act { padding: 0 4px; overflow: visible; }
/* the column names stay in view under the header while the table is read */
.atl-ix-table thead th { position: sticky; top: var(--atl-nav); z-index: 3; height: 46px; padding-top: 14px; background: var(--ix-sheet); box-shadow: inset 0 -1px 0 rgba(236, 234, 228, 0.24);
  font-size: 12px; font-weight: 500; letter-spacing: 0.02em; color: var(--ix-ink-3); }
.atl-ix-table thead th.atl-ix-act { padding: 14px 4px 0 12px; }
.atl-ix-table thead th[title] { cursor: help; }
/* a family: a band a step lighter than the sheet, its bioregulators as open rows under it */
.atl-fam::before { content: ''; display: table-row; height: 14px; }
.atl-fam-row > * { height: 44px; background: rgba(236, 234, 228, 0.055); color: var(--bone, #ECEAE4); }
.atl-fam-row > :first-child { padding-left: 14px; border-radius: 9px 0 0 9px; }
.atl-fam-row > :last-child { padding-right: 8px; border-radius: 0 9px 9px 0; }
.atl-fam-pick { display: inline-flex; align-items: baseline; gap: 12px; max-width: 100%; color: inherit; font-size: 14.5px; font-weight: 600; letter-spacing: -0.005em; text-decoration: none; }
.atl-fam-n { width: 22px; font-size: 12px; font-weight: 500; letter-spacing: 0.02em; color: var(--ix-ink-3); font-variant-numeric: tabular-nums; }
.atl-fam-size { font-size: 12.5px; font-weight: 400; letter-spacing: 0; color: var(--ix-ink-3); }
.atl-fam-row .atl-ix-n { font-weight: 600; }
.atl-pep-row > * { height: 40px; border-bottom: 1px solid var(--ix-line); color: var(--ix-ink-2); transition: background-color 0.15s linear; }
.atl-fam > .atl-pep-row:last-child > * { border-bottom-color: transparent; }
.atl-pep-row > th { padding-left: 48px; }
.atl-pep-row:hover > * { background: rgba(236, 234, 228, 0.035); }
.atl-pep { color: var(--bone, #ECEAE4); font-weight: 500; text-decoration: none; }
:is(.atl-pep, .atl-fam-pick:hover .atl-fam-label, .atl-pep:hover) { text-underline-offset: 4px; text-decoration-thickness: 1px; }
.atl-fam-pick:hover .atl-fam-label, .atl-pep:hover { text-decoration: underline; }
.atl-pep-meta { display: none; }
.atl-pep-seq b { display: inline-block; min-width: 46px; margin-right: 6px; font-weight: 500; letter-spacing: 0.05em; color: var(--bone, #ECEAE4); }
.atl-pep-row .atl-ix-n { color: var(--bone, #ECEAE4); }
/* the two actions of a row: named, quiet until the row or the button is under the pointer */
.atl .atl-btn--row { gap: 6px; min-height: 28px; width: 100%; justify-content: center; padding: 0 8px; border: 0; border-radius: 7px; background: none; color: var(--ix-ink-2); font-size: 12.5px; line-height: 1; white-space: nowrap; }
.atl :is(.atl-pep-row, .atl-fam-row):hover .atl-btn--row { background: rgba(236, 234, 228, 0.07); color: var(--bone, #ECEAE4); }
.atl .atl-btn--row:hover, .atl .atl-btn--row:focus-visible { background: rgba(236, 234, 228, 0.16); color: var(--bone, #ECEAE4); }
.atl .atl-btn--row .atl-ic { width: 13px; height: 13px; }
.atl .atl-save.atl-btn--row[aria-pressed="true"] { color: var(--bone, #ECEAE4); }
.atl-ix-none { padding: 34px 14px 20px; }
.atl-ix-foot { margin: 18px 0 0; padding: 14px 14px 0; border-top: 1px solid var(--ix-line); font-size: 12.5px; line-height: 18px; color: var(--ix-ink-3); text-wrap: pretty; }
/* a narrower window: the sequence keeps its letters */
@media (max-width: 1060px) { .atl-c-seq { width: 78px; } .atl-pep-seq span { display: none; } .atl-c-type { width: 140px; } .atl-c-n { width: 112px; } }

/* ---------- one size, in the panel too ---------- */
.atl :is(.atl-h, .atl-card-name, .atl-facts-h) { font-family: var(--font-sans, sans-serif); font-size: var(--atl-fs); line-height: var(--atl-lh); font-weight: 500; letter-spacing: 0.005em; }
.atl :is(.atl-eyebrow, .atl-k, .atl-meta dt, .atl-tiers-key, .atl-study-y, .atl-tab-n, .atl-card-idx, .atl-fig figcaption, .atl-res small, .atl-chip-n, .atl-dial-now, .atl-stat dd, .atl-seq-letters) {
  font-family: var(--font-sans, sans-serif); font-size: var(--atl-fs); line-height: var(--atl-lh); letter-spacing: 0.005em; text-transform: none; font-weight: 400; }
.atl :is(.atl-summary, .atl-dossier, .atl-meta dd, .atl-stat dt, .atl-study-t, .atl-study-m, .atl-fact-q, .atl-fact-t, .atl-facts-sum, .atl-none, .atl-note, .atl-sub, .atl-tab, .atl-btn, .atl-chip) { font-size: var(--atl-fs); line-height: 1.42; }
.atl :is(.atl-stat dd, .atl-seq-letters, .atl-dial-now) { font-weight: 500; }
.atl-h { margin: 14px 0 22px; }
.atl-card-head { margin-top: 26px; }
.atl-dial-time { font: 500 13px/16px var(--font-sans, sans-serif); letter-spacing: 0.005em; }
.atl-dial-phase { font: 400 13px/16px var(--font-sans, sans-serif); letter-spacing: 0.005em; text-transform: none; color: rgba(236, 234, 228, 0.54); }
.atl-dial text { font-family: var(--font-sans, sans-serif); font-weight: 400; letter-spacing: 0; font-size: var(--dial-fs, 5px); }
.atl-dial-ph { text-transform: none; letter-spacing: 0 !important; }
.atl-drawer { color: var(--bone, #ECEAE4); --atl-dim: rgba(236, 234, 228, 0.54); }
.atl-btn { min-height: 30px; padding: 0 11px; font-weight: 400; letter-spacing: 0.005em; }

/* ---------- narrow ---------- */
.atl[data-layout="narrow"] .atl-row { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 3px; }
.atl[data-layout="narrow"] .atl-cap-a { grid-column: 1 / span 2; grid-row: 1; }
.atl[data-layout="narrow"] .atl-cap-b { grid-column: 1 / span 2; grid-row: 2; }
.atl[data-layout="narrow"] .atl-cap-z { grid-column: 3 / span 2; grid-row: 2; gap: 14px; }
.atl[data-layout="narrow"] .atl-bio-name { font-size: clamp(54px, 19.5vw, 120px); margin-bottom: calc(0.18em + 4px); }
.atl[data-layout="narrow"] .atl-rail { display: none; }
.atl[data-layout="narrow"] .atl-explore { padding: calc(var(--atl-nav) + 12px) 8px 44px; }
.atl[data-layout="narrow"] .atl-ix { padding: 22px 12px 18px; border-radius: 14px; }
.atl[data-layout="narrow"] .atl-ix-top { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 8px; }
.atl[data-layout="narrow"] .atl-ix-title { font-size: 26px; }
.atl[data-layout="narrow"] .atl-filter { font-size: 16px; }   /* a phone does not zoom into a field of 16 px */
/* on a phone a row is a line: the name with its sequence, type and structure under it, the count, the two actions */
.atl[data-layout="narrow"] .atl-ix-table, .atl[data-layout="narrow"] .atl-ix-table :is(thead, tbody) { display: block; }
.atl[data-layout="narrow"] .atl-ix-table colgroup, .atl[data-layout="narrow"] .atl-ix-table :is(th, td):is(.atl-pep-seq, .atl-pep-type, .atl-pep-st), .atl[data-layout="narrow"] .atl-fam-row .atl-ix-act { display: none; }
.atl[data-layout="narrow"] .atl-ix-table tr { display: grid; grid-template-columns: minmax(0, 1fr) 46px 64px 64px; align-items: center; }
.atl[data-layout="narrow"] .atl-ix-table :is(th, td) { height: auto; padding: 0 4px; border: 0; border-radius: 0; background: none; }
.atl[data-layout="narrow"] .atl-ix-table :is(th, td).atl-ix-n { padding: 0 8px 0 0; overflow: visible; }
.atl[data-layout="narrow"] .atl-ix-table thead { position: sticky; top: var(--atl-nav); z-index: 3; padding: 14px 0 9px; background: var(--ix-sheet); box-shadow: inset 0 -1px 0 rgba(236, 234, 228, 0.24); }
.atl[data-layout="narrow"] .atl-ix-table thead th { position: static; padding-top: 0; box-shadow: none; }
.atl[data-layout="narrow"] .atl-ix-table thead th.atl-ix-n { direction: rtl; }   /* "Human studies" is wider than its column: it runs out to the left */
.atl[data-layout="narrow"] .atl-ix-table thead th.atl-ix-act { padding: 0; text-align: center; }
.atl[data-layout="narrow"] .atl-fam::before { display: block; height: 12px; }
.atl[data-layout="narrow"] .atl-fam-row { min-height: 44px; padding: 0 0 0 8px; border-radius: 9px; background: rgba(236, 234, 228, 0.055); }
.atl[data-layout="narrow"] .atl-fam-row > th { grid-column: 1; }
.atl[data-layout="narrow"] .atl-fam-pick { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 0 8px; padding: 7px 0; font-size: 14px; white-space: normal; }
.atl[data-layout="narrow"] .atl-fam-size { grid-column: 2; font-size: 12px; line-height: 16px; }
.atl[data-layout="narrow"] .atl-pep-row { padding: 4px 0 10px 8px; border-bottom: 1px solid var(--ix-line); }
.atl[data-layout="narrow"] .atl-fam > .atl-pep-row:last-child { border-bottom: 0; }
.atl[data-layout="narrow"] .atl-pep-row > th { display: contents; }
.atl[data-layout="narrow"] .atl-pep-row > td { grid-row: 1; }
.atl[data-layout="narrow"] .atl-pep { grid-column: 1; grid-row: 1; justify-self: start; padding: 0 4px 0 34px; font-size: 14px; }
.atl[data-layout="narrow"] .atl-pep-row:hover > * { background: none; }
.atl[data-layout="narrow"] .atl-pep-meta { display: block; grid-column: 1 / -1; grid-row: 2; margin-top: -5px; padding: 0 4px 0 34px; white-space: normal; font-size: 12.5px; line-height: 17px; color: var(--ix-ink-3); }
.atl[data-layout="narrow"] .atl-ix-act { padding: 0 2px; }
.atl[data-layout="narrow"] .atl .atl-btn--row, .atl[data-layout="narrow"] .atl-btn--row { min-height: 34px; padding: 0 4px; gap: 4px; font-size: 12px; }
.atl[data-layout="narrow"] .atl-ix-foot { padding: 12px 4px 0; }
.atl[data-layout="narrow"] .atl-drawer { width: 100vw; padding: 20px var(--atl-margin) 48px; }
.atl[data-layout="narrow"] .atl-drawer-top { top: -20px; margin: -20px calc(var(--atl-margin) * -1) 0; padding: 16px var(--atl-margin) 10px; }
.atl[data-layout="narrow"] .atl-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
.atl[data-layout="narrow"] .atl-mol { height: 220px; }
.atl[data-layout="narrow"] .atl-dial-readout { top: calc(var(--r) * 0.5); }

@media (prefers-reduced-motion: reduce) {
  .atl-card, .atl-loading { animation: none; }
  .atl-dial-hand, .atl-rail-i i, .atl-rail-l, .atl-cap { transition: none; }
  .atl-m { animation: none; }
  .atl.is-reframing .atl-frame .atl-m { transition: none; }
  .atl-bio--object.is-on .atl-grain { animation: none; }
}
