/* A continuous porcelain landscape. The anatomical object remains the focus. */
.bio-header-links { display: flex; align-items: center; gap: clamp(12px, 2vw, 30px); }
.bio-header-links .contact { gap: 8px; white-space: nowrap; }
.bio-header-links .bio-profile { border-bottom-color: #b9b9b1; }
.visit-inline { text-decoration: underline; text-underline-offset: .22em; }
.visit-inline:hover { color: var(--signal); }
.start-copy > .visit-inline { font-size: 13px; line-height: 1.55; width: fit-content; }
.spatial-field, .study-launch { display: none; }
.enhanced .spatial-field { display: block; position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: radial-gradient(ellipse at 60% 45%, #fdfdfc, #fff 70%); }
.orbital-disc { position: absolute; width: 76vmin; height: 76vmin; border-radius: 50%; background: linear-gradient(135deg, #fff 5%, #f6f6f3 35%, #e5e5e1 70%, #f9f9f7); box-shadow: 24px 35px 75px #25251f0f, -20px -20px 60px #fff, inset 2px 2px 3px #fff, inset -1px -2px 2px #b6b6ae40; will-change: transform; }
.disc-well { position: absolute; inset: 12%; border-radius: 50%; background: linear-gradient(135deg, #e5e5e1, #f5f5f2 50%, #fff); box-shadow: inset 8px 10px 20px #37372b0b, inset -5px -5px 12px #fff; }
.disc-well::after { content: ''; position: absolute; inset: 10%; border: 1px solid #bfbfb730; border-radius: 50%; }
.disc-trace { position: absolute; inset: -8%; border: 1px solid #a5a59d35; border-radius: 50%; }
.disc-trace::before, .disc-trace::after { content: ''; position: absolute; width: 5px; height: 5px; top: 50%; left: -3px; border-radius: 50%; background: #ca361e; box-shadow: 0 0 0 6px #ca361e09; }
.disc-trace::after { left: auto; right: -3px; background: #a0a09a; box-shadow: none; }
.orbital-echo { position: absolute; width: 46vmin; height: 46vmin; border-radius: 50%; border: 1px solid #b5b5ad30; box-shadow: inset 3px 3px 10px #fff, 8px 15px 35px #5c5c5007; background: linear-gradient(140deg, #ffffff80, #deded638, #fff0); }
.field-grid { position: absolute; inset: 0; background-image: radial-gradient(#77776b32 .65px, transparent .75px); background-size: 28px 28px; opacity: .23; mask-image: radial-gradient(ellipse at 50% 50%, #000, transparent 70%); }
.orbit-measure { position: absolute; width: 88vmin; height: 88vmin; border-radius: 50%; border: 1px dashed #96968c24; font-size: 8px; letter-spacing: .12em; color: #8a8a82; }
.orbit-measure span { position: absolute; }
.orbit-measure span:nth-child(1) { top: -17px; left: 49%; }
.orbit-measure span:nth-child(2) { top: 49%; right: -25px; }
.orbit-measure span:nth-child(3) { bottom: -18px; left: 48%; }
.orbit-measure span:nth-child(4) { top: 49%; left: -30px; }
.field-coordinate { position: absolute; left: 18px; top: 49%; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 8px; color: #8a8a82; letter-spacing: .2em; }
.scroll-line { position: absolute; right: 18px; top: 30%; width: 1px; height: 40%; background: #dadad5; }
.scroll-line i { display: block; width: 1px; height: 14.28%; background: var(--signal); transform: translateY(var(--scroll-y, 0%)); }
.enhanced .study-launch { display: flex; position: fixed; z-index: 6; left: 50%; bottom: 12%; transform: translateX(-50%); align-items: center; gap: 13px; padding: 11px 16px 11px 10px; border: 1px solid #c9c9bf80; border-radius: 50px; background: #ffffffb8; backdrop-filter: blur(12px); font-size: 10px; text-align: left; box-shadow: 0 6px 20px #29291b06; transition: background .25s, box-shadow .25s, opacity .3s; }
.study-launch small { display: block; margin-top: 3px; font-size: 8px; color: #72726b; }
.study-icon { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #d0d0c8; border-radius: 50%; font-size: 22px; font-weight: 300; transition: transform .3s; }
.study-launch:hover { background: #fff; box-shadow: 0 8px 28px #29291b14; }
.study-launch:hover .study-icon { transform: rotate(90deg); }
.enhanced[data-chapter="1"] .study-launch, .enhanced[data-chapter="3"] .study-launch, .enhanced[data-chapter="4"] .study-launch { visibility: hidden; pointer-events: none; }
.enhanced[data-chapter="6"] .study-launch { left: 26%; bottom: 13%; }
.enhanced[data-chapter="5"] .study-launch { bottom: 13%; left: 53%; }
.enhanced[data-chapter="2"] .study-launch { bottom: 13%; }
.specimen-link { display: none; }
.enhanced .specimen-link { display: flex; align-items: center; text-align: left; gap: 15px; top: 34%; left: var(--margin); border: 1px solid #c7c7bd; border-radius: 60px; padding: 8px 17px 8px 8px; background: #ffffff90; backdrop-filter: blur(8px); font-size: 12px; transition: border-color .2s, background .2s; }
.specimen-link > span:first-child { border-radius: 50%; width: 48px; height: 48px; display: grid; place-items: center; font-size: 15px; background: linear-gradient(135deg, #fff, #e7e7e1); box-shadow: inset 1px 1px 2px #fff, 2px 3px 8px #24241a0b; }
.specimen-link small { display: block; font-size: 8px; color: #666; margin-top: 5px; }
.specimen-link:hover { border-color: var(--signal); background: #fff; }
.enhanced .body-chapter .specimen-link { top: 46%; }
.enhanced .method-chapter .specimen-link { top: 46%; }
.system-orbit { display: none; }
.enhanced .system-orbit { display: block; left: 50%; top: 50%; width: min(35vw, 57vh); aspect-ratio: 1; transform: translate(-50%, -50%); border: 1px solid #89897b55; border-radius: 50%; pointer-events: none; }
.system-orbit::before { content: ''; position: absolute; inset: -11%; border: 1px solid #a9a99b30; border-radius: 50%; }
.system-orbit button { position: absolute; padding: 12px; transform: translate(-50%, -50%); pointer-events: auto; display: grid; justify-items: center; gap: 8px; font-size: 8px; letter-spacing: .1em; min-width: 65px; }
.system-orbit button:nth-child(1) { left: 67.1%; top: 3%; }
.system-orbit button:nth-child(2) { left: 99.96%; top: 51.75%; }
.system-orbit button:nth-child(3) { left: 63.78%; top: 98.06%; }
.system-orbit button:nth-child(4) { left: 8.55%; top: 77.95%; }
.system-orbit button:nth-child(5) { left: 10.6%; top: 19.2%; }
.system-orbit button span { background: #ffffffc9; padding: 2px 5px; border-radius: 10px; }
.system-orbit i { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 1px solid #8b8b80; box-shadow: 0 0 0 5px #ffffff90; transition: background .3s, box-shadow .3s; }
.system-orbit button[aria-pressed="true"] { color: var(--signal); }
.system-orbit button[aria-pressed="true"] i { background: var(--signal); border-color: var(--signal); box-shadow: 0 0 0 7px #d92f1510, 0 0 0 12px #d92f1505; }
.enhanced > .giant-number { font-size: 25vw; left: 28%; top: 26%; color: #d8d8d144; }
.system-index button { transition: padding .25s, color .25s; }
.system-index button[aria-pressed="true"] { padding-left: 10px; }
.enhanced .programs { bottom: 21%; gap: 22px; }
.programs button { padding: 24px 22px; border: 1px solid #d0d0c6; background: linear-gradient(145deg, #ffffffc4, #f5f5f080); border-radius: 3px; backdrop-filter: blur(12px); overflow: hidden; transition: transform .4s, border-color .4s, box-shadow .4s; }
.programs button::before { content: ''; position: absolute; width: 160px; height: 160px; border-radius: 50%; top: -95px; right: -25px; border: 1px solid #b5b5a83b; box-shadow: 0 0 0 18px #c2c2b611, 0 0 0 36px #c2c2b608; transition: transform .7s; pointer-events: none; }
.programs button:hover::before, .programs button[aria-pressed="true"]::before { transform: scale(1.35) translate(-5px, 10px); }
.programs button[aria-pressed="true"] { border-color: #bb4a3580; box-shadow: 0 15px 35px #3e3a2910; transform: translateY(-10px); }
.programs button i { right: 20px; top: 20px; }
.months { font-size: clamp(64px, 7vw, 118px); }
.process { border-color: #c0c0b4; }
.process li { position: relative; transition: color .3s; }
.process li::before { content: ''; position: absolute; top: -3px; width: 5px; height: 5px; border-radius: 50%; background: #b7b7ad; }
.process li.is-current::before { background: var(--signal); box-shadow: 0 0 0 5px #d92f1510; }
.process li.is-current { color: var(--signal); }
.checkpoints > span { position: relative; }
.checkpoints > span::before { content: ''; position: absolute; width: 105px; height: 105px; top: -24px; left: -13px; border: 1px solid #bebeb240; border-radius: 50%; z-index: -1; }
.checkpoints > span:nth-child(2)::before { box-shadow: 0 0 0 8px #bdbdb30b; }
.checkpoints > span:nth-child(3)::before { box-shadow: 0 0 0 8px #bdbdb30b, 0 0 0 16px #bdbdb307; }
.cta { position: relative; overflow: hidden; transition: background .3s; }
.cta::after { content: ''; position: absolute; width: 140px; height: 140px; right: 20px; border: 1px solid #ffffff24; border-radius: 50%; transition: transform .6s; }
.cta:hover::after { transform: scale(2.5); }
.enhanced .start-chapter .chapter-content { background: linear-gradient(90deg, transparent 48%, #fff 52%); }
/* The atlas is a real, keyboard-accessible close-up, not a decorative popup. */
#study { max-width: none; width: 100%; height: 100%; max-height: none; margin: 0; padding: 0; overflow: hidden; background: #f9f9f6; }
#study::backdrop { background: #ffffffef; }
.study-surface { position: relative; width: 100%; height: 100%; overflow: hidden; }
.study-disc { position: absolute; width: 82vmin; height: 82vmin; left: 45%; top: 48%; transform: translate(-50%,-50%); border-radius: 50%; background: linear-gradient(145deg,#fff,#e4e4dd); box-shadow: 30px 40px 80px #2e2e1c12,inset 2px 3px 3px #fff; }
.study-disc::after { content: ''; position: absolute; inset: 10%; border-radius: 50%; border: 1px solid #9e9e912c; box-shadow: 0 0 0 30px #ffffff28; }
.study-watermark { position: absolute; left: 5%; top: 25%; font-size: 38vw; line-height: 1; font-weight: 500; letter-spacing: -.09em; color: #c4c4b733; pointer-events: none; }
.study-heading { position: absolute; left: var(--margin); top: 8%; z-index: 2; pointer-events: none; }
.study-heading h2 { font-size: clamp(35px,5vw,76px); margin: 0 !important; }
.study-heading p { margin: 0 0 20px !important; }
.study-close { position: absolute; right: var(--margin); top: 7%; z-index: 3; display: flex; align-items: center; gap: 30px; font-size: 11px; padding: 12px 0; }
.study-close span { font-size: 28px; }
#study-canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
#study-canvas:active { cursor: grabbing; }
.study-description { position: absolute; right: var(--margin); top: 40%; width: 23%; z-index: 2; pointer-events: none; }
.study-code { font-size: 9px; letter-spacing: .15em; color: var(--signal); }
.study-description h3 { font-size: clamp(28px,3.2vw,50px); margin: 18px 0 20px; font-weight: 500; letter-spacing: -.05em; }
.study-description p { font-size: 13px; margin: 0 !important; line-height: 1.7; }
.study-description .study-source { font-size: 9px; color: #66665e; margin-top: 28px !important; }
.study-bottom { position: absolute; bottom: 7%; left: var(--margin); right: var(--margin); z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.study-hint { font-size: 10px; color: #606056; margin: 0 !important; }
.study-hint > span { margin-right: 10px; font-size: 24px; vertical-align: middle; }
.study-selection { display: flex; border: 1px solid #bebeb3; border-radius: 50px; padding: 5px; background: #ffffffc9; backdrop-filter: blur(12px); gap: 3px; }
.study-selection button { border-radius: 30px; padding: 13px 20px; font-size: 17px; }
.study-selection button span { display: block; font-size: 8px; margin-top: 4px; }
.study-selection button[aria-pressed="true"] { color: #fff; background: #171715; }
#study-reset { font-size: 10px; padding: 15px 0; }
body.study-is-open { overflow: hidden; }
@media (max-width: 1000px) and (min-width: 761px) {
  .enhanced .study-launch { bottom: 10%; }
  .enhanced .system-orbit { top: 54%; }
  .enhanced .body-chapter .specimen-link { top: 44%; }
  .enhanced .method-chapter .specimen-link { top: 47%; }
  .programs button { padding: 20px 14px; }
  .months { font-size: 65px; }
}
@media (max-width: 760px) {
  .field-coordinate, .orbit-measure, .orbital-echo { display: none; }
  .scroll-line { right: 7px; top: 35%; height: 25%; }
  .orbital-disc { width: 105vw; height: 105vw; }
  .enhanced .study-launch { bottom: auto; top: 55%; left: 50%; padding: 7px 12px 7px 7px; gap: 8px; font-size: 9px; }
  .study-launch small { display: none; }
  .study-icon { width: 23px; height: 23px; font-size: 17px; }
  .enhanced[data-chapter="2"] .study-launch { top: 56.5%; bottom: auto; }
  .enhanced[data-chapter="5"] .study-launch { top: 49%; left: 50%; bottom: auto; }
  .enhanced[data-chapter="6"] .study-launch { top: 31%; left: 50%; bottom: auto; z-index: 4; }
  .enhanced .specimen-link { padding: 4px 10px 4px 4px; gap: 7px; font-size: 10px; }
  .specimen-link > span:first-child { width: 31px; height: 31px; font-size: 10px; }
  .specimen-link small { font-size: 7px; margin-top: 2px; }
  .enhanced .body-chapter .specimen-link { top: 45%; left: 6%; }
  .enhanced .method-chapter .specimen-link { top: 46%; left: 6%; }
  .enhanced .system-foot { top: calc(13% + 138px); }
  .enhanced .system-orbit { display: none; }
  .enhanced > .giant-number { top: 31%; left: 14%; font-size: 54vw; }
  .enhanced .programs { gap: 8px; bottom: 23%; }
  .programs button { padding: 14px 9px; border-radius: 2px; gap: 15px; }
  .programs button[aria-pressed="true"] { transform: translateY(-7px); }
  .programs button::before { width: 100px; height: 100px; top: -75px; }
  .months { font-size: clamp(34px,11vw,53px); }
  .months small { font-size: 8px; }
  .programs button > span:last-of-type { font-size: 8px; }
  .checkpoints > span::before { width: 66px; height: 66px; top: -10px; left: -10px; }
  .enhanced .start-chapter .chapter-content { background: linear-gradient(transparent 40svh, #fff 40svh); background-attachment: local; }
  .study-disc { width: 96vw; height: 96vw; top: 43%; left: 50%; }
  .study-heading { top: 5%; }
  .study-heading h2 { font-size: 35px; }
  .study-heading p { font-size: 7px; margin-bottom: 12px !important; }
  .study-close { top: 4%; font-size: 9px; gap: 15px; }
  .study-watermark { font-size: 65vw; top: 29%; }
  .study-description { top: auto; bottom: 21%; left: var(--margin); width: 88%; }
  .study-description h3 { font-size: 26px; margin: 8px 0; }
  .study-description p { font-size: 11px; max-width: 330px; }
  .study-description .study-source { display: none; }
  .study-code { font-size: 8px; }
  .study-bottom { bottom: 4%; flex-wrap: wrap; gap: 6px; }
  .study-selection { order: -1; width: 100%; justify-content: space-between; }
  .study-selection button { flex: 1; padding: 9px 10px; font-size: 15px; }
  .study-hint, #study-reset { font-size: 8px; }
  .study-hint > span { font-size: 19px; }
}
@media (max-height: 650px) {
  .enhanced .study-launch, .enhanced .specimen-link, .enhanced .system-orbit { display: none; }
  .spatial-field { opacity: .45; }
  .study-heading h2 { font-size: 32px; }
  .study-description { top: 30%; bottom: auto; }
  .study-description .study-source { display: none; }
  .study-bottom { bottom: 4%; }
}
@media (max-height: 650px) and (max-width: 760px) {
  .study-heading h2 { font-size: 25px; }
  .study-description { top: auto; bottom: 24%; }
  .study-description h3 { font-size: 22px; margin: 4px 0; }
  .study-description p { font-size: 10px; }
}
.reduced *, .reduced *::before, .reduced *::after { transition: none !important; animation: none !important; }
.system-chapter .section-top .system-foot { display: inline-flex; align-items: center; margin-top: 6px; padding-block: 5px; }
@media (min-height: 651px) {
  .enhanced .duration-copy { top: calc(79% + 12px); bottom: auto; right: var(--margin); max-width: 900px; }
}
@media (max-width: 760px) and (min-height: 651px) {
  .enhanced .hero .chapter-content {
    display: grid;
    align-content: end;
    gap: 12px;
    padding: 0 var(--margin) max(72px, 9.5svh);
    background: linear-gradient(transparent calc(var(--hero-copy-top, 55%) - 64px), #fffffff2 var(--hero-copy-top, 55%), #fff calc(var(--hero-copy-top, 55%) + 62px));
  }
  .enhanced .hero .hero-copy, .enhanced .hero .hero-summary { position: static; width: 100%; }
  .enhanced .body-chapter .specimen-link { top: min(45%, calc(var(--body-copy-top, 55%) - 54px)); }
  .hero-audience { max-width: none; margin-top: 6px; }
  .enhanced .hero .hero-summary { display: block; }
  .hero-summary .text-link { display: inline-flex; padding: 3px 0; min-width: 0; margin-top: 4px; }
  .enhanced[data-chapter="0"] .study-launch { top: min(55%, calc(var(--hero-copy-top, 55%) - 52px)); }
  .enhanced .duration-copy { top: calc(77% + 10px); }
  .enhanced .system-chapter .chapter-content { overflow-y: hidden; }
  .enhanced .dimension-description { top: calc(56.5% + 44px); bottom: auto; padding-bottom: 68px; }
}
@media (max-width: 350px) and (min-height: 651px) {
  .enhanced .hero .chapter-content { padding-bottom: max(86px, 9.5svh); }
}
@media (max-width: 760px) and (max-height: 650px) {
  .enhanced .hero .hero-copy { max-width: 92%; }
  .enhanced .hero .hero-summary { max-width: 72%; }
}

/* Keep longer program copy readable within the existing animated panels. */
.enhanced .program-reading {max-height:42svh; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; pointer-events:auto}
.enhanced .dimension-description.program-reading {max-height:32svh}
.enhanced .duration-copy.program-reading {max-height:9svh}
.booking-channels {display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.program-reading p + p {margin-top:.65em}
.section-top .program-reading {max-width:33ch;font-size:14px}
.enhanced .system-chapter .section-top .program-reading,.enhanced .programs-chapter .section-top .program-reading {max-height:21svh}
dialog table {width:100%;font-size:clamp(10px,1.4vw,16px);border-spacing:4px 10px;text-align:left}
@media(max-width:760px){.enhanced .program-reading {max-height:31svh}.enhanced .hero .program-reading {max-height:23svh}.enhanced .section-top .program-reading {max-width:100%;font-size:12px}.enhanced .system-chapter .section-top .program-reading {max-height:15svh}.navigator nav{gap:4px}}

/* Named sections stay on one swipeable row on narrow displays. */
.navigator { gap: clamp(10px, 2vw, 32px); }
.navigator nav {
  min-width: 0;
  gap: clamp(12px, 1.4vw, 24px);
  overflow-x: auto;
  scrollbar-width: thin;
}
.navigator nav a { flex: none; white-space: nowrap; font-size: clamp(10px, .86vw, 14px); }
.navigator .footer-tools { flex: none; }
.enhanced .hero-copy { max-width: 43%; }
.enhanced #chapter-1 .section-top { max-width: 48%; }
.enhanced #chapter-1 h2 { font-size: clamp(38px, 4.1vw, 70px); }
.enhanced .system-intro {
  right: var(--margin);
  top: 14%;
  width: 31%;
  max-height: 34%;
  font-size: 14px;
}
.system-intro .lead { margin-bottom: 10px; }
@media (max-width: 760px) {
  .enhanced .hero .hero-copy, .enhanced #chapter-1 .section-top { max-width: none; }
  .enhanced #chapter-1 h2 { font-size: clamp(28px, 7.5vw, 40px); }
  .enhanced .system-chapter .chapter-content {
    display: grid;
    grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr);
    gap: 20px 12px;
    align-content: start;
    align-items: start;
    padding: max(84px,12svh) var(--margin) 90px;
    overflow-y: hidden;
  }
  .enhanced .system-chapter .chapter-content > :is(.section-top,.system-intro,.system-index,.dimension-description) {
    position: static !important; width: auto !important; max-width: none;
    margin: 0 !important; padding: 0;
  }
  .enhanced .system-chapter .section-top h2 { font-size: clamp(18px, 5.4vw, 36px); overflow-wrap: anywhere; }
  .enhanced #chapter-5 h2 { font-size: clamp(28px, 7.4vw, 40px); }
  .enhanced .system-chapter .system-intro { max-height: 34svh; font-size: 12px; }
  .enhanced .system-chapter .system-intro .lead { font-size: 15px; margin-top: 0; }
  .enhanced .system-chapter .dimension-description { background: #ffffffeb; }
}
