.float-anchor {position:absolute;pointer-events:none;z-index:0}
.float-anchor img {display:block;width:100%;height:auto;filter:drop-shadow(0 12px 15px #130b1d70);animation:poetic-drift 9s ease-in-out infinite}
.hero-quill {width:clamp(90px,11vw,156px);left:41%;top:5%;rotate:-12deg;opacity:.88;translate:calc(var(--hero-x,0) * 24px) calc(var(--hero-y,0) * 16px)}
.room-card {overflow:hidden}
.room-card>img {border-radius:inherit}
.room-card::before,.room-card::after {border-radius:inherit}
.room-ornament {position:absolute;pointer-events:none;z-index:-1;top:4px;left:4%;width:110px;height:75px;background-position:center;background-size:contain;background-repeat:no-repeat;filter:drop-shadow(0 10px 8px #0d081c70);animation:poetic-drift 10s ease-in-out infinite;transform-origin:center;opacity:.93}
.room-card:nth-child(2n) .room-ornament {animation-delay:-3.8s;left:6%;top:3px}
.room-card:nth-child(3n) .room-ornament {animation-delay:-6s;width:96px}
@keyframes poetic-drift {0%,100%{transform:translate3d(0,0,0) rotate(-4deg)}50%{transform:translate3d(6px,-12px,0) rotate(5deg)}}
.lives-section {position:relative;isolation:isolate;padding:45px 0 48px;background:linear-gradient(130deg,#efe7db,#faf4e9);border-top:1px solid #aa81573d;border-bottom:1px solid #aa81573d;overflow:hidden;scroll-margin-top:15px}
.lives-heading {display:flex;align-items:center;justify-content:space-between;gap:25px}
.lives-heading h2 {font:700 clamp(36px,3.8vw,55px)/1.4 Book,serif;margin:2px 0 6px}
.lives-heading p {font:400 20px/1.6 Book,serif;max-width:560px;margin:0;color:var(--muted)}
.lives-heading>a {font-size:12px;text-decoration:underline;text-underline-offset:5px;color:var(--warm);white-space:nowrap}
.lives-layout {display:grid;grid-template-columns:1fr 2.6fr;gap:25px;align-items:center;margin-top:30px}
.atlas-objects {position:relative;min-height:220px;perspective:1100px}
.atlas-paper {position:absolute;inset:28px 9% 12px;background:repeating-linear-gradient(0deg,transparent 0 24px,#a98a5222 25px 26px),#d4bc9133;border:1px solid #d8b57a60;border-radius:10px;rotate:-9deg;box-shadow:10px 12px 0 #af875516,0 18px 40px #1c11272b}
.compass-prop {position:absolute;width:90%;left:-3%;top:-6%;height:auto;filter:drop-shadow(0 16px 18px #1a0d2a50);animation:poetic-drift 13s ease-in-out infinite}
.quill-prop {position:absolute;width:60%;right:-10%;bottom:-9%;filter:drop-shadow(0 12px 12px #190c2855);animation:poetic-drift 10s ease-in-out infinite;animation-delay:-5s}
.poet-gates {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.poet-gate {position:relative;text-align:start;display:flex;align-items:center;justify-content:space-between;isolation:isolate;overflow:hidden;min-height:100px;border:1px solid #9f784858;background:#2b2030;color:#fce6bd;border-radius:13px;padding:15px 20px;box-shadow:0 9px 24px #1d13201c;transition:transform .25s}
.poet-gate::before {content:"";position:absolute;inset:0;z-index:-2;background:var(--poet-picture) center 65%/cover;opacity:.4;transition:transform .7s,opacity .6s}
.poet-gate::after {content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(270deg,#241a2bdc,transparent)}
.poet-gate strong {font:700 30px/1.5 Book,serif;display:block}
.poet-gate small {font-size:10px;color:#e4c49b}
.poet-gate i {font:normal 20px/1 Interface,sans-serif;border:1px solid #e5c38c55;border-radius:50%;width:32px;height:32px;display:grid;place-items:center}
.poet-gate:hover {transform:translateY(-4px)}
.poet-gate:hover::before {transform:scale(1.08);opacity:.6}
.author-row {position:relative;display:flex;min-width:0;border-radius:11px}
.author-row>.author {flex:1;padding-inline-end:65px;width:100%}
.author-life {position:absolute;left:8px;top:50%;transform:translateY(-50%);background:transparent;color:var(--warm);font-size:10px;border:1px solid #a7804a65;border-radius:99px;padding:6px 9px;min-height:34px}
.author-life:hover {background:#b98b4930}
#poet-profile {width:min(1320px,96vw);height:94dvh;max-height:94dvh;max-width:none;margin:auto;padding:0;overflow:auto;overscroll-behavior:contain;background:var(--paper);color:var(--ink);border:1px solid #b48b515c;border-radius:21px;box-shadow:0 35px 100px #0f071da8;scrollbar-width:thin}
#poet-profile::backdrop {background:#130c1dd9;backdrop-filter:blur(12px)}
body:has(#poet-profile[open]) {overflow:hidden}
.profile-bar {position:sticky;top:0;z-index:10;display:flex;justify-content:space-between;align-items:center;gap:15px;padding:12px 22px;min-height:64px;background:#241828ed;color:#edcca0;border-bottom:1px solid #b38b4e42;backdrop-filter:blur(12px)}
.profile-bar>span {font-size:12px}
.profile-back {background:transparent;color:#f6dfbc;min-height:38px;font-size:12px}
.profile-brand {display:block;position:absolute;left:50%;transform:translateX(-50%)}
.profile-brand img {display:block;width:105px;height:auto}
.profile-body {padding:30px 36px 40px}
#profile-loading {min-height:200px;display:grid;place-items:center;font-size:15px}
#profile-loading button {padding:8px 16px;border-radius:99px;background:var(--plum);color:#f6d8a5}
.profile-intro {display:grid;grid-template-columns:minmax(0,1fr) 180px;align-items:center;gap:25px;padding-bottom:25px;border-bottom:1px solid var(--line)}
.profile-intro h2 {font:700 clamp(39px,4.4vw,66px)/1.35 Book,serif;margin:4px 0 3px}
#profile-dates {font-size:12px;color:#82633f;margin:3px 0 13px}
#profile-bio {font:400 22px/1.8 Book,serif;margin:8px 0 18px;max-width:760px}
.profile-actions {display:flex;flex-wrap:wrap;gap:8px}
.profile-actions button,.profile-actions a {font-size:12px;border:1px solid #b18e5b62;background:#f0e4d1;color:#694b29;border-radius:99px;padding:8px 15px;min-height:39px}
.profile-monogram {position:relative;align-self:stretch;min-height:210px;display:grid;place-items:center;background:radial-gradient(ellipse,#c5a36926,transparent 75%);isolation:isolate;color:#b18a4f6b}
.profile-monogram>span {font:700 150px/1.2 Book,serif;rotate:-9deg}
.profile-monogram img {position:absolute;width:150px;height:auto;bottom:-10px;left:5px;filter:drop-shadow(0 13px 12px #180a2655);animation:poetic-drift 12s ease-in-out infinite}
.profile-atlas {padding:26px 0 0}
.map-heading {display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:15px}
.profile-atlas h3,.profile-poetry h3,.profile-sources h3 {font:700 30px/1.4 Book,serif;margin:0}
.map-heading p {font-size:12px;color:var(--muted);margin:4px 0 0}
.map-modes {display:flex;gap:6px;flex:none}
.map-modes button {font-size:12px;padding:7px 13px;min-height:38px;border:1px solid #b38a5366;border-radius:99px;background:#f2e9d9;color:#75522b}
.map-modes button[aria-pressed=true] {background:#3a283e;color:#f7dcab;border-color:#3a283e}
.map-layout {display:grid;grid-template-columns:minmax(0,1.65fr) minmax(250px,.75fr);gap:16px;align-items:stretch}
.map-stage {position:relative;isolation:isolate;background:#f0e7d5;border:1px solid #bb9b6a66;border-radius:15px;overflow:hidden;height:370px}
#life-map {display:block;width:100%;height:100%;cursor:crosshair;touch-action:pan-y}
.map-stage::after {content:"";position:absolute;inset:9px;pointer-events:none;border:1px solid #c29c5f24;border-radius:9px}
#map-label {position:absolute;bottom:13px;right:16px;font-size:10px;color:#9c7a4d;pointer-events:none}
.map-tools {position:absolute;left:12px;bottom:12px;display:flex;gap:6px}
.map-tools button {width:34px;height:34px;display:grid;place-items:center;border-radius:50%;border:1px solid #ac865056;background:#bca06b1c;color:#b68d51;font-size:20px}
.life-stations {display:flex;flex-direction:column;gap:7px;max-height:370px;overflow:auto;padding:2px;scrollbar-width:thin}
.life-station {position:relative;text-align:start;padding:11px 14px;border:1px solid #c1a7776b;border-radius:10px;background:#f7efdf;color:#6c5438;min-height:65px;transition:background .2s,border-color .2s}
.life-station small {font-size:10px;display:block;line-height:1.5}
.life-station strong {font:700 21px/1.4 Book,serif;display:block}
.life-station[aria-current=true] {background:#e7d2ad;border-color:#aa7a39;color:#4e3525}
.station-detail {margin:14px 0 0;border:1px solid #c6ab7b6b;border-radius:12px;background:#f1e7d4;padding:15px 18px;font:400 20px/1.75 Book,serif;min-height:88px}
.station-detail p {margin:0 0 5px}
.station-detail small,.station-detail a {font:11px/1.65 Interface,sans-serif;color:#876237}
.profile-poetry {border-top:1px solid var(--line);margin-top:28px;padding-top:24px}
.profile-section-head {display:flex;justify-content:space-between;align-items:center;gap:12px}
.profile-section-head>span {font-size:12px;color:var(--warm)}
#profile-poems {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:15px}
.poetry-preview {text-align:start;border:1px solid #cbb48688;border-radius:12px;background:#f7eedc;padding:14px 17px;color:#63482e;min-width:0;display:block}
.poetry-preview strong {font:700 23px/1.7 Book,serif;display:block}
.poetry-preview small {display:block;color:var(--warm);font-size:10px}
.poetry-preview p {font:400 20px/1.7 Book,serif;margin:4px 0}
.profile-sources {border-top:1px solid var(--line);padding-top:20px;margin-top:28px}
.profile-sources h3 {font-size:24px}
#profile-sources {display:flex;gap:8px 17px;flex-wrap:wrap;margin:9px 0}
#profile-sources a {font-size:11px;color:#846033;text-decoration:underline;text-underline-offset:4px}
#profile-attribution {font-size:10px;color:var(--muted);margin:8px 0 0}
.motion-calm .float-anchor img,.motion-calm .room-ornament,.motion-calm .compass-prop,.motion-calm .quill-prop,.motion-calm .profile-monogram img {animation-play-state:paused}
@media(max-width:900px){.lives-layout{grid-template-columns:1fr 2fr;gap:15px}.poet-gate{padding:12px 15px}.poet-gate strong{font-size:26px}.profile-body{padding:24px}.map-layout{grid-template-columns:minmax(0,1.4fr) minmax(220px,.8fr)}.profile-intro{grid-template-columns:minmax(0,1fr) 140px}.profile-monogram img{width:130px}}
@media(max-width:650px){.hero-quill{left:45%;top:43%;width:84px;opacity:.7}.room-ornament{width:88px;height:60px;top:-7px}.lives-section{padding:30px 0}.lives-heading h2{font-size:34px}.lives-heading p{font-size:18px}.lives-heading>a{font-size:10px}.lives-layout{grid-template-columns:1fr;margin-top:18px}.atlas-objects{display:none}.poet-gates{gap:9px}.poet-gate{min-height:92px;padding:11px 13px}.poet-gate strong{font-size:27px}.poet-gate small{font-size:9px}.poet-gate i{width:26px;height:26px;font-size:17px}.author-row>.author{padding-inline-end:45px}.author-life{left:5px;font-size:9px;padding:5px 6px}.profile-body{padding:19px 16px 30px}.profile-intro{grid-template-columns:minmax(0,1fr) 85px;gap:8px}.profile-monogram{min-height:150px}.profile-monogram>span{font-size:100px}.profile-monogram img{width:100px;left:-14px;bottom:0}.profile-intro h2{font-size:39px}#profile-bio{font-size:21px}#profile-dates{font-size:10px}.profile-actions button,.profile-actions a{font-size:11px;padding:7px 11px}.map-heading{align-items:flex-start;flex-direction:column;gap:11px}.map-layout{display:flex;flex-direction:column;gap:11px}.map-stage{height:310px}.life-stations{display:flex;flex-direction:row;overflow:auto;max-height:none;padding-bottom:7px}.life-station{flex:0 0 64%;min-height:72px}.map-modes button{font-size:11px;min-height:36px}.profile-atlas h3{font-size:29px}.station-detail{font-size:20px;padding:13px 15px}#profile-poems{grid-template-columns:1fr}.profile-bar{padding:9px 13px}.profile-bar>span{font-size:10px}.profile-brand img{width:85px}#poet-profile{width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0}.profile-bar{min-height:59px}.map-heading p{font-size:11px}}
@media(prefers-reduced-motion:reduce){.float-anchor img,.room-ornament,.compass-prop,.quill-prop,.profile-monogram img{animation:none}.poet-gate{transition:none}}

.poet-gate { flex-wrap: wrap; gap: 6px 12px; }
.poet-gate strong a { color: inherit; }
.poet-gate .poet-gate-bio {
  background: #271c29bd;
  border: 1px solid #e5c38c88;
  border-radius: 20px;
  color: #f5dec0;
  font: 400 14px/1.6 Interface, sans-serif;
  min-height: 40px;
  padding: 4px 10px;
}
.poet-gate :is(a,button):focus-visible { outline: 2px solid white; outline-offset: 2px; }

/* A slow, shallow drift keeps the quill in the open space beside the hero. */
.hero-quill {rotate:-8deg;opacity:.76;translate:calc(var(--hero-x,0) * 9px) calc(var(--hero-y,0) * 5px)}
.hero-quill img {filter:drop-shadow(0 5px 5px #100b1a36);animation:quill-hover 13s ease-in-out infinite}
@keyframes quill-hover {0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-3px) rotate(1.5deg)}}
@media(max-width:650px){.hero-quill{width:58px;top:30%;left:48%;opacity:.5;translate:none}}
@media(prefers-reduced-motion:reduce){.hero-quill,.hero-quill img {animation:none;translate:none}}
.motion-calm .hero-quill,.motion-calm .hero-quill img {animation:none;translate:none}
