
  :root{
    --oxblood:#6E1E2E;
    --ice:#E4EDF1;
    --dark:#1B1C1C;
    --band-light:#C7CDD1;
    --line: rgba(228,237,241,.35);
  }
  *{box-sizing:border-box;margin:0;padding:0;}
  html,body{overflow-x:hidden;background:var(--dark);}
  body{font-family:'Space Mono',monospace;color:var(--ice);}
  h1,h2,h3,h4,h5,h6{font-family:'Bebas Neue',sans-serif;}
  button,input,select,textarea{font-family:inherit;}
  /* Native cursor: the hotspot follows the arrow tip, with no tracking delay. */
  @media (any-pointer:fine){
    html,body,body *{cursor:url('images/avalanche-cursor.svg') 9 7,auto !important;}
  }
  .scanlines{position:fixed;inset:0;z-index:50;pointer-events:none;opacity:.5;
    background:repeating-linear-gradient(to bottom, rgba(255,255,255,.025) 0px, rgba(255,255,255,.025) 1px, transparent 1px, transparent 3px);}

  /* ---------- HERO : 5 cascading panels, 5 rows ---------- */
  .hero{position:relative;height:100vh;min-height:640px;overflow:hidden;background:var(--dark);animation:heroReveal 1.6s ease-out;}
  @keyframes heroReveal{from{opacity:0;}to{opacity:1;}}
  .panel{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;z-index:1;}
  .pimg{position:absolute;top:0;width:26%;height:100%;object-fit:cover;object-position:50% 20%;
    filter:grayscale(.78) contrast(1.15) brightness(.9);pointer-events:none;opacity:0;}
  .hero .pimg:first-child{opacity:1;}
  .hero .tint{z-index:3;}
  @media (prefers-reduced-motion:reduce){.hero{animation:none;}}
  .tint{position:absolute;inset:0;background:linear-gradient(160deg,#4b5561,#1c232a);
    mix-blend-mode:multiply;opacity:.55;pointer-events:none;}

  .hero-glow{position:absolute;inset:0;z-index:4;pointer-events:none;
    box-shadow:inset 0 0 70px rgba(110,30,46,.55), inset 0 0 180px rgba(110,30,46,.28);}

  .hero-content{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;
    align-items:center;justify-content:center;pointer-events:none;text-align:center;}
  .mark{width:78px;height:auto;margin-bottom:.7rem;filter:drop-shadow(0 2px 10px rgba(0,0,0,.5));}
  .title{font-family:'Bebas Neue',sans-serif;font-size:clamp(4rem,13vw,10rem);letter-spacing:.08em;
    line-height:.88;text-shadow:0 2px 26px rgba(0,0,0,.6);}
  .subtitle{font-size:clamp(.85rem,1.8vw,1.2rem);letter-spacing:.55em;margin-top:.7em;margin-left:.55em;opacity:.9;}

  .crosshair{position:absolute;width:16px;height:16px;z-index:6;}
  .crosshair::before,.crosshair::after{content:'';position:absolute;background:var(--oxblood);box-shadow:0 0 5px rgba(110,30,46,.8);}
  .crosshair::before{width:100%;height:1px;top:50%;left:0;}
  .crosshair::after{width:1px;height:100%;left:50%;top:0;}
  .ch-tl{top:26px;left:26px;} .ch-tr{top:26px;right:26px;}
  .ch-bl{bottom:26px;left:26px;} .ch-br{bottom:26px;right:26px;}

  .scroll-cue{position:absolute;bottom:30px;left:50%;transform:translateX(-50%);z-index:6;
    display:flex;flex-direction:column;align-items:center;gap:6px;opacity:.6;}
  .scroll-cue i{width:1px;height:26px;background:var(--line);display:block;}

  /* ---------- BOTTOM: access panels ---------- */
  .archive-area{position:relative;isolation:isolate;background:var(--dark);}
  .archive-grid{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none;}
  .archive-grid::before,.archive-grid::after{content:'';position:absolute;inset:0;
    background-repeat:repeat;}
  /* AstraOS's 42px / 168px grids, drifting at +6px/s and -3px/s. */
  .archive-grid::before{opacity:.9;
    background-image:linear-gradient(rgba(228,237,241,.08) 1px,transparent 1px),
      linear-gradient(90deg,rgba(228,237,241,.08) 1px,transparent 1px);
    background-size:42px 42px;animation:archive-grid-small 7s linear infinite;}
  .archive-grid::after{opacity:.7;
    background-image:linear-gradient(rgba(228,237,241,.12) 1px,transparent 1px),
      linear-gradient(90deg,rgba(228,237,241,.12) 1px,transparent 1px);
    background-size:168px 168px;animation:archive-grid-large 56s linear infinite;}
  @keyframes archive-grid-small{to{background-position:42px 42px;}}
  @keyframes archive-grid-large{to{background-position:-168px -168px;}}
  body.timeline-video-active .archive-grid::before,
  body.timeline-video-active .archive-grid::after{animation-play-state:paused;}
  @media (prefers-reduced-motion:reduce){
    .archive-grid::before,.archive-grid::after{animation:none;}
  }
  .band-wrap{width:calc(100% - 64px);max-width:1200px;margin:0 auto;padding:24px 0 72px;
    display:flex;flex-direction:column;gap:20px;}
  .band{--cinema-bar-height:56px;position:relative;padding-block:var(--cinema-bar-height);overflow:hidden;background:var(--dark);
    border:1.5px solid rgba(110,30,46,.5);
    box-shadow:0 0 22px rgba(110,30,46,.14);
    cursor:pointer;display:block;
    transition:border-color .3s ease, box-shadow .3s ease, transform .3s ease;}
  .band:hover{border-color:var(--oxblood);box-shadow:0 0 42px rgba(110,30,46,.5);}
  .band::before{content:'';position:absolute;top:0;left:0;width:100%;height:var(--cinema-bar-height);
    background:#181c1f;border-bottom:1px solid rgba(110,30,46,.65);pointer-events:none;}
  .band-toggle{position:absolute;inset:0;width:100%;height:100%;z-index:5;
    appearance:none;border:0;background:none;color:var(--ice);font:inherit;cursor:pointer;}
  .band-toggle:focus-visible{outline:2px solid var(--ice);outline-offset:-5px;}
  .band-handle-strip{position:absolute;bottom:0;left:0;width:100%;height:var(--cinema-bar-height);
    display:flex;align-items:center;justify-content:center;background:#181c1f;
    border-top:1px solid rgba(110,30,46,.65);transition:background .22s ease;}
  .band-handle{display:flex;align-items:center;justify-content:center;width:144px;height:34px;
    border:1px solid rgba(228,237,241,.48);border-radius:2px;background:rgba(228,237,241,.025);
    transition:transform .22s ease,border-color .22s ease;}
  .band-handle-chevron{width:18px;height:18px;border-right:3px solid var(--ice);border-bottom:3px solid var(--ice);
    transform:translateY(-4px) rotate(45deg);transition:transform .25s ease;}
  .band:hover .band-handle-strip,.band-toggle:focus-visible .band-handle-strip,
  .band.is-open .band-handle-strip{background:#351e28;}
  .band:hover .band-handle{transform:translateY(2px);border-color:#c17a8a;}
  .band.is-open .band-handle{transform:none;border-color:#c17a8a;}
  .band-toggle[aria-expanded="true"] .band-handle-chevron{transform:translateY(4px) rotate(225deg);}
  .section-panel{position:relative;overflow:hidden;margin-top:-20px;
    border:1px solid rgba(110,30,46,.5);border-top:0;}
  .section-panel[hidden]{display:none;}
  .archive-section{background:#1b1c1c;}
  .archive-section-content{padding:28px 5% 34px;}
  .archive-section-content p{font-size:15px;line-height:1.7;color:var(--ice);}
  .archive-section-content p+p{margin-top:16px;}
  .affiliation-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:14px;list-style:none;margin-top:22px;}
  .affiliation-list li{padding:22px 18px;background:#24282a;border:1px solid rgba(110,30,46,.5);
    font-family:'Bebas Neue',sans-serif;font-size:26px;letter-spacing:.04em;}

  .band-crosshair{position:absolute;width:13px;height:13px;z-index:4;}
  .band-crosshair::before,.band-crosshair::after{content:'';position:absolute;background:var(--oxblood);box-shadow:0 0 5px rgba(110,30,46,.8);}
  .band-crosshair::before{width:100%;height:1px;top:50%;left:0;}
  .band-crosshair::after{width:1px;height:100%;left:50%;top:0;}
    .bc-tl{top:14px;left:14px;} .bc-tr{top:14px;right:14px;} .bc-bl{bottom:14px;left:14px;} .bc-br{bottom:14px;right:14px;}

  .band-label-wrap{position:relative;z-index:3;text-align:center;}
  .band-label{display:block;font-family:'Bebas Neue',sans-serif;
    font-size:clamp(2rem,5.5vw,3.6rem);letter-spacing:.1em;color:#fff;
    -webkit-text-stroke:1.5px rgba(18,23,28,.8);text-shadow:0 3px 14px rgba(0,0,0,.55);}
  .band-sub{display:block;font-size:clamp(.65rem,1.4vw,.95rem);letter-spacing:.3em;
    color:#fff;opacity:.85;margin-top:.35rem;text-shadow:0 2px 8px rgba(0,0,0,.6);}

  /* Frame the artwork itself, excluding the margins baked into each export. */
  .band-picture{position:relative;display:block;aspect-ratio:1920 / 749;overflow:hidden;pointer-events:none;}
  .band-artwork{position:absolute;display:block;max-width:none;
    width:calc(100% * 749 / var(--art-height));height:calc(100% * 1080 / var(--art-height));
    left:50%;top:calc(-100% * var(--art-top) / var(--art-height));transform:translateX(-50%);pointer-events:none;}
  .band-affiliations{--art-top:222;--art-height:590;}
  .band-timeline{--art-top:222;--art-height:590;}
  .band-dossiers{--art-top:239;--art-height:587;}
  .band-footage{--art-top:145;--art-height:744;}
  @media (prefers-reduced-motion:reduce){
    .band-affiliations:hover,.band-timeline:hover,.band-dossiers:hover,.band-footage:hover{transform:none;}
    .band-handle-strip,.band-handle,.band-handle-chevron{transition:none;}
    .band:hover .band-handle{transform:none;}
  }

  @media (max-width:640px){
    .band-wrap{width:calc(100% - 32px);padding:20px 0 48px;gap:16px;}
    .band{--cinema-bar-height:52px;}
    .band-handle{width:128px;}
    .section-panel{margin-top:-16px;}
    .band-sub{letter-spacing:.15em;}
  }

  .cta{position:relative;min-height:100vh;display:flex;overflow:hidden;}
  .cta-left{flex:0 0 44%;background:linear-gradient(155deg,#57202c,#3c1620);
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;
    position:relative;}
  .cta-right{flex:1;background:#2f3336;display:flex;flex-direction:column;
    align-items:flex-start;justify-content:center;padding:6vw 7vw;gap:26px;position:relative;}
  .cta-left::after{content:'';position:absolute;top:0;right:0;width:2px;height:100%;
    background:linear-gradient(to bottom, transparent, rgba(228,237,241,.35), transparent);}

  .cover-wrap{position:relative;cursor:pointer;}
  .cover-wrap img{display:block;width:min(300px,60vw);height:auto;
    box-shadow:14px 18px 40px rgba(0,0,0,.5);}
  .spine{position:absolute;left:-8px;top:6px;bottom:-6px;width:8px;
    background:linear-gradient(to right, #0c0c0d, #26282a);box-shadow:inset -2px 0 4px rgba(0,0,0,.5);}
  .zoom{position:absolute;bottom:14px;right:14px;width:40px;height:40px;border-radius:50%;
    background:rgba(18,20,21,.75);border:1px solid rgba(228,237,241,.4);
    display:flex;align-items:center;justify-content:center;opacity:0;
    transition:opacity .25s ease, background .25s ease;pointer-events:none;}
  .cover-wrap:hover .zoom{opacity:1;}
  .cover-wrap:hover img{filter:brightness(.85);}
  .zoom svg{width:18px;height:18px;}
  .cover-cap{font-size:.68rem;letter-spacing:.15em;opacity:.65;}

  .eyebrow{font-family:'Bebas Neue',sans-serif;font-size:1.1rem;letter-spacing:.25em;
    color:var(--oxblood);}
  .book-title{font-family:'Bebas Neue',sans-serif;font-size:clamp(2.2rem,4vw,3.4rem);
    letter-spacing:.06em;line-height:1;}
  .blurb-wrap{max-width:46ch;}
  .blurb{max-height:8.6em;overflow:hidden;position:relative;font-size:.85rem;
    line-height:1.7;color:rgba(228,237,241,.85);transition:max-height .45s ease;}
  .blurb.expanded{max-height:600px;}
  .blurb::after{content:'';position:absolute;left:0;right:0;bottom:0;height:2.6em;
    background:linear-gradient(to bottom, transparent, #2f3336);transition:opacity .3s ease;}
  .blurb.expanded::after{opacity:0;}
  .read-more{margin-top:10px;background:none;border:none;color:var(--oxblood);
    font-family:'Space Mono',monospace;font-size:.72rem;letter-spacing:.12em;
    cursor:pointer;padding:0;text-decoration:underline;text-underline-offset:4px;}

  .buy-row{display:flex;gap:14px;flex-wrap:wrap;margin-top:6px;}
  .buy-btn{border:1.5px solid rgba(110,30,46,.65);background:rgba(110,30,46,.08);
    color:var(--ice);font-family:'Space Mono',monospace;font-size:.75rem;letter-spacing:.18em;
    padding:.95em 1.8em;cursor:pointer;transition:border-color .25s ease, box-shadow .25s ease, background .25s ease;}
  .buy-btn:hover{border-color:var(--oxblood);background:rgba(110,30,46,.2);
    box-shadow:0 0 26px rgba(110,30,46,.35);}

  .lightbox{position:fixed;inset:0;background:rgba(10,10,11,.92);display:none;
    align-items:center;justify-content:center;z-index:100;cursor:zoom-out;}
  .lightbox.open{display:flex;}
  .lightbox img{max-height:88vh;max-width:88vw;box-shadow:0 24px 70px rgba(0,0,0,.6);}
  .lb-close{position:absolute;top:26px;right:34px;background:none;border:none;
    color:var(--ice);font-size:2.2rem;line-height:1;cursor:pointer;opacity:.8;}

  @media (max-width:820px){
    .cta{flex-direction:column;}
    .cta-left,.cta-right{flex:none;width:100%;}
    .cta-left{padding:60px 0;}
    .cta-right{padding:48px 8vw;}
  }

  

  .dossier-expand{overflow:hidden;background:#1B1C1C;}
  .dg-grid{display:grid;grid-template-columns:repeat(auto-fill,180px);justify-content:center;gap:26px;padding:20px 3% 40px;}
  .dg-card{position:relative;background:#24282a;border:1.5px solid rgba(110,30,46,.5);box-shadow:0 0 10px rgba(110,30,46,.12);transition:border-color .25s ease, box-shadow .25s ease, transform .25s ease;}
  .dg-card:hover{border-color:var(--oxblood);box-shadow:0 0 18px rgba(110,30,46,.45);transform:translateY(-2px);}
  .dg-img{width:180px;height:200px;object-fit:cover;object-position:50% 15%;display:block;filter:grayscale(.8) contrast(1.1) brightness(.82);}
  .dg-portrait-crop{width:180px;height:200px;overflow:hidden;}
  .dg-portrait-crop .dg-img{transform:scale(1.1);transform-origin:50% 50%;}
  .dg-name{background:var(--oxblood);color:#fff;font-family:'Bebas Neue',sans-serif;
    font-size:1rem;letter-spacing:.07em;padding:9px 12px;}
  .dg-badge-wrap{position:absolute;top:8px;left:8px;z-index:2;}
  .dg-badge{display:block;width:20px;height:20px;}
  .dg-badge-tri{width:22px;height:auto;}
  .dg-badge-rect,.dg-badge-circ{width:auto;height:auto;display:flex;align-items:center;justify-content:center;
    background:rgba(18,20,21,.8);border:1px solid rgba(228,237,241,.5);color:var(--ice);
    font-family:'Space Mono',monospace;font-size:.55rem;letter-spacing:.03em;padding:3px 5px;}
  .dg-badge-circ{border-radius:50%;width:22px;height:22px;padding:0;}
  .dg-badge-tiny{font-size:.42rem;padding:2px 3px;border-radius:3px;}

  
  

  .dg-badge-img{width:auto;height:22px;display:block;}
  .dg-harewire{width:26px;height:23px;overflow:hidden;}
  .dg-harewire .dg-badge-img{width:42px;height:28px;max-width:none;margin:-2.5px 0 0 -8px;}

  .tl-expand{position:relative;overflow:hidden;background:var(--dark);}
  .dossier-modal{position:fixed;inset:0;z-index:200;display:none;align-items:flex-start;justify-content:center;
    padding:60px 20px;overflow-y:auto;opacity:0;transition:opacity .35s ease;}
  .dossier-modal.open{display:flex;opacity:1;}
  .dossier-modal-backdrop{position:fixed;inset:0;background:rgba(10,10,11,.88);z-index:-1;}
  .dossier-modal-inner{position:relative;max-width:900px;width:100%;}
  .dossier-modal-close{position:absolute;top:-40px;right:0;background:none;border:none;
    color:var(--ice);font-size:2rem;line-height:1;cursor:pointer;opacity:.8;z-index:5;}
  #mosesCard{cursor:pointer;}


  .mdl-card{max-width:900px;width:100%;box-shadow:0 30px 80px rgba(0,0,0,.5);
    background:linear-gradient(155deg,#6E1E2E,#4a1420);padding-bottom:22px;}

  .mdl-top{display:flex;}
  .mdl-portrait{flex:0 0 34%;padding:22px 0 22px 22px;box-sizing:border-box;position:relative;}
  .mdl-portrait .mdl-photo{width:100%;height:100%;object-fit:cover;display:block;border-radius:5px;
    border:1.5px solid rgba(110,30,46,.5);filter:grayscale(.7) contrast(1.1);object-position:50% 20%;}

  .mdl-grid{flex:1;display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:22px;
    grid-auto-rows:minmax(64px,auto);}
  .mdl-tile{background:var(--tile);border-radius:5px;display:flex;align-items:center;gap:12px;padding:0 18px;}
  .mdl-tile.mdl-wide{grid-column:span 2;}
  .mdl-tile svg{flex:0 0 22px;width:22px;height:22px;}
  .mdl-val{font-family:'Bebas Neue',sans-serif;font-size:1.35rem;letter-spacing:.06em;}
  .mdl-tile.mdl-small{grid-column:span 1;flex-direction:column;justify-content:center;
    align-items:center;gap:4px;padding:14px 8px;text-align:center;}
  .mdl-big{font-family:'Bebas Neue',sans-serif;font-size:1.7rem;letter-spacing:.05em;}
  .mdl-cap{font-size:.6rem;letter-spacing:.15em;opacity:.7;}
  .mdl-tile.mdl-small img{width:30px;height:auto;margin-bottom:2px;}

  .mdl-stack{padding:0 22px;display:flex;flex-direction:column;gap:10px;margin-top:10px;}
  .mdl-block{background:var(--tile);border-radius:5px;padding:18px 20px;}
  .mdl-block-label{display:block;font-size:.6rem;letter-spacing:.2em;opacity:.55;margin-bottom:10px;}

  /* description + traits, combined */
  .mdl-desc{font-size:.9rem;line-height:1.6;margin-bottom:12px;}
  .mdl-traits{display:flex;flex-wrap:wrap;gap:8px;}
  .mdl-trait{border:1px solid rgba(228,237,241,.3);border-radius:3px;padding:5px 10px;
    font-size:.62rem;letter-spacing:.08em;opacity:.85;}

  /* dropdown blocks (timeline, aura) */
  .mdl-drop-head{display:flex;align-items:center;justify-content:space-between;cursor:pointer;}
  .mdl-drop-head .mdl-block-label{margin-bottom:0;}
  .mdl-drop-chev{width:9px;height:9px;border-right:1.5px solid var(--ice);border-bottom:1.5px solid var(--ice);
    transform:rotate(45deg);opacity:.6;transition:transform .3s ease;flex:0 0 auto;}
  .mdl-drop-body{max-height:0;overflow:hidden;transition:max-height .4s ease;}
  .mdl-block.mdl-open .mdl-drop-chev{transform:rotate(225deg);}
  .mdl-block.mdl-open .mdl-drop-body{margin-top:14px;}

  .mdl-tl-entries{display:flex;flex-direction:column;gap:9px;}
  .mdl-tl-entry{display:flex;align-items:center;gap:16px;}
  .mdl-tl-year{font-family:'Bebas Neue',sans-serif;font-size:1.05rem;letter-spacing:.05em;flex:0 0 55px;}
  .mdl-redact-bar{display:inline-block;height:.85em;width:170px;background:#0a0a0a;border-radius:2px;}

  .mdl-bio-text{max-height:5.2em;overflow:hidden;position:relative;font-size:.85rem;line-height:1.65;
    color:rgba(228,237,241,.85);transition:max-height .45s ease;margin-top:12px;}
  .mdl-bio-text.mdl-expanded{max-height:900px;}
  .mdl-bio-text::after{content:'';position:absolute;left:0;right:0;bottom:0;height:2.4em;
    background:linear-gradient(to bottom, transparent, var(--tile));transition:opacity .3s ease;}
  .mdl-bio-text.mdl-expanded::after{opacity:0;}
  .mdl-read-more{margin-top:10px;background:none;border:none;color:var(--oxblood);
    font-family:'Space Mono',monospace;font-size:.72rem;letter-spacing:.12em;
    cursor:pointer;padding:0;text-decoration:underline;text-underline-offset:4px;}

  @media (max-width:640px){
    .mdl-top{flex-direction:column;}
    .mdl-portrait{flex:none;height:280px;}
    .mdl-grid{grid-template-columns:repeat(2,1fr);}
    .mdl-tile.mdl-wide{grid-column:span 2;}
    .mdl-redact-bar{width:110px;}
  }

  .mdl-corner-badge{position:absolute;top:24px;left:24px;width:22%;height:auto;z-index:2;}

  .mdl-card{--tile:#2f3336;}

  .access-tag{position:absolute;top:-40px;left:0;font-family:'Space Mono',monospace;font-size:.62rem;
    letter-spacing:.1em;color:var(--ice);opacity:.6;}
