@font-face{font-family:AdiHeading;src:url('fonts/heading.ttf') format('truetype');font-display:swap}

@font-face{font-family:AdiBody;src:url('fonts/body.ttf') format('truetype');font-display:swap}

*{box-sizing:border-box}
body{margin:0;background:#fff;color:#fff;font-family:AdiBody,Georgia,serif}
.site{width:min(972px,100%);margin:0 auto}

.stage-wrap{position:relative;width:100%;aspect-ratio:972/460;background:#17140e;overflow:hidden}
.stage{position:absolute;width:972px;height:460px;transform-origin:top left;overflow:hidden;isolation:isolate}
.room{position:absolute;inset:0;width:972px;height:460px;transform-origin:top left}
.mobile-explore,.mobile-back{display:none}
.workshop,.night,.light,.dust{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.workshop{object-fit:cover}
.adi{position:absolute;left:479.25px;top:75px;pointer-events:none}
.light{width:862px;mix-blend-mode:screen;opacity:.19}
.night{background:url('hd/images/night.webp') center/cover;opacity:0;transition:opacity .85s}
.dust{opacity:.22;background-image:radial-gradient(circle,#fff9 0 1px,transparent 1.5px),radial-gradient(circle,#fff7 0 1px,transparent 1.5px);background-size:137px 121px,191px 163px;mask-image:linear-gradient(115deg,transparent 12%,#0008 25%,transparent 70%);animation:dust 16s linear infinite}
.stage[data-view=product] .night{opacity:1}
.stage[data-view=product] .light,.stage[data-view=product] .dust{opacity:0}
.stage[data-view=welcome] .night{opacity:.65}
button,a{-webkit-tap-highlight-color:transparent}
button{font:inherit;color:inherit;cursor:pointer}
button:focus-visible,a:focus-visible,canvas:focus-visible{outline:2px solid #efe3b4;outline-offset:5px}
button{border:0;background:none}
button:hover{color:#e1ca91}
[hidden]{display:none!important}
.text-button{font-family:AdiHeading,Georgia,serif;font-size:13px;padding:7px 0;text-align:left;text-shadow:0 1px 4px #000}
.quiet-button{font-size:12px;opacity:.75}
.welcome{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#0002;gap:12px}
.welcome h1{font-family:AdiHeading,Georgia,serif;font-size:48px;letter-spacing:-2px;margin:0 0 6px;text-shadow:0 3px 16px #000}
.welcome .text-button{font-size:17px}
.workshop-controls,.product{position:absolute;inset:0}
.workshop-nav{position:absolute;left:20px;bottom:12px;display:flex;flex-direction:column;align-items:flex-start}
.hotspot{position:absolute;min-width:var(--hotspot-min-size,44px);min-height:var(--hotspot-min-size,44px);border-radius:0;background:transparent}
/* Indicate keyboard focus on the label, never around an invisible hit area. */
.hotspot:focus-visible{outline:none}
.hotspot:focus-visible span{text-decoration:underline;text-underline-offset:4px}
.hotspot:hover,.hotspot:focus-visible{background:transparent;box-shadow:none}
.hotspot:after{content:'▾';position:absolute;left:50%;top:-10px;color:#fff9;font-size:15px;animation:beckon 3s ease-in-out infinite}
.hotspot span{position:absolute;left:50%;bottom:100%;transform:translateX(-50%);white-space:nowrap;background:#17130be6;padding:8px 12px;font-size:13px;opacity:0;transition:opacity .2s;pointer-events:none}
.hotspot:hover span,.hotspot:focus-visible span{opacity:1}
.gonzales{left:128px;top:53px;width:91px;height:65px}
.nastase{left:792px;top:82px;width:52px;height:113px}
.bern{left:440px;top:160px;width:91px;height:85px}
.superstar{left:864px;top:353px;width:100px;height:95px}
.television{left:638px;top:131px;width:98px;height:89px}
.sound{position:absolute;right:18px;bottom:12px;font-size:11px;z-index:5;min-height:30px;text-shadow:0 2px 3px #000}
.product{animation:none}
.product-nav{position:absolute;top:23px;right:25px;display:flex;gap:15px}
.product-nav button{font-size:12px;padding:6px 0;opacity:.65}
.product-nav button[aria-current=true]{opacity:1;color:#e7d5a5;border-bottom:1px solid #e7d5a5}
.card-stack{position:absolute;left:88px;top:43px;width:245px;height:343px;perspective:1200px}
.card,.card-shadow{position:absolute;inset:0;width:100%;height:100%;border-radius:7px}
.card-shadow{background:url('hd/images/card-back.webp') center/100% 100%;box-shadow:0 5px 9px #0007}
.shadow-one{transform:translate(-7px,5px) rotate(-3deg)}
.shadow-two{transform:translate(-14px,8px) rotate(-5deg)}
.card{padding:0;transform-style:preserve-3d;transition:transform .7s cubic-bezier(.2,.7,.2,1);text-align:left;box-shadow:0 10px 22px #0009}
.card.flipped{transform:rotateY(180deg)}
.card-face{position:absolute;inset:0;display:block;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.card-face>img{position:absolute;inset:0;width:100%;height:100%}
.card-back{transform:rotateY(180deg)}
.card-name{position:absolute;left:27px;top:266px;font-size:14px;color:#342a17;max-width:190px}
.stars{position:absolute;left:23px;bottom:45px;font-size:9px;color:#534726;letter-spacing:1px}
.turn-hint{position:absolute;bottom:14px;right:17px;color:#d4c299;font-size:10px}
.card-step{position:absolute;left:92px;top:401px;display:flex;align-items:center;gap:28px;font-size:11px;color:#d8d0bd}
.card-step button{font-size:22px;padding:0 14px}
.story-details{position:absolute;left:380px;top:90px;width:254px}
.story-details h2{font-family:AdiHeading,Georgia,serif;font-size:23px;line-height:1.3;margin:0 0 18px;color:#e9dfc9}
.story-details dl{font-size:12px;line-height:1.5;margin:0}
.story-details dt{color:#b5aa92;float:left;clear:left;margin-right:5px}
.story-details dd{margin:0 0 9px}
.object-wrap{position:absolute;left:571px;top:145px;width:390px;height:240px}
#object{width:100%;height:auto;cursor:grab;touch-action:none}
#object:active{cursor:grabbing}
.rotate-hint{position:absolute;left:0;bottom:6px;width:100%;text-align:center;font-size:10px;color:#d7c9a8;pointer-events:none}
.story-media{position:absolute;left:382px;top:306px;display:flex;flex-direction:column;align-items:flex-start}
.story-media .text-button{font-size:12px}
.return-nav{position:absolute;left:380px;bottom:21px;display:flex;flex-direction:column}
.cinema{position:absolute;inset:0;background:#000;z-index:4}
.cinema video{width:100%;height:100%;object-fit:contain}
.cinema #close-film{position:absolute;right:19px;top:15px;background:#000a;padding:10px 14px}
.stage[data-view=cinema] .sound{display:none}
.status{position:absolute;left:24px;bottom:14px;max-width:650px;background:#17130be8;padding:12px;z-index:10;font-size:12px}
#downloads{padding:5px 0;font-size:12px}
#downloads a{color:#e6d7b7;text-decoration:none}
#downloads span{display:block;font-size:9px;color:#a99d85;margin-top:6px}
.restoration-note{font:10px/1.5 Arial,sans-serif;color:#777;margin:10px 4px}
.restoration-note a{color:inherit;margin-left:12px}
@keyframes dust{to{background-position:32px -42px,-23px -31px}
}
@keyframes beckon{50%{transform:translateY(-4px);opacity:.4}
}
@keyframes appear{from{opacity:0;transform:translateY(8px)}
to{opacity:1;transform:translateY(0)}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}
}
@media(max-width:600px){.restoration-note{font-size:9px}
.text-button{font-size:17px}
.product-nav button{font-size:15px}
.sound{font-size:15px}
.hotspot span{font-size:19px}
.story-details dl{font-size:14px}
.quiet-button{font-size:18px}
}


/* Recovered paper label keeps the card name readable over the portrait. */
.card-name{left:15px;top:264px;max-width:none;width:215px;height:39px;padding:10px 12px;background:url("hd/images/label.webp") center/100% 100%;font-size:13px}

.stars{bottom:22px;left:23px;color:#e4d6ab;text-shadow:0 1px 3px #000}
.turn-hint{bottom:10px;font-size:9px}

/* CardHandler.as: independent deck layers, 8-degree pointer tilt, and slip. */
.card-stack{perspective:900px;--tilt-x:0deg;--tilt-y:0deg}
.card-flight,.card-under{position:absolute;inset:0;border-radius:7px;transform-style:preserve-3d}
.card-flight{z-index:4}
.card-under{box-shadow:0 5px 9px #0007;pointer-events:none}
.card-under img{width:100%;height:100%;border-radius:7px}
.card-under.shadow-one{z-index:2;transform:translate3d(-10px,5px,-10px) rotateZ(-1deg)}
.card-under.shadow-two{z-index:1;transform:translate3d(-20px,10px,-20px) rotateZ(-2deg)}
.card-flight.outgoing-card{z-index:3;pointer-events:none}
.card{transform:rotateX(var(--tilt-x)) rotateY(var(--tilt-y));transition:transform .7s cubic-bezier(.645,.045,.355,1)}
.card.flipped{transform:rotateX(var(--tilt-x)) rotateY(calc(180deg + var(--tilt-y)))}
.card-information{position:absolute;left:0;top:17px;width:232px;height:309px;z-index:3;padding:20px 18px;background:#d8c7a0;color:#382b1a;border-radius:3px;box-shadow:inset 0 0 22px #9a7c4740,3px 6px 12px #0006;transform:translateX(11px)}
.information-open .card-information{transform:translateX(245px)}
.card-information .story-details{position:static;width:auto}
.card-information .story-details h2{font-size:17px;color:#382b1a;margin:0 0 12px}
.card-information .story-details dl{font-size:11px;line-height:1.35}
.card-information .story-details dt{color:#6a5531}
.card-information .story-details dd{margin-bottom:7px}
.card-information .story-media{position:absolute;left:18px;bottom:14px;top:auto}
.card-information .text-button{font-size:10px;color:#382b1a;text-shadow:none}
.card-information-toggle{position:absolute;left:232px;top:115px;width:32px;height:50px;z-index:6;background:#dac99f;color:#493923;border:1px solid #8f7c55;border-radius:0 4px 4px 0;box-shadow:2px 2px 5px #0004;transition:transform .5s cubic-bezier(.645,.045,.355,1);font-size:20px}
.information-open .card-information-toggle{transform:translateX(232px)}
.product .object-wrap{transition:opacity .3s}
.product-nav,.return-nav,.card-step,.card-information-toggle{transition:opacity .3s,transform .5s cubic-bezier(.645,.045,.355,1)}
.product[data-card-phase] .object-wrap{opacity:0;pointer-events:none}
.product[data-card-phase="entering"] :is(.product-nav,.return-nav,.card-step,.card-information-toggle),
.product[data-card-phase="leaving"] :is(.product-nav,.return-nav,.card-step,.card-information-toggle){opacity:0;pointer-events:none}
.video-open .card-flight{transform:translate3d(20px,0,-50px) rotateY(-180deg) rotateZ(-90deg)}
.card-under{transition:transform .5s cubic-bezier(.645,.045,.355,1)}
.video-open .card-under.shadow-one{transform:translate3d(-30px,31px,-160px) rotateZ(-1deg)}
.video-open .card-under.shadow-two{transform:translate3d(-40px,36px,-170px) rotateZ(-2deg)}
.card-cinema{position:absolute;left:-14px;top:64px;width:314px;height:223px;z-index:7;background:#1e1a13;box-shadow:0 4px 14px #0007}
.card-cinema video{width:100%;height:100%;object-fit:contain}
.card-cinema button{position:absolute;right:0;top:-27px;background:#dac99f;color:#382b1a;font-size:21px;width:30px;height:27px;line-height:25px}
.product:has(.video-open) .object-wrap{opacity:0;pointer-events:none}
@media(prefers-reduced-motion:reduce){.card{transform:none}.card.flipped{transform:rotateY(180deg)}}

/* Mobile uses a room camera and a separate, unscaled portrait card layout. */
@media(max-width:700px){
  body{background:#17140e}
  .stage-wrap{aspect-ratio:auto;height:calc(100svh - 150px);min-height:440px;max-height:900px}
  .stage{width:100%;height:100%;transform:none}
  .room{top:0;touch-action:pan-y;user-select:none;-webkit-user-select:none;will-change:transform}
  .stage[data-camera-moving="true"] .dust{animation-play-state:paused}
  .room .light{mix-blend-mode:normal}
  .room img{-webkit-user-drag:none}
  .room .hotspot{border-radius:0;border:0;background:transparent;box-shadow:none;outline:none}
  .room .hotspot:after{content:'+';top:50%;left:50%;transform:translate(-50%,-50%);width:26px;height:26px;line-height:23px;border:0;border-radius:0;background:transparent;font-size:20px;color:#fff0d2;text-shadow:0 1px 4px #000,0 0 6px #000;animation:none}
  .room .hotspot span{font-size:13px}
  .welcome{background:#0004;padding:24px;text-align:center}
  .welcome h1{font-size:38px}
  .welcome button{min-height:48px}
  .workshop-nav{left:12px;top:10px;bottom:auto;z-index:2}
  .workshop-nav .text-button{font-size:13px;min-height:42px}
  #downloads-toggle{display:none}
  #downloads{display:none}
  .mobile-explore{position:absolute;display:flex;align-items:center;justify-content:space-between;left:12px;right:12px;bottom:0;z-index:3;color:#f1e5ce;background:transparent;text-shadow:0 1px 4px #000,0 0 8px #000;pointer-events:none}
  .mobile-explore span{font-size:11px;pointer-events:none}
  .mobile-explore button{min-width:48px;height:44px;font-size:32px;pointer-events:auto}
  .mobile-explore button:disabled{opacity:.2;cursor:default}
  .sound{top:10px;bottom:auto;right:12px;font-size:12px;min-height:44px;background:#17130b99;padding:8px;z-index:10}
  .mobile-back{display:block;position:absolute;left:12px;top:10px;z-index:10;font-size:12px;min-height:44px;background:#17130bcc;padding:8px}
  .product{overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:70px 16px 30px;background:#17130bcc;scrollbar-width:thin}
  .product-nav{position:relative;top:auto;right:auto;display:grid;grid-template-columns:1fr 1fr;gap:2px 12px;margin:0 auto 24px;max-width:350px}
  .product-nav button{font-size:12px;min-height:44px}
  .card-stack{position:relative;left:auto;top:auto;width:245px;height:343px;margin:0 auto 24px}
  .card{touch-action:pan-y}
  .card-step{position:relative;left:auto;top:auto;justify-content:center;gap:32px;margin:0 auto 0}
  .card-step button{min-width:48px;min-height:48px}
  .card-information{top:0;left:0;width:245px;height:343px;z-index:7;padding:22px 20px;transform:none!important}
  .card-information .story-details h2{font-size:18px}
  .card-information .story-details dl{font-size:12px;line-height:1.4}
  .card-information .story-media{left:20px;bottom:16px}
  .card-information .text-button{font-size:11px;min-height:40px}
  .card-information-toggle{left:auto;right:-20px;top:114px;width:44px;height:48px;z-index:8}
  .information-open .card-information-toggle{transform:none}
  .object-wrap{position:relative;left:auto;top:auto;width:min(350px,100%);height:auto;min-height:180px;margin:0 auto 20px}
  .rotate-hint{bottom:0;font-size:11px}
  .return-nav{position:relative;left:auto;bottom:auto;align-items:center;gap:8px}
  .return-nav button{min-height:44px;font-size:12px}
  .return-nav [data-workshop]{display:none}
  .card-cinema{left:50%;top:64px;width:min(314px,calc(100vw - 32px));height:auto;aspect-ratio:313/222;transform:translateX(-50%)}
  .card-cinema button{width:44px;height:44px;top:-44px}
  .cinema #close-film{top:12px;right:12px;font-size:12px;min-height:44px}
  .status{left:12px;bottom:68px;max-width:calc(100% - 24px)}
  .restoration-note{color:#b6aa91;padding:8px;margin:0;line-height:1.6}
}


/* Native site chrome with a scalable trefoil and wordmark. */
.site-header,.site-footer{font-family:Arial,Helvetica,sans-serif;background:#0067c6;color:#fff}
.site-header{height:96px;position:relative;z-index:20;border:0;display:flex;align-items:center;padding:0 22px;gap:28px}
.brand{display:block;flex-shrink:0;width:54px;height:58px;margin-top:-14px}
.brand-logo{display:block;width:44px;height:44px;margin:7px 5px;object-fit:contain}
.global-site{position:absolute;bottom:6px;left:20px;font-size:10px;text-transform:uppercase;font-weight:bold}
.site-header a,.site-footer a{color:inherit;text-decoration:none}
.site-header a:hover,.site-footer a:hover{text-decoration:underline;text-underline-offset:4px}
.header-stripes{position:absolute;right:14%;top:0;width:162px;height:100%;pointer-events:none;background:url('images/stitched-stripes.svg') center/auto 100% no-repeat}

.site-navigation{display:flex;align-items:center;gap:26px;position:relative;font-size:11px;text-transform:uppercase}
.site-navigation details{position:relative}
.site-navigation summary{cursor:pointer;list-style:none;min-height:44px;display:flex;align-items:center}
.site-navigation summary::-webkit-details-marker{display:none}
.site-navigation summary:focus-visible{outline:2px solid white;outline-offset:3px}
.navigation-panel{position:absolute;top:100%;left:-16px;min-width:235px;padding:8px;background:#0057aa;border:1px solid #ffffff40;box-shadow:0 8px 18px #0003}
.navigation-panel button,.navigation-panel a{display:block;width:100%;min-height:44px;padding:12px;text-align:left;font:13px/20px Arial,sans-serif;text-transform:none;color:white}
.navigation-panel button:hover,.navigation-panel a:hover{background:#ffffff18}
.menu-toggle{display:none}
.site-footer{min-height:32px;padding:8px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:10px;line-height:16px}
.site-footer nav{display:flex;gap:20px;flex-wrap:wrap}
.site-footer>span{white-space:nowrap;opacity:.8;font-size:9px}
@media(max-width:700px){
 .site-header{height:62px;padding:0 18px;justify-content:space-between}
 .brand{margin:0;width:54px;height:58px;transform:scale(.8);transform-origin:left center}
 .global-site{display:none}
 .header-stripes{right:80px;width:105px;opacity:1}
 
 .menu-toggle{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;width:44px;height:44px;padding:10px;z-index:1}
 .menu-toggle span{display:block;width:22px;height:2px;background:currentColor;transition:transform .2s,opacity .2s}
 .menu-toggle[aria-expanded=true] span:first-child{transform:translateY(7px) rotate(45deg)}
 .menu-toggle[aria-expanded=true] span:nth-child(2){opacity:0}
 .menu-toggle[aria-expanded=true] span:last-child{transform:translateY(-7px) rotate(-45deg)}
 .site-navigation{position:absolute;top:100%;left:0;right:0;background:#0067c6;display:flex;flex-direction:column;align-items:stretch;gap:0;padding:12px 22px 20px;max-height:calc(100svh - 62px);overflow:auto;border-bottom:1px solid #ffffff50;box-shadow:0 12px 24px #0003;font-size:13px}
 .site-navigation>details,.site-navigation>a{border-bottom:1px solid #ffffff30}
 .site-navigation>a,.site-navigation summary{min-height:48px;display:flex;align-items:center}
 .site-navigation summary:after{content:'+';margin-left:auto;font-size:20px}
 .site-navigation details[open] summary:after{content:'−'}
 .navigation-panel{position:static;box-shadow:none;border:0;background:#0057aa;margin-bottom:12px}
 .site-footer{height:88px;padding:8px 16px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px}
 .site-footer nav{gap:0 16px}
 .site-footer nav a{line-height:24px}
}
@media(prefers-reduced-motion:reduce){.menu-toggle span{transition:none}}

/* Scale the original stage as one unit so art, cards and hit areas stay aligned. */
@media(min-width:701px){
  body{background:#17140e}
  .site{width:min(100%,4320px,max(700px,calc((100svh - 168px) * 2.1130434783)));margin:0 auto}
  .restoration-note{color:#b6aa91}
}

/* Film controls share a reserved timeline row, never overlay one another. */
.film-controls{display:none}
.cinema.has-film-controls{display:flex;flex-direction:column}
.cinema.has-film-controls video{flex:1;min-height:0;height:0;display:block}
.has-film-controls .film-controls{display:grid;grid-template-columns:auto minmax(60px,1fr) auto auto 65px auto auto;align-items:center;gap:10px;flex-shrink:0;padding:8px 12px;background:#17140e;color:#fff;font:11px/1.3 Arial,sans-serif}
.film-controls button{min-height:36px;padding:6px;white-space:nowrap}
.film-controls input{width:100%;min-width:0;accent-color:#e9dab8;margin:0;cursor:pointer}
.cinema.has-film-controls #close-film{position:static;font:11px/1.3 Arial,sans-serif;background:none;padding:6px;text-align:right}
#film-time{font-variant-numeric:tabular-nums;white-space:nowrap}
@media(max-width:700px){
 /* Keep the film and one compact, touch-sized playback row together. */
 .cinema.has-film-controls{justify-content:center}
 .cinema.has-film-controls video{flex:0 1 auto;height:auto;aspect-ratio:972/460;max-height:calc(100% - 60px)}
 .has-film-controls .film-controls{grid-template-columns:44px minmax(36px,1fr) 60px 44px auto;gap:4px;padding:8px;font-size:11px}
 .film-controls button,.film-controls input{min-height:44px}
 #film-time,#film-volume{display:none}
 #film-play{grid-column:1;font-size:0}
 #film-play::after{content:'▶';font-size:17px}
 #film-play[aria-label="Pause film"]::after{content:'Ⅱ'}
 #film-seek{grid-column:2}
 #film-mute{grid-column:3;font-size:10px;padding:4px}
 #film-fullscreen{grid-column:4;font-size:0}
 #film-fullscreen::after{content:'⛶';font-size:24px}
 .cinema.has-film-controls #close-film{grid-column:5;min-width:44px;min-height:44px;font-size:0;padding:4px;text-align:center}
 .cinema.has-film-controls #close-film::after{content:attr(data-mobile-label);font-size:11px}
}

/* Recording-derived waveform: progress follows the narration media clock. */
.card-information{display:flex;flex-direction:column;gap:10px;overflow:auto;scrollbar-width:thin;scrollbar-color:#a18a59 transparent}
.card-information .story-media{position:static;margin-top:auto;flex-shrink:0;width:100%}
.narration-waveform{width:100%;display:flex;flex-direction:column;gap:2px;margin-bottom:2px}
.narration-waveform svg{display:block;width:100%;height:24px}
.narration-waveform line{stroke:#a28d60;stroke-width:2;stroke-linecap:round}
.narration-waveform line.played{stroke:#382b1a}
.narration-waveform span{font:9px/1.2 Arial,sans-serif;color:#675536;font-variant-numeric:tabular-nums}

.narration-track{position:relative;width:100%;height:44px;display:flex;align-items:center}
.narration-track input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize;touch-action:none}
.narration-track input::-webkit-slider-thumb{width:1px}
.narration-track input::-moz-range-thumb{width:1px}
.narration-track:focus-within{outline:1px solid #675536;outline-offset:2px}
.narration-playhead{position:absolute;top:7px;bottom:7px;width:1px;background:#382b1a;pointer-events:none}
.narration-waveform small{font:9px/1.2 Arial,sans-serif;color:#675536}
