
/* The atlas interface: every piece of chrome behaves like part of an anatomical plate. */
:root{
  --plate:#0f1814; --plate-2:#15211c; --ivory:#ede6d6; --ivory-2:#bdb6a6; --copper:#d0803f; --copper-deep:#a8612a; --verdigris:#7fae99;
  --display:"map-roman-condensed","Arial Narrow","Roboto Condensed",serif; --text:"hagrid-text",sans-serif;
  --ease:cubic-bezier(.16,1,.3,1);
  --hatch:repeating-linear-gradient(-14deg,var(--ivory) 0 1.1px,transparent 1.1px 4.2px);
}
*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--plate);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
body{background:var(--plate);color:var(--ivory);font-family:var(--text);font-size:1.0625rem;line-height:1.55;overflow-x:hidden}
/* the system pointer always stays: visitors who enlarged or recoloured it in their settings must keep it */
a{color:inherit;text-decoration:none}
.wrap{padding-inline:clamp(16px,2.6vw,44px)}
.label{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--ivory-2)}

/* ---- depth layers, back to front ---- */
.numerals{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.numeral{position:absolute;right:6vw;top:50%;font-family:var(--display);font-size:78vh;line-height:.8;letter-spacing:-.03em;
  color:transparent;-webkit-text-stroke:1px rgba(237,230,214,.13);background:var(--hatch);-webkit-background-clip:text;background-clip:text;
  opacity:0;transform:translateY(-50%);will-change:transform,opacity;white-space:nowrap}
.numeral.left{right:auto;left:4vw}
.nums-b .numeral{right:-4vw;font-size:86vh;-webkit-text-stroke-color:rgba(237,230,214,.16)}
.nums-b .numeral.left{right:auto;left:-4vw}
.nums-c .numeral{display:none}
.vesal{position:fixed;right:4vw;top:6vh;height:88vh;aspect-ratio:1169/1696;z-index:0;pointer-events:none;opacity:0;
  filter:invert(1) sepia(.35) hue-rotate(95deg) contrast(1.25);mix-blend-mode:screen}
/* the plate (1.2 MB) is only fetched once the spine model is in, so the two never compete on a slow connection */
.vesal.ready{background:url(assets/vesalius-skeleton-1543.jpg) center/100% 100% no-repeat}
.vesal{transform-origin:50% 0}
/* the finale's ruled ivory line, drawn across the spine and the plate at the sweep front */
.ink-line{position:fixed;left:0;top:0;height:2px;width:0;z-index:3;pointer-events:none;opacity:0;background:linear-gradient(90deg,rgba(255,248,232,0),rgba(255,248,232,.95) 10%,rgba(255,248,232,.95) 90%,rgba(255,248,232,0));box-shadow:0 0 10px rgba(255,240,210,.55)}
@media (max-width:900px){.ink-line{display:none}}
/* the last chapter holds still for ~140vh on desktop, so the ink line has time to run down the plate */
@media (min-width:901px){.fin-b #book{min-height:240vh;align-items:flex-start;padding-top:12vh}.fin-b #book .inner{position:sticky;top:max(96px,calc(50vh - 330px))}}
@media (forced-colors:active){.ink-line{display:none}}
.fin-b .vesal{-webkit-mask-image:linear-gradient(180deg,#000 var(--swa,0px),rgba(0,0,0,.37) var(--swb,0px)),linear-gradient(90deg,transparent,#000 7%,#000 94%,transparent);-webkit-mask-composite:source-in;mask-image:linear-gradient(180deg,#000 var(--swa,0px),rgba(0,0,0,.37) var(--swb,0px)),linear-gradient(90deg,transparent,#000 7%,#000 94%,transparent);mask-composite:intersect}
/* the scan's paper edges never show as a box: the plate fades out at both sides */
#gl{position:fixed;inset:0;width:100vw;height:100vh;height:100lvh;display:block;z-index:1}
.no-gl #gl{display:none}
.no-gl body{background:var(--plate) url(assets/hero-engraved.jpg) 70% 50%/cover fixed}
.atmos{position:fixed;inset:0;pointer-events:none;z-index:2;background:radial-gradient(120% 90% at 60% 45%,rgba(15,24,20,0) 45%,rgba(8,13,11,.72) 100%)}
.atmos::before{content:"";position:absolute;left:0;right:0;top:0;height:140px;background:linear-gradient(180deg,rgba(15,24,20,.9),rgba(15,24,20,0))}
.atmos::after{content:"";position:absolute;inset:0;opacity:.09;mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>")}
/* leader lines from the words to the bones */
.leaders{position:fixed;inset:0;z-index:3;pointer-events:none;width:100vw;height:100vh;overflow:visible}
.leaders path{fill:none;stroke:var(--ivory);stroke-width:1;stroke-dasharray:1;vector-effect:non-scaling-stroke}
.leaders .dot{fill:var(--ivory)}
.leaders .halo{fill:none;stroke:var(--ivory);stroke-width:1;opacity:.5}
.leaders .hot path,.leaders .hot .halo{stroke:var(--copper)} .leaders .hot .dot{fill:var(--copper)}
.tag{position:fixed;left:0;top:0;z-index:3;pointer-events:none;background:rgba(15,24,20,.9);padding:6px 9px 2px;font-size:11.5px;letter-spacing:.15em;text-transform:uppercase;color:var(--ivory);opacity:0;white-space:nowrap;
  display:flex;gap:10px;align-items:baseline}
.tag i{font-family:var(--display);font-style:normal;font-size:34px;letter-spacing:0;line-height:.8}
.tag.hot{color:var(--copper)}

/* ---- chrome ---- */
.topbar{position:fixed;top:0;left:0;right:0;z-index:6;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding-top:24px}
/* a ground under the bar so scrolled text never prints through the nav */
/* the bar keeps a solid ground down to its bottom edge, then fades, so copy never shows through behind the logo */
.topbar{background:var(--plate);padding-bottom:10px}
.topbar::before{content:"";position:absolute;left:0;right:0;top:100%;height:36px;pointer-events:none;background:linear-gradient(180deg,var(--plate),rgba(15,24,20,0))}
html{scroll-padding-top:96px}
.brand{display:flex;align-items:baseline;gap:18px}
.wordmark{font-family:var(--display);font-size:30px;letter-spacing:.06em;text-transform:uppercase}
.folio{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--ivory-2);font-variant-numeric:tabular-nums}
.folio b{font-family:var(--display);font-weight:400;font-size:20px;letter-spacing:.04em;color:var(--ivory);margin-left:6px}
/* engraved copper plate button with a cut corner */
.link{position:relative;padding:12px 0;font-size:15px}
.link::after{content:"";position:absolute;left:0;right:0;bottom:6px;height:3px;background:repeating-linear-gradient(90deg,var(--ivory) 0 1px,transparent 1px 3px);transition:transform .5s var(--ease);transform-origin:right}
.link:hover::after{transform:scaleX(.35)}
/* the vertebra ruler */
.ruler{position:fixed;right:clamp(16px,2.6vw,44px);top:50%;transform:translateY(-50%);height:52vh;width:44px;z-index:6}
.ruler i{position:absolute;right:0;height:1px;width:8px;background:rgba(237,230,214,.35);transition:width .5s var(--ease),background-color .5s var(--ease)}
.ruler i.reg{width:14px;background:rgba(237,230,214,.6)}
.ruler i.on{width:30px;background:var(--ivory)}
.ruler i.on.hot{background:var(--copper)} .ruler i.on.calm{background:var(--verdigris)}
.ruler .now{position:absolute;right:40px;background:rgba(15,24,20,.82);padding:6px 9px 5px;transform:translateY(-50%);font-family:var(--text);font-weight:700;font-size:20px;letter-spacing:.04em;font-variant-numeric:lining-nums tabular-nums;line-height:1;white-space:nowrap;font-variant-numeric:tabular-nums;transition:top .45s var(--ease),color .5s var(--ease)}
.ruler .reglbl{position:absolute;right:20px;transform:translateY(-50%);font-size:12px;letter-spacing:.16em;color:var(--ivory-2)}
/* pause is a round seal in the bar: it never covers the page; its name stays for screen readers */
.pause{width:44px;height:44px;flex:none;border:0;border-radius:50%;padding:0;background:none;color:var(--ivory-2);font:inherit;font-size:0;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:inset 0 0 0 1px var(--line-2)}
.pause:hover{color:var(--ivory)}
.pause::before{content:"";width:8px;height:10px;border-left:3px solid currentColor;border-right:3px solid currentColor}
.pause[aria-pressed=true]::before{border:0;width:0;height:0;border-left:9px solid currentColor;border-top:5px solid transparent;border-bottom:5px solid transparent}
.scrollcue{pointer-events:none;position:fixed;left:50%;bottom:26px;transform:translateX(-50%);z-index:6;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--ivory-2);display:flex;gap:12px;align-items:center}
.scrollcue::after{content:"";width:1px;height:28px;background:linear-gradient(var(--ivory),transparent);animation:cue 2.2s var(--ease) infinite}
@keyframes cue{0%{transform:scaleY(0);transform-origin:top}50%{transform:scaleY(1);transform-origin:top}51%{transform-origin:bottom}100%{transform:scaleY(0);transform-origin:bottom}}
/* cursor: a loupe that names what it is over */
.cursor{position:fixed;left:0;top:0;z-index:9;pointer-events:none;width:0;height:0}
.cursor .ring{position:absolute;width:30px;height:30px;margin:-15px 0 0 -15px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(237,230,214,.7);transition:width .45s var(--ease),height .45s var(--ease),margin .45s var(--ease),background-color .3s var(--ease)}
/* the loupe is decoration only; forced colours (Windows high contrast) gets the plain pointer */
@media (forced-colors:active){.cursor{display:none}
  /* the system backplate behind tight display lines would cover the eyebrow above them */
  html .display{line-height:1.1}}
.cursor.bone .ring{width:64px;height:64px;margin:-32px 0 0 -32px;background:rgba(237,230,214,.05)}
.cursor.link .ring{width:46px;height:46px;margin:-23px 0 0 -23px;background:rgba(208,128,63,.18);box-shadow:inset 0 0 0 1px var(--copper)}
.cursor .name{position:absolute;left:42px;top:-9px;white-space:nowrap;font-size:11.5px;letter-spacing:.15em;text-transform:uppercase;opacity:0;transform:translateX(-6px);transition:opacity .3s var(--ease),transform .45s var(--ease)}
.cursor .name b{display:block;font-family:var(--display);font-weight:400;font-size:28px;letter-spacing:0;line-height:.9;text-transform:uppercase;margin-bottom:3px}
.cursor.bone .name{opacity:1;transform:none}

/* ---- the chapters ---- */
main{position:relative;z-index:4;isolation:isolate}
/* Safari paints background-clipped (hatched) headings in their own compositing layer, which can land above a fixed
   bar; giving the bar its own layer keeps it on top */
.topbar{transform:translateZ(0)}
.chapter{min-height:100vh;display:flex;align-items:center}
.chapter .inner{max-width:min(720px,44vw)}
.chapter{padding-left:calc(clamp(16px,2.6vw,44px) + 84px);padding-block:120px}
.bar-right{justify-self:end;display:flex;gap:12px;align-items:center}
.menu-btn{min-height:40px!important;padding:0 16px!important;font-size:14px!important}
.topbar .btn{min-height:40px;padding:0 18px;font-size:14px;--cut:9px;white-space:nowrap}
@media (max-width:1100px){.navlinks{display:none}}
.req{letter-spacing:.08em;text-transform:none;opacity:.8}
.skip{position:fixed!important;left:16px;top:-80px;z-index:60;background:var(--plate)}
.skip:focus{top:12px}
.chapter.right{justify-content:flex-end;padding-right:calc(clamp(16px,2.6vw,44px) + 96px)}
.chapter .label{display:flex;gap:14px;align-items:center;margin-bottom:22px}
.chapter .label .key{font-family:var(--display);font-size:22px;letter-spacing:0;color:var(--ivory);line-height:.8}
.nowrap{white-space:nowrap}
.display{font-family:var(--display);text-transform:uppercase;font-weight:400;letter-spacing:-.02em;line-height:.88;text-wrap:balance;overflow-wrap:anywhere}
/* small text keeps a dark halo, so it stays readable while a chapter slides off over the bright spine */
@media (min-width:901px){.chapter .inner :is(p,li,dt,dd,.label){text-shadow:0 0 12px rgba(15,24,20,.85),0 0 3px rgba(15,24,20,.9)}}
/* headings arrive as engraved line work, then ink fills them as you scroll */
.ink{position:relative;color:transparent;background:var(--hatch);-webkit-background-clip:text;background-clip:text;--ink:0;padding-bottom:.16em;margin-bottom:-.16em}
.ink::after{content:attr(data-text) / "";position:absolute;inset:0;color:var(--ivory);clip-path:inset(0 calc(100% - var(--ink) * 100%) 0 0)}
.ink.hot::after{color:var(--copper)}
h1.ink{font-size:clamp(84px,9.6vw,160px)}
h2.ink{font-size:clamp(64px,7vw,118px)}
.chapter .inner>p{margin-top:26px;font-size:1.18rem;max-width:480px;text-wrap:pretty}
.chapter .actions{margin-top:38px;display:flex;flex-wrap:wrap;gap:18px 30px;align-items:center}
/* care path, drawn as one line that heals from copper to verdigris */
.path{position:relative;list-style:none;margin-top:34px;max-width:500px;padding-left:44px}
.path-wrap>svg{position:absolute;left:8px;top:40px;width:20px;height:calc(100% - 12px);overflow:visible}
.path svg line{stroke-width:2} #pathline{stroke-dasharray:1}
.path li{position:relative;padding:12px 0 18px}
.path li::before{content:"";position:absolute;left:-41px;top:20px;width:13px;height:13px;border-radius:50%;box-shadow:inset 0 0 0 1px var(--ivory-2);background:var(--plate);transition:background-color .5s var(--ease),box-shadow .5s var(--ease)}
.path li.on::before{background:var(--verdigris);box-shadow:inset 0 0 0 1px var(--verdigris)}
.path b{display:block;font-family:var(--display);font-weight:400;text-transform:uppercase;font-size:34px;line-height:.95}
.path span{color:var(--ivory-2);text-wrap:pretty}
.path-wrap{position:relative}
/* prices as an atlas index with dotted leaders */
.index{list-style:none;margin-top:30px;max-width:520px}
.index li{display:flex;align-items:baseline;gap:12px;padding:10px 0}
.index li::after{content:"";order:2;flex:1;height:2px;align-self:center;background:radial-gradient(circle,var(--ivory-2) .7px,transparent 1px) 0 0/7px 2px repeat-x;opacity:.6}
.index span{order:1} .index b{order:3;font-family:var(--display);font-weight:400;font-size:34px;font-variant-numeric:tabular-nums}
.legend{display:flex;flex-direction:column;gap:4px;margin-top:22px!important;font-size:14px!important;color:var(--ivory-2);text-wrap:pretty}
.legend i{font-family:var(--display);font-style:normal;font-size:19px;color:var(--ivory);margin-right:6px}
.legend.hot i{color:var(--copper)}

:focus-visible{outline:2px solid var(--copper);outline-offset:4px}
@media (max-width:1100px){.numeral{display:none}}
.inner.wide{max-width:min(1240px,calc(100vw - 280px))}
/* second half, option b: cards in the left two thirds, the specimen in the right third */
@media (min-width:1101px){.half-b :is(#visit,#clinicians,#fees,#guides) .inner{max-width:min(1000px,62vw)!important}
.half-b #clinicians .people{grid-template-columns:1fr}
.scrim.side{background:linear-gradient(90deg,rgba(12,19,16,.92),rgba(12,19,16,.88) 58%,rgba(12,19,16,0) 74%)}}
.actions .btn-text{white-space:nowrap}
cite{font-style:normal;color:var(--ivory)}
.no-gl .pause,.no-gl .tag,.no-gl .ruler,.no-gl .leaders{display:none}
/* without the 3D (no WebGL, model failed, or no JavaScript) headings are printed solid, not left as bare hatching */
.no-gl .ink,html:not(.js) .ink{color:var(--ivory);background:none}
.no-gl .ink::after,html:not(.js) .ink::after{display:none}
.no-gl .scrollcue,html:not(.js) .scrollcue{display:none}
.site-foot{position:relative;z-index:4;padding-top:60px;padding-bottom:120px;background:linear-gradient(180deg,rgba(15,24,20,0),var(--plate) 60px)}
.credits{max-width:62ch;font-size:13px;text-wrap:pretty;line-height:1.6;color:var(--ivory-2)}
.credits a{color:var(--ivory);text-decoration:underline;text-underline-offset:2px}
@media (max-width:900px){
  .topbar{grid-template-columns:1fr auto} .navlinks,.folio,.bar-right .btn{display:none}
  .chapter,.chapter.right{padding-left:clamp(16px,2.6vw,44px)}
  .chapter .inner{max-width:none!important;width:calc(100% + 2 * clamp(16px,2.6vw,44px));box-sizing:border-box}
  .chapter,.chapter.right{align-items:flex-end;justify-content:flex-start;padding-bottom:14vh;padding-right:clamp(16px,2.6vw,44px)}
  /* text sits on a solid ground over the 3D on narrow screens (contrast measured 4.5:1+) */
  /* the text ground runs edge to edge and fades at both ends, so it reads as a wash, not a box */
  .chapter .inner{max-width:none;background:linear-gradient(0deg,rgba(15,24,20,0),rgba(15,24,20,.96) 32px,rgba(15,24,20,.96) 86%,rgba(15,24,20,0));padding-top:88px;padding-bottom:32px;margin-inline:calc(-1 * clamp(16px,2.6vw,44px));padding-inline:clamp(16px,2.6vw,44px)}
  h1.ink{font-size:66px} h2.ink{font-size:54px}
  .ruler,.leaders,.tag,.scrollcue{display:none}
  .numeral{display:none}
  /* phones: the 3D lives in a band at the top, under the bar; every chapter opens on it before its text arrives */
  #gl{-webkit-mask-image:linear-gradient(180deg,transparent 56px,#000 110px);mask-image:linear-gradient(180deg,transparent 56px,#000 110px)}
  .chapter,.chapter.right{padding-top:44vh;min-height:0;padding-bottom:10vh}
  .fin-b .vesal{-webkit-mask-image:linear-gradient(180deg,transparent 56px,#000 110px),linear-gradient(90deg,transparent,#000 7%,#000 94%,transparent);-webkit-mask-composite:source-in;mask-image:linear-gradient(180deg,transparent 56px,#000 110px),linear-gradient(90deg,transparent,#000 7%,#000 94%,transparent);mask-composite:intersect}
  .numeral{font-size:46vh;right:-4vw}
}
@media (prefers-reduced-motion:reduce){.btn,.ruler i,.ruler .now,.cursor *{transition:none}.scrollcue::after{animation:none}}
