
:root{
  --ink:#2b241c; --gold:#b28a45; --gold2:#d8bb77; --paper:#eee4ce; --paper2:#f7f0df;
  --wood:#261b13; --wood2:#4b3020; --line:#bda980; --muted:#6d6356; --shadow:0 12px 34px rgba(34,22,12,.22);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--ink);background:#d7c7a9;font-family:Georgia,'Times New Roman',serif;background-image:linear-gradient(rgba(248,240,219,.7),rgba(232,218,190,.76)),radial-gradient(circle at 20% 0,#fff8e8 0,transparent 35%)}
a{color:inherit}
.site-header{position:sticky;top:0;z-index:50;display:grid;grid-template-columns:minmax(245px,310px) minmax(0,1fr);align-items:center;gap:12px;padding:8px 14px;background:linear-gradient(180deg,var(--wood2),var(--wood));border-bottom:3px solid var(--gold);color:#fff7e6;box-shadow:0 3px 14px rgba(0,0,0,.3)}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;min-width:0}.brand-mark{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;border:2px solid var(--gold2);font-weight:700;color:var(--gold2);flex:0 0 auto}.brand strong{display:block;font-size:18px;letter-spacing:.4px}.brand small{display:block;color:#d9ccb7;font-size:11px;margin-top:2px}
.top-nav{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;align-items:stretch;min-width:0}.top-nav a{display:flex;align-items:center;justify-content:center;text-align:center;min-width:0;padding:10px 5px;text-decoration:none;font-size:clamp(10px,1vw,13px);line-height:1.1;border-bottom:2px solid transparent;border-radius:3px 3px 0 0;overflow-wrap:anywhere}.top-nav a:hover,.top-nav a.active{color:#fff;background:rgba(255,255,255,.10);border-bottom-color:var(--gold2)}
.nav-toggle{display:none;background:none;color:white;border:1px solid #9d8155;border-radius:6px;padding:7px 10px;font-size:20px}.breadcrumb{padding:7px 22px;background:#efe4cc;border-bottom:1px solid #c9b58c;font-size:12px;color:#65594a}
#app{min-height:calc(100vh - 150px)}
.page-shell{display:grid;grid-template-columns:minmax(190px,20%) minmax(0,1fr);max-width:1500px;margin:0 auto;background:rgba(250,245,232,.77);min-height:750px;box-shadow:var(--shadow)}
.side-menu{background:linear-gradient(180deg,#e7d7b8,#d7c29b);border-right:1px solid #b29a70;padding:25px 14px}.side-menu h2{font-size:15px;text-transform:uppercase;letter-spacing:.8px;color:#6b5638;margin:0 0 12px;padding-bottom:8px;border-bottom:1px solid #9f865e}.side-menu a{display:block;padding:9px 10px;margin:3px 0;text-decoration:none;border-radius:4px;font-size:14px}.side-menu a:hover,.side-menu a.active{background:#503421;color:#fff4dc}.side-menu .disabled{opacity:.58;cursor:default}
.content{padding:26px;min-width:0}.content h1{margin-top:0;font-size:32px}.lede{font-size:18px;line-height:1.55;color:#51473b;max-width:900px}.art-frame{background:#20170f;padding:9px;border:1px solid #6f5237;box-shadow:0 8px 24px rgba(0,0,0,.28);max-width:1250px;margin:0 auto}.art-frame img{display:block;width:100%;height:auto;background:#111}.caption{font-size:12px;color:#776a58;text-align:center;margin:8px 0 0}
.hero-home{min-height:calc(100vh - 115px);display:grid;place-items:center;background:#1a1713;position:relative}.hero-home img{max-width:100%;max-height:calc(100vh - 115px);object-fit:contain}.home-actions{position:absolute;right:26px;bottom:24px;z-index:30}.button{display:inline-block;padding:11px 18px;background:#4a2f1f;color:#fff7e7;text-decoration:none;border:1px solid #c7a35c;border-radius:4px;box-shadow:0 3px 10px rgba(0,0,0,.25);font-weight:bold}.button:hover{background:#68442a}.button.secondary{background:#eee3ca;color:#4b3422;border-color:#9e7d4b;margin-left:8px}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px;margin-top:22px}.card{background:var(--paper2);border:1px solid #c7b38a;padding:18px;box-shadow:0 4px 12px rgba(40,30,20,.08);min-height:145px}.card h3{margin:0 0 8px;font-size:18px}.card p{font-size:14px;line-height:1.45;color:#625747}.card a{text-decoration:none;color:#68441f;font-weight:bold}.status{display:inline-block;font-size:10px;letter-spacing:.6px;text-transform:uppercase;padding:3px 6px;border-radius:10px;background:#e1d3b7;color:#66543b;margin-bottom:8px}.status.ready{background:#d7e3cf;color:#385534}.status.progress{background:#eadbb9;color:#665126}
.chapter-grid,.episode-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.chapter-tile,.episode-tile{padding:16px;background:#f7f0df;border:1px solid #c6b18a;text-decoration:none;min-height:105px;position:relative}.chapter-tile:hover,.episode-tile:hover{transform:translateY(-2px);box-shadow:0 5px 12px rgba(0,0,0,.12)}.chapter-tile .num,.episode-tile .num{font-size:11px;color:#846f4d;text-transform:uppercase}.chapter-tile strong,.episode-tile strong{display:block;margin-top:7px}.chapter-tile.future,.episode-tile.future{opacity:.62}
.demo-note{border-left:4px solid var(--gold);background:#f4ead4;padding:13px 16px;margin:0 0 20px;font-size:14px}.under-construction{min-height:420px;display:grid;place-items:center;text-align:center;border:1px dashed #ad9872;background:rgba(248,240,220,.6)}.under-construction h2{font-size:28px;margin-bottom:8px}.under-construction p{max-width:580px;color:#6a5d4d}.page-actions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:18px 0 2px}
.book-stage{max-width:1280px;margin:0 auto;perspective:1800px}.book-wrap{background:radial-gradient(circle at 50% 50%,rgba(255,255,255,.05),transparent 30%),linear-gradient(90deg,#513620 0,#2d1e14 49.2%,#1d130d 50%,#513620 50.8%,#2d1e14 100%);padding:24px;border:1px solid #6a4a2e;box-shadow:0 14px 34px rgba(0,0,0,.28);border-radius:8px;max-width:1250px;margin:0 auto;position:relative}.book-spread{display:grid;grid-template-columns:1fr 1fr;gap:18px;position:relative;transform-style:preserve-3d}.book-spread:after{content:'';position:absolute;top:0;bottom:0;left:50%;width:16px;transform:translateX(-50%);background:linear-gradient(90deg,rgba(80,50,25,.35),rgba(255,255,255,.12),rgba(80,50,25,.40));pointer-events:none;box-shadow:0 0 18px rgba(0,0,0,.15)}.book-spread.turn-next{animation:pageTurnNext .48s ease both}.book-spread.turn-prev{animation:pageTurnPrev .48s ease both}@keyframes pageTurnNext{0%{transform:rotateY(0deg);opacity:1}48%{transform:rotateY(-8deg);opacity:.42}100%{transform:rotateY(0deg);opacity:1}}@keyframes pageTurnPrev{0%{transform:rotateY(0deg);opacity:1}48%{transform:rotateY(8deg);opacity:.42}100%{transform:rotateY(0deg);opacity:1}}
.paper-page{background:radial-gradient(circle at 20% 12%,rgba(150,110,55,.06),transparent 24%),linear-gradient(90deg,#eee1c5,#fbf4e3 16%,#f3e9d0 100%);border:1px solid #c9b58c;box-shadow:inset 0 0 28px rgba(126,92,48,.12),0 4px 12px rgba(0,0,0,.18);padding:34px;min-height:660px;position:relative}.paper-page.right{background:linear-gradient(90deg,#f3e9d0,#fbf4e3 84%,#eee1c5)}.paper-page h1,.paper-page h2{font-weight:normal}.paper-page h1{font-size:27px;text-align:center;margin:0 0 18px}.paper-page h2{font-size:18px;margin:20px 0 8px}.book-text{font-size:15px;line-height:1.58;text-align:justify}.book-text p{margin:0 0 13px}.book-text .meta{text-align:center;font-weight:bold;letter-spacing:.3px;margin-bottom:18px}.book-text ul{padding-left:20px}.book-text li{margin:0 0 7px}
.book-turn{position:absolute;bottom:12px;z-index:8;border:0;background:transparent;color:#68441f;font-family:Georgia,'Times New Roman',serif;font-weight:bold;font-size:13px;cursor:pointer;padding:7px 8px;text-shadow:0 1px #fff}.book-turn:hover{color:#2f1d10;text-decoration:underline}.book-turn.prev{left:18px}.book-turn.next{right:18px}.book-page-number{position:absolute;bottom:13px;left:50%;transform:translateX(-50%);font-size:11px;color:#8b775a}
.footnote-ref{border:0;background:none;color:#70461f;font:inherit;font-weight:bold;padding:0 2px;cursor:help;position:relative}.footnote-ref:focus{outline:1px dotted #6f4d2e}.footnote-ref:hover:after,.footnote-ref:focus:after{content:attr(data-note);position:absolute;z-index:20;left:50%;bottom:1.5em;transform:translateX(-50%);width:300px;max-width:65vw;background:#2b2017;color:#fff8e8;border:1px solid #c7a35c;padding:10px 12px;border-radius:4px;font-size:12px;line-height:1.35;text-align:left;font-weight:normal;box-shadow:0 8px 24px rgba(0,0,0,.3)}
.image-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:18px;height:100%;min-height:585px;padding:6px}.book-image{position:relative;margin:0;padding:10px 10px 30px;background:#efe6d2;border:1px solid #ad946a;box-shadow:0 5px 12px rgba(0,0,0,.20),inset 0 0 0 4px #d7c6a4;overflow:hidden;cursor:zoom-in;transform:rotate(-.35deg)}.book-image:nth-of-type(even){transform:rotate(.35deg)}.book-image::before,.book-image::after{content:'';position:absolute;width:18px;height:18px;border-color:#806544;opacity:.6}.book-image::before{left:5px;top:5px;border-left:2px solid;border-top:2px solid}.book-image::after{right:5px;bottom:5px;border-right:2px solid;border-bottom:2px solid}.book-image img{width:100%;height:100%;max-height:245px;display:block;object-fit:contain;background:#2a2118;border:1px solid #8f7654}.book-image span{position:absolute;left:10px;right:10px;bottom:8px;background:transparent;color:#4d3b28;padding:2px 4px;font-size:10px;text-align:center;font-style:italic}.image-grid.single .book-image{grid-column:1/-1;grid-row:1/-1;transform:none;padding:12px 12px 34px}.image-grid.single .book-image img{object-fit:contain;max-height:540px}.image-grid.single .book-image span{font-size:12px}.image-back{display:none;position:absolute;right:7px;top:7px;background:#4d321f;color:#fff3db;border:1px solid #c7a35c;padding:6px 9px;z-index:4;cursor:pointer}.image-grid.single .image-back{display:block}
footer{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:14px 22px;background:#21180f;color:#cfc0aa;font-size:11px;border-top:2px solid var(--gold)}
@media(max-width:1100px){.site-header{grid-template-columns:minmax(200px,250px) minmax(0,1fr)}.brand small{display:none}.top-nav a{font-size:10px;padding:9px 3px}.page-shell{grid-template-columns:210px 1fr}.paper-page{padding:24px}.book-text{font-size:14px}}
@media(max-width:800px){.site-header{display:flex}.nav-toggle{display:block;margin-left:auto}.top-nav{display:none;position:absolute;left:0;right:0;top:61px;background:#281d14;padding:8px;grid-template-columns:1fr}.top-nav.open{display:grid}.page-shell{display:block}.side-menu{border-right:0;border-bottom:1px solid #b29a70}.side-menu a{display:inline-block}.brand{min-width:0}.content{padding:16px}.book-spread{grid-template-columns:1fr}.book-spread:after{display:none}.paper-page{min-height:auto}.image-grid{min-height:520px}.button.secondary{margin-left:0}}


/* v3.2 refinements: Page 1 viewport fit + Chapter Introduction menu */
.page-one{
  width:min(100%,calc((100vh - 104px) * 1.386));
  aspect-ratio:801/578;
  margin:0 auto;
}
.page-one>img{
  top:-10.94%;
  image-rendering:auto;
}
.side-menu .chapter-sub{
  margin:0 0 0 15px;
  padding:6px 8px 6px 14px;
  font-size:12px;
  line-height:1.2;
  border-left:1px solid #9f865e;
  border-radius:0 4px 4px 0;
}
.side-menu .chapter-sub span{
  display:block;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.35px;
  opacity:.78;
  margin-bottom:1px;
}
@media(max-width:1100px){
  .page-one{width:min(100%,calc((100vh - 88px) * 1.386))}
}
@media(max-width:800px){
  .page-one{width:100%;aspect-ratio:801/578}
}

/* =========================================================
   v5 architecture pass — mockups are blueprints, not embeds
   ========================================================= */
html,body{max-width:100%;overflow-x:hidden}
body{background:#d8c7a7}
footer{display:none}
.breadcrumb.empty{display:none}

/* Canonical coded header: dark, gold outlined, always active */
.site-header{
  position:sticky;top:0;z-index:100;
  grid-template-columns:240px minmax(0,1fr);
  min-height:74px;padding:8px 18px;gap:16px;
  background:linear-gradient(180deg,#171713,#080909);
  border-bottom:2px solid #c89c13;
  box-shadow:0 5px 18px rgba(0,0,0,.45);
}
.brand{
  height:56px;display:flex;flex-direction:column;justify-content:center;align-items:center;
  border:1px solid #41341b;border-radius:8px;
  background:linear-gradient(180deg,#161a18,#090b0a);
  box-shadow:inset 0 0 22px rgba(203,157,23,.08);
  color:#e2b73f;text-decoration:none;text-transform:uppercase;
}
.brand strong{font-size:25px;line-height:1;letter-spacing:.4px;font-weight:normal}
.brand small{font-size:11px;margin-top:5px;color:#d2a936;letter-spacing:.5px}
.top-nav{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;align-items:center}
.top-nav a{
  min-height:52px;padding:7px 8px;border:1.5px solid #b78c0c;border-radius:8px;
  color:#e2b73f;background:#090b0a;text-decoration:none;text-transform:uppercase;
  font-size:clamp(11px,.9vw,16px);line-height:1.08;letter-spacing:.15px;
  box-shadow:inset 0 0 14px rgba(203,157,23,.035);
}
.top-nav a:hover,.top-nav a.active{
  color:#ffd84d;border-color:#f0bf17;background:#10120f;
  box-shadow:0 0 13px rgba(255,201,25,.32),inset 0 0 14px rgba(255,201,25,.05);
}
.breadcrumb{padding:8px 24px;background:#eee1c4;border-bottom:1px solid #b79b68;color:#5c4a31}
#app{min-height:calc(100vh - 110px)}

/* Page 1: hero art fits inside the browser; one live hotspot only. */
.hero-home{
  height:calc(100vh - 74px);min-height:0;background:#050606;
  display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;
}
.hero-home img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.hero-hotspot{
  position:absolute;right:max(4.6vw,34px);bottom:max(5.7vh,34px);
  display:inline-flex;align-items:center;justify-content:center;
  min-width:165px;padding:10px 18px;border:1px solid #c59a35;border-radius:4px;
  background:rgba(70,43,20,.72);color:#f5d77b;text-decoration:none;font-weight:bold;
  box-shadow:0 3px 12px rgba(0,0,0,.35);text-shadow:0 1px 1px #000;
}
.hero-hotspot:hover{background:rgba(104,68,33,.86);color:#ffe69d}

/* Welcome image remains a full-screen approved visual; navigation is live HTML. */
.welcome-stage{min-height:calc(100vh - 74px);display:flex;align-items:center;justify-content:center;background:#e8dcc3;position:relative;overflow:hidden;padding:12px}
.welcome-stage>img{display:block;max-width:100%;max-height:calc(100vh - 98px);width:auto;height:auto;object-fit:contain}
.welcome-links{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);display:flex;gap:6px;flex-wrap:wrap;justify-content:center;max-width:92%}
.welcome-links a{font-size:11px;padding:6px 9px;background:rgba(32,23,15,.78);border:1px solid #b68d45;color:#f9e7b1;text-decoration:none;border-radius:3px}

.page-shell{grid-template-columns:minmax(210px,20%) minmax(0,1fr);max-width:none;min-height:calc(100vh - 110px);box-shadow:none}
.side-menu{padding:24px 15px;background:linear-gradient(180deg,#e3d1aa,#d8c19a)}
.side-menu h2{font-size:17px;color:#6a4d25;text-align:center;border-bottom:1px solid #9d7c4d}
.side-menu a{font-size:15px;padding:9px 11px}
.side-menu .chapter-sub{margin-left:16px;padding:6px 7px 6px 12px;font-size:11px}
.content{padding:24px;background:linear-gradient(180deg,#f8f1df,#eee3ca)}
.book-content{padding:18px 22px}

/* Real coded book component derived from the approved book mockups. */
.book-stage{max-width:1320px}
.book-wrap{padding:22px;background:linear-gradient(90deg,#4f321d,#2a1b12 49.5%,#17100b 50%,#4f321d 50.5%,#2b1b12);border:1px solid #73512e;border-radius:10px}
.paper-page{min-height:650px;padding:30px 34px;background:radial-gradient(circle at 24% 10%,rgba(151,106,45,.07),transparent 23%),linear-gradient(90deg,#ead9b5,#f7eed9 17%,#eee1c3 100%)}
.paper-page.right{background:linear-gradient(90deg,#eee1c3,#f7eed9 84%,#ead9b5)}
.book-text{font-size:15px;line-height:1.55;text-align:justify}
.book-text .meta{text-align:center;margin-bottom:17px;font-size:14px}
.footnote-ref{color:#6f431a;text-decoration:underline dotted;text-underline-offset:2px}
.footnote-ref:hover:after,.footnote-ref:focus:after{width:340px;max-width:72vw;font-family:Georgia,'Times New Roman',serif}

.image-grid{gap:14px;min-height:565px}
.book-image{padding:9px 9px 29px;background:#eadcc0}
.book-image img{max-height:245px;background:#241b13}

/* Coded landing pages for areas whose publishing content is not yet populated. */
.coded-landing,.coded-panel{max-width:1050px;margin:28px auto;padding:38px 44px;background:#f4ead3;border:1px solid #b49a6d;box-shadow:0 9px 28px rgba(70,48,25,.14)}
.landing-kicker,.eyebrow{text-transform:uppercase;letter-spacing:1.5px;color:#98743c;font-size:12px}
.coded-landing h1,.coded-panel h1{font-weight:normal;font-size:38px;margin:8px 0 12px;color:#3d2b1c}
.landing-copy,.coded-panel p{font-size:17px;line-height:1.55;color:#5c4c3c}
.landing-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin:26px 0}
.landing-grid.compact{margin-top:22px}
.landing-choice{display:flex;gap:11px;align-items:center;min-height:68px;padding:14px;background:#eadbbb;border:1px solid #bca274;text-decoration:none;color:#4b3521}
.landing-choice:hover{background:#dfc79a;transform:translateY(-1px)}
.landing-choice span{font-size:12px;color:#947345}.landing-choice strong{font-size:15px}
.construction-rule{height:1px;background:#b89863;margin:26px 0}.muted{font-size:13px!important;color:#7e6e5b!important}

/* Mini-series coded visual language: TV landing, clapper guide, slate shell. */
.television-stage{max-width:1120px;margin:18px auto}
.tv-frame{width:min(820px,92%);margin:0 auto;background:#5e4029;border:16px solid #3f291c;border-radius:20px;padding:20px;box-shadow:0 15px 35px rgba(0,0,0,.3)}
.tv-screen{min-height:420px;border-radius:22px;background:radial-gradient(circle at 50% 40%,#574a3d,#171717 68%);border:7px solid #1e1814;color:#eee0b5;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px}
.tv-title{font-size:44px;letter-spacing:2px}.tv-copy{font-size:15px;letter-spacing:1px;color:#cbb99b}.tv-controls{display:flex;gap:12px;justify-content:flex-end;padding:12px 10px 0}.tv-controls span{width:24px;height:24px;border-radius:50%;background:#251a13;border:3px solid #967345}
.episode-guide{max-width:1120px;margin:10px auto;background:#2a211a;border:1px solid #72542f;box-shadow:0 14px 30px rgba(0,0,0,.26)}
.clapper-head{padding:17px 22px;background:repeating-linear-gradient(135deg,#151515 0 38px,#d8c49a 38px 52px);color:white;border-bottom:8px solid #111;display:flex;justify-content:space-between;align-items:center;text-shadow:0 2px 3px #000}.clapper-head span{font-size:25px;font-weight:bold}.clapper-head small{font-size:13px}
.episode-list{background:#efe2c6;padding:16px}.episode-list a{display:grid;grid-template-columns:55px 1fr auto;gap:14px;align-items:center;padding:13px 15px;border-bottom:1px solid #c7af82;text-decoration:none;color:#3d2c1e}.episode-list a:hover{background:#e0ca9f}.episode-no{font-weight:bold;color:#82602c}.episode-list em{font-size:11px;color:#837360;font-style:normal}
.slate-shell{max-width:1150px;margin:8px auto;background:#d6bd8c;border:14px solid #30221a;box-shadow:0 12px 30px rgba(0,0,0,.25)}
.slate-top{background:#161616;color:#f6e7be;padding:18px;display:flex;gap:22px;align-items:center;border-bottom:10px repeating-linear-gradient(135deg,#111 0 30px,#d8c49a 30px 42px)}
.slate-top span{font-size:12px;color:#cdb47d}.slate-top strong{font-size:24px}
.slate-body{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:22px}.slate-copy{background:#f2e2bd;border:1px solid #9f7d49;padding:25px}.slate-copy h1{font-size:28px;font-weight:normal}.slate-copy p{font-size:16px;line-height:1.55}
.filmstrip{display:grid;grid-template-columns:1fr 1fr;gap:12px;background:#1d1b19;padding:18px}.film-cell{min-height:150px;background:#cab88e;border:8px solid #0f0f0f;display:grid;place-items:center;color:#665030;font-size:26px}.slate-nav{display:flex;justify-content:space-between;padding:0 22px 20px}.slate-nav button{padding:9px 14px;background:#38251a;color:#f4deb3;border:1px solid #b58b45}

@media(max-width:1100px){
  .site-header{grid-template-columns:205px 1fr;gap:8px;padding:7px 10px}.brand strong{font-size:20px}.top-nav{gap:6px}.top-nav a{font-size:10px;padding:6px 4px}
  .page-shell{grid-template-columns:210px 1fr}.paper-page{padding:24px}.book-text{font-size:14px}
}
@media(max-width:800px){
  .site-header{display:flex;min-height:62px}.brand{height:48px;width:200px}.nav-toggle{display:block;margin-left:auto}.top-nav{top:62px;gap:6px;padding:8px;background:#0d0f0e}.top-nav a{min-height:42px}
  .hero-home{height:calc(100vh - 62px)}.hero-hotspot{right:18px;bottom:18px;min-width:140px}
  .page-shell{display:block}.side-menu{border-bottom:1px solid #a68b60}.side-menu a{display:block}.side-menu .chapter-sub{display:block}
  .book-spread,.slate-body{grid-template-columns:1fr}.book-spread:after{display:none}.paper-page{min-height:auto}.image-grid{min-height:520px}.episode-list a{grid-template-columns:44px 1fr}.episode-list em{display:none}
}
/* v5.1 Page 1 crop: live header replaces the header baked into the mockup. */
.hero-canvas{position:relative;height:100%;max-width:100%;aspect-ratio:1602/1175;display:flex;align-items:center;justify-content:center}
.hero-canvas>img{display:block;width:100%;height:100%;object-fit:contain}
.hero-canvas .hero-hotspot{left:76.2%;top:79.0%;right:auto;bottom:auto;width:18.3%;height:6.2%;min-width:0;padding:0;background:transparent;border:0;box-shadow:none;border-radius:0;color:transparent;text-shadow:none;position:absolute}
.hero-canvas .hero-hotspot span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.hero-canvas .hero-hotspot:hover{background:rgba(255,214,105,.08);outline:1px solid rgba(255,220,120,.45)}

/* ================= V6: approved visual motifs are the design authority ================= */
.side-menu a{font-size:17px;line-height:1.18}
.side-menu .chapter-sub{font-size:13px;line-height:1.22}
.side-menu .chapter-sub span{font-size:11px}

/* Novel rustic scene: scenic river/trees/book artwork remains the atmosphere; live HTML overlays the content zones. */
.rustic-stage{position:relative;width:100%;min-height:calc(100vh - 112px);background:#111;overflow:auto;padding:0}
.rustic-stage:before{content:'';display:block;width:100%;aspect-ratio:1748/730;background:url('assets/Novel_Rustic_Scene_Base.jpg') center top/cover no-repeat}
.rustic-overlay{position:absolute;inset:0;min-width:980px}
.rustic-overlay>.side-menu{position:absolute;left:4.55%;top:2.2%;width:18.3%;height:78%;z-index:5;padding:18px 15px 12px;background:linear-gradient(90deg,rgba(232,207,158,.99),rgba(246,225,182,.99) 52%,rgba(219,191,141,.99));border:1px solid #715027;border-radius:11px;box-shadow:inset 0 0 25px rgba(87,52,22,.22),0 5px 12px rgba(0,0,0,.28);overflow:auto}
.rustic-overlay>.side-menu h2{font-family:Georgia,'Times New Roman',serif;font-size:27px;text-transform:uppercase;color:#342113;margin:0 -6px 13px;padding:0 0 14px;border-bottom:1px solid rgba(85,55,29,.38)}
.rustic-overlay>.side-menu a{font-family:Georgia,'Times New Roman',serif;font-size:17px;color:#3c291b;padding:10px 7px;margin:0;border-radius:0;border-bottom:1px solid rgba(84,57,32,.16);background:transparent}
.rustic-overlay>.side-menu a:hover,.rustic-overlay>.side-menu a.active{background:rgba(92,55,25,.16);color:#20150d}
.rustic-overlay>.side-menu .chapter-sub{margin-left:8px;padding:6px 5px 6px 10px;font-size:12px;border-left:2px solid rgba(88,57,29,.35)}
.rustic-book-area{position:absolute;left:31.0%;top:7.8%;width:61.5%;height:76.5%;z-index:4}
.rustic-book{width:100%;height:100%;position:relative}
.rustic-spread{display:grid;grid-template-columns:1fr 1fr;gap:3.8%;width:100%;height:100%}
.rustic-page{position:relative;min-width:0;height:100%;padding:5.4% 7.5% 6%;background:radial-gradient(circle at 25% 12%,rgba(124,75,25,.09),transparent 26%),linear-gradient(90deg,rgba(238,211,161,.99),rgba(248,227,184,.995) 25%,rgba(234,203,150,.99));box-shadow:inset 0 0 24px rgba(85,45,15,.18);overflow:auto;color:#2d1d12}
.rustic-page.left-page{border-radius:4% 2% 3% 5%}
.rustic-page.right-page{border-radius:2% 4% 5% 3%;background:radial-gradient(circle at 72% 16%,rgba(124,75,25,.08),transparent 24%),linear-gradient(90deg,rgba(234,203,150,.99),rgba(248,227,184,.995) 75%,rgba(238,211,161,.99))}
.rustic-page h1{font-family:Georgia,'Times New Roman',serif;text-align:center;font-weight:normal;font-size:clamp(18px,1.7vw,28px);margin:0 0 14px;color:#2d1b0d}
.rustic-page .book-text{font-size:clamp(11px,.86vw,15px);line-height:1.42;text-align:justify}
.rustic-page .book-text p{margin:0 0 .72em}
.rustic-page .book-text ul{margin:.2em 0 0;padding-left:1.2em}
.rustic-page .book-text li{margin:0 0 .48em}
.rustic-page .meta{text-align:center;font-size:clamp(10px,.78vw,13px);font-weight:bold;margin-bottom:12px}
.rustic-page .image-grid{height:100%;min-height:0;padding:0 0 26px;gap:12px;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}
.rustic-page .book-image{margin:0;padding:0 0 22px;background:transparent;border:0;box-shadow:none;transform:none;overflow:hidden;cursor:zoom-in}
.rustic-page .book-image:nth-of-type(even){transform:none}
.rustic-page .book-image::before,.rustic-page .book-image::after{display:none}
.rustic-page .book-image img{width:100%;height:100%;max-height:none;object-fit:cover;background:transparent;border:0;box-shadow:0 2px 7px rgba(66,40,15,.28)}
.rustic-page .book-image span{left:0;right:0;bottom:2px;font-size:10px;color:#412a17}
.rustic-page .pdf-image{cursor:default}
.rustic-page .pdf-image embed{width:100%;height:100%;min-height:170px;border:0;background:#eee}
.rustic-page .image-grid.single{display:block;padding-bottom:30px}
.rustic-page .image-grid.single .book-image{height:100%;padding-bottom:26px}
.rustic-page .image-grid.single .book-image img{width:100%;height:100%;object-fit:contain}
.rustic-page .image-back{top:4px;right:4px;background:rgba(50,31,17,.86);color:#f3dfb2;border:1px solid #a77f43}
.rustic-page .book-turn{bottom:4px;font-size:12px;color:#553316}
.rustic-page .book-page-number{bottom:6px}

/* Approved landing-page artwork fills the page; transparent coded links make it active without duplicate menus. */
.themed-landing,.episode-art-stage{position:relative;background:#111;min-height:calc(100vh - 112px);display:flex;justify-content:center;align-items:flex-start;overflow:hidden}
.themed-landing>img,.episode-art-stage>img{display:block;width:100%;max-width:1748px;height:auto;object-fit:contain}
.landing-hotspots{position:absolute;left:0;right:0;bottom:2%;height:22%;display:flex;justify-content:center;gap:1%;pointer-events:none}
.landing-hotspots a{pointer-events:auto;align-self:flex-end;width:10%;height:42%;opacity:0;text-decoration:none}
.landing-hotspots a:hover{opacity:.08;background:#fff4b0}

/* Mini-series episode guide: one active navigation layer only; no duplicated side/bottom menu. */
.episode-hotspots{position:absolute;left:3.5%;top:19%;width:22%;height:72%;display:flex;flex-direction:column;gap:1px}
.episode-hotspots a{flex:1;display:flex;align-items:center;gap:8px;color:transparent;text-decoration:none;border-radius:3px}
.episode-hotspots a:hover{background:rgba(255,215,85,.10)}
.episode-hotspots a span{color:transparent}

/* Novel > Music uses its approved landing page look. */
.music-shell{display:grid;grid-template-columns:minmax(235px,20%) minmax(0,1fr);min-height:calc(100vh - 112px);background:#1a140e}
.music-shell>.side-menu{font-size:17px}
.themed-sublanding{position:relative;display:flex;justify-content:center;align-items:flex-start;overflow:hidden;background:#1a140e}
.themed-sublanding>img{width:100%;height:auto;max-height:calc(100vh - 112px);object-fit:contain}
.music-hotspots{position:absolute;inset:0;pointer-events:none}
.music-hotspots a{position:absolute;pointer-events:auto;color:transparent;text-decoration:none;background:transparent}
.music-hotspots a:nth-child(1){left:26%;top:31%;width:48%;height:13%}
.music-hotspots a:nth-child(2){left:26%;top:53%;width:48%;height:13%}
.music-hotspots a:hover{background:rgba(255,218,92,.08)}

@media(max-width:1100px){
 .rustic-overlay{min-width:900px}.rustic-overlay>.side-menu a{font-size:15px}.rustic-page .book-text{font-size:11px}
}
@media(max-width:800px){
 .rustic-stage{overflow-x:auto}.rustic-overlay{min-width:900px}.music-shell{display:block}.music-shell>.side-menu{position:relative}.themed-sublanding>img{max-height:none}
}

/* ================= V7 review implementation ================= */
html,body{min-height:100%;overflow-x:hidden}
.breadcrumb.empty{display:none}

/* Home: crop the source screenshot's white edge/browser bar and replace the baked button with live black-and-gold type. */
.hero-home{height:calc(100dvh - 74px);min-height:0;overflow:hidden;background:#050505}
.hero-canvas{width:100%;max-width:none;height:100%;aspect-ratio:auto;overflow:hidden}
.hero-canvas>img{width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;transform:scale(1.035);filter:contrast(1.035) saturate(1.02)}
.hero-canvas .hero-hotspot{left:76.9%;top:79.3%;width:18.7%;height:6.6%;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,rgba(20,19,17,.98),rgba(5,5,5,.98));border:1px solid #d6aa3d;border-radius:9px;box-shadow:0 0 16px rgba(225,174,52,.28),inset 0 0 14px rgba(215,166,45,.08);color:#edc664;text-shadow:0 1px 2px #000;letter-spacing:.11em;text-transform:uppercase;font-family:Georgia,'Times New Roman',serif}
.hero-canvas .hero-hotspot span{position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal;border:0;font-size:clamp(10px,.9vw,16px)}
.hero-canvas .hero-hotspot:hover{background:#111;border-color:#f2ca59;outline:0;color:#ffe18b}

/* Welcome: the persistent live header covers the duplicate header baked into the approved art. */
.welcome-stage{margin-top:calc(-1 * clamp(82px,6vw,112px));min-height:0;padding:0;overflow:hidden;background:#e8dcc3}
.welcome-stage>img{width:100%;height:auto;max-width:none;max-height:none;object-fit:contain;transform:scale(1.018);transform-origin:center top;filter:contrast(1.025)}
.welcome-links{display:none!important}

/* Rustic book: expand the usable book, keep type/photos visually on the paper, and remove nested scrollbars. */
.rustic-stage{overflow:hidden}
.rustic-overlay>.side-menu{overflow-y:auto;scrollbar-width:none}
.rustic-overlay>.side-menu::-webkit-scrollbar{display:none}
.rustic-book-area{left:28.7%;top:5.3%;width:64.8%;height:82.5%}
.rustic-page{padding:4.4% 6.6% 7.5%;overflow:hidden;border-radius:0!important;box-shadow:none;background:linear-gradient(90deg,rgba(239,210,158,.985),rgba(247,225,181,.99) 48%,rgba(232,200,148,.985))}
.rustic-page.right-page{background:linear-gradient(90deg,rgba(232,200,148,.985),rgba(247,225,181,.99) 52%,rgba(239,210,158,.985))}
.rustic-page .book-text{padding-bottom:42px;font-size:clamp(11px,.83vw,14px);line-height:1.38}
.rustic-page .image-grid{padding:0 0 34px;gap:13px}
.rustic-page .image-grid.image-count-1{grid-template-columns:1fr;grid-template-rows:1fr}
.rustic-page .image-grid.image-count-2{grid-template-columns:1fr;grid-template-rows:1fr 1fr}
.rustic-page .image-grid.image-count-3{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}
.rustic-page .image-count-3 .book-image:first-of-type{grid-column:1/-1}
.rustic-page .book-image{padding:7px 7px 25px;background:rgba(229,210,170,.34);overflow:visible}
.rustic-page .book-image::before,.rustic-page .book-image::after{display:block;z-index:3;width:17px;height:17px;opacity:.78;pointer-events:none}
.rustic-page .book-image::before{left:2px;top:2px;border-left:3px solid #765735;border-top:3px solid #765735}
.rustic-page .book-image::after{right:2px;bottom:20px;border-right:3px solid #765735;border-bottom:3px solid #765735}
.rustic-page .book-image img{object-fit:contain;background:transparent;border:0;box-shadow:0 2px 6px rgba(66,40,15,.22)}
.rustic-page .image-grid.single{display:flex;align-items:center;justify-content:center;padding:0 0 34px}
.rustic-page .image-grid.single .book-image{width:100%;height:100%;padding:7px 7px 28px}
.rustic-page .image-grid.single .book-image img{width:100%;height:100%;max-height:none;object-fit:contain}
.rustic-page .book-turn{bottom:6px;z-index:12;background:rgba(239,215,170,.88);border-radius:3px;padding:5px 8px;text-decoration:none!important}
.rustic-page .book-page-number{bottom:8px;z-index:11}

/* Viewport-fixed footnotes stay fully visible regardless of their source line or page edge. */
.footnote-ref:hover:after,.footnote-ref:focus:after{display:none!important}
.footnote-popover{position:fixed;z-index:500;display:none;max-height:min(46vh,330px);overflow:auto;padding:12px 14px;background:#211811;color:#fff4dc;border:1px solid #d0a24a;border-radius:7px;box-shadow:0 10px 34px rgba(0,0,0,.5);font:13px/1.42 Georgia,'Times New Roman',serif;text-align:left}
.footnote-popover.show{display:block}

/* Landing art: pull its baked navigation beneath the persistent coded header, then map every visual box to a live link. */
.themed-landing{max-width:1748px;margin:calc(-1 * clamp(74px,5.8vw,104px)) auto 0;min-height:0;overflow:hidden;display:block;position:relative}
.themed-landing>img{display:block;width:100%;max-width:none;height:auto}
.landing-hotspots{position:absolute;inset:0;height:auto;display:block;pointer-events:none}
.landing-hotspots a{position:absolute;display:block;opacity:0;pointer-events:auto;border:2px solid transparent;border-radius:6px}
.landing-hotspots a:hover,.landing-hotspots a:focus{opacity:1;background:rgba(255,221,105,.09);border-color:rgba(255,213,73,.65);outline:0;box-shadow:0 0 16px rgba(255,202,45,.28)}
.landing-hotspots a span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}

/* The two award plaques and both requested mug inscriptions remain readable at normal desktop scale. */
.award-plaque,.mini-mug-quote,.attribution-mug-quote{position:absolute;z-index:4;text-align:center;color:#24170d;font-family:Georgia,'Times New Roman',serif;line-height:1.05;pointer-events:none;text-shadow:0 1px rgba(255,235,183,.4)}
.award-plaque{font-size:clamp(5px,.42vw,8px);font-weight:bold}
.award-plaque.horse{left:22.3%;top:33.0%;width:7.6%;transform:rotate(-1deg)}
.award-plaque.bird{left:67.8%;top:20.2%;width:7.0%;transform:rotate(1deg)}
.mini-mug-quote{left:21.4%;top:68.2%;width:6.4%;font-size:clamp(5px,.38vw,7px);transform:rotate(-2deg)}
.attribution-mug-quote{left:84.2%;top:52.0%;width:7.5%;font-size:clamp(6px,.48vw,9px);font-weight:bold;transform:rotate(-1deg)}

@media(max-width:800px){
 .hero-home{height:calc(100dvh - 62px)}
 .welcome-stage,.themed-landing{margin-top:calc(-1 * clamp(62px,5.8vw,84px))}
 .rustic-stage{overflow-x:auto}
}

/* ================= V8: native type, blank artwork, and true album pages ================= */
body{background:#100d09}
footer{display:none}
.site-header{height:76px;position:sticky;padding:8px 18px;background:linear-gradient(180deg,#241d15,#080807);border-bottom:1px solid #a87b23;box-shadow:0 4px 22px rgba(0,0,0,.55)}
.brand{height:58px;border:1px solid rgba(202,151,42,.48);border-radius:9px;padding:7px 18px;display:flex;flex-direction:column;justify-content:center;gap:0;color:#dcae49;background:linear-gradient(180deg,#171714,#090908)}
.brand strong{font-size:24px;font-weight:normal;line-height:1}.brand small{color:#c69b43;font-size:11px;letter-spacing:.15em}
.top-nav{gap:12px}.top-nav a{min-height:48px;border:1px solid #a77818;border-radius:8px;color:#d6b055;background:linear-gradient(180deg,#171714,#090908);font-size:clamp(10px,.88vw,14px);text-transform:uppercase;padding:7px 5px}
.top-nav a:hover{border-color:#e2b944;background:#201a11;box-shadow:0 0 12px rgba(226,181,55,.32)}
.top-nav a.active{color:#ffe084;border:2px solid #edc052;background:#20190d;box-shadow:0 0 19px rgba(255,202,61,.82),inset 0 0 13px rgba(245,190,40,.22)}
.breadcrumb{height:34px;padding:8px 5.1%;background:#17130e;color:#d7bd83;border-bottom:1px solid #5f4724;font-size:13px}
#app{min-height:calc(100dvh - 110px)}

/* Home is now a clean background plus live, sharp content. */
.hero-home{height:calc(100dvh - 76px);min-height:560px;display:block;background:linear-gradient(90deg,rgba(22,13,7,.04),rgba(22,13,7,.32)),url('assets/Home_Mountain_Blank_v8.png') center/cover no-repeat;position:relative;overflow:hidden}
.hero-home:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent 35%,rgba(20,12,6,.14) 58%,rgba(10,7,5,.44));pointer-events:none}
.hero-copy{position:absolute;z-index:2;right:6.2%;top:37%;width:min(600px,43vw);text-align:right;color:#fff7df;text-shadow:0 2px 8px rgba(0,0,0,.72)}
.hero-quote{font-size:clamp(38px,4.1vw,72px);line-height:1.05;margin:0 0 26px;font-weight:normal}
.hero-intro{margin:0 0 30px auto;max-width:610px;font:clamp(16px,1.25vw,22px)/1.52 Arial,sans-serif}
.hero-journey{display:inline-flex;align-items:center;justify-content:center;min-width:260px;padding:15px 24px;border:1px solid #e5b94d;border-radius:7px;color:#f3cf73;background:linear-gradient(180deg,rgba(23,22,19,.98),rgba(5,5,5,.98));box-shadow:0 0 21px rgba(219,166,42,.42);text-decoration:none;text-transform:uppercase;letter-spacing:.16em;font-weight:bold;text-shadow:none}
.hero-journey:hover{color:#ffe9a4;border-color:#ffe07a;box-shadow:0 0 28px rgba(255,202,54,.7)}

/* The cleaned image provides the physical book; everything on parchment is live HTML. */
.rustic-stage{height:calc(100dvh - 110px);min-height:590px;width:100%;position:relative;overflow:hidden;background:url('assets/Novel_Rustic_Blank_v8.png') center/100% 100% no-repeat}
.rustic-stage:before{display:none}
.rustic-overlay{position:absolute;inset:0;min-width:0}
.rustic-overlay>.side-menu{left:4.75%;top:2.4%;width:18.25%;height:77.2%;padding:2.1vh .85vw;background:transparent;border:0;border-radius:0;box-shadow:none;overflow:hidden}
.rustic-overlay>.side-menu h2{font-size:clamp(18px,1.7vw,30px);line-height:1.05;text-align:center;margin:0 0 1.3vh;padding:0 0 1.3vh;border-bottom:1px solid rgba(80,48,20,.46)}
.rustic-overlay>.side-menu a{font-size:clamp(11px,1.05vw,18px);padding:clamp(4px,.72vh,9px) .45vw;border-bottom:1px solid rgba(84,57,32,.17)}
.rustic-overlay>.side-menu a:hover,.rustic-overlay>.side-menu a.active{background:rgba(100,61,25,.16);box-shadow:inset 3px 0 #714516;color:#1b1008}
.rustic-overlay>.side-menu .chapter-sub{font-size:clamp(8px,.72vw,12px);line-height:1.12;margin-left:.4vw;padding:clamp(2px,.4vh,5px) .35vw clamp(2px,.4vh,5px) .55vw}
.rustic-overlay>.side-menu .chapter-sub span{font-size:clamp(7px,.62vw,10px)}
.rustic-book-area{left:31.55%;top:7.2%;width:57.8%;height:68.9%}
.rustic-spread{gap:1.5%;grid-template-columns:1fr 1fr}
.rustic-page,.rustic-page.right-page{height:100%;padding:3.3% 5.8% 6.8%;overflow:hidden;background:transparent!important;box-shadow:none;color:#24150b}
.rustic-page.left-page{padding-left:7%;padding-right:6%}.rustic-page.right-page{padding-left:5.4%;padding-right:7%}
.rustic-page h1{font-size:clamp(17px,min(1.55vw,2.7vh),28px);margin:0 0 1.2vh;line-height:1.05}
.rustic-page .book-text{padding:0 0 3.3vh;font-size:clamp(9px,min(.76vw,1.46vh),14px);line-height:1.29;text-align:justify}
.rustic-page .book-text p{margin:0 0 .58em}.rustic-page .book-text li{margin:0 0 .35em}.rustic-page .meta{font-size:clamp(8px,min(.68vw,1.25vh),12px);margin-bottom:.8vh}
.rustic-page .image-grid,.rustic-page .image-grid.image-count-1,.rustic-page .image-grid.image-count-2,.rustic-page .image-grid.image-count-3{height:100%;padding:0 0 3.7vh;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:1.3vh .75vw}
.rustic-page .book-image,.rustic-page .book-image:nth-of-type(even){position:relative;margin:0;padding:6px 6px clamp(18px,2.6vh,27px);min-height:0;background:linear-gradient(135deg,#ead9b7,#d7bd8e);border:1px solid rgba(79,50,25,.45);box-shadow:0 4px 8px rgba(58,34,13,.28);overflow:visible;cursor:zoom-in;transform:rotate(-.55deg)}
.rustic-page .book-image:nth-of-type(2),.rustic-page .book-image:nth-of-type(3){transform:rotate(.55deg)}
.rustic-page .book-image img{display:block;width:100%;height:100%;max-height:none;object-fit:contain;background:rgba(240,220,181,.35);border:1px solid rgba(70,45,23,.28);box-shadow:none}
.rustic-page .book-image span{position:absolute;left:4px;right:4px;bottom:3px;text-align:center;font-size:clamp(7px,min(.58vw,1.05vh),10px);line-height:1.1;color:#352113;white-space:normal}
.rustic-page .book-image::before,.rustic-page .book-image::after{display:none}
.photo-mount{position:absolute;z-index:4;width:clamp(11px,1vw,17px);height:clamp(11px,1vw,17px);border-color:#6e5032;border-style:solid;opacity:.82;pointer-events:none}.photo-mount.tl{left:1px;top:1px;border-width:3px 0 0 3px}.photo-mount.tr{right:1px;top:1px;border-width:3px 3px 0 0}.photo-mount.bl{left:1px;bottom:clamp(18px,2.6vh,27px);border-width:0 0 3px 3px}.photo-mount.br{right:1px;bottom:clamp(18px,2.6vh,27px);border-width:0 3px 3px 0}
.rustic-page .book-turn{bottom:1.3vh;z-index:12;padding:4px 8px;background:rgba(232,204,151,.88);border:1px solid rgba(96,59,25,.45);color:#4d2c12;border-radius:4px;font-size:clamp(8px,.72vw,12px)}
.rustic-page .book-page-number{bottom:1.45vh;font-size:clamp(8px,.68vw,11px)}

.image-lightbox{position:fixed;z-index:1000;inset:0;display:grid;place-items:center;padding:4vh 5vw;background:rgba(8,6,4,.92);backdrop-filter:blur(5px)}
.image-lightbox>button{position:absolute;right:2.5vw;top:2vh;width:48px;height:48px;border:1px solid #d8b15d;border-radius:50%;background:#17120d;color:#f6d889;font-size:32px;cursor:pointer}
.image-lightbox figure{margin:0;max-width:88vw;max-height:88vh;display:flex;flex-direction:column;align-items:center;gap:10px}.image-lightbox img{display:block;max-width:88vw;max-height:80vh;width:auto;height:auto;object-fit:contain;box-shadow:0 14px 42px #000}.image-lightbox figcaption{color:#f2dfb5;font-size:16px;text-align:center}

/* Coded top-level landing pages: visual atmosphere behind crisp navigation. */
.coded-themed-landing{height:calc(100dvh - 76px);min-height:600px;position:relative;overflow:hidden;padding:clamp(32px,5vh,62px) 6vw;color:#f8e7bd;background:#15110c}
.coded-themed-landing:before{content:'';position:absolute;inset:-10px;background-image:var(--landing-art);background-size:cover;background-position:center;filter:blur(4px) saturate(.8);opacity:.38;transform:scale(1.025)}
.landing-wash{position:absolute;inset:0;background:linear-gradient(100deg,rgba(5,5,4,.94),rgba(15,12,8,.75) 47%,rgba(12,9,6,.83)),radial-gradient(circle at 74% 35%,rgba(185,128,35,.2),transparent 35%)}
.landing-heading{position:relative;z-index:2;max-width:740px}.landing-heading>span{font:12px/1.2 Arial,sans-serif;letter-spacing:.24em;text-transform:uppercase;color:#d4a948}.landing-heading h1{margin:8px 0 12px;font-size:clamp(38px,4.1vw,68px);line-height:1;font-weight:normal;color:#f2d485;text-shadow:0 3px 12px #000}.landing-heading p{max-width:680px;margin:0;font:clamp(14px,1.15vw,19px)/1.5 Arial,sans-serif;color:#eadfc7}
.coded-landing-grid{position:relative;z-index:2;margin-top:clamp(28px,5vh,58px);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(10px,1.2vw,18px);max-width:1380px}
.coded-landing-grid a{min-height:clamp(92px,13vh,138px);display:grid;grid-template-columns:42px 1fr;grid-template-rows:1fr auto;gap:5px 12px;padding:17px 18px;border:1px solid rgba(218,169,62,.65);border-radius:8px;background:linear-gradient(145deg,rgba(31,26,19,.94),rgba(8,8,7,.91));color:#f2dfae;text-decoration:none;box-shadow:0 8px 22px rgba(0,0,0,.3)}
.coded-landing-grid a:hover{transform:translateY(-3px);border-color:#f0c75d;box-shadow:0 0 21px rgba(224,173,48,.37)}.coded-landing-grid b{grid-row:1/3;font:20px/1 Georgia;color:#bb8f35;align-self:start}.coded-landing-grid strong{align-self:end;font-size:clamp(14px,1.15vw,19px);font-weight:normal}.coded-landing-grid em{font:10px/1 Arial,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#b79c67;font-style:normal}
.coded-themed-landing--levis-store .coded-landing-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.coded-themed-landing--attributions .coded-landing-grid{padding-right:180px}
.landing-mug{position:absolute;z-index:3;right:5vw;bottom:7vh;width:150px;height:150px;border-radius:10% 10% 22% 22%;display:grid;place-items:center;background:linear-gradient(110deg,#d9c39b,#f4e2bc 42%,#c5a574);border:4px solid #795a32;box-shadow:inset -15px 0 18px rgba(83,50,18,.2),0 16px 28px rgba(0,0,0,.45);transform:rotate(-2deg)}
.landing-mug:after{content:'';position:absolute;right:-48px;top:28px;width:58px;height:74px;border:13px solid #b99869;border-left:0;border-radius:0 48% 48% 0}.landing-mug span{color:#28190d;text-align:center;font:bold 16px/1.15 Georgia;text-shadow:0 1px #fff1cb}

/* Episode guide and content now follow the source documents and film-slate motif. */
.episode-guide-coded{min-height:calc(100dvh - 110px);padding:35px 5vw 45px;background:radial-gradient(circle at 80% 10%,#594022,#17130f 42%,#080808);color:#f3deb0}.episode-guide-coded header span{font:11px Arial;letter-spacing:.22em;text-transform:uppercase;color:#c19a4e}.episode-guide-coded h1{font-size:50px;font-weight:normal;margin:5px 0}.episode-guide-coded header p{font:16px Arial;color:#d3c2a1}.episode-reels{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:28px}.episode-reels a{min-height:120px;padding:17px;display:grid;grid-template-columns:42px 1fr;grid-template-rows:1fr auto;gap:5px 12px;border:1px solid #6e5a36;background:linear-gradient(145deg,#28221b,#0f0e0c);color:#d8c49a;text-decoration:none;opacity:.75}.episode-reels a.published{opacity:1;border-color:#bb9140;box-shadow:inset 0 4px #e3c16d}.episode-reels span{grid-row:1/3;font-size:22px;color:#be9444}.episode-reels strong{align-self:end;font-weight:normal}.episode-reels em{font:10px Arial;text-transform:uppercase;letter-spacing:.12em;color:#8f7d5e;font-style:normal}
.episode-layout{display:grid;grid-template-columns:minmax(220px,19%) 1fr;min-height:calc(100dvh - 110px);background:#14110e}.episode-layout>.side-menu{background:linear-gradient(180deg,#d9c093,#bea06b);overflow:hidden}.episode-reader{padding:18px 2.6vw 28px;min-width:0}.episode-reader>h1{margin:0 0 12px;color:#e8cd8e;font-size:clamp(20px,2vw,31px);font-weight:normal}.episode-slate{background:#bca16c;border:10px solid #261c14;box-shadow:0 14px 35px rgba(0,0,0,.5)}
.clapper{min-height:72px;padding:12px 18px;display:grid;grid-template-columns:auto 1fr auto;gap:20px;align-items:center;color:#f6e7be;background:repeating-linear-gradient(135deg,#111 0 36px,#d7c08e 36px 49px,#111 49px 84px)}.clapper span,.clapper small{padding:5px 8px;background:#111;font:11px Arial;text-transform:uppercase;letter-spacing:.12em}.clapper strong{justify-self:center;padding:5px 12px;background:#111;font-size:22px}.slate-paper{height:calc(100dvh - 300px);min-height:470px;display:grid;grid-template-columns:1.15fr .85fr;gap:18px;padding:20px;background:linear-gradient(90deg,#e6d0a3,#f2dfb8)}.slate-paper>section{overflow:auto;padding:2px 10px 15px 4px;scrollbar-color:#866332 #e2c793}.slate-paper h2{margin:0 0 12px;font-size:27px;font-weight:normal}.slate-paper p{font-size:clamp(12px,1vw,16px);line-height:1.42;margin:0 0 .72em}.filmstrip-live{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:12px;padding:15px;background:#171512;border:6px dotted #c5ac75}.filmstrip-live figure{margin:0;min-height:0;background:#090909;border:4px solid #050505}.filmstrip-live img{display:block;width:100%;height:100%;object-fit:contain}.slate-turns{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:15px;padding:10px 14px;background:#241a13;color:#e7ce96}.slate-turns button{justify-self:start;padding:8px 13px;border:1px solid #a9803d;background:#0f0e0c;color:#e9cc8d;border-radius:4px}.slate-turns button:last-child{justify-self:end}.comparison-wrap{margin-top:15px;overflow:auto;max-height:38vh}.comparison-wrap table{border-collapse:collapse;width:100%;font-size:11px}.comparison-wrap th,.comparison-wrap td{border:1px solid #9f8050;padding:6px;text-align:left;vertical-align:top}.comparison-wrap th{background:#4b3824;color:#f4dfb4}

@media(max-width:1100px){
 .site-header{grid-template-columns:190px 1fr}.brand{padding:7px 10px}.brand strong{font-size:20px}.top-nav{gap:5px}
 .coded-landing-grid,.episode-reels{grid-template-columns:repeat(3,minmax(0,1fr))}
 .rustic-page .book-text{font-size:clamp(8px,min(.72vw,1.28vh),12px)}
}
@media(max-width:800px){
 .site-header{height:62px}.hero-home{height:calc(100dvh - 62px)}.hero-copy{top:29%;right:7%;width:80vw}.hero-quote{font-size:42px}.hero-intro{font-size:16px}.hero-journey{min-width:220px}
 .coded-themed-landing{height:auto;min-height:calc(100dvh - 62px)}.coded-landing-grid,.coded-themed-landing--levis-store .coded-landing-grid,.episode-reels{grid-template-columns:1fr 1fr}.coded-themed-landing--attributions .coded-landing-grid{padding-right:0}.landing-mug{display:none}
 .rustic-stage{height:690px;min-width:980px;overflow-x:auto}.rustic-overlay{min-width:980px}
 .episode-layout{display:block}.episode-layout>.side-menu{max-height:260px;overflow:auto}.slate-paper{height:auto;grid-template-columns:1fr}.filmstrip-live{min-height:480px}
}



/* ================= V9: review corrections =================
   Direct approved landing art, readable rustic-book typography,
   true album-photo treatment, and route-reset navigation.
   ========================================================== */

.rustic-book-area{left:31.7%;top:7.2%;width:58.0%;height:69.4%}
.rustic-page,.rustic-page.right-page{padding-top:7.2%;padding-bottom:7.2%}
.rustic-page.left-page{padding-left:10.2%;padding-right:6.2%}
.rustic-page.right-page{padding-left:5.5%;padding-right:7.2%}
.rustic-page h1{
  font-size:clamp(19px,min(1.72vw,2.9vh),31px);
  line-height:1.08;
  margin:0 0 1.55vh;
  text-align:center;
}
.rustic-page .book-text{
  padding:0 0 4.2vh;
  font-size:clamp(12px,min(.91vw,1.66vh),17px);
  line-height:1.38;
  text-align:justify;
}
.rustic-page.text-sparse .book-text{font-size:clamp(18px,1.3vw,21px);line-height:1.46}
.rustic-page.text-balanced .book-text{font-size:clamp(16px,1.15vw,19.5px);line-height:1.42}
.rustic-page.text-dense .book-text{font-size:clamp(15px,1vw,17px);line-height:1.34}
.rustic-page .book-text p{margin:0 0 .72em}
.rustic-page .book-text li{margin:0 0 .46em}
.rustic-page .meta{font-size:clamp(10px,min(.78vw,1.38vh),14px);line-height:1.25;margin-bottom:1.15vh}

.rustic-page .image-grid{
  height:100%;
  padding:0 0 4.1vh;
  display:grid;
  gap:1.55vh .95vw;
  align-items:stretch;
}
.rustic-page .image-grid.image-count-1{grid-template-columns:1fr;grid-template-rows:1fr;padding:2.5% 5% 5.5%}
.rustic-page .image-grid.image-count-2{grid-template-columns:1fr;grid-template-rows:1fr 1fr}
.rustic-page .image-grid.image-count-3{grid-template-columns:1fr 1fr;grid-template-rows:1.12fr .88fr}
.rustic-page .image-grid.image-count-3 .book-image:first-child{grid-column:1/3}
.rustic-page .image-grid.image-count-4{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}
.rustic-page .book-image,
.rustic-page .book-image:nth-of-type(even),
.rustic-page .book-image:nth-of-type(2),
.rustic-page .book-image:nth-of-type(3){
  position:relative;
  margin:0;
  padding:0 0 clamp(15px,2.1vh,23px);
  min-height:0;
  background:transparent;
  border:0;
  box-shadow:none;
  overflow:visible;
  cursor:zoom-in;
  transform:none;
}
.rustic-page .book-image img{
  display:block;
  width:100%;
  height:calc(100% - clamp(15px,2.1vh,23px));
  max-height:none;
  object-fit:contain;
  background:transparent;
  border:0;
  box-shadow:0 3px 8px rgba(53,31,13,.22);
}
.rustic-page .book-image span{
  left:3px;right:3px;bottom:0;
  font-size:clamp(8px,min(.64vw,1.12vh),11px);
  line-height:1.12;
  color:#3a2414;
}
.photo-mount{
  width:clamp(14px,1.15vw,20px);
  height:clamp(14px,1.15vw,20px);
  border-color:#5b3a20;
  opacity:.92;
}
.photo-mount.tl{left:-3px;top:-3px;border-width:5px 0 0 5px}
.photo-mount.tr{right:-3px;top:-3px;border-width:5px 5px 0 0}
.photo-mount.bl{left:-3px;bottom:clamp(15px,2.1vh,23px);border-width:0 0 5px 5px}
.photo-mount.br{right:-3px;bottom:clamp(15px,2.1vh,23px);border-width:0 5px 5px 0}

.approved-landing{
  position:relative;
  width:min(100%,calc(100dvh * var(--art-ratio,1.78)));
  max-width:1748px;
  margin:calc(-1 * clamp(70px,5vw,90px)) auto 0;
  background:#090704;
  overflow:hidden;
}
.approved-landing>img{
  display:block;
  width:100%;
  height:auto;
  max-width:none;
  image-rendering:auto;
}
.approved-hotspots{position:absolute;inset:0;pointer-events:none}
.approved-hotspots a{
  position:absolute;
  pointer-events:auto;
  display:block;
  border:2px solid transparent;
  border-radius:7px;
  background:transparent;
  transition:background .15s ease,border-color .15s ease,box-shadow .15s ease;
}
.approved-hotspots a:hover,.approved-hotspots a:focus-visible{
  background:rgba(255,216,91,.08);
  border-color:rgba(255,215,80,.78);
  box-shadow:0 0 17px rgba(255,203,62,.34);
  outline:0;
}
.approved-hotspots a span{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
.coded-themed-landing{display:none!important}

@media(max-width:1100px){
 .rustic-page .book-text{font-size:clamp(11px,min(.86vw,1.5vh),15px)}
}
@media(max-width:800px){
 .approved-landing{min-width:980px;margin-top:-62px}
 .rustic-page .book-text{font-size:12px}
}

/* V9 episode slates: one reading board with a four-frame filmstrip directly below. */
.slate-paper{
  height:calc(100dvh - 300px);
  min-height:520px;
  display:grid;
  grid-template-columns:1fr;
  grid-template-rows:minmax(0,1fr) minmax(150px,30%);
  gap:14px;
  padding:18px;
  background:linear-gradient(90deg,#c2a56f,#e0c58e);
}
.slate-paper>section{
  overflow:auto;
  padding:18px 24px 15px;
  background:#f0dfb9;
  border:1px solid #8f7044;
  box-shadow:inset 0 0 26px rgba(94,62,26,.12);
  scrollbar-color:#866332 #e2c793;
}
.slate-paper p{font-size:clamp(13px,1vw,16px);line-height:1.46}
.filmstrip-live{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  grid-template-rows:1fr;
  gap:10px;
  padding:14px 18px;
  background:#171512;
  border:0;
  border-block:10px dotted #c5ac75;
}

@media(max-width:800px){
 .slate-paper{height:auto;grid-template-rows:auto auto}
 .filmstrip-live{min-height:480px;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}
}

/* ================= V9.1: comment-document corrections =================
   Match the book's perspective, reserve a clear page footer, and animate
   a physical sheet across the gutter when the reader changes spreads.
   ====================================================================== */
.rustic-book{
  transform:perspective(1600px) rotateX(9deg);
  transform-origin:center bottom;
  transform-style:preserve-3d;
  perspective:1500px;
}
.rustic-spread{transform-style:preserve-3d}
.rustic-page{
  display:flex;
  flex-direction:column;
}
.rustic-page h1{flex:0 0 auto}
.rustic-page .book-text{
  flex:1 1 auto;
  min-height:0;
  overflow:hidden;
  padding-bottom:0;
  margin-bottom:clamp(34px,5.1vh,48px);
}
.rustic-page .image-grid,
.rustic-page .image-grid.image-count-1,
.rustic-page .image-grid.image-count-2,
.rustic-page .image-grid.image-count-3,
.rustic-page .image-grid.image-count-4{
  flex:1 1 auto;
  min-height:0;
  height:auto;
  padding-bottom:0;
  margin-bottom:clamp(34px,5.1vh,48px);
}
.rustic-page .book-turn{
  bottom:1.1vh;
  max-width:42%;
  white-space:nowrap;
}
.rustic-page .book-page-number{bottom:1.35vh}

.page-turn-sheet{
  position:absolute;
  top:0;
  width:50%;
  height:100%;
  z-index:40;
  pointer-events:none;
  transform-style:preserve-3d;
  backface-visibility:visible;
  background:
    radial-gradient(circle at 24% 12%,rgba(124,75,25,.10),transparent 26%),
    linear-gradient(90deg,#e7c98f,#f7e2b8 55%,#d8b879);
  border:1px solid rgba(83,49,21,.42);
  box-shadow:0 4px 18px rgba(25,13,5,.32),inset 0 0 24px rgba(92,53,20,.16);
}
.page-turn-sheet:after{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(73,42,17,.28),transparent 20%,rgba(255,244,211,.2) 68%,rgba(80,44,17,.25));
  transform:rotateY(180deg) translateZ(1px);
  backface-visibility:hidden;
}
.page-turn-forward{
  left:50%;
  transform-origin:left center;
  animation:rusticPageForward .68s cubic-bezier(.62,.02,.35,1) both;
}
.page-turn-reverse{
  left:0;
  transform-origin:right center;
  animation:rusticPageReverse .68s cubic-bezier(.62,.02,.35,1) both;
}
@keyframes rusticPageForward{
  0%{transform:rotateY(0deg);filter:brightness(1)}
  48%{transform:rotateY(-86deg);filter:brightness(.72)}
  52%{transform:rotateY(-94deg);filter:brightness(.72)}
  100%{transform:rotateY(-180deg);filter:brightness(1)}
}
@keyframes rusticPageReverse{
  0%{transform:rotateY(0deg);filter:brightness(1)}
  48%{transform:rotateY(86deg);filter:brightness(.72)}
  52%{transform:rotateY(94deg);filter:brightness(.72)}
  100%{transform:rotateY(180deg);filter:brightness(1)}
}
@media(prefers-reduced-motion:reduce){
 .page-turn-sheet{animation:none!important}
}

/* ================= V9.2: approved Episode slate template =================
   Live HTML follows IMAG.02.01-Episode Landing page.png: slate index left,
   reading board center, and four-frame filmstrip right.
   ======================================================================== */
.approved-episode-layout{
  grid-template-columns:minmax(225px,19%) minmax(0,1fr);
  height:calc(100dvh - 110px);
  min-height:650px;
  overflow:hidden;
  background:radial-gradient(circle at 76% 12%,#3f2b19,#15110d 46%,#070706);
}
.episode-slate-index{
  min-width:0;
  height:100%;
  padding:22px 14px 16px;
  display:flex;
  flex-direction:column;
  color:#392513;
  background:
    radial-gradient(circle at 25% 8%,rgba(119,73,31,.12),transparent 30%),
    linear-gradient(90deg,#c59b5e,#ecd09a 18%,#efd7a8 78%,#b9894f);
  border-right:8px solid #342217;
  box-shadow:inset 0 0 25px rgba(77,43,17,.28),6px 0 18px rgba(0,0,0,.28);
}
.episode-slate-index>header{
  padding:0 5px 13px;
  text-align:center;
  text-transform:uppercase;
  border-bottom:2px solid rgba(78,45,19,.56);
}
.episode-slate-index>header span,
.episode-slate-index>header strong{display:block}
.episode-slate-index>header span{font-size:clamp(17px,1.4vw,24px)}
.episode-slate-index>header strong{font-size:clamp(14px,1.2vw,20px);margin-top:2px}
.episode-slate-index nav{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  padding:8px 0;
  scrollbar-color:#795129 #d4b276;
}
.episode-slate-index button{
  width:100%;
  display:grid;
  grid-template-columns:auto 1fr;
  gap:2px 8px;
  padding:10px 9px;
  border:0;
  border-bottom:1px solid rgba(92,54,24,.2);
  border-radius:3px;
  background:transparent;
  color:#392513;
  font:14px/1.18 Georgia,'Times New Roman',serif;
  text-align:left;
  cursor:pointer;
}
.episode-slate-index button:before{content:'▰';grid-row:1/3;color:#664019;transform:rotate(-8deg)}
.episode-slate-index button b{font-size:14px}.episode-slate-index button span{grid-column:2}
.episode-slate-index button:hover,.episode-slate-index button.active{
  color:#f4d999;
  background:linear-gradient(90deg,#2b1b10,#4b2d16);
  box-shadow:inset 3px 0 #c5943f;
}
.episode-slate-index button:hover:before,.episode-slate-index button.active:before{color:#e8bc68}
.episode-slate-index>a{
  flex:0 0 auto;
  margin-top:8px;
  padding:9px 10px;
  color:#e4bf73;
  background:#1a130d;
  border:1px solid #8c622c;
  border-radius:4px;
  text-align:center;
  text-decoration:none;
  font-size:13px;
}
.episode-reader{
  height:100%;
  min-width:0;
  padding:12px 2vw 18px;
  display:flex;
  flex-direction:column;
}
.episode-reader-title{
  flex:0 0 auto;
  min-width:0;
  margin:0 0 9px;
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap:18px;
  color:#efd08b;
  text-align:center;
  text-transform:uppercase;
}
.episode-reader-title span{font-size:clamp(18px,1.7vw,28px);white-space:nowrap}
.episode-reader-title h1{
  margin:0;
  padding-left:18px;
  border-left:1px solid #b58a42;
  color:#f0dab0;
  font-size:clamp(22px,2.25vw,39px);
  line-height:1.08;
  font-weight:normal;
}
.episode-reader>.episode-slate{
  flex:1 1 auto;
  min-height:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:#171512;
  border:7px solid #2a1b12;
  box-shadow:0 14px 35px rgba(0,0,0,.55),inset 0 0 0 1px #8c642e;
}
.episode-reader>.episode-slate[style*="display:none"]{display:none!important}
.episode-reader>.episode-slate[hidden]{display:none!important}
.approved-episode-layout .clapper{
  flex:0 0 auto;
  min-height:72px;
  padding:11px 18px;
  border-bottom:5px solid #080807;
  color:#f4deb1;
  background:repeating-linear-gradient(135deg,#111 0 42px,#d3bc8d 42px 57px,#111 57px 99px);
}
.approved-episode-layout .clapper span,
.approved-episode-layout .clapper strong,
.approved-episode-layout .clapper small{background:#12110f;border:1px solid #4e3c23}
.approved-episode-layout .slate-paper{
  flex:1 1 auto;
  min-height:0;
  height:auto;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(190px,23%);
  grid-template-rows:1fr;
  gap:0;
  padding:0;
  background:#11100e;
}
.approved-episode-layout .slate-paper>section{
  min-height:0;
  overflow:auto;
  padding:24px clamp(22px,3vw,48px) 26px;
  color:#ead8b6;
  background:radial-gradient(circle at 52% 5%,#24221d,#111210 58%,#0b0c0b);
  border:1px solid #6d512d;
  box-shadow:inset 0 0 38px rgba(0,0,0,.65);
  scrollbar-color:#946b32 #17140f;
}
.approved-episode-layout .slate-paper h2{
  margin:0 0 22px;
  color:#e9ad48;
  font-size:clamp(22px,2vw,34px);
  line-height:1.1;
  text-align:center;
  text-transform:uppercase;
  font-weight:normal;
}
.approved-episode-layout .slate-paper p{
  margin:0 0 .9em;
  color:#eadbc0;
  font-size:clamp(13px,1.02vw,17px);
  line-height:1.5;
}
.approved-episode-layout .filmstrip-live{
  min-width:0;
  min-height:0;
  display:grid;
  grid-template-columns:1fr;
  grid-template-rows:repeat(4,minmax(0,1fr));
  gap:8px;
  padding:13px 17px;
  overflow:hidden;
  background:#0d0d0c;
  border:0;
  border-inline:8px dotted #b3935c;
  border-block:1px solid #6c512d;
}
.approved-episode-layout .filmstrip-live figure{
  position:relative;
  min-height:0;
  margin:0;
  overflow:hidden;
  background:#050505;
  border:2px solid #725729;
  box-shadow:inset 0 0 0 2px #070707;
}
.approved-episode-layout .filmstrip-live figure>span{
  position:absolute;
  z-index:2;
  right:4px;
  top:3px;
  padding:2px 4px;
  color:#e5af43;
  background:rgba(0,0,0,.76);
  font:9px/1 Arial,sans-serif;
}
.approved-episode-layout .filmstrip-live img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  background:#080808;
}
.approved-episode-layout .slate-turns{
  flex:0 0 auto;
  min-height:46px;
  padding:7px 12px;
  border-top:1px solid #7d5c2e;
  background:#11100e;
}
.approved-episode-layout .slate-turns button{cursor:pointer}
.approved-episode-layout .comparison-wrap{max-height:none;color:#ead8b6}
.approved-episode-layout .comparison-wrap th{background:#2d2317;color:#f1cc80}
.approved-episode-layout .comparison-wrap td{border-color:#735831}

@media(max-width:800px){
 .approved-episode-layout{display:block;height:auto;min-height:calc(100dvh - 96px);overflow:visible}
 .episode-slate-index{height:auto;max-height:275px;border-right:0;border-bottom:7px solid #342217}
 .episode-slate-index nav{display:grid;grid-template-columns:1fr 1fr}
 .episode-reader{height:760px;padding:12px}
 .approved-episode-layout .slate-paper{grid-template-columns:minmax(0,1fr) 210px}
}
@media(max-width:560px){
 .episode-slate-index nav{grid-template-columns:1fr}
 .episode-reader{height:auto;min-height:940px}
 .episode-reader-title{align-items:center;gap:8px}.episode-reader-title h1{padding-left:8px}
 .approved-episode-layout .slate-paper{grid-template-columns:1fr;grid-template-rows:minmax(480px,1fr) 390px}
 .approved-episode-layout .filmstrip-live{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}
}

/* The Junction > Ancestry Tree: complete connected family-tree series. */
.family-tree-reader{display:block;width:100%;height:calc(100dvh - 76px);border:0;background:#e7cf9f}
@media(max-width:800px){.family-tree-reader{height:calc(100dvh - 62px)}}

/* October approved artwork: hide its baked-in header while retaining the live navigation. */
.october-art{overflow:hidden;background:#e6d2ab}.october-art-inner{position:relative;margin-top:calc(-1 * var(--art-header));width:100%}.october-art-inner>img{display:block;width:100%;height:auto}.october-art .approved-hotspots{position:absolute;inset:0}.october-art a:focus-visible{outline:3px solid #e8bd61;background:rgba(244,206,131,.18)}.map-reading-page{padding:2rem;background:#e6d2ab;color:#382414;min-height:70vh}.map-reading-page .image-grid{height:70vh;min-height:400px}.welcome-stage{position:relative}.welcome-reading-instructions{position:absolute;right:14%;bottom:21%;width:35%;background:#f4e8ce;color:#382a1b;padding:.4rem .7rem;font-size:clamp(10px,1vw,17px)}.welcome-reading-instructions p{margin:.35em 0}.map-reading-page a{color:#583818}

/* October review 2: explicit readable Novel typography; no density reduction. */
.novel-introduction .rustic-page .book-text{font-size:clamp(18px,1.3vw,21px);line-height:1.46;text-align:justify}
.novel-introduction .rustic-page .book-text .meta{font-size:16px;line-height:1.4}
.welcome-live{background:#ebdfc5 url('assets/welcome-background-v2.png') center/cover no-repeat;color:#281d12;padding:clamp(24px,4vw,65px) 10%;min-height:calc(100vh - 100px)}
.welcome-live h1{font-size:clamp(32px,3vw,48px);font-weight:normal;margin:0 0 30px}
.welcome-columns{display:grid;grid-template-columns:1fr 1fr;gap:7%;font-size:clamp(18px,1.35vw,22px);line-height:1.5}
.welcome-columns p{margin:0 0 1.1em}
.welcome-statement{margin:24px auto 0;max-width:900px;text-align:center;padding:20px;border:3px double #b68a3d;color:#edc26a;background:linear-gradient(#372711,#19120b);box-shadow:0 4px 10px #46382055;font-size:clamp(18px,1.5vw,24px)}
@media(max-width:800px){.welcome-live{padding:30px 6%}.welcome-columns{grid-template-columns:1fr}.novel-introduction .rustic-page .book-text{font-size:18px}}

/* October Draft 3: fasteners grip the photograph, including contain-fit images. */
.book-image .photo-print{position:absolute;isolation:isolate}
.book-image .photo-print>img{display:block;width:100%;height:100%;max-height:none;object-fit:contain;background:transparent;border:0}
.book-image .photo-print .photo-mount{position:absolute;z-index:4;width:16%;max-width:34px;min-width:14px;height:auto;aspect-ratio:1;border:0;opacity:1;pointer-events:none;background:url('assets/photo-corner-gold.png') center/100% 100% no-repeat}
.book-image .photo-print .photo-mount.tl{left:-1px;top:-1px;right:auto;bottom:auto;transform:none}
.book-image .photo-print .photo-mount.tr{right:-1px;top:-1px;left:auto;bottom:auto;transform:rotate(90deg)}
.book-image .photo-print .photo-mount.bl{left:-1px;bottom:-1px;right:auto;top:auto;transform:rotate(270deg)}
.book-image .photo-print .photo-mount.br{right:-1px;bottom:-1px;left:auto;top:auto;transform:rotate(180deg)}
.book-image::before,.book-image::after{display:none!important}
/* Draft 4: larger photo pairs, chosen by their proportions. */
.rustic-page .image-grid.adaptive-photo-grid{gap:12px!important;margin-bottom:86px;padding:0!important}
.rustic-page .image-grid.adaptive-photo-grid.photo-layout-stack{grid-template-columns:1fr!important;grid-template-rows:repeat(2,minmax(0,1fr))!important}
.rustic-page .image-grid.adaptive-photo-grid.photo-layout-side{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:1fr!important}
.rustic-page .image-grid.adaptive-photo-grid .book-image[hidden]{display:none!important}
.rustic-page .image-grid.adaptive-photo-grid .book-image{grid-column:auto!important;grid-row:auto!important}
.photo-turns{position:absolute;left:7%;right:7%;bottom:48px;display:flex;align-items:center;justify-content:space-between;gap:6px;color:#472c16;font-size:12px}
.photo-turns button{border:1px solid #8d6739;border-radius:3px;padding:5px 7px;background:#ead3a7;color:#35200f;font:inherit;cursor:pointer}.photo-turns button:disabled{opacity:.35;cursor:default}

/* Draft 4: exact revised episode scene, with live text above a horizontal filmstrip. */
.episode-layout.reference-episode-layout{position:relative;display:block;width:100%;height:auto;min-height:0;aspect-ratio:1672/831;background:#18100a;overflow:hidden}
.reference-episode-layout>.episode-scene-art{position:absolute;inset:0;width:100%;height:113.237%;max-width:none;object-fit:fill;transform:translateY(-11.69%);pointer-events:none}
.reference-episode-layout>.side-menu{position:absolute;left:2.5%;top:6%;width:15.2%;height:56%;margin:0;padding:1.8% .9%;background:transparent;border:0;box-shadow:none;color:#2c190a;overflow:auto}
.reference-episode-layout>.side-menu h2{font-size:clamp(18px,1.55vw,28px);text-align:center;margin:0 0 12px;padding-bottom:10px;border-bottom:1px solid #8d6428}
.reference-episode-layout>.side-menu a{display:block;color:#34210e;font-size:clamp(14px,1.1vw,20px);padding:clamp(8px,1.1vw,18px) 5px;border-bottom:1px solid #a27a4044;background:transparent}
.reference-episode-layout>.side-menu a.active,.reference-episode-layout>.side-menu a:hover{background:#34230e;color:#f0c783;box-shadow:inset 0 0 0 1px #b48b46}
.reference-episode-layout .episode-reader{position:absolute;left:20.3%;top:17%;width:60.7%;height:80%;display:flex;flex-direction:column;padding:0 1.2%;background:transparent}
.reference-episode-layout .episode-reader-title{flex:0 0 13%;display:grid;grid-template-columns:18% 1fr;align-content:center;align-items:center;gap:3px 12px;margin:0;padding:0 0 8px;color:#f0d7a4;border-bottom:1px solid #ae8139;text-transform:none}
.reference-episode-layout .episode-reader-title>span{font-size:clamp(18px,1.5vw,28px);white-space:nowrap}
.reference-episode-layout .episode-reader-title h1{font-size:clamp(23px,2.1vw,38px);padding-left:12px;margin:0;border-left:1px solid #ad8540;color:#efd7ad;line-height:1.05}
.reference-episode-layout .episode-reader-title>p{grid-column:1/-1;margin:3px 0 0;font-size:clamp(13px,1vw,18px);text-align:center}
.reference-episode-layout .episode-slate{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;background:transparent;border:0;box-shadow:none;margin:0;padding:0}
.reference-episode-layout .episode-slate[hidden]{display:none!important}
.reference-episode-layout .slate-paper{flex:1 1 auto;min-height:0;height:auto;display:grid;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) 41%;gap:8px;padding:0;background:transparent;border:0}
.reference-episode-layout .slate-paper>section{min-height:0;overflow:auto;padding:8px 8.5% 5px;background:transparent;color:#f0deb8;border:0;box-shadow:none;scrollbar-color:#876333 #18130e}
.reference-episode-layout .slate-paper h2{margin:0 0 7px;text-align:center;font-size:clamp(20px,1.7vw,31px);line-height:1.12;color:#e9ac49;font-weight:normal;text-transform:none}
.reference-episode-layout .slate-paper p{margin:0 0 .5em;color:#f0deb8;font-size:clamp(17px,1.12vw,21px);line-height:1.3;text-align:justify}
.reference-episode-layout .filmstrip-live{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:1fr;gap:8px;min-width:0;min-height:0;height:auto;margin:0;padding:10px 6px;overflow:hidden;background:#10100d;border-inline:0;border-block:7px dotted #6c5932;box-shadow:inset 0 0 0 1px #745429}
.reference-episode-layout .filmstrip-live figure{position:relative;min-width:0;min-height:0;margin:0;padding:0 0 16px;background:#060605;border:1px solid #887045;cursor:zoom-in}
.reference-episode-layout .filmstrip-live img{width:100%;height:100%;display:block;object-fit:contain;background:#080806}
.reference-episode-layout .filmstrip-live figcaption{position:absolute;bottom:1px;left:0;right:0;color:#dba643;text-align:center;font-size:11px}
.reference-episode-layout .slate-turns{flex:0 0 8%;display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0;padding:4px 0;background:transparent;border:0;color:#e1be76}
.reference-episode-layout .slate-turns button{border:1px solid #a07a36;background:#100f0b;color:#e5b768;font:clamp(12px,.95vw,17px)/1.2 Georgia,serif;padding:7px 10px;border-radius:3px;cursor:pointer}
.reference-episode-layout .slate-turns button:disabled{opacity:.3;cursor:default}
.reference-episode-layout .slate-turns label{display:flex;align-items:center;gap:5px;font-size:clamp(11px,.9vw,16px)}
.reference-episode-layout .slate-turns select{max-width:15vw;background:#17120b;border:1px solid #8c682d;color:#e8cd91;padding:4px;font:inherit}
.reference-episode-layout .episode-crew{position:absolute;left:82.7%;top:53%;width:9.8%;display:flex;flex-direction:column;gap:5px;transform:rotate(7deg);color:#d3b67e;font:clamp(8px,.65vw,12px)/1.15 Georgia,serif;text-align:left}
.reference-episode-layout .episode-crew b{text-align:center;text-transform:uppercase;margin-bottom:4px}.reference-episode-layout .episode-crew em{font-style:normal}
.reference-episode-layout .comparison-wrap{max-height:none;color:#ecdab2}.reference-episode-layout .comparison-wrap th{background:#2e2517;color:#edc37a}.reference-episode-layout .comparison-wrap td{border-color:#785c2e}
@media(max-width:1000px){.episode-layout.reference-episode-layout{aspect-ratio:auto;min-height:950px}.reference-episode-layout .episode-reader{left:20%;width:64%;top:17%;height:80%}.reference-episode-layout .episode-reader-title h1{font-size:23px}.reference-episode-layout .episode-crew{display:none}.reference-episode-layout>.side-menu{left:2%;width:17%;height:58%}.reference-episode-layout .slate-turns select{max-width:22vw}}
@media(max-width:650px){.episode-layout.reference-episode-layout{min-height:1200px}.reference-episode-layout>.side-menu{position:relative;left:auto;top:auto;width:100%;height:auto;padding:15px;background:#e8ce9d}.reference-episode-layout>.side-menu h2{margin-bottom:8px}.reference-episode-layout>.side-menu a{display:inline-block;font-size:14px;padding:7px}.reference-episode-layout .episode-reader{left:3%;top:23%;width:94%;height:74%;padding:8px;background:#17130ef5;border:2px solid #765b2d}.reference-episode-layout .episode-reader-title{grid-template-columns:22% 1fr;flex-basis:13%}.reference-episode-layout .episode-reader-title h1{font-size:23px}.reference-episode-layout .slate-paper{grid-template-rows:minmax(0,1fr) 38%}.reference-episode-layout .slate-paper>section{padding:10px 12px}.reference-episode-layout .filmstrip-live{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:1fr 1fr}.reference-episode-layout .slate-turns select{max-width:29vw}.reference-episode-layout .slate-turns button{padding:6px;font-size:12px}}

.rustic-page .image-grid.adaptive-photo-grid.photo-layout-single{grid-template-columns:1fr!important;grid-template-rows:1fr!important}

/* Shared viewport sizing: artwork and its hotspot plane occupy the same stage. */
:root{--site-header-height:74px;--site-breadcrumb-height:34px;--content-stage-height:calc(100dvh - var(--site-header-height) - var(--site-breadcrumb-height))}
#app{min-height:var(--content-stage-height)}
.approved-landing{width:100%;max-width:none;min-width:0;height:calc(100dvh - var(--site-breadcrumb-height));margin:calc(-1 * var(--site-header-height)) 0 0;aspect-ratio:auto}
.approved-landing>img{width:100%;height:100%;object-fit:fill}
/* The SVG viewBox crops the embedded menu from both Mini-Series landings.
   No negative offset or overlay is needed to conceal the old menu. */
.approved-landing.cropped-landing{height:var(--content-stage-height);margin:0;overflow:hidden}
.cropped-landing-art{display:block;width:100%;height:100%;overflow:hidden}

/* The journey map occupies one open drawer, without a photo-grid wrapper. */
.map-drawer-page{display:flex;flex-direction:column;height:var(--content-stage-height);min-height:460px;overflow:hidden;background:#25160d;color:#efdbad}
.map-drawer-heading{flex:none;padding:10px 20px 9px;text-align:center;background:linear-gradient(180deg,#352013,#1d120b);border-bottom:1px solid #96713d}
.map-drawer-heading h1{margin:0;font-size:clamp(23px,2.2vw,34px);line-height:1.15;font-weight:normal;color:#efdbad}
.map-drawer-heading p{margin:5px 0 0;font-size:14px;color:#d7be8b}
.map-drawer-stage{position:relative;flex:1;min-height:0;overflow:hidden}
.map-drawer-art{display:block;width:100%;height:100%;object-fit:fill}
.drawer-map-sheet{position:absolute;inset:0;width:100%;height:100%;display:block;margin:0;padding:0;border:0;border-radius:1px;background:transparent;transform-origin:0 0;cursor:zoom-in;box-shadow:0 3px 10px #0009}
.drawer-map-sheet img{display:block;width:100%;height:100%;border:0}
.drawer-map-sheet:focus-visible{outline:4px solid #f4cc76;outline-offset:3px}
@media(max-width:650px){.map-drawer-page{min-height:360px}.map-drawer-heading{padding:9px 12px}.map-drawer-heading p{font-size:13px}}

/* Match the prose's readable type size in the Episode 1 and 2 Slate 7 tables.
   The existing reading pane scrolls through the complete table. */
.reference-episode-layout:is([data-episode="1"],[data-episode="2"]) .episode-slate[data-slate="6"] .comparison-wrap{overflow:visible;max-height:none}
.reference-episode-layout:is([data-episode="1"],[data-episode="2"]) .episode-slate[data-slate="6"] .comparison-wrap table{font-size:clamp(17px,1.12vw,21px);line-height:1.4;table-layout:fixed}
.reference-episode-layout:is([data-episode="1"],[data-episode="2"]) .episode-slate[data-slate="6"] .comparison-wrap :is(th,td){padding:8px;overflow-wrap:anywhere}
.reference-episode-layout:is([data-episode="1"],[data-episode="2"]) .episode-slate[data-slate="6"] .comparison-wrap th:first-child{width:22%}
.rustic-stage{height:var(--content-stage-height)}
@media(min-width:1001px){.episode-layout.reference-episode-layout{height:var(--content-stage-height);min-height:650px;aspect-ratio:auto}}

/* Draft 7: measure page breaks in the reader's actual viewport. */
.measured-book .rustic-spread[hidden]{display:none!important}
.measured-book .rustic-page .book-text{
 font-size:clamp(18px,1.3vw,21px);line-height:1.46;
 overflow:visible;overflow-wrap:break-word;padding-bottom:4px;
}
.measured-book .rustic-page .book-text .meta{font-size:16px;line-height:1.4}
.measured-book .book-text ul{margin-top:0;margin-bottom:0;padding-left:1.15em}
.measured-book .book-text li.list-continuation{list-style:none}
.measured-book .book-text p:last-child,.measured-book .book-text li:last-child{margin-bottom:0}
.measured-book .book-turn{font-size:12px;max-width:44%;padding:5px 9px}
.measured-book .book-page-number{font-size:11px}
.measured-book .footnote-ref{display:inline;padding:0 1px}
.measured-book .image-grid.adaptive-photo-grid:not(.has-photo-turns){margin-bottom:42px}
.rustic-overlay>.side-menu{overflow-y:auto;scrollbar-width:thin}

/* A complete flowing reading layout is the fallback when a spread cannot fit.
   It is also used on narrow screens; source text is never clipped or discarded. */
.rustic-stage.book-flow{height:auto;min-height:var(--content-stage-height);min-width:0;overflow:visible;background-size:cover}
.book-flow .rustic-overlay{position:relative;display:grid;grid-template-columns:minmax(180px,20%) minmax(0,1fr);gap:24px;min-width:0;padding:28px}
.book-flow .rustic-overlay>.side-menu{position:relative;inset:auto;width:auto;height:auto;max-height:none;align-self:start;background:#ead2a4;padding:20px;overflow:visible}
.book-flow .rustic-book-area{position:relative;inset:auto;width:auto;height:auto;min-width:0}
.book-flow .measured-book{height:auto;transform:none}
.book-flow .rustic-spread{height:auto;gap:20px;align-items:start}
.book-flow .rustic-page{height:auto;overflow:visible;padding:24px!important;background:#eed9ae!important;border:1px solid #997448;box-shadow:0 4px 18px #0005}
.book-flow .rustic-page .book-text{flex:none;margin-bottom:24px}
.book-flow .right-page{height:650px}
.october-art-frame{position:relative;width:100%;overflow:hidden}
.october-art-frame>.cropped-landing-art{position:absolute;inset:0}
.october-art-frame>.approved-hotspots:empty{display:none}
.art-enlarge{display:block;width:100%;height:100%;position:absolute;inset:0;border:0;padding:0;background:transparent;cursor:zoom-in}
.art-enlarge:focus-visible,.standalone-map:focus-visible{outline:4px solid #f4cc76;outline-offset:-4px}
.standalone-map{display:block;width:min(100%,1000px);margin:20px auto 0;padding:0;border:0;background:transparent;cursor:zoom-in}
.standalone-map img{display:block;width:100%;height:auto}
.rail-map-page{text-align:center}
@media(max-width:899px){
 .book-flow .rustic-overlay{display:block;padding:16px}
 .book-flow .rustic-overlay>.side-menu{margin-bottom:20px}
 .book-flow .side-menu a{display:inline-block;margin-right:8px;font-size:16px;padding:8px}
 .book-flow .side-menu a.chapter-sub{font-size:14px}
 .book-flow .rustic-spread{grid-template-columns:1fr}
 .book-flow .measured-book .book-text{font-size:18px}
 .book-flow .right-page{height:680px}
}
