/* Larger translucent World records; photography is held back until a record opens. */
@media(min-width:861px){
  .ledger-floor--world{grid-template-columns:minmax(270px,360px) minmax(760px,1fr);gap:clamp(44px,5vw,100px)}
  .ledger-floor--world .world-atlas{width:min(1120px,100%);height:560px;align-self:center;gap:0;background:transparent;border:1px solid rgba(235,214,170,.36);backdrop-filter:none}
  .ledger-floor--world .world-atlas__tile{flex:.62 1 0;padding:32px 20px 28px;border-right:1px solid rgba(235,214,170,.28);background:rgba(216,229,235,.1);backdrop-filter:blur(18px) saturate(118%);filter:none}
  .ledger-floor--world .world-atlas__tile:nth-child(n){background-position:center;background-image:none}
  .ledger-floor--world .world-atlas__tile::before{content:"";position:absolute;inset:0;z-index:-2;background:linear-gradient(180deg,rgba(225,238,242,.12),rgba(3,12,20,.36));opacity:1;transition:opacity .58s ease}
  .ledger-floor--world .world-atlas__tile.is-default,.ledger-floor--world .world-atlas:hover .world-atlas__tile:hover,.ledger-floor--world .world-atlas:has(.world-atlas__tile:focus-within) .world-atlas__tile:focus-within{flex:3.3 1 0;background-image:linear-gradient(0deg,rgba(2,10,17,.92),rgba(2,12,19,.12) 70%),url("assets/home-ocean.png");background-size:cover;background-position:50% 52%;backdrop-filter:none}
  .ledger-floor--world .world-atlas__tile.is-default::before,.ledger-floor--world .world-atlas:hover .world-atlas__tile:hover::before,.ledger-floor--world .world-atlas:has(.world-atlas__tile:focus-within) .world-atlas__tile:focus-within::before{opacity:0}
  .ledger-floor--world .world-atlas:hover .world-atlas__tile.is-default:not(:hover),.ledger-floor--world .world-atlas:has(.world-atlas__tile:focus-within) .world-atlas__tile.is-default:not(:focus-within){flex:.62 1 0;background-image:none;backdrop-filter:blur(18px) saturate(118%)}
  .ledger-floor--world .world-atlas__tile h3{bottom:28px}.ledger-floor--world .world-atlas__tile.is-default h3,.ledger-floor--world .world-atlas:hover .world-atlas__tile:hover h3,.ledger-floor--world .world-atlas:has(.world-atlas__tile:focus-within) .world-atlas__tile:focus-within h3{bottom:175px}
  .ledger-floor--world .world-atlas__tile p{bottom:92px;font-size:19px}.ledger-floor--world .world-atlas__tile small{bottom:34px}
}

/* Dark marble gallery with oval royal portrait windows. */
.ledger-floor--people::before{background:linear-gradient(90deg,rgba(5,8,15,.94),rgba(18,13,30,.58) 62%,rgba(8,6,18,.82))}
.ledger-floor--people .ledger-floor__copy,.ledger-floor--people .ledger-floor__copy .eyebrow{color:#f7efe1}.ledger-floor--people .ledger-floor__copy .eyebrow{color:#d7b775!important}.ledger-floor--people .ledger-button{color:#e7cc91;border-color:#cfaa65}
.people-ledger{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:24px;padding:0;max-width:650px}
.people-ledger article{position:relative;min-height:340px;padding:20px 22px 24px;background:linear-gradient(145deg,rgba(8,14,25,.86),rgba(41,24,49,.7));border:1px solid rgba(224,193,126,.42);box-shadow:10px 12px 0 rgba(2,4,9,.35);color:#f7efe1}
.people-ledger article:nth-of-type(2){margin-top:46px}.people-ledger article>span{display:block;margin-top:13px;color:#d6b36e;font:10px var(--ledger-mono)}.people-ledger h3{margin:8px 0 4px;font-size:34px}.people-ledger p{margin:0;color:#e4d9e8;font:15px/1.35 var(--ledger-display)}
.character-portrait{width:74%;aspect-ratio:.68;margin:0 auto;border:1px solid rgba(234,207,145,.72);border-radius:50% 50% 46% 46% / 57% 57% 41% 41%;display:grid;place-items:center;overflow:hidden;background:radial-gradient(ellipse at 50% 28%,rgba(234,208,173,.55),transparent 35%),linear-gradient(145deg,rgba(123,91,134,.78),rgba(6,14,23,.94)),url("assets/palace-corridor.png") center/cover;box-shadow:inset 0 0 0 10px rgba(15,11,27,.38),0 10px 27px rgba(0,0,0,.32)}
.character-portrait span{color:#fbefd4;font:600 clamp(57px,6vw,85px)/1 var(--ledger-display);text-shadow:0 3px 16px rgba(0,0,0,.62)}

/* The last floor remains a page-level, scrollable vertical chronology — no nested scrollbar. */
.ledger-floor--timeline{min-height:max(1800px,calc(100svh + 900px));align-items:start}
.ledger-floor--timeline .chronicle-ledger{align-self:start;margin-top:clamp(100px,16vh,190px);width:min(820px,100%)}
.chronicle-rail{display:grid;grid-template-columns:130px minmax(0,1fr);gap:28px}
.chronicle-rail__viewport{display:block;overflow:visible;border-top:1px solid rgba(227,202,137,.58);padding:0;cursor:default}
.chronicle-rail__viewport::after{content:"";position:absolute}
.chronicle-rail__viewport article{position:relative;display:grid;grid-template-columns:105px 1fr;gap:18px;min-height:96px;padding:20px 0;border-bottom:1px solid rgba(227,202,137,.36);background:none!important;scroll-snap-align:none!important;transition:transform .3s ease}
.chronicle-rail__viewport article::before{content:"";position:absolute;left:105px;top:0;bottom:-1px;border-left:1px solid rgba(227,202,137,.36)}
.chronicle-rail__viewport article:hover{transform:translateX(10px)}
.chronicle-rail__viewport h3{margin:0!important;font:600 29px/1 var(--ledger-display)!important}.chronicle-rail__viewport span{padding-top:4px}
@media(max-width:860px){.people-ledger{max-width:520px}.ledger-floor--timeline{min-height:1500px}.chronicle-rail{grid-template-columns:1fr}.chronicle-rail>p{padding:0}.chronicle-rail__viewport article{grid-template-columns:80px 1fr}.chronicle-rail__viewport article::before{left:80px}.ledger-floor--world .world-atlas{height:auto}.ledger-floor--world .world-atlas__tile{min-height:220px}}
