/* New A = C's composition with D's materials, revealed by scrolling.
   Two raised sheets: the hero sheet (note on the left, the clickable project stickers in
   neat rows on the right) and the landscape loose-leaf with the tickets. Decorative
   objects lie loose on the dotted ground outside the sheets, as in D. */

.a-id{flex-direction:row!important;align-items:center;gap:12px}
.a-id img{width:28px;height:28px}
.a-id>span{display:flex;flex-direction:column}

/* Raised sheet: paper, a second sheet slipped under it, short paper shadow. */
/* The under-sheet is drawn with offset shadows: a pseudo-element with z-index:-1 would sit
   above the sheet's own background, because the sheet is its own stacking context. */
.a-sheet{position:relative;background:var(--paper);border-radius:4px;
  box-shadow:0 0 0 .5px rgb(60 50 30/.07),1px 2px 3px rgb(60 50 30/.08),9px 10px 0 -1px #f3eee3,9px 10px 0 -.5px rgb(60 50 30/.1),12px 22px 34px -12px rgb(60 50 30/.22)}

/* ----- Scroll stage ----- */
.a-stage{position:relative;height:calc(100vh + 170vh)}
.a-sticky{position:sticky;top:0;height:100vh;overflow:clip}
.intro-off .a-stage,.static-stage .a-stage{height:auto}
.intro-off .a-sticky,.static-stage .a-sticky{position:relative;height:auto;overflow:visible;padding:16px 0 40px}

.hero-sheet{position:absolute;top:22px;bottom:30px;left:max(150px,calc(50% - 560px));right:max(150px,calc(50% - 560px));z-index:2;
  display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:min(4vw,52px);align-items:center;padding:clamp(28px,5vh,56px) clamp(28px,3.4vw,52px)}
.intro-off .hero-sheet,.static-stage .hero-sheet{position:relative;inset:auto;margin:0 auto;width:min(1120px,calc(100% - 300px))}

.a-left{position:relative}
.a-note{padding:clamp(24px,4vh,40px) clamp(22px,2.6vw,38px) clamp(26px,4.4vh,42px);rotate:-1.8deg}
.a-note .tape{position:absolute}
.note-eyebrow{margin:0 0 14px;font:500 11px/1.3 var(--f-label);letter-spacing:.1em;text-transform:uppercase;color:#7a6618}
.a-note h1{margin:0;font:400 min(3.7vw,5.9vh,52px)/1.04 var(--f-display);font-variation-settings:'opsz' 72;letter-spacing:-.02em;color:#2d2608}
.note-intro{margin:clamp(12px,2vh,20px) 0 0;font-size:clamp(15px,1.25vw,17.5px);line-height:1.5;color:#4f4416}
.note-draft{margin:8px 0 0;font-size:14px;color:#5f531f}
.a-contact{display:flex;flex-wrap:wrap;gap:4px 18px;margin:clamp(16px,3vh,30px) 0 0 6px;font:400 13px/1.6 var(--f-label)}
.a-contact a{padding:4px 0;text-underline-offset:3px;text-decoration-color:var(--hair)}

/* Clickable stickers, lined up inside the sheet. */
.a-right{display:grid;gap:clamp(14px,3vh,34px);align-content:center}
.pick-title{margin:0 0 clamp(8px,1.6vh,16px);font:400 26px/1 'Reenie Beanie',cursive;color:var(--ink-3)}
.pick-row{display:grid;gap:clamp(8px,1.2vw,18px) clamp(10px,1.4vw,22px)}
.work-row{grid-template-columns:repeat(3,minmax(0,1fr))}
.play-row{grid-template-columns:repeat(6,minmax(0,1fr))}
.st{position:relative;display:grid;justify-items:center;gap:6px;text-decoration:none;color:inherit;text-align:center}
.st-art{display:block;width:var(--sz);rotate:var(--r);transition:transform .5s var(--ease-paper),filter .4s;
  filter:drop-shadow(2.5px 0 0 #fff) drop-shadow(-2.5px 0 0 #fff) drop-shadow(0 2.5px 0 #fff) drop-shadow(0 -2.5px 0 #fff) drop-shadow(1px 2px 1px rgb(60 50 30/.22)) drop-shadow(3px 6px 6px rgb(60 50 30/.1))}
.work-row .st{--sz:min(9vw,15vh,128px)}
.play-row .st{--sz:min(5.4vw,9.5vh,84px)}
.st-art svg{display:block;width:100%;height:auto;overflow:visible}
.st:hover .st-art,.st:focus-visible .st-art{transform:translateY(-6px) scale(1.07) rotate(calc(var(--r) * -.6));
  filter:drop-shadow(2.5px 0 0 #fff) drop-shadow(-2.5px 0 0 #fff) drop-shadow(0 2.5px 0 #fff) drop-shadow(0 -2.5px 0 #fff) drop-shadow(2px 6px 3px rgb(60 50 30/.2)) drop-shadow(10px 18px 14px rgb(60 50 30/.16))}
.st:focus-visible{outline:none}
.st:focus-visible .st-name{outline:2px solid var(--navy);outline-offset:2px}
.st-name{font:500 13px/1.2 var(--f-body)}
.play-row .st-name{font:400 17px/1 'Reenie Beanie',cursive;color:var(--ink-2)}
.st-status{font:500 9.5px/1.2 var(--f-label);letter-spacing:.08em;text-transform:uppercase;color:var(--tone)}

/* Loose decorative objects outside the sheets. */
.decor-out{position:absolute;inset:0;z-index:1;pointer-events:none}
.dec{position:absolute;width:var(--w);rotate:var(--r)}
.dec svg{display:block;width:100%;height:auto;filter:drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(1px 2px 1.5px rgb(60 50 30/.2))}

/* Lamp, hanging into the right gutter. */
.a-lamp{position:absolute;right:max(36px,calc(50% - 690px));top:-60px;width:100px;z-index:4}
.a-lamp .lamp-wire{display:block;width:1.2px;height:120px;margin:0 auto;background:var(--ink-3)}
.a-lamp .lamp-shade{display:block;width:100px;height:50px;margin-top:-1px;background:var(--sage);clip-path:polygon(30% 0,70% 0,100% 100%,0 100%)}
.a-lamp .lamp-bulb{display:block;width:26px;height:26px;margin:-12px auto 0;border-radius:50%;background:var(--paper);box-shadow:0 0 0 1px var(--hair);transition:background-color .6s,box-shadow .6s}
[data-light=night] .a-lamp .lamp-bulb{background:#ffe7a6;box-shadow:0 0 0 1px #e8c76a,0 0 26px 10px rgb(255 214 120/.55)}
.a-lamp [data-cord]{left:80px;top:162px}
.a-lamp .lamp-hint{position:absolute;left:0;top:300px;width:100px;text-align:center;font:400 21px/1.05 'Reenie Beanie',cursive;color:var(--ink-3);rotate:-4deg;white-space:normal}
[data-light=night] .a-lamp .lamp-hint{color:#f0e3c4}

/* Intro word, cue and skip. Their opacity is driven by scroll (a-home.js). */
.intro-word{position:absolute;left:50%;top:50%;translate:-50% -50%;z-index:5;margin:0;display:flex;align-items:center;font:400 clamp(40px,6vw,66px)/1 var(--f-display);font-variation-settings:'opsz' 72;letter-spacing:-.02em;white-space:nowrap;pointer-events:none}
.intro-o{position:relative;display:inline-grid;place-items:center;width:.74em;height:.74em;margin:0 .04em 0 .02em;border-radius:50%;background:var(--paper);box-shadow:0 0 0 .5px rgb(60 50 30/.12),1px 2px 3px rgb(60 50 30/.16);translate:0 .06em}
.intro-o img{width:62%;height:62%}
.scroll-cue{position:absolute;left:50%;bottom:30px;translate:-50% 0;z-index:5;margin:0;font:400 12px/1 var(--f-label);letter-spacing:.14em;text-transform:uppercase;color:var(--ink-3);pointer-events:none}
.scroll-cue span{display:inline-block;animation:cue 1.6s ease-in-out infinite}
@keyframes cue{50%{translate:0 5px}}
.skip-intro{position:absolute;right:20px;bottom:20px;z-index:6;font:500 12px/1 var(--f-label);letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);padding:12px 14px;border:1px solid var(--hair);border-radius:999px;background:var(--paper);text-decoration:none}
.intro-off .intro-word,.intro-off .scroll-cue,.intro-off .skip-intro,.static-stage .intro-word,.static-stage .scroll-cue,.static-stage .skip-intro{display:none}
.pieces{position:absolute;inset:0;z-index:7;pointer-events:none}
.piece{position:absolute;left:0;top:0;will-change:transform;
  filter:drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(1px 2px 1.5px rgb(60 50 30/.2))}
.piece svg{display:block;width:100%;height:100%;overflow:visible}

/* ----- Selected work: raised landscape loose-leaf with tickets ----- */
.a-work{width:min(1120px,calc(100% - 300px));margin:30px auto 0}
.leaf-h{padding:84px 48px 52px}
.leaf-h::before{content:'';position:absolute;left:30px;right:30px;top:24px;height:16px;
  background:radial-gradient(circle at 8px 8px,var(--ivory) 0 5.5px,rgb(60 50 30/.12) 6px,transparent 7px) 0 0/72px 16px repeat-x}
.leaf-h-head{position:relative;display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:6px 20px;padding-bottom:22px;margin-bottom:34px;border-bottom:1px solid rgb(196 85 61/.18)}
.leaf-h-head p{margin:0;font:400 12px/1.5 var(--f-label);letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3)}
.a-tickets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px}
.t-wrap{filter:drop-shadow(0 .5px .5px rgb(60 50 30/.2)) drop-shadow(2px 5px 6px rgb(60 50 30/.1));transition:filter .4s;scroll-margin-top:40px}
.t-wrap>.ticket{rotate:var(--r,0deg);transition:translate .45s var(--ease-paper)}
.t-wrap:nth-child(1){--r:-.8deg}.t-wrap:nth-child(2){--r:.6deg}.t-wrap:nth-child(3){--r:-.3deg}
.t-wrap:has(a:hover)>.ticket,.t-wrap:has(a:focus-visible)>.ticket{translate:0 -5px}
.t-wrap:has(a:hover),.t-wrap:has(a:focus-visible){filter:drop-shadow(0 .5px .5px rgb(60 50 30/.18)) drop-shadow(6px 14px 16px rgb(60 50 30/.16))}
.ticket{position:relative;display:flex;flex-direction:column;height:100%;text-decoration:none;color:inherit;background:var(--bg);padding:16px 16px 22px;
  -webkit-mask:radial-gradient(circle 11px at 0 58%,#0000 98%,#000) left/51% 100% no-repeat,radial-gradient(circle 11px at 100% 58%,#0000 98%,#000) right/51% 100% no-repeat;
  mask:radial-gradient(circle 11px at 0 58%,#0000 98%,#000) left/51% 100% no-repeat,radial-gradient(circle 11px at 100% 58%,#0000 98%,#000) right/51% 100% no-repeat}
a.ticket:focus-visible{outline:none}
a.ticket:focus-visible h3{text-decoration:underline}
.t-cover{position:relative;aspect-ratio:16/10;overflow:hidden;border-radius:2px;background:rgb(255 255 255/.55)}
.t-cover img{width:100%;height:100%;object-fit:cover;object-position:50% 9%}
.t-cover.empty{display:grid;place-items:center;text-align:center}
.t-cover.empty .obj-icon{--s:84px}
.t-cover.empty em{display:block;margin-top:4px;font:400 21px/1 'Reenie Beanie',cursive;font-style:normal;color:var(--ink-3)}
.t-perf{height:0;border-top:2px dashed rgb(43 42 39/.18);margin:22px -16px 16px}
.ticket .r-stamp{position:absolute;right:18px;top:calc(58% - 46px);z-index:2}
.ticket h3{margin:0 0 6px;font:420 26px/1.1 var(--f-display);font-variation-settings:'opsz' 48}
.ticket p{margin:0;font-size:15.5px;line-height:1.55;color:var(--ink-2)}
.t-meta{margin-top:12px!important;font:400 11.5px/1.6 var(--f-label)!important;color:var(--ink-3)!important}
.t-cta{display:inline-block;margin-top:14px;font:500 12px/1 var(--f-label);letter-spacing:.06em;text-transform:uppercase;color:var(--navy)}

/* Scroll-linked rise for anything marked [data-rise]; --q goes 0 → 1 as it enters. */
[data-rise]{translate:0 calc((1 - var(--q,1)) * 90px);rotate:calc((1 - var(--q,1)) * -1.6deg);opacity:calc(.15 + var(--q,1) * .85)}

.a-shelf{width:min(1120px,calc(100% - 300px));margin:110px auto 0}
.shelf-head{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:6px 20px;margin-bottom:10px}
.shelf-head p{margin:0;font:400 13px/1.5 var(--f-label);color:var(--ink-3)}
.shelf-frame{display:block;width:100%;height:560px;border:0;background:transparent}
.shelf-frame.is-project-open{position:fixed;inset:0;z-index:1000;width:100vw;height:100dvh!important;background:var(--ivory);translate:none;rotate:none;opacity:1}
body.shelf-project-open{overflow:hidden}

@media (max-width:1180px){
  .hero-sheet{left:24px;right:24px}
  .intro-off .hero-sheet,.static-stage .hero-sheet,.a-work,.a-shelf{width:calc(100% - 48px)}
  .decor-out{display:none}
  .a-lamp{right:40px;top:-80px;scale:.8;transform-origin:top right}
  .a-lamp .lamp-hint{display:none}
}
@media (max-width:760px){
  .hero-sheet{grid-template-columns:1fr;align-content:center;gap:18px;left:10px;right:10px;top:12px;bottom:16px;padding:22px 18px}
  .intro-off .hero-sheet,.static-stage .hero-sheet{width:calc(100% - 20px)}
  .a-note h1{font-size:min(8.6vw,4.4vh,36px)}
  .note-intro{font-size:15px}
  .note-draft{display:none}
  .a-contact{font-size:12px;margin-top:14px}
  .work-row .st{--sz:min(20vw,9vh,84px)}
  .play-row .st{--sz:min(11vw,6vh,52px)}
  .play-row .st-name{display:none}
  .pick-title{font-size:22px}
  .a-lamp{display:none}
  .a-work,.a-shelf{width:calc(100% - 20px)}
  .leaf-h{padding:64px 16px 26px}
  .leaf-h::before{left:16px;right:16px;top:18px;background-size:52px 16px}
  .a-tickets{grid-template-columns:1fr;gap:26px}
  .shelf-frame{height:760px}
}
