/* =========================================================
   EXPLORE (contents)
   ========================================================= */
.explore { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 96px 24px 64px; }
.explore-head { margin-bottom: 30px; }
.explore-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-faint); }
.explore-head h1 { margin: 0; font-size: clamp(34px, 5vw, 56px); line-height: 1.02; letter-spacing: -.025em; font-weight: 800; }
.explore-head h1 span { color: var(--glow); }
.explore-sub { margin: 12px 0 0; color: var(--ink-soft); font-size: 17px; }
.explore-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.explore-card {
  position: relative; display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 16px;
  min-height: 112px; padding: 14px 18px 14px 14px; border-radius: 18px; text-decoration: none;
  background: rgba(251, 246, 234, .06); border: 1px solid rgba(255,255,255,.1);
  transition: background .2s, border-color .2s, transform .25s var(--ease-out);
  animation: card-in .5s calc(var(--i) * 45ms) var(--ease-out) both;
}
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } }
.explore-card:hover { background: rgba(251, 246, 234, .12); border-color: rgba(255, 210, 122, .45); transform: translateY(-2px); }
.explore-art { display: grid; place-items: center; width: 92px; height: 84px; border-radius: 12px; background: radial-gradient(circle at 50% 60%, rgba(255,210,122,.16), transparent 70%); }
.explore-art img { max-width: 80px; max-height: 76px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0,0,0,.45)); transition: transform .3s var(--ease-out); }
.explore-card:hover .explore-art img { transform: scale(1.08) rotate(-2deg); }
.explore-text { display: flex; flex-direction: column; gap: 3px; }
.explore-text strong { font-size: 19px; letter-spacing: -.01em; }
.explore-text span { font-size: 14px; color: var(--ink-soft); line-height: 1.4; }
.explore-go { font-size: 20px; color: var(--ink-faint); transition: transform .2s, color .2s; }
.explore-card:hover .explore-go { transform: translateX(3px); color: var(--glow); }
.explore-foot { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; font-size: 14px; }
.explore-foot a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: 2px; }
.explore-foot a:hover { color: var(--ink); border-color: var(--glow); }
@media (max-width: 767px) {
  .explore { padding: 84px 16px 48px; }
  .explore-grid { grid-template-columns: 1fr; }
  .explore-card { grid-template-columns: 72px 1fr auto; min-height: 96px; }
  .explore-art { width: 72px; height: 70px; }
  .explore-art img { max-width: 64px; max-height: 62px; }
}

/* =========================================================
   MUSIC — the iPod
   ========================================================= */
.ipod-wash {
  position: absolute; inset: -10%; z-index: 0; opacity: 0; transition: opacity 1.2s ease, background-image .6s;
  background: var(--wash, #333) center / cover no-repeat; filter: blur(70px) saturate(1.3) brightness(.55);
}
.ipod-wash[style*="url"] { opacity: .75; }
.music { position: relative; z-index: 1; height: 100%; display: flex; align-items: center; justify-content: center; gap: 56px; padding: 64px 24px 24px; }
.ipod-fit { position: relative; flex: none; }
.ipod {
  position: absolute; left: 0; top: 0; width: 380px; height: 632px; transform: scale(var(--s, 1)); transform-origin: 0 0;
  border-radius: 46px;
  background:
    radial-gradient(120% 60% at 30% 0%, rgba(255,255,255,.95), rgba(255,255,255,0) 60%),
    linear-gradient(160deg, #fdfdfc 0%, #ecebe8 45%, #dcdad6 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,.9),
    inset 0 -6px 14px rgba(0,0,0,.06),
    0 0 0 3px #c9c9cb, 0 0 0 4.5px #8e8f93,  /* chrome edge */
    0 40px 80px -20px rgba(0,0,0,.75), 0 18px 30px rgba(0,0,0,.35);
  animation: ipod-in .7s var(--ease-out) both;
}
@keyframes ipod-in { from { transform: scale(var(--s,1)) translateY(30px) rotate(-3deg); opacity: 0; } }
.ipod-close {
  position: absolute; right: -16px; top: -16px; width: 42px; height: 42px; border-radius: 50%; z-index: 3;
  border: 0; background: #1b1714; color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
  box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 8px 18px rgba(0,0,0,.45); transition: transform .2s var(--ease-out), background .2s;
}
.ipod-close:hover { transform: scale(1.08) rotate(90deg); background: #a8231f; }

.ipod-screen {
  position: absolute; left: 30px; top: 30px; width: 320px; height: 240px; border-radius: 10px; overflow: hidden;
  background: #fff; color: #111; font-family: "Helvetica Neue", Helvetica, Arial, var(--sans); user-select: none;
  box-shadow: 0 0 0 6px #111, 0 0 0 7px #555, inset 0 0 0 1px rgba(0,0,0,.2);
}
.ipod-screen::after { /* glass */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(155deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 38%), linear-gradient(0deg, rgba(0,0,0,.04), transparent 30%);
}
.scr-bar {
  position: relative; height: 22px; display: grid; grid-template-columns: 30px 1fr 30px; align-items: center;
  background: linear-gradient(#fbfbfb, #d6d6d6); border-bottom: 1px solid #8f8f8f; font-size: 13px; font-weight: 700;
}
.scr-title { text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr-state { display: flex; padding-left: 9px; }
.scr-state svg { width: 9px; height: 9px; fill: #2f6fd6; }
.scr-batt { justify-self: end; margin-right: 8px; width: 20px; height: 10px; border: 1.5px solid #444; border-radius: 2px; position: relative; }
.scr-batt::after { content: ""; position: absolute; right: -4px; top: 2px; width: 2px; height: 4px; background: #444; }
.scr-batt i { position: absolute; inset: 1px; right: 4px; background: linear-gradient(#9ee36b, #53b52a); }

.scr-body { position: absolute; left: 0; right: 0; top: 23px; bottom: 0; transition: transform .22s var(--ease-out), opacity .22s; }
.scr-body[data-slide="in"] { transform: translateX(30%); opacity: 0; transition: none; }
.scr-body[data-slide="out"] { transform: translateX(-30%); opacity: 0; transition: none; }
.scr-list { position: absolute; left: 0; top: 0; bottom: 0; right: 0; margin: 0; padding: 0; list-style: none; }
.scr-body[data-kind="split"] .scr-list { right: 46%; border-right: 1px solid #bbb; }
.scr-list li {
  height: 27px; padding: 0 10px 0 9px; display: flex; align-items: center; justify-content: space-between; gap: 6px;
  font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.scr-list li .row-label { overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px; }
.scr-list li.is-sel { color: #fff; background: linear-gradient(#7fb4f7, #3b84ea 50%, #2a6ed6 51%, #2d74dd); }
.row-more { font-size: 17px; font-weight: 700; opacity: .8; }
.row-time { font-size: 11.5px; font-weight: 600; opacity: .6; }
.row-spk svg { width: 8px; height: 8px; fill: currentColor; }
.scr-scroll { position: absolute; right: 0; top: 0; bottom: 0; width: 7px; background: #e6e6e6; border-left: 1px solid #bbb; }
.scr-scroll i { position: absolute; left: 1px; right: 1px; background: linear-gradient(90deg,#8bb7f0,#3b78d8); border-radius: 3px; }
.scr-body[data-kind="split"] .scr-list li { padding-right: 14px; }
.scr-art { position: absolute; right: 0; top: 0; bottom: 0; width: 46%; overflow: hidden; background: #000; }
.scr-art img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity .5s, transform 4.5s linear; }
.scr-art img.is-in { opacity: 1; transform: scale(1); }

.cf { position: absolute; inset: 0; background: linear-gradient(#000 0%, #1b1b1d 70%, #2a2a2d); perspective: 520px; overflow: hidden; }
.cf-row { position: absolute; left: 50%; top: 22px; width: 0; height: 118px; transform-style: preserve-3d; }
.cf-row img { position: absolute; left: 0; top: 0; width: 118px; max-width: none; height: 118px; object-fit: cover; cursor: pointer; transition: transform .38s var(--ease-out), filter .38s;
  -webkit-box-reflect: below 1px linear-gradient(transparent 55%, rgba(255,255,255,.28)); }
.cf-title { position: absolute; left: 10px; right: 10px; bottom: 26px; margin: 0; text-align: center; color: #fff; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-sub { position: absolute; left: 10px; right: 10px; bottom: 9px; margin: 0; text-align: center; color: #9a9aa0; font-size: 11px; font-weight: 600; }
.np { position: absolute; inset: 0; padding: 12px 14px 10px; display: grid; grid-template-columns: 120px 1fr; grid-template-rows: 1fr auto; column-gap: 14px; }
.np-art { position: relative; width: 120px; height: 120px; }
.np-art img { width: 120px; height: 120px; object-fit: cover; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.np-art .np-reflect { position: absolute; top: 121px; left: 0; height: 40px; object-position: bottom; transform: scaleY(-1); opacity: .25; box-shadow: none;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,.9), transparent); mask-image: linear-gradient(to top, rgba(0,0,0,.9), transparent); }
.np-meta { align-self: center; min-width: 0; }
.np-meta p { margin: 0; overflow: hidden; text-overflow: ellipsis; }
.np-count { font-size: 11px; font-weight: 600; color: #666; margin-bottom: 4px !important; }
.np-title { font-size: 16px; font-weight: 800; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; white-space: normal; }
.np-album { font-size: 13px; font-weight: 600; color: #444; margin-top: 4px !important; white-space: nowrap; }
.np-progress { grid-column: 1 / -1; position: relative; z-index: 1; background: #fff; padding-top: 6px; }
.np-bar { position: relative; height: 11px; border: 1px solid #555; background: linear-gradient(#fff,#e5e5e5); cursor: pointer; touch-action: none; }
/* a taller invisible hit strip, so the thin bar is easy to grab */
.np-bar::before { content: ""; position: absolute; left: -6px; right: -6px; top: -9px; bottom: -9px; }
.np-bar i { display: block; height: 100%; width: 0; background: linear-gradient(#8fc0fa, #3b84ea 55%, #2a6ed6); transition: width .25s linear; pointer-events: none; }
/* the scrub diamond, like the iPod's scrubbing mode */
.np-knob { position: absolute; top: 50%; left: 0; width: 11px; height: 11px; margin: -6px 0 0 -6px; transform: rotate(45deg) scale(0); pointer-events: none;
  background: linear-gradient(135deg, #fff, #cfd6df); border: 1px solid #444; box-shadow: 0 1px 2px rgba(0,0,0,.4); transition: transform .15s ease, left .25s linear; }
.np-bar i + .np-knob { left: var(--at, 0); }
.np-bar:hover .np-knob, .np-bar:focus-visible .np-knob, .np-bar.is-scrubbing .np-knob { transform: rotate(45deg) scale(1); }
.np-bar.is-scrubbing i, .np-bar.is-scrubbing .np-knob { transition: transform .15s ease; }
.np-bar.is-scrubbing i { transition: none; }
.np-bar:focus-visible { outline: 2px solid #3b84ea; outline-offset: 2px; }
.np-times { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; margin-top: 3px; }
.np-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-weight: 700; color: #555; }
.np-empty small { font-weight: 500; }
.scr-vol {
  position: absolute; left: 14px; right: 14px; bottom: 12px; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.96);
  box-shadow: 0 0 0 1px #999, 0 4px 12px rgba(0,0,0,.25); font-size: 11px; font-weight: 700; opacity: 0; transform: translateY(6px); transition: .2s;
}
.scr-vol.is-on { opacity: 1; transform: none; }
.scr-vol div { margin-top: 4px; height: 8px; border: 1px solid #666; }
.scr-vol i { display: block; height: 100%; background: linear-gradient(#8fc0fa, #2a6ed6); }

/* click wheel */
.wheel {
  position: absolute; left: 65px; top: 322px; width: 250px; height: 250px; border-radius: 50%; touch-action: none;
  background: radial-gradient(circle at 50% 35%, #ffffff 0%, #f1f1f0 55%, #e3e2df 100%);
  box-shadow: inset 0 2px 3px rgba(255,255,255,.9), inset 0 -3px 8px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.08), 0 1px 0 rgba(255,255,255,.9);
}
.wheel-sheen {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none; transition: transform .12s linear;
  background: conic-gradient(from 0deg, rgba(255,255,255,0) 0deg, rgba(255,255,255,.75) 30deg, rgba(255,255,255,0) 70deg, rgba(0,0,0,.035) 140deg, rgba(255,255,255,0) 200deg, rgba(255,255,255,.55) 230deg, rgba(255,255,255,0) 270deg);
  -webkit-mask: radial-gradient(circle, transparent 37%, #000 38%); mask: radial-gradient(circle, transparent 37%, #000 38%);
}
.wheel-thumb { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .2s; }
.wheel-thumb::after {
  content: ""; position: absolute; left: 50%; top: 12px; width: 40px; height: 40px; margin-left: -20px; border-radius: 50%;
  background: radial-gradient(circle, rgba(60,130,235,.28), rgba(60,130,235,0) 70%);
}
.wheel-thumb.is-on { opacity: 1; }
.wheel-btn {
  position: absolute; border: 0; background: none; cursor: pointer; color: #9d9fa3; padding: 6px; border-radius: 10px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 800; font-size: 15px; letter-spacing: .06em;
  transition: color .15s, transform .12s;
}
.wheel-btn svg { width: 24px; height: 15px; fill: currentColor; display: block; }
.wheel-btn:hover { color: #6c6e72; }
.wheel-btn.is-press { transform: scale(.88); color: #2a6ed6; }
.wheel-btn.is-menu { left: 50%; top: 14px; transform: translateX(-50%); }
.wheel-btn.is-menu.is-press { transform: translateX(-50%) scale(.88); }
.wheel-btn.is-next { right: 14px; top: 50%; transform: translateY(-50%); }
.wheel-btn.is-next.is-press { transform: translateY(-50%) scale(.88); }
.wheel-btn.is-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.wheel-btn.is-prev.is-press { transform: translateY(-50%) scale(.88); }
.wheel-btn.is-play { left: 50%; bottom: 14px; transform: translateX(-50%); }
.wheel-btn.is-play.is-press { transform: translateX(-50%) scale(.88); }
.wheel-btn.is-play svg { width: 26px; }
.wheel-center {
  position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; border: 0; cursor: pointer;
  background: radial-gradient(circle at 50% 30%, #ffffff, #ececea 60%, #dddcd8);
  box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 2px 4px rgba(0,0,0,.12), inset 0 1px 1px #fff; transition: transform .1s, box-shadow .1s;
}
.wheel-center:hover { box-shadow: 0 0 0 1px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.16), inset 0 1px 1px #fff; }
.wheel-center:active, .wheel-center.is-press { transform: scale(.96); box-shadow: 0 0 0 1px rgba(0,0,0,.18), inset 0 2px 6px rgba(0,0,0,.15); }
.ipod.is-playing .scr-state svg { animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: .55; } }

.music-help { white-space: nowrap; color: rgba(245, 239, 230, .62); font-family: var(--hand); font-size: 24px; line-height: 1.2; animation: page-in .7s .2s var(--ease-out) both; }
.music-help p { margin: 0; }
@media (max-width: 900px) { .music-help { display: none; } }

/* =========================================================
   VIDEO — TV on a cart, DVD player, remote, DVD menu
   ========================================================= */
.backdrop.is-warm { filter: blur(20px) brightness(.36) saturate(1.1); }
/* The cart sits in the middle and is as big as the window allows while still showing the TV and the DVD player
   (the cart's legs run off the bottom). The remote is small and rests to its right. While a video plays the
   camera leans in until the TV fills the height; the player slides off the bottom and the remote still works. */
.dvd-scene { position: relative; z-index: 1; height: 100%; padding: 12px 0 0; overflow: clip;
  --rh: clamp(320px, 50vh, 470px); --rw: calc(var(--rh) * 539 / 1852); --side: calc(var(--rw) + 64px); --show: 985;
  --cw: min(calc((100vh - 12px) * 832 / var(--show)), calc(100vw - 2 * var(--side)), 1500px); }
.dvd-scene.is-watching { --show: 672; }
.cart-frame { width: var(--cw); margin: 0 auto; animation: page-in .7s var(--ease-out) both; transition: width .75s var(--ease-in-out); }
.cart { position: relative; width: 100%; filter: drop-shadow(0 28px 34px rgba(0,0,0,.55)); container-type: inline-size; }
.cart-art { width: 100%; height: auto; user-select: none; }
.dvd-screen { position: absolute; border-radius: 6.5% / 8.5%; overflow: hidden; background: #050607; container-type: size; }
.dvd-content { position: absolute; inset: 0; color: #fff; font-family: var(--sans); }
.dvd-content iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.dvd-glass { position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(120% 90% at 28% 8%, rgba(255,255,255,.13), transparent 42%), repeating-linear-gradient(0deg, rgba(0,0,0,.12) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 38px rgba(0,0,0,.7), inset 0 0 6px rgba(0,0,0,.85); }
.dvd-content[data-screen="play"] ~ .dvd-glass { background: radial-gradient(120% 90% at 28% 8%, rgba(255,255,255,.09), transparent 40%); box-shadow: inset 0 0 34px rgba(0,0,0,.75), inset 0 0 8px rgba(0,0,0,.85); }
/* Playback on the old TV: softened, warmer, a little color bleed, scanlines, a phosphor grille,
   a slow rolling band and a faint flicker. All of it lets clicks through to the player. */
.dvd-content iframe { filter: saturate(1.3) contrast(1.12) brightness(1.06) sepia(.12) blur(.55px) drop-shadow(1.2px 0 0 rgba(255, 40, 40, .35)) drop-shadow(-1.2px 0 0 rgba(40, 170, 255, .3)); }
.crt { position: absolute; inset: 0; z-index: 2; pointer-events: none; animation: crt-flicker 5s steps(1) infinite; }
.crt i { position: absolute; inset: 0; }
.crt-lines { background: repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 1px, transparent 1px 3px); }
.crt-mask { opacity: .16; mix-blend-mode: multiply; background: repeating-linear-gradient(90deg, #ff3b3b 0 1px, #3bff6a 1px 2px, #3b8cff 2px 3px); }
.crt-roll { height: 18%; inset: auto 0 auto 0; background: linear-gradient(transparent, rgba(255,255,255,.05) 45%, rgba(255,255,255,.07) 50%, transparent); animation: crt-roll 7s linear infinite; }
@keyframes crt-roll { from { top: -20%; } to { top: 110%; } }
@keyframes crt-flicker { 0%, 100% { opacity: 1; } 37% { opacity: .92; } 38% { opacity: 1; } 71% { opacity: .95; } 72% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .crt, .crt-roll { animation: none; } }
.cart.is-off .dvd-screen { background: radial-gradient(ellipse at 50% 45%, #1d2023, #050607 70%); }
.dvd-osd { position: absolute; right: 6%; top: 7%; z-index: 3; opacity: 0; transition: opacity .2s; pointer-events: none;
  font: 800 6.5cqh/1 var(--sans); letter-spacing: .06em; color: #fff; text-shadow: 0 0 8px rgba(0,0,0,.8), 2px 2px 0 rgba(0,0,0,.6); }
.dvd-osd.is-on { opacity: 1; }
.hot { position: absolute; transform: translate(-50%, -50%); border: 0; background: transparent; cursor: pointer; border-radius: 8px; transition: background .15s, box-shadow .15s; }
.hot:hover { background: rgba(255, 220, 140, .16); box-shadow: 0 0 0 2px rgba(255, 220, 140, .6); }
.hot.is-press { animation: hot-press .2s ease; }
@keyframes hot-press { 50% { background: rgba(0,0,0,.3); box-shadow: inset 0 2px 6px rgba(0,0,0,.6); } }
.tv-power { border-radius: 10px; }
.vfd { position: absolute; display: grid; place-items: center; pointer-events: none; white-space: nowrap; overflow: hidden;
  font: 700 2.5cqw/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .12em; color: #7ff3ff; text-shadow: 0 0 6px rgba(80, 230, 255, .8); }
.cart.is-off .vfd { color: transparent; text-shadow: none; }

/* The disc tray. Each piece is drawn flat and pushed toward you with a 3D transform, seen from a little above
   (the vanishing point is up by the TV), so the deck and the disc lie flat and the tray front gets nearer and bigger.
   --u is one pixel of the cart drawing. */
.tray { position: absolute; z-index: 2; pointer-events: none; --u: calc(100cqw / 832); --go: 1s cubic-bezier(.45, .05, .25, 1);
  perspective: calc(1750 * var(--u)); perspective-origin: 50% calc(-430 * var(--u)); }
.tray-hole { position: absolute; inset: 14% 1.2%; border-radius: calc(3 * var(--u)); background: linear-gradient(#000, #0b0b0d); opacity: 0; transition: opacity .15s linear .95s; }
.tray-shade { position: absolute; left: -4%; right: -4%; top: 60%; height: 520%; opacity: 0; transition: opacity .6s ease;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(0,0,0,.6), transparent 100%); }
.tray-clip { position: absolute; inset: 0; perspective: inherit; perspective-origin: inherit; clip-path: inset(24% -90% -3000% -90%); }
.tray-deck { position: absolute; left: 3.5%; right: 3.5%; top: 24%; height: calc(384 * var(--u)); transform-origin: 50% 0;
  transform: translateZ(calc(-384 * var(--u))) rotateX(90deg); transition: transform var(--go);
  border: calc(4 * var(--u)) solid #0c0c0e; border-radius: calc(8 * var(--u));
  background: linear-gradient(90deg, #1b1b1e, #2a2a2e 12%, #2c2c30 88%, #1b1b1e); }
.tray-well { position: absolute; left: 50%; top: 50%; width: calc(352 * var(--u)); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, #101012 0 30%, #19191c 31% 100%); box-shadow: inset 0 0 0 calc(4 * var(--u)) #0c0c0e, inset 0 calc(10 * var(--u)) calc(14 * var(--u)) rgba(0,0,0,.6); }
/* a burned disc with the label written in marker */
.tray-disc { position: absolute; left: 50%; top: 50%; width: calc(326 * var(--u)); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 21% 0 16%; color: #1d2a4d; font-family: var(--hand); line-height: 1;
  background:
    radial-gradient(circle, #1b1b1e 0 6.5%, #c9ced6 7% 8.5%, rgba(235, 238, 243, .55) 9% 16.5%, #aab0ba 17% 18%, transparent 18.5%),
    conic-gradient(from 200deg, #f4f4f1, #dcdfe3 14%, #f7f7f4 30%, #e2e4e8 52%, #f6f6f3 70%, #dfe2e6 86%, #f4f4f1);
  box-shadow: 0 0 0 calc(4 * var(--u)) #0c0c0e, inset 0 0 0 calc(5 * var(--u)) rgba(255,255,255,.65), inset 0 0 calc(26 * var(--u)) rgba(120, 130, 150, .35); }
.tray-disc b { font-weight: 400; font-size: calc(48 * var(--u)); transform: rotate(-3deg); }
.tray-disc span { font-size: calc(32 * var(--u)); color: #b3261e; transform: rotate(-2deg); }
.tray-face { position: absolute; inset: 0; transform: translateZ(0); opacity: 0; transition: transform var(--go), opacity 0s linear 1s;
  border: calc(4 * var(--u)) solid #0c0c0e; border-radius: calc(7 * var(--u));
  background: linear-gradient(#3b3b40, #2b2b2f 22%, #232326 80%, #18181a); box-shadow: inset 0 calc(2 * var(--u)) 0 rgba(255,255,255,.14), 0 calc(16 * var(--u)) calc(22 * var(--u)) rgba(0,0,0,.5); }
.tray.is-open { pointer-events: auto; cursor: pointer; }
.tray.is-open .tray-hole { opacity: 1; transition-delay: 0s; }
.tray.is-open .tray-shade { opacity: 1; }
.tray.is-open .tray-deck { transform: translateZ(calc(-8 * var(--u))) rotateX(90deg); }
.tray.is-open .tray-face { transform: translateZ(calc(376 * var(--u))); opacity: 1; transition: transform var(--go), opacity 0s; }
@media (prefers-reduced-motion: reduce) { .tray, .tray * { transition-duration: .01s !important; transition-delay: 0s !important; } }

/* remote: small, resting to the right of the cart */
.remote-wrap { position: absolute; left: calc(50% + var(--cw) / 2 + 26px); bottom: max(20px, 5vh); width: var(--rw); display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: left .75s var(--ease-in-out); animation: remote-in .8s .15s var(--ease-out) backwards; }
@keyframes remote-in { from { opacity: 0; transform: translate(30px, 20px) rotate(14deg); } }
.remote { position: relative; height: var(--rh); transform: rotate(5deg); filter: drop-shadow(0 16px 16px rgba(0,0,0,.55)); transition: transform .4s var(--ease-out); }
.remote:hover { transform: rotate(2deg) translateY(-5px); }
.remote img { height: 100%; width: auto; max-width: none; user-select: none; }
.rm-btn:hover { background: rgba(255, 220, 140, .2); }
.remote-hint { margin: 0; width: 190px; text-align: center; font-size: 11px; color: var(--ink-faint); line-height: 1.7; }

/* --- DVD screens --- */
.dvd-warning, .dvd-logo, .dvd-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8% 12%; background: #000; animation: fade-in .6s ease both; }
@keyframes fade-in { from { opacity: 0; } }
.dvd-warning h3 { margin: 0 0 4cqh; font: 900 8cqh/1 var(--sans); letter-spacing: .3em; color: #e33; }
.dvd-warning p { margin: 0 0 2.6cqh; font-size: 4.4cqh; line-height: 1.4; color: #ddd; }
.dvd-warning small { margin-top: 3cqh; font-size: 3.2cqh; color: #777; letter-spacing: .1em; animation: blink 1.4s steps(1) infinite; }
/* intro ident: an iridescent disc spins in, then the chrome wordmark wipes on with a glint */
.ident { display: flex; align-items: center; gap: 5cqw; }
.ident-disc { position: relative; flex: none; width: 34cqh; height: 34cqh; border-radius: 50%;
  background: radial-gradient(circle, #000 0 9%, #d8dce4 9.5% 15%, transparent 15.5%),
    conic-gradient(from 20deg, #e9edf4, #9fd3ff, #f4b8ff, #fff2a8, #a8ffd8, #9fc2ff, #ffc4e6, #e9edf4);
  box-shadow: 0 0 0 .5cqh rgba(255,255,255,.3) inset, 0 0 6cqh rgba(150, 190, 255, .35);
  animation: disc-in 1.4s cubic-bezier(.2, .8, .2, 1) both, disc-spin 3s linear infinite; }
.ident-disc i { position: absolute; inset: 0; border-radius: 50%; background: repeating-radial-gradient(circle, rgba(255,255,255,.12) 0 .4cqh, transparent .4cqh 1.1cqh); mix-blend-mode: overlay; }
.ident-disc::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.65) 48%, transparent 60%); }
@keyframes disc-in { from { opacity: 0; transform: translateX(-30cqw) scale(.4); } }
@keyframes disc-spin { to { rotate: 360deg; } }
.ident-word { display: flex; flex-direction: column; gap: 2cqh; text-align: left; animation: word-in .9s .6s var(--ease-out) both; }
@keyframes word-in { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.ident-word b { position: relative; font: italic 900 13cqh/.9 var(--sans); letter-spacing: -.01em;
  background: linear-gradient(180deg, #ffffff 0%, #dfe5ef 42%, #6f7a92 50%, #c9d1df 62%, #ffffff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 .5cqh 0 rgba(30, 50, 120, .8)) drop-shadow(0 0 3cqh rgba(130, 170, 255, .45)); }
.ident-word b::after { content: "VINCE DOUD"; position: absolute; inset: 0; color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(100deg, transparent 40%, rgba(255,255,255,.95) 50%, transparent 60%); background-size: 250% 100%; background-repeat: no-repeat;
  animation: glint 1.2s 1.4s ease-in-out both; }
@keyframes glint { from { background-position: 150% 0; } to { background-position: -60% 0; } }
.ident-word span { font: 800 3.3cqh/1 var(--sans); letter-spacing: .3em; color: #9fb4d8; white-space: nowrap; }
.dvd-loading { font: 700 5cqh/1 ui-monospace, Menlo, monospace; letter-spacing: .2em; color: #9ab; }
/* disc out: the player's plain blue screen */
.dvd-blue { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, #1a34e0, #0a1bb4 75%); font-family: ui-monospace, "SF Mono", Menlo, monospace; color: #fff; text-shadow: .5cqh .5cqh 0 rgba(0, 0, 40, .55); }
.dvd-blue-osd { position: absolute; left: 7%; top: 8%; margin: 0; font-weight: 700; font-size: 7cqh; line-height: 1; letter-spacing: .12em; }
.dvd-blue-note { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); margin: 0; text-align: center; font-weight: 700; font-size: 9cqh; line-height: 1.1; letter-spacing: .14em; animation: fade-in .4s ease both; }
.dvd-blue-note small { display: block; margin-top: 3cqh; font-size: 3.4cqh; font-weight: 600; letter-spacing: .08em; opacity: .8; }

.menu-bg { position: absolute; inset: -10%; overflow: hidden; }
.menu-bg-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2cqh; width: 130%; transform: rotate(-8deg) translate(-8%, -6%); animation: mosaic 40s linear infinite; filter: saturate(.7) brightness(.55) blur(.25cqh); }
.menu-bg-grid img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: .6cqh; }
@keyframes mosaic { to { transform: rotate(-8deg) translate(-8%, -46%); } }
.menu-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 80% at 30% 50%, rgba(10, 6, 30, .35), rgba(5, 3, 12, .92) 80%), linear-gradient(90deg, rgba(0,0,0,.6), transparent 60%); }
.menu-main { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; padding: 0 7%; gap: 4%; }
.menu-title h3 { margin: 1.4cqh 0; font: 900 17cqh/.88 Georgia, "Times New Roman", serif; letter-spacing: -.01em;
  background: linear-gradient(180deg, #fff6d8 0%, #f3c45a 45%, #a86d1a 52%, #ffe7a3 70%, #c98a2c 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 .6cqh 0 rgba(0,0,0,.6)) drop-shadow(0 0 2cqh rgba(255, 190, 80, .25)); }
.menu-kicker { font: 800 3cqh/1 var(--sans); letter-spacing: .22em; color: #c9b9ff; white-space: nowrap; }
.menu-disc { display: inline-block; margin-top: 1cqh; padding: .8cqh 1.6cqh; border: .3cqh solid rgba(255,255,255,.4); border-radius: .8cqh; font: 700 2.9cqh/1 var(--sans); letter-spacing: .14em; color: #ddd; }
.menu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.8cqh; }
.menu-list button, .menu-scenes footer button, .menu-discs footer button {
  display: flex; align-items: center; gap: 2cqh; width: 100%; padding: 1.4cqh 2cqh; border: 0; border-radius: 1cqh; background: transparent; cursor: pointer; text-align: left;
  font: 800 5.2cqh/1 var(--sans); letter-spacing: .02em; color: #e8e6f2; text-shadow: 0 .4cqh 0 rgba(0,0,0,.7); text-transform: uppercase; white-space: nowrap; transition: color .12s, background .12s;
}
.menu-list.is-small button { font-size: 4.4cqh; text-transform: none; }
.menu-pick { flex: none; width: 4.4cqh; height: 4.4cqh; border-radius: 50%; opacity: 0; transform: scale(.4) rotate(-90deg); transition: opacity .15s, transform .25s var(--ease-out);
  background: conic-gradient(from 0deg, #fff, #b8c8ff, #ffd0f0, #fff, #c8ffe8, #fff); box-shadow: inset 0 0 0 1.2cqh rgba(255,255,255,.25), 0 0 1.4cqh rgba(255,255,255,.6); }
[data-item].is-hi { color: #ffe36b !important; background: linear-gradient(90deg, rgba(255, 210, 60, .2), rgba(255, 210, 60, 0)); }
[data-item].is-hi .menu-pick { opacity: 1; transform: none; animation: pick-spin 2.4s linear infinite; }
@keyframes pick-spin { to { transform: rotate(360deg); } }

.menu-scenes, .menu-discs, .menu-extras, .menu-credits { position: absolute; inset: 0; padding: 5.5% 6% 4.5%; display: flex; flex-direction: column;
  background: radial-gradient(ellipse at 50% 0%, #2a1f58, #120d2a 60%, #07050f); }
.menu-scenes header, .menu-discs header, .menu-extras header { display: flex; align-items: baseline; justify-content: space-between; border-bottom: .4cqh solid rgba(255,255,255,.25); padding-bottom: 1.6cqh; margin-bottom: 2.4cqh; }
.menu-scenes h3, .menu-discs h3, .menu-extras h3 { margin: 0; font: 900 6.6cqh/1 Georgia, serif; color: #f3c45a; text-shadow: 0 .4cqh 0 rgba(0,0,0,.7); }
.menu-scenes header span, .menu-discs header span { font: 700 3.2cqh/1 var(--sans); letter-spacing: .1em; color: #b9b2d9; text-transform: uppercase; }
.scene-grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 2.4cqh 3cqh; min-height: 0; }
.scene-grid.is-single { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.scene { display: flex; flex-direction: column; gap: 1cqh; padding: 1cqh; min-width: 0; border: 0; border-radius: 1.2cqh; background: transparent; cursor: pointer; min-height: 0; color: #e8e6f2; }
.scene-img { position: relative; flex: 1; min-height: 0; border-radius: .8cqh; overflow: hidden; box-shadow: 0 0 0 .4cqh rgba(255,255,255,.15); transition: box-shadow .15s, transform .2s var(--ease-out); }
.scene-img img { width: 100%; height: 100%; object-fit: cover; }
.scene-img b { position: absolute; left: 1cqh; top: 1cqh; min-width: 5cqh; padding: .4cqh 1cqh; border-radius: .6cqh; background: rgba(0,0,0,.7); font: 800 3.4cqh/1 var(--sans); text-align: center; }
.scene-img em { position: absolute; right: 1cqh; bottom: 1cqh; padding: .4cqh 1cqh; border-radius: .6cqh; background: #e33; font: 800 2.6cqh/1.2 var(--sans); font-style: normal; }
.scene-title { font: 700 3.3cqh/1.15 var(--sans); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scene-grid.is-single .scene-title { white-space: normal; }
.scene.is-hi { background: rgba(255, 210, 60, .12) !important; }
.scene.is-hi .scene-img { box-shadow: 0 0 0 .6cqh #ffe36b, 0 0 3cqh rgba(255, 220, 90, .5); transform: scale(1.02); }
.menu-scenes footer, .menu-discs footer { display: flex; justify-content: space-between; gap: 2cqh; margin-top: 2cqh; }
.menu-scenes footer button, .menu-discs footer button { width: auto; font-size: 3.8cqh; padding: 1cqh 2cqh; }
.menu-discs footer { justify-content: center; }
[data-dim] { opacity: .35; }
/* collections: four picture cards */
.coll .scene-img { box-shadow: 0 0 0 .4cqh rgba(255,255,255,.2); }
.coll .scene-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(8, 5, 20, .1) 30%, rgba(8, 5, 20, .88)); }
.coll-name { position: absolute; left: 2.4cqh; right: 2.4cqh; bottom: 2cqh; z-index: 1; display: flex; flex-direction: column; gap: .8cqh; text-align: left; }
.coll-name b { position: static; padding: 0; background: none; text-align: left; font: 800 5.4cqh/1 var(--sans); letter-spacing: .01em; text-shadow: 0 .4cqh 0 rgba(0,0,0,.7); }
.coll-name small { font: 700 3cqh/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #cfc8ee; }
.coll.is-hi .coll-name b { color: #ffe36b; }
.menu-note { margin: auto 0 0; font: 600 3cqh/1.4 var(--sans); color: #8f88b3; }
.menu-credits { overflow: hidden; align-items: center; justify-content: center; text-align: center; }
.credits-roll { animation: roll 16s linear both; }
@keyframes roll { from { transform: translateY(70cqh); } to { transform: translateY(-110cqh); } }
.credits-roll p { margin: 4cqh 0 .6cqh; font: 700 3cqh/1 var(--sans); letter-spacing: .3em; color: #b9b2d9; }
.credits-roll h4 { margin: 0; font: 900 6.4cqh/1.1 Georgia, serif; color: #f3c45a; }
.credits-roll .credits-end { margin-top: 10cqh; color: #ffe36b; }
.dvd-blocked { position: absolute; inset: 0; background: center / cover no-repeat; display: grid; place-items: center; text-align: center; }
.dvd-blocked::before { content: ""; position: absolute; inset: 0; background: rgba(6, 4, 16, .76); }
.dvd-blocked > div { position: relative; padding: 0 10%; }
.dvd-blocked-k { margin: 0 0 1.4cqh; font: 800 3.6cqh/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #ffe36b; }
.dvd-blocked-t { margin: 0 0 3cqh; font: 900 7cqh/1.05 Georgia, serif; }
.dvd-blocked .btn { background: #e33; color: #fff; min-height: 8cqh; padding: 0 3cqh; font-size: 3.8cqh; }
.dvd-blocked-h { margin: 3cqh 0 0; font: 600 2.8cqh/1.3 var(--sans); color: #aaa; }
@media (max-width: 900px) {
  /* narrow windows and phones: the TV on top, the remote underneath */
  .page-video { overflow-y: auto; }
  .dvd-scene { display: flex; flex-direction: column; align-items: center; height: auto; min-height: 100%; padding-top: 76px; --rh: 390px; --cw: min(94vw, 560px); }
  .dvd-scene.is-watching { --show: 985; }
  .remote-wrap { position: static; width: auto; margin: -30px 0 30px; }
  .remote { transform: none; }
}
@media (max-width: 600px) {
  /* show the TV and the DVD player; the cart's empty bottom shelf and wheels run off */
  .cart-frame { aspect-ratio: 832 / 1040; overflow: hidden; }
  .remote-wrap { margin-top: 10px; }
}

/* =========================================================
   Shared: zoomed-in basement wall + carpet
   ========================================================= */
.basement-wall {
  background-color: #f4f1eb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='96' viewBox='0 0 200 96'%3E%3Cg fill='none' stroke='%23cfc8bd' stroke-width='2.2'%3E%3Cpath d='M0 1H200M0 49H200M1 1V49M101 49V97M51 1V0'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 200px 96px;
}

/* =========================================================
   TEACHING — a close-up of the bookshelf
   ========================================================= */
/* The shelf is as big as the window allows while leaving room for the books standing on its top board
   (they reach about a quarter of the shelf's height above it). On phones it's wider than the screen and slides sideways;
   it's never drawn smaller than 900px wide, so the books stay a comfortable size. */
.teach { position: absolute; inset: 0; overflow: hidden; --floor: 15%;
  --sw: min(calc((96.5vh - 78px) * 1.5), max(112vw, 900px));
  --sw: min(calc((96.5dvh - 78px) * 1.5), max(112vw, 900px)); }
.teach-pan { position: absolute; inset: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.teach-pan::-webkit-scrollbar { display: none; }
.teach-grouper {
  position: absolute; right: max(18px, env(safe-area-inset-right)); top: calc(64px + env(safe-area-inset-top));
  z-index: 8; display: grid; justify-items: end; gap: 4px; max-width: calc(100% - 36px);
}
.teach-grouper .chip { background: #312720; color: #fff8ec; }
.teach-grouper .chip:hover { background: #211a16; }
.teach-grouper .chip:focus-visible { outline: 2px solid #fff8ec; outline-offset: 3px; }
.teach-grouper small {
  color: #fff8ec; background: #312720; padding: 3px 7px; border-radius: 5px;
  font-size: 11px; line-height: 1.35; text-align: right;
}
.teach-inner { position: relative; height: 100%; width: max(100%, calc(var(--sw) * .88)); overflow: hidden; }
.teach-wall { position: absolute; inset: 0 0 var(--floor) 0; }
.teach-wall { background-color: #f4f1eb;
  background-image: linear-gradient(to bottom, rgba(0,0,0,.18), transparent 22%, transparent 80%, rgba(0,0,0,.12)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='96' viewBox='0 0 200 96'%3E%3Cg fill='none' stroke='%23d2cbc0' stroke-width='2.2'%3E%3Cpath d='M0 1H200M0 49H200M1 1V49M101 49V97'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, 300px 144px; }
.teach-floor { position: absolute; left: 0; right: 0; bottom: 0; height: var(--floor);
  background: linear-gradient(#7d1814, #a8231f 18%, #a3221e 70%, #8b1c19); box-shadow: inset 0 6px 10px -4px rgba(0,0,0,.5); }

.shelf {
  position: absolute; left: 50%; bottom: 3.5%; transform: translateX(-50%);
  width: var(--sw);
  filter: drop-shadow(0 18px 14px rgba(0,0,0,.35));
  animation: shelf-in .8s var(--ease-out) backwards;
}
@keyframes shelf-in { from { opacity: 0; transform: translate(-50%, 20px); } }
.shelf-art { width: 100%; height: 100%; user-select: none; }
.shelf-books { position: absolute; inset: 0; }
.book {
  position: absolute; padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 50% 100%; transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.34, 1.45, .55, 1), filter .3s ease; container-type: size;
  animation: book-in .6s calc(.2s + var(--i, 0) * 55ms) var(--ease-out) backwards;
}
@keyframes book-in { from { transform: translateY(14%); opacity: 0; } }
.book img { width: 100%; height: 100%; display: block; pointer-events: none; }
/* Each book tips on its own perspective, straight toward you. (One shared vanishing point for the whole shelf
   made books away from the middle slew sideways into their neighbours.) */
.book-body { position: absolute; inset: 0; display: block; transform-origin: 50% 100%; transform: perspective(1100px) rotateX(0deg) scale(1); transition: transform .55s cubic-bezier(.34, 1.45, .55, 1), filter .35s ease; }
.book.is-filler { cursor: default; transform: rotate(var(--lean, 0deg)); animation: none; }
.book.is-lying { pointer-events: none; }
.book.is-lying img { position: absolute; left: 50%; top: 50%; max-width: none; transform: translate(-50%, -50%) rotate(90deg); }
.book.is-filler.is-nudge { animation: nudge .5s ease; }
@keyframes nudge { 30% { transform: rotate(calc(var(--lean, 0deg) - 1.5deg)); } 65% { transform: rotate(calc(var(--lean, 0deg) + 1deg)); } }

/* --- the project books ---
   On the shelf the illustrated jackets identify the books you can open.
   Lifted, the book slides up and turns a quarter turn about its right-hand edge, so its cover (the book's
   side, folded back until then) swings round to face you, centered where the spine was.
   --u is one pixel of the shelf drawing; --cw is the cover's width in those pixels. */
.shelf { --u: calc(var(--sw) / 1385); }
.book.is-project { container-type: normal; }
.book.is-project .book-body { transform-origin: 100% 100%; transform-style: preserve-3d;
  transform: perspective(1500px) translateX(0px) translateY(0%) scale(1) rotateY(0deg);
  transition: transform .6s cubic-bezier(.3, .85, .3, 1); }
.book-cover { position: absolute; left: 100%; bottom: 0; height: 100%; width: calc(var(--cw) * var(--u)); transform-origin: 0 50%; transform: rotateY(90deg);
  border-radius: calc(var(--u) * 2) calc(var(--u) * 4) calc(var(--u) * 4) calc(var(--u) * 2); box-shadow: 0 0 0 calc(var(--u) * 3) #1d1712;
  opacity: 0; transition: opacity .12s linear .3s; }
.book-cover img { border-radius: inherit; }
.book.is-pulled { z-index: 4; }
/* while one book is out, the rest of the shelf steps back so it's clear which one you're holding */
.shelf.has-pulled .book.is-filler, .shelf.has-pulled .shelf-plant { filter: brightness(.62) saturate(.8); }
.shelf.has-pulled .book.is-project:not(.is-pulled) { filter: brightness(.62) saturate(.8); }
.book.is-filler, .shelf-plant { transition: filter .3s ease; }
.shelf.has-pulled .shelf-art { filter: brightness(.8); }
.shelf-art { transition: filter .3s ease; }

/* pulled: a quarter turn, 1.2× bigger (still standing on the board), centered over where the spine was, with a warm glow */
.book.is-project.is-pulled .book-body { transform: perspective(1500px) translateX(calc(-50% - var(--cw) * var(--u) * .6)) translateY(-3%) scale(1.2) rotateY(-90deg); }
.book.is-project.is-pulled { filter: drop-shadow(0 0 calc(var(--u) * 12) rgba(255, 206, 110, .85)); }
.book.is-pulled .book-cover { opacity: 1; transition-delay: 0s; }
.book.is-taken { opacity: 0; transition: opacity 200ms ease-in; }

/* the plant at the end of the shelf */
.shelf-plant { position: absolute; height: auto; max-width: none; pointer-events: none; user-select: none; filter: drop-shadow(0 calc(var(--u) * 3) calc(var(--u) * 3) rgba(40, 15, 0, .35));
  animation: book-in .6s .75s var(--ease-out) backwards; }

.book:focus-visible { outline: none; }
.book:focus-visible .book-body { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 4px; }

/* The open book. See specs/book-open-revision-spec.md. */
@font-face { font-family: "Newsreader"; src: url("../assets/fonts/newsreader-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../assets/fonts/newsreader-latin-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
.book-open {
  --bo-ink: #1d1712; --paper: #f7f0de; --paper-2: #efe5cc; --paper-line: #d3c5a4;
  --c-dark: color-mix(in srgb, var(--c) 62%, #1d1712);
  --board: color-mix(in srgb, var(--c) 80%, #1d1712);
  --serif: "Newsreader", Georgia, serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .12 .2 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --cover-time: 600ms; --cover-ease: cubic-bezier(.75, 0, .45, 1);
  position: absolute; inset: 0; z-index: 20; overflow: hidden;
}
.book-open.is-open { --cover-time: 700ms; --cover-ease: cubic-bezier(.55, 0, .25, 1); }
.bo-dim {
  position: absolute; inset: 0; opacity: 0; transition: opacity 250ms ease;
  background: radial-gradient(ellipse 72% 68% at 50% 52%, rgba(22, 13, 6, .34), rgba(22, 13, 6, .8));
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.book-open.is-on .bo-dim { opacity: 1; }
.bo-rise {
  position: absolute; left: 50%; top: calc(50% + 22px); translate: -50% -50%;
  width: min(900px, 90vw, calc((100vh - 200px) * 1.42));
  width: min(900px, 90vw, calc((100dvh - 200px) * 1.42));
  aspect-ratio: 1.42; container-type: size; pointer-events: none;
  transform: translateY(40px) scale(.94); opacity: 0;
  transition: transform 250ms ease-in, opacity 250ms ease-in;
}
.is-on .bo-rise {
  transform: translateY(0) scale(1); opacity: 1;
  transition: transform 350ms ease-out 100ms, opacity 350ms ease-out 100ms;
}
.bo-stage { position: absolute; inset: 0; perspective: 3200px; }
.bo-book {
  --t: 1.4cqh; --m: 1.8cqh; --bt: 1.1cqh;
  --tc: calc(var(--t) + .4cqh); --line: max(1.5px, .32cqh);
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: translateX(-25%); transition: transform var(--cover-time) var(--cover-ease);
}
.is-open .bo-book { transform: translateX(0); }

/* back board, page block edges, spine */
.bo-back { position: absolute; left: 50%; right: calc(-1 * var(--m)); top: calc(-1 * var(--m)); bottom: calc(-1 * var(--m));
  background: var(--board); border-radius: 0 1.2cqh 1.2cqh 0; box-shadow: 0 0 0 var(--line) var(--bo-ink), 0 2.8cqh 6cqh rgba(0, 0, 0, .42); transform: translateZ(calc(-1 * var(--bt))); }
.bo-edge { position: absolute; box-shadow: 0 0 0 calc(var(--line) * .7) var(--bo-ink); }
.bo-edge.is-fore { left: 100%; top: 0; height: 100%; width: var(--t); transform-origin: 0 50%; transform: rotateY(-90deg);
  background: repeating-linear-gradient(90deg, var(--paper-2) 0 .55cqh, var(--paper-line) .55cqh .7cqh); }
.bo-edge.is-top, .bo-edge.is-foot { left: 50%; width: 50%; height: var(--t); transform-origin: 50% 0; transform: rotateX(90deg);
  background: repeating-linear-gradient(0deg, var(--paper-2) 0 .55cqh, var(--paper-line) .55cqh .7cqh); }
.bo-edge.is-top { top: 0; } .bo-edge.is-foot { top: 100%; }
.bo-spine { position: absolute; left: 50%; top: calc(-1 * var(--m)); bottom: calc(-1 * var(--m)); width: calc(var(--tc) + 2 * var(--bt));
  transform-origin: 0 50%; transform: translateZ(calc(-1 * var(--bt))) rotateY(-90deg); background: var(--c); border-radius: .5cqh; overflow: hidden;
  box-shadow: 0 0 0 var(--line) var(--bo-ink); }
.bo-spine img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }

/* The page wrapper receives clicks while the contents are still inert. */
.bo-page {
  position: absolute; inset: 0 0 0 50%; transform: translateZ(var(--t));
  pointer-events: auto; overflow: hidden; border-radius: 0 .8cqh .8cqh 0;
  background: var(--paper);
  box-shadow: 0 0 0 var(--line) var(--bo-ink), .5cqh .55cqh 0 var(--paper-2),
    .5cqh .55cqh 0 var(--line) var(--bo-ink), 1cqh 1.1cqh 0 var(--paper-2),
    1cqh 1.1cqh 0 var(--line) var(--bo-ink);
}
.bo-page::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent 8%, rgba(42, 25, 12, .14) 52%, rgba(42, 25, 12, .38));
  transform: translateX(0); transition: transform var(--cover-time) var(--cover-ease);
}
.is-open .bo-page::after { transform: translateX(-101%); }
.bo-right {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  gap: clamp(9px, 2.6cqh, 16px); padding: 4.6cqh 4.4cqh 3.6cqh 5.6cqh;
  overflow: auto; overscroll-behavior: contain; border-radius: inherit; color: #2a211b;
  background: linear-gradient(90deg, rgba(70, 45, 20, .26), rgba(70, 45, 20, .07) 3.5%, transparent 10%), var(--grain), var(--paper);
}
.bo-right > * { flex: none; }
a.bo-right { text-decoration: none; cursor: pointer; }
.bo-right[inert] { pointer-events: none; }
a.bo-right:not([inert]):is(:hover, :focus) { background-color: color-mix(in srgb, var(--c) 4%, var(--paper)); }
a.bo-right:focus-visible { outline: 3px solid var(--c-dark); outline-offset: -5px; }
.bo-head, .bo-kind, .bo-imprint {
  font: 700 clamp(10px, 2.15cqh, 13px)/1.3 var(--sans);
  letter-spacing: .16em; text-transform: uppercase; color: var(--c-dark);
}
.bo-head { display: flex; align-items: center; gap: 1.6cqh; margin: 0; }
.bo-head::after { content: ""; flex: 1; border-top: 1px solid currentColor; opacity: .55; }
.bo-running-head { display: none; }
.bo-chapters {
  display: grid; gap: .37em; list-style: none; margin: 0; padding: 0;
  font: 400 clamp(16px, 3.35cqh, 19px)/1.18 var(--serif);
}
.bo-chapter { display: grid; grid-template-columns: 2em minmax(0, 1fr) 2ch; gap: .4em; }
.bo-roman { color: var(--c-dark); }
.bo-chapter-name { overflow: hidden; }
.bo-chapter-name::after {
  content: ""; display: inline-block; width: 100%; margin-inline: .32em -100%;
  border-bottom: 1px dotted #8f795c; vertical-align: .24em;
}
.bo-chapter-number { align-self: end; text-align: right; font-variant-numeric: tabular-nums; }

.bo-book-preview {
  display: flex; align-items: center; gap: clamp(10px, 3.8cqh, 22px);
}
.bo-book-preview img {
  display: block; flex: none; width: clamp(66px, 19cqh, 126px); height: auto;
  box-shadow: 0 1px 2px rgba(29, 23, 18, .26), 0 3px 6px rgba(29, 23, 18, .14);
  transition: transform 160ms ease-out;
}
.bo-book-preview p {
  margin: 0; max-width: 32ch; color: #625143;
  font: 400 clamp(13px, 3cqh, 17px)/1.3 var(--serif);
}
a.bo-right:not([inert]):is(:hover, :focus) .bo-book-preview img {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(29, 23, 18, .27), 0 6px 10px rgba(29, 23, 18, .19);
}
.bo-foot {
  margin-top: auto; display: flex; justify-content: space-between; align-items: end; gap: 1em;
  font: 400 clamp(14px, 3cqh, 18px)/1.18 var(--serif);
}
.bo-action { display: inline-flex; align-items: baseline; gap: .5em; color: var(--c-dark); font-weight: 600; }
.bo-arrow { display: inline-block; transition: transform 160ms ease-out; }
a.bo-right:not([inert]):is(:hover, :focus) .bo-action > :first-child { text-decoration: underline; text-underline-offset: .16em; }
a.bo-right:not([inert]):is(:hover, :focus) .bo-arrow { transform: translateX(4px); }
.bo-note { font-style: italic; color: #625143; }
.bo-folio { color: #756450; }

.bo-cover {
  position: absolute; left: 50%; width: calc(50% + var(--m)); top: calc(-1 * var(--m)); bottom: calc(-1 * var(--m));
  transform-origin: 0 50%; transform-style: preserve-3d;
  transform: translateZ(var(--tc)) rotateY(0deg); transition: transform var(--cover-time) var(--cover-ease);
}
.is-open .bo-cover { transform: translateZ(var(--tc)) rotateY(-180deg); }
.bo-cover > .bo-cover-front, .bo-cover > .bo-cover-inside {
  position: absolute; inset: 0; pointer-events: auto;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.bo-cover-front {
  transform: translateZ(var(--bt)); border-radius: 0 1.2cqh 1.2cqh 0; overflow: hidden;
  background: var(--c); box-shadow: 0 0 0 var(--line) var(--bo-ink);
}
.bo-cover-front img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bo-cover-front::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, .25), rgba(255, 255, 255, .12) 2%, rgba(0, 0, 0, .1) 3%, transparent 4.5%);
}
.bo-imprint.bo-imprint-address {
  color: #3157c8; text-align: center; text-transform: none; letter-spacing: 0;
  font: 650 clamp(11px, 3cqh, 17px)/1.25 var(--sans);
}
.bo-cover-edge {
  position: absolute; top: 0; bottom: 0; left: 100%; width: var(--bt); transform-origin: 0 50%;
  transform: rotateY(-90deg); background: var(--board); box-shadow: 0 0 0 calc(var(--line) * .7) var(--bo-ink);
}
.bo-cover-inside {
  transform: rotateY(180deg); border-radius: 1.2cqh 0 0 1.2cqh;
  background: var(--board); box-shadow: 0 0 0 var(--line) var(--bo-ink);
}
.bo-title-page {
  position: absolute; inset: var(--m) 0 var(--m) var(--m); display: grid; grid-template-rows: 1fr auto;
  align-items: center; padding: 6cqh 5.2cqh 4.6cqh; text-align: center; border-radius: .8cqh 0 0 .8cqh;
  background: linear-gradient(270deg, rgba(70, 45, 20, .29), rgba(70, 45, 20, .07) 4%, transparent 10%), var(--grain), var(--paper);
}
.bo-title-block { display: grid; justify-items: center; gap: 2.45cqh; }
.bo-kind, .bo-imprint { margin: 0; }
.bo-title-mark { width: 8.5cqh; border-radius: 20%; overflow: hidden; background: var(--c); }
.bo-title-mark img { width: 100%; mix-blend-mode: luminosity; }
.bo-title { margin: 0; font: 600 clamp(24px, 7.2cqh, 48px)/1.02 var(--serif); text-wrap: balance; color: #1f1813; }
.bo-by { margin: 0; font: italic 400 clamp(15px, 3.3cqh, 22px)/1.2 var(--serif); color: #5a4a3c; }
.bo-ornament { margin: 0; display: flex; align-items: center; gap: .4em; color: var(--c-dark); font: 400 clamp(15px, 3.3cqh, 23px)/1 Georgia, serif; }
.bo-ornament::before, .bo-ornament::after { content: ""; width: 1.4em; border-top: 1px solid currentColor; opacity: .7; }
.bo-imprint { opacity: .86; }

.bo-tab {
  position: absolute; right: 6%; bottom: calc(100% + var(--m)); transform: translateZ(calc(var(--tc) + var(--bt) + 2px));
  pointer-events: auto; min-height: 44px; padding: 0 16px; display: flex; align-items: center; gap: .5em;
  border: 0; border-radius: 6px 6px 0 0; cursor: pointer;
  font: 700 clamp(11px, 2.2cqh, 14px)/1 var(--sans); letter-spacing: .05em;
  color: #fbf4e2; background: var(--c-dark); box-shadow: 0 0 0 var(--line) var(--bo-ink);
}
.bo-tab:hover { background: color-mix(in srgb, var(--c) 55%, #1d1712); }
.bo-tab:focus-visible { outline: 3px solid var(--focus); outline-offset: -4px; }

.is-reduced .bo-rise { transform: none; }
.is-reduced .bo-rise, .is-reduced .bo-dim { transition: opacity 200ms ease !important; }
.is-reduced .bo-stage *, .is-reduced .bo-stage *::after { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .book.is-taken { transform: translateY(-4%); }
}

/* the caption: a hint at first, then the title of the book you're on */
.teach-hint { position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 9; margin: 0; padding: 8px 16px; border-radius: 999px;
  width: max-content; max-width: calc(100vw - 32px); text-align: center; line-height: 1.4;
  background: rgba(10,8,7,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 13px; font-weight: 500; color: rgba(245,239,230,.86); pointer-events: none;
  transition: opacity .6s ease, transform .6s var(--ease-out); animation: hint-in .8s 1s var(--ease-out) both; }
.teach-hint b { font-weight: 650; color: var(--glow); }

@media (max-width: 767px) {
  /* phones: the shelf sits a little higher; swipe sideways to see the rest of it */
  .shelf { bottom: 11%; }
  .teach { --floor: 20%; }
  /* The cover swings to the left while the contents page stays centered. */
  .bo-rise {
    --bo-safe-top: max(0px, calc(env(safe-area-inset-top, 0px) - 14px));
    --bo-safe-bottom: env(safe-area-inset-bottom, 0px);
    top: calc(50% + 36px + (var(--bo-safe-top) - var(--bo-safe-bottom)) / 2);
    width: min(184vw, 880px); aspect-ratio: auto;
    height: min(calc(100vh - 170px - var(--bo-safe-top) - var(--bo-safe-bottom)), 143vw, 650px);
    height: min(calc(100dvh - 170px - var(--bo-safe-top) - var(--bo-safe-bottom)), 143vw, 650px);
  }
  .is-open .bo-book { transform: translateX(-25%); }
  .bo-right { gap: clamp(8px, 2cqh, 12px); padding: 3.4cqh 4cqh 3cqh 4.8cqh; }
  .bo-running-head {
    display: block; margin: 0 0 .32em; color: #1f1813;
    font: 600 clamp(21px, 4.6cqh, 30px)/1.04 var(--serif);
  }
  .bo-chapters { font-size: clamp(16px, 3.3cqh, 18px); gap: .25em; }
  .bo-book-preview img { width: clamp(60px, 18cqh, 106px); }
}
@media (max-width: 767px) and (orientation: landscape) {
  .bo-rise {
    --landscape-height: calc(100vh - 120px - var(--bo-safe-top) - var(--bo-safe-bottom));
    --landscape-height: calc(100dvh - 120px - var(--bo-safe-top) - var(--bo-safe-bottom));
    top: calc(50% + 26px + (var(--bo-safe-top) - var(--bo-safe-bottom)) / 2);
    height: var(--landscape-height);
    width: min(90vw, calc(var(--landscape-height) * 1.42));
  }
  .is-open .bo-book { transform: translateX(0); }
  .bo-running-head { display: none; }
  .bo-chapters { font-size: 14px; }
  .bo-chapter { grid-template-columns: 1.5em minmax(0, 1fr) 2ch; }
  .bo-book-preview { display: flow-root; }
  .bo-book-preview img { float: left; margin: 0 9px 4px 0; width: 48px; }
}

/* =========================================================
   AI — the laptop
   ========================================================= */
.desk-surface {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 58%, rgba(255, 230, 190, .10), transparent 70%),
    linear-gradient(170deg, #26221f 0%, #121010 55%, #0a0909 100%);
}
.desk-surface::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: linear-gradient(to top, rgba(0,0,0,.55), transparent); }
.laptop-scene { position: relative; z-index: 1; height: 100%; display: grid; place-items: center; padding: 64px 20px 18px; }
.laptop { position: relative; width: min(92vw, calc((100vh - 96px) * 1.243), 1160px); aspect-ratio: 1154 / 928; filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)); animation: lid-in .8s var(--ease-out) both; }
@keyframes lid-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.laptop-art { width: 100%; height: 100%; user-select: none; }
.mac-screen { position: absolute; overflow: hidden; border-radius: .6% / .9%; background: #000; container-type: size; }
.mac-glass { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(125deg, rgba(255,255,255,.07), transparent 35%); }
.mac-desktop {
  position: absolute; inset: 0; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", var(--sans); color: #fff;
  /* a soft macOS-style wallpaper */
  background:
    radial-gradient(ellipse 70% 60% at 85% 100%, rgba(255, 150, 120, .75), transparent 62%),
    radial-gradient(ellipse 60% 70% at 15% 95%, rgba(110, 90, 230, .8), transparent 65%),
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(80, 170, 255, .7), transparent 70%),
    radial-gradient(ellipse 120% 80% at 60% 60%, #3a3f9e, #1b1f55 80%);
  animation: wake .9s .25s ease both;
}
@keyframes wake { from { filter: brightness(0); } 60% { filter: brightness(1.12); } }
.mac-bar {
  position: absolute; left: 0; right: 0; top: 0; height: 4.2cqh; z-index: 3; display: flex; align-items: center; gap: 2.1cqw; padding: 0 1.8cqw;
  font-size: 2.45cqh; font-weight: 500; background: rgba(30, 30, 60, .28); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
}
.mac-bar b { font-weight: 700; }
.mac-apple svg { display: block; width: 1.9cqh; height: 2.4cqh; }
.mac-status { margin-left: auto; display: flex; align-items: center; gap: 1.6cqw; }
.mac-status svg { height: 2.2cqh; width: auto; }
.mac-clock { font-variant-numeric: tabular-nums; white-space: pre; }

/* project folders down the right side, like icons on a real desktop */
.mac-folders { position: absolute; right: 1.6cqw; top: 7cqh; z-index: 1; list-style: none; margin: 0; padding: 0;
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(4, 17cqh); grid-auto-columns: 12cqw; direction: rtl; gap: 1.2cqh .6cqw; }
.mac-folders li { direction: ltr; }
.mac-folder {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; gap: .6cqh; padding: .6cqh .3cqw; border: 0; border-radius: .8cqh;
  background: none; color: #fff; cursor: default; animation: icon-in .45s calc(.6s + var(--i) * 55ms) var(--ease-out) backwards;
}
@keyframes icon-in { from { opacity: 0; transform: scale(.85); } }
.mac-folder svg { width: 9.6cqh; height: auto; filter: drop-shadow(0 .4cqh .6cqh rgba(0,0,0,.3)); }
.mac-folder span { max-width: 100%; padding: .15cqh .8cqh; border-radius: .6cqh; font-size: 2.2cqh; font-weight: 500; line-height: 1.25; text-align: center; text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.mac-folder:hover svg { filter: drop-shadow(0 .4cqh .6cqh rgba(0,0,0,.3)) brightness(1.06); }
.mac-folder.is-sel svg { filter: brightness(.82); }
.mac-folder.is-sel { background: rgba(255,255,255,.14); }
.mac-folder.is-sel span { background: #2f6fde; text-shadow: none; }
.mac-folder:focus-visible { outline: .4cqh solid #fff; }

/* dock */
.mac-dock {
  position: absolute; left: 50%; bottom: .9cqh; z-index: 3; transform: translateX(-50%); display: flex; align-items: flex-end; gap: .9cqh; padding: .8cqh 1cqh;
  border-radius: 2.4cqh; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
}
.dock-app { --mag: 0; position: relative; width: 7.4cqh; height: 7.4cqh; border: 0; padding: 0; background: none; cursor: default;
  transform-origin: 50% 100%; transform: translateY(calc(var(--mag) * -24%)) scale(calc(1 + var(--mag) * .5)); transition: transform .12s ease-out; }
.dock-app > svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 .3cqh .5cqh rgba(0,0,0,.28)); }
.dock-dot { position: absolute; left: 50%; bottom: -.75cqh; width: .6cqh; height: .6cqh; margin-left: -.3cqh; border-radius: 50%; background: rgba(255,255,255,.9); opacity: 0; }
.dock-app[data-dock="finder"] .dock-dot { opacity: .9; } /* Finder is always running */
.dock-app.is-open .dock-dot { opacity: .9; }
.dock-tip { position: absolute; left: 50%; bottom: calc(100% + 1.4cqh); transform: translateX(-50%); padding: .5cqh 1.2cqh; border-radius: .7cqh; white-space: nowrap;
  background: rgba(40, 40, 50, .82); color: #fff; font-size: 2cqh; opacity: 0; pointer-events: none; transition: opacity .12s; }
.dock-app:hover .dock-tip { opacity: 1; }
.dock-app.is-bounce { animation: dock-bounce .8s ease; }
@keyframes dock-bounce { 0%, 100% { translate: 0 0; } 25% { translate: 0 -40%; } 50% { translate: 0 0; } 70% { translate: 0 -16%; } }
.dock-sep { align-self: stretch; width: 1px; margin: .4cqh .4cqh; background: rgba(255,255,255,.4); }

/* windows */
.mac-window {
  position: absolute; left: 7cqw; right: 15cqw; top: 8cqh; bottom: 13cqh; z-index: 2; border-radius: 1.4cqh; overflow: hidden;
  background: #fff; color: #1d1d1f; box-shadow: 0 3cqh 7cqh rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.22);
  display: flex; cursor: default;
}
.mac-window.is-in { animation: win-in .28s var(--ease-out) both; }
@keyframes win-in { from { opacity: 0; transform: scale(.94); } }
.mac-window.is-drag { box-shadow: 0 4cqh 9cqh rgba(0,0,0,.5), 0 0 0 1px rgba(0,0,0,.22); }

/* traffic lights: bigger than they look, so they're easy to hit; symbols appear on hover like a real Mac */
.win-lights { display: flex; gap: 1.1cqh; padding: 1.8cqh 1.8cqh 1.2cqh; }
.win-dot { position: relative; width: 2.1cqh; height: 2.1cqh; flex: none; border-radius: 50%; border: 0; padding: 0; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.18); display: grid; place-items: center; }
.win-dot.is-close { cursor: pointer; }
.win-dot.is-close::before { content: ""; position: absolute; inset: -1cqh; border-radius: 50%; } /* the extra hit area */
.win-dot.is-min { background: #febc2e; } .win-dot.is-max { background: #28c840; }
.win-dot svg { width: 72%; height: 72%; opacity: 0; transition: opacity .1s; }
.win-dot svg path { fill: none; stroke: rgba(0,0,0,.6); stroke-width: 1.4; stroke-linecap: round; }
.win-dot.is-max svg path { fill: rgba(0,0,0,.55); stroke: none; }
.win-lights:hover .win-dot svg { opacity: 1; }
.win-dot.is-close:focus-visible { outline: .4cqh solid #2f6fde; outline-offset: .3cqh; }

/* Finder */
.fw-side { flex: none; width: 21cqw; display: flex; flex-direction: column; gap: .2cqh; padding-bottom: 2cqh; overflow-y: auto;
  background: rgba(236, 234, 240, .96); border-right: 1px solid #d6d4da; }
.fw-head { margin: 1.6cqh 0 .5cqh; padding: 0 2cqh; font-size: 1.85cqh; font-weight: 700; color: #8a8a90; }
.fw-item { display: flex; align-items: center; gap: .9cqh; margin: 0 1cqh; padding: .55cqh 1cqh; border: 0; border-radius: .8cqh; background: none;
  font-family: inherit; font-size: 2.15cqh; font-weight: 500; line-height: 1.2; color: #2a2a2e; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fw-item svg { width: 2.4cqh; flex: none; }
button.fw-item { cursor: default; }
button.fw-item:hover { background: rgba(0,0,0,.06); }
.fw-item.is-on { background: rgba(0,0,0,.1); }
.fw-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fw-bar { flex: none; height: 6.4cqh; display: flex; align-items: center; gap: 1.6cqw; padding: 0 2cqw; border-bottom: 1px solid #e3e1e6; background: #fafafa; }
.fw-bar-lights { display: none; }
.fw-arrows { font-size: 3.4cqh; color: #9a9aa0; letter-spacing: .6cqw; }
.fw-title { font-size: 2.4cqh; font-weight: 700; color: #2a2a2e; }
.fw-body { flex: 1; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.fw-media { min-height: 0; background: #f2f1f4; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid #e8e6ea; }
.fw-media img, .fw-media video { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.fw-icon { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--c) 30%, #fff), color-mix(in srgb, var(--c) 60%, #222) 130%); }
.fw-icon img { width: 15cqh; height: 15cqh; border-radius: 3.4cqh; box-shadow: 0 1.4cqh 3cqh rgba(0,0,0,.28); }
.fw-text { padding: 2cqh 2.4cqw 2.4cqh; display: grid; grid-template-columns: 1fr auto; column-gap: 2cqw; row-gap: .7cqh; align-items: start; }
.fw-text > * { grid-column: 1; margin: 0; }
.fw-kind { font-size: 1.8cqh; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a8a90; }
.fw-text h2 { font-size: 3.4cqh; line-height: 1.1; letter-spacing: -.01em; }
.fw-text p { font-size: 2.2cqh; line-height: 1.4; color: #4a4a50; }
.fw-note { font-style: italic; color: #8a8a90 !important; }
.fw-open { grid-column: 2 !important; grid-row: 1 / span 4; align-self: center; padding: 1.1cqh 2.2cqh; border-radius: 1cqh; background: #2f6fde; color: #fff; font-size: 2.2cqh; font-weight: 600; text-decoration: none; white-space: nowrap; }
.fw-open:hover { background: #2a62c7; }
.fw-grid { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(14cqw, 1fr)); align-content: start; gap: 2cqh 1cqw; padding: 3cqh 2cqw; }
.fw-tile { display: flex; flex-direction: column; align-items: center; gap: .8cqh; padding: 1cqh; border: 0; border-radius: 1cqh; background: none; cursor: default; font-family: inherit; }
.fw-tile svg { width: 10cqh; }
.fw-tile span { font-size: 2.1cqh; color: #2a2a2e; }
.fw-tile:hover { background: rgba(0,0,0,.05); }

/* Codex terminal */
.mac-window.is-term { flex-direction: column; background: rgba(22, 22, 26, .96); color: #e8e8ea; left: 12cqw; right: 22cqw; top: 14cqh; bottom: 22cqh; }
.term-bar { flex: none; position: relative; display: flex; align-items: center; background: #2b2b30; border-bottom: 1px solid #000; }
.term-bar .win-lights { padding: 1.3cqh 1.6cqh; }
.term-bar .fw-title { position: absolute; left: 50%; transform: translateX(-50%); color: #b8b8be; font-weight: 600; font-size: 2.1cqh; pointer-events: none; }
.term-body { flex: 1; overflow: auto; padding: 2cqh 2.4cqw; font: 2.3cqh/1.55 ui-monospace, "SF Mono", Menlo, monospace; }
.term-body p { margin: 0; }
.term-p { color: #8ce99a; }
.term-dim { color: #8f8f98; }
.term-ls { display: flex; flex-wrap: wrap; gap: 0 3cqw; }
.term-ls button { padding: 0; border: 0; background: none; font: inherit; color: #74c0fc; cursor: pointer; }
.term-ls button:hover { text-decoration: underline; }
.term-cursor { display: inline-block; width: 1.2cqh; height: 2.4cqh; vertical-align: -.4cqh; background: #e8e8ea; animation: term-blink 1s steps(1) infinite; }
@keyframes term-blink { 50% { opacity: 0; } }

/* Phones: no laptop body, just the screen filling the page, laid out for portrait. */
@media (max-width: 767px) {
  .laptop-scene { padding: 62px 10px max(12px, env(safe-area-inset-bottom)); place-items: stretch; }
  .laptop { width: 100%; height: 100%; aspect-ratio: auto; filter: drop-shadow(0 16px 24px rgba(0,0,0,.5)); }
  .laptop-art { display: none; }
  .mac-screen { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; border-radius: 22px; box-shadow: 0 0 0 7px #1c1c1e, 0 0 0 8px #3a3a3e; }
  .mac-bar { height: 34px; gap: 14px; padding: 0 14px; font-size: 13px; }
  .mac-bar > span:not(.mac-apple):not(.mac-status):not(.mac-clock) { display: none; }
  .mac-apple svg { width: 12px; height: 15px; }
  .mac-status { gap: 8px; } .mac-status svg { height: 13px; } .mac-status svg:nth-child(n+3) { display: none; }
  .mac-clock { font-size: 12px; }
  .mac-folders { left: 12px; right: 12px; top: 52px; direction: ltr; grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-template-rows: none; grid-auto-rows: auto; gap: 18px 6px; }
  .mac-folder { gap: 6px; padding: 6px 2px; }
  .mac-folder svg { width: 62px; }
  .mac-folder span { font-size: 12px; padding: 1px 6px; }
  .mac-dock { bottom: 10px; gap: 8px; padding: 7px 9px; border-radius: 20px; }
  .dock-app { width: 46px; height: 46px; }
  .dock-tip { display: none; }
  .mac-window, .mac-window.is-term { left: 6px; right: 6px; top: 40px; bottom: 74px; border-radius: 14px; flex-direction: column; }
  .mac-window .fw-side { display: none; }
  .win-lights { padding: 0 4px 0 2px; gap: 9px; }
  .win-dot { width: 14px; height: 14px; }
  .win-dot.is-close::before { inset: -10px; }
  .fw-main { position: relative; }
  .fw-bar { height: 46px; gap: 10px; padding: 0 12px; }
  .fw-bar-lights { display: block; } /* the sidebar (and its lights) is hidden, so the bar gets its own */
  .fw-arrows { display: none; }
  .fw-title { font-size: 15px; }
  .fw-body { grid-template-rows: minmax(150px, 40%) 1fr; }
  .fw-text { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 18px; overflow-y: auto; }
  .fw-kind { font-size: 11px; }
  .fw-text h2 { font-size: 21px; }
  .fw-text p { font-size: 14.5px; }
  .fw-open { align-self: flex-start; margin-top: 6px; padding: 11px 18px; border-radius: 10px; font-size: 15px; }
  .fw-grid { grid-template-columns: repeat(3, 1fr); gap: 14px 6px; padding: 18px 10px; }
  .fw-tile svg { width: 58px; } .fw-tile span { font-size: 12px; }
  .term-bar .win-lights { padding: 12px 12px; }
  .term-bar .fw-title { font-size: 12px; }
  .term-body { padding: 14px; font-size: 12.5px; }
  .term-cursor { width: 7px; height: 14px; }
}

/* =========================================================
   ABOUT — wallet (opens on hover) + Jersey-style ID
   ========================================================= */
.desk-surface.is-leather { background: radial-gradient(ellipse 60% 50% at 50% 45%, rgba(255, 220, 170, .13), transparent 70%), linear-gradient(170deg, #1f1b18, #0c0b0a); }
.about-scene { position: relative; z-index: 1; height: 100%; perspective: 1500px; --cardw: min(620px, 88vw, calc((100vh - 200px) * 1.586)); }

.wallet { position: absolute; left: 50%; top: 50%; width: min(540px, 76vw); aspect-ratio: 1677 / 752; transform: translate(-50%, -50%); cursor: pointer; outline: none;
  transition: transform 1s var(--ease-in-out), filter .6s; filter: drop-shadow(0 26px 24px rgba(0,0,0,.6)); }
.wallet:focus-visible .wallet-3d { outline: 3px solid var(--focus); outline-offset: 10px; border-radius: 12px; }
.wallet-3d { position: absolute; inset: 0; perspective: 900px; }
.wallet-3d img { position: absolute; left: 50%; top: 50%; user-select: none; backface-visibility: hidden; transition: transform .33s cubic-bezier(.55, 0, .9, .5), opacity .01s; }
.wallet-closed { width: 74%; transform: translate(-50%, -50%) rotateY(0deg); transform-origin: 0% 50%; }
.wallet-open { width: 100%; opacity: 0; transform: translate(-50%, -50%) scaleX(.08); }
.about-scene[data-state="closed"] .wallet { animation: wallet-in .7s var(--ease-out) backwards; }
.about-scene[data-state="closed"] .wallet:hover .wallet-closed { transform: translate(-50%, -50%) rotateY(-14deg); }
@keyframes wallet-in { from { transform: translate(-50%, -40%) rotate(-6deg); opacity: 0; } }
.about-scene[data-state="flap"] .wallet-closed { transform: translate(-50%, -50%) rotateY(-88deg); }
.about-scene:is([data-state="open"], [data-state="out"]) .wallet-closed { opacity: 0; transform: translate(-50%, -50%) rotateY(-90deg); }
.about-scene:is([data-state="open"], [data-state="out"]) .wallet-open { opacity: 1; transform: translate(-50%, -50%) scaleX(1); transition: transform .55s cubic-bezier(.2, 1.4, .4, 1); }
.about-scene[data-state="out"] .wallet { transform: translate(-50%, 33vh) scale(.8); filter: drop-shadow(0 20px 20px rgba(0,0,0,.6)) brightness(.68); cursor: default; }
.wallet-hint { position: absolute; left: 50%; top: 100%; margin: 26px 0 0; transform: translateX(-50%); white-space: nowrap; font-family: var(--hand); font-size: 22px; color: rgba(245,239,230,.7); transition: opacity .3s; animation: hint-bob 2s ease-in-out infinite; }
@keyframes hint-bob { 50% { transform: translate(-50%, -4px); } }
.about-scene:not([data-state="closed"]) .wallet-hint { opacity: 0; }

.id-wrap { position: absolute; left: 50%; top: 50%; width: var(--cardw); aspect-ratio: 1.586; opacity: 0; pointer-events: none;
  transform: translate(-50%, -30%) scale(.34); --rx: 0deg; --ry: 0deg; }
.about-scene[data-state="out"] .id-wrap { pointer-events: auto; animation: id-out 1.15s cubic-bezier(.2, .9, .3, 1) forwards; }
/* Arriving from the basement: the wallet is already open at the bottom and the card rises straight up out of it. */
.about-scene.is-arrived .wallet { transition: none; animation: wallet-arrive .6s var(--ease-out) backwards; }
.about-scene.is-arrived .wallet-3d img { transition: none; }
@keyframes wallet-arrive { from { opacity: 0; translate: 0 40px; } }
.about-scene.is-arrived[data-state="out"] .id-wrap { animation: id-rise .8s .1s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes id-rise {
  0% { opacity: 0; transform: translate(-50%, 10%) scale(.45); }
  25% { opacity: 1; }
  100% { opacity: 1; transform: translate(-50%, -60%) scale(1); }
}
@keyframes id-out {
  0% { opacity: 0; transform: translate(-50%, -18%) scale(.34) rotateX(60deg); }
  12% { opacity: 1; }
  40% { transform: translate(-50%, -70%) scale(.5) rotateX(30deg) rotateZ(-4deg); }
  100% { opacity: 1; transform: translate(-50%, -60%) scale(1) rotateX(0) rotateZ(0); }
}
/* Flipping: the card turns edge-on, the faces swap while it's a sliver, and it turns the rest of the way (about.js sets --turn).
   Only one face is ever drawn, so nothing depends on the browser hiding the far side (phones used to show both at once). */
.id-card { position: absolute; inset: 0; cursor: pointer; border-radius: 3.8% / 6%;
  transform: rotateX(var(--rx)) rotateY(calc(var(--ry) + var(--turn, 0deg))); transition: transform .5s var(--ease-out); }
.id-card.is-turning { transition: transform .22s cubic-bezier(.5, 0, .9, .6); }
.id-card.is-landing { transition: none; }
.id-card.is-flipped .id-front, .id-card:not(.is-flipped) .id-back { visibility: hidden; }
.id-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 8px; }
.id-face { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; container-type: size; color: #13213b;
  box-shadow: 0 34px 60px -22px rgba(0,0,0,.8), 0 2px 0 rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.75), inset 0 -2px 0 rgba(0,0,0,.08); }
.id-front {
  font-family: "Arial Narrow", "Helvetica Neue", Arial, var(--sans);
  background:
    var(--guilloche) center / cover no-repeat,
    radial-gradient(ellipse 70% 90% at 82% 40%, rgba(255, 210, 120, .45), transparent 70%),
    linear-gradient(112deg, #dfe9f4 0%, #f3efe4 38%, #f6e9cf 62%, #dbe7f2 100%);
}
.id-front::before { /* Jersey Shore lighthouse, printed faintly like a watermark */ content: ""; position: absolute; right: 21cqw; bottom: 4cqh; width: 18cqw; height: 62cqh; background: var(--lighthouse) center bottom / contain no-repeat; opacity: .09; pointer-events: none; }
.id-front > * { position: absolute; z-index: 1; }
.id-head { left: 0; right: 0; top: 0; height: 17cqh; display: flex; align-items: center; justify-content: space-between; padding: 0 4cqw;
  background: linear-gradient(90deg, rgba(23, 58, 122, .16), rgba(23, 58, 122, .02) 70%); border-bottom: .55cqh solid #c99b4a; }
.id-state { margin: 0; font: italic 700 11.5cqh/1 Georgia, "Times New Roman", serif; color: #173a7a; letter-spacing: .02em; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.id-type { display: flex; flex-direction: column; align-items: flex-end; gap: .8cqh; }
.id-type b { font: 800 4.6cqh/1 var(--sans); letter-spacing: .16em; color: #b3261e; }
.id-type span { font: 700 2.5cqh/1 var(--sans); letter-spacing: .14em; color: #5b667a; }
.id-micro { left: 0; right: 0; top: 18.4cqh; height: 2.2cqh; overflow: hidden; white-space: nowrap; font: 700 1.55cqh/2.2cqh var(--sans); letter-spacing: .08em; color: rgba(23, 58, 122, .55); }
.id-photo { left: 4cqw; top: 24cqh; width: 26cqw; height: 52cqh; border-radius: 1.2cqh; overflow: hidden; background: #c9d3dd;
  box-shadow: 0 0 0 .35cqh rgba(255,255,255,.8), 0 .5cqh 1.2cqh rgba(0,0,0,.18); }
.id-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: saturate(.78) contrast(1.06) brightness(1.03); }
.id-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(220, 232, 245, .15), rgba(220, 232, 245, 0) 30%), repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px); }
.id-sig { left: 4.5cqw; top: 78cqh; width: 26cqw; font: 400 9.5cqh/1 var(--hand); color: #1b2c58; transform: rotate(-4deg); transform-origin: 0 50%; white-space: nowrap; }
.id-fields { left: 33cqw; top: 22cqh; right: 19cqw; margin: 0; display: flex; flex-direction: column; gap: 1.3cqh; }
.id-fields p { margin: 0; position: static; }
.id-fields small { display: block; margin-bottom: .5cqh; font: 700 2.5cqh/1 var(--sans); letter-spacing: .08em; color: #b3261e; }
.id-name b { display: block; font: 800 6.4cqh/1 var(--sans); letter-spacing: .03em; color: #111a2e; }
.id-about { font: 700 3.5cqh/1.28 var(--sans); color: #18233b; text-wrap: pretty; }
.id-about.is-more { margin-top: -.6cqh !important; font-size: 2.85cqh; font-weight: 600; line-height: 1.32; color: #33405a; }
.id-makes { font: 800 3.1cqh/1.2 var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.id-makes a { color: #173a7a; text-decoration: none; border-bottom: .3cqh solid rgba(23, 58, 122, .3); }
.id-makes a:hover { color: #b3261e; border-color: currentColor; }
.id-makes i { font-style: normal; color: #c99b4a; margin: 0 .9cqw; }
.id-dl { display: flex; align-items: baseline; gap: 1.2cqw; }
.id-fields .id-dl small { display: inline; margin: 0; }
.id-dl b { font: 800 4.3cqh/1 var(--sans); letter-spacing: .05em; color: #b3261e; }
.id-grid { margin: 0; display: grid; grid-template-columns: repeat(3, max-content); gap: .9cqh 3cqw; }
.id-grid div { display: flex; flex-direction: column; gap: .35cqh; }
.id-grid dt { font: 700 2.2cqh/1 var(--sans); letter-spacing: .08em; color: #b3261e; }
.id-grid dd { margin: 0; font: 800 3.3cqh/1.05 var(--sans); letter-spacing: .03em; color: #111a2e; white-space: nowrap; }
.id-grid dd.is-red { color: #b3261e; }
.id-dd { right: 4.5cqw; top: 69cqh; width: 13cqw; text-align: center; font: 700 1.7cqh/1.25 ui-monospace, Menlo, monospace; letter-spacing: .04em; color: rgba(19, 33, 59, .5); }
.id-fine { left: 4.5cqw; bottom: 1.6cqh; font: 700 1.7cqh/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(19, 33, 59, .5); }
.id-class-band { left: 33cqw; right: 20cqw; bottom: 4.5cqh; display: flex; align-items: center; gap: 1.6cqw; font: 800 3.5cqh/1 var(--sans); letter-spacing: .2em; color: #173a7a; }
.id-class-band i { font-style: normal; color: #c99b4a; }
.id-ghost { right: 4.5cqw; top: 30cqh; width: 13cqw; height: 32cqh; object-fit: cover; object-position: 50% 20%; opacity: .32; filter: grayscale(1) contrast(1.5) brightness(1.1); mix-blend-mode: multiply; border-radius: .8cqh;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 45%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 70% 80% at 50% 45%, #000 55%, transparent 100%); }
.id-ghost-date { right: 4.5cqw; top: 64cqh; width: 13cqw; text-align: center; font: 700 2.5cqh/1 ui-monospace, Menlo, monospace; letter-spacing: .08em; color: rgba(19, 33, 59, .45); }
.id-holo { inset: 0; z-index: 4 !important; pointer-events: none; mix-blend-mode: color-dodge; opacity: var(--ho, .18); --hx: 0%;
  background:
    repeating-radial-gradient(circle at calc(78% + var(--hx)) 46%, transparent 0 1.1cqh, rgba(255,255,255,.55) 1.1cqh 1.3cqh, transparent 1.3cqh 2.6cqh),
    linear-gradient(115deg, transparent 20%, rgba(120, 220, 255, .55) 38%, rgba(255, 150, 230, .5) 50%, rgba(255, 240, 140, .5) 62%, transparent 80%);
  background-size: 100% 100%, 220% 100%; background-position: 0 0, calc(50% + var(--hx)) 0;
  -webkit-mask-image: radial-gradient(ellipse 30% 45% at 80% 46%, #000, transparent 75%), linear-gradient(#000, #000); -webkit-mask-composite: source-over; }
.id-gloss { inset: 0; z-index: 5 !important; pointer-events: none; --gx: 30%; --gy: 20%;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255,255,255,.42), rgba(255,255,255,0) 32%), linear-gradient(160deg, rgba(255,255,255,.16), transparent 40%, transparent 70%, rgba(255,255,255,.08)); mix-blend-mode: soft-light; }

/* The back: like the back of a real license. Barcodes, codes and fine print. */
.id-back {
  font-family: "Arial Narrow", "Helvetica Neue", Arial, var(--sans); color: #111a2e;
  background: var(--guilloche, none) center / cover no-repeat, linear-gradient(118deg, #eef2f5, #f6f1e6);
}
.id-back > * { position: absolute; }
.id-back-code { left: 5cqw; right: 5cqw; top: 7cqh; height: 30cqh; padding: 1.6cqh 2cqw; background: rgba(255,255,255,.75); border-radius: .8cqh; }
.id-back-code svg { width: 100%; height: 100%; display: block; }
.id-back-codes { left: 5cqw; right: 26cqw; top: 42cqh; margin: 0; display: flex; flex-direction: column; gap: 1.3cqh; }
.id-back-codes div { display: flex; gap: 1.6cqw; align-items: baseline; }
.id-back-codes dt { flex: none; width: 11cqw; font: 800 2.6cqh/1 var(--sans); letter-spacing: .04em; color: #b3261e; }
.id-back-codes dd { margin: 0; font: 700 3cqh/1.2 var(--sans); color: #18233b; }
.id-back-codes dd b { color: #b3261e; font-size: 2.6cqh; }
.id-back-fine { left: 5cqw; right: 26cqw; bottom: 16cqh; margin: 0; font: 600 2.3cqh/1.3 var(--sans); color: #5b667a; }
.id-back-line { left: 5cqw; bottom: 5cqh; width: 40cqw; height: 8cqh; display: flex; flex-direction: column; gap: .6cqh; }
.id-back-line svg { width: 100%; flex: 1; }
.id-back-line span { font: 700 2cqh/1 ui-monospace, Menlo, monospace; letter-spacing: .3em; color: #33405a; }
.id-back-ghost { right: 5cqw; top: 42cqh; width: 17cqw; height: 40cqh; object-fit: cover; object-position: 50% 20%; border-radius: .8cqh; opacity: .3; filter: grayscale(1) contrast(1.4); mix-blend-mode: multiply; }
.id-back-micro { left: 0; right: 0; bottom: 1.4cqh; white-space: nowrap; overflow: hidden; font: 700 1.5cqh/1 var(--sans); letter-spacing: .08em; color: rgba(23, 58, 122, .45); }

.id-controls { position: absolute; left: 50%; bottom: max(22px, 4vh); transform: translateX(-50%); display: flex; gap: 10px; opacity: 0; pointer-events: none; transition: opacity .5s .9s; z-index: 3; }
.about-scene.is-arrived .id-controls { transition-delay: .5s; }
.about-scene[data-state="out"] .id-controls { opacity: 1; pointer-events: auto; }
@media (max-width: 767px) {
  .id-controls { gap: 6px; }
  .id-controls .chip { white-space: nowrap; height: 38px; padding: 0 13px; font-size: 13px; }
  .about-scene[data-state="out"] .wallet { transform: translate(-50%, 31vh) scale(.56); }

  /* Phones keep the license sideways like the real thing, as wide as the screen allows.
     The ghost portrait column goes so the fields can use the full width and the about-me stays readable. */
  .about-scene { --cardw: min(94vw, calc((100vh - 250px) * 1.586)); }
  .about-scene[data-state="out"] .wallet { transform: translate(-50%, 25vh) scale(.56); }
  .id-ghost, .id-ghost-date, .id-dd, .id-front::before { display: none; }
  .id-sig { font-size: 8cqh; }
  .id-fields { right: 4cqw; gap: 1.5cqh; }
  .id-name b { font-size: 7cqh; }
  .id-grid { gap: 1cqh 4cqw; }
  .id-grid dd { font-size: 3.7cqh; }
  .id-about { font-size: 4.7cqh; line-height: 1.22; }
  .id-makes { font-size: 4cqh; }
  .id-makes a { display: inline-block; padding: .6cqh 0; }
  .id-class-band { right: 4cqw; bottom: 4cqh; font-size: 3.4cqh; }
  .id-back-codes { right: 24cqw; }
  .id-back-codes dd { font-size: 3.5cqh; }
  .id-back-fine { font-size: 2.8cqh; }
}

/* =========================================================
   CONTACT — the payphone
   ========================================================= */
.phone-wall { position: absolute; inset: 0; }
.phone-wall::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 55% 65% at 52% 45%, rgba(255, 244, 220, .25), transparent 60%), radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(0,0,0,.45) 100%); }
.phone-scene { position: absolute; inset: 0; overflow: hidden; }
.phone-cam { position: absolute; inset: 0; transition: transform 1.2s var(--ease-in-out); }
.phone {
  position: absolute; left: 50%; top: 53%; height: min(82vh, 1000px); transform: translate(-50%, -50%);
  filter: drop-shadow(14px 22px 18px rgba(0,0,0,.35));
}
.phone-art { width: 100%; height: 100%; user-select: none; }
.handset { position: absolute; padding: 0; border: 0; background: none; cursor: pointer; transition: transform .7s cubic-bezier(.3, 1.4, .5, 1), filter .3s; filter: drop-shadow(4px 8px 6px rgba(0,0,0,.3)); }
.handset img { width: 100%; height: 100%; pointer-events: none; }
.handset:hover { filter: drop-shadow(4px 8px 6px rgba(0,0,0,.3)) drop-shadow(0 0 8px rgba(255, 215, 130, .8)); transform: rotate(-3deg); }
.phone.is-lifted .handset { transform: rotate(-16deg); filter: drop-shadow(14px 22px 14px rgba(0,0,0,.35)); }
.handset:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 30px; }
.coin-slot { position: absolute; width: 9%; height: 7%; transform: translate(-50%, -50%); border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.coin-slot:hover { background: rgba(255, 215, 130, .2); box-shadow: 0 0 0 2px rgba(255, 215, 130, .6); }
/* dropping a quarter in: it flies up from the lower left, turns edge-on at the slit and is pushed in.
   The box ends exactly at the slit and clips, so the coin disappears into it. */
.coin-in { position: absolute; overflow: hidden; pointer-events: none; z-index: 3; }
.incoin { position: absolute; right: 0; top: 50%; opacity: 0; animation: coin-in .95s both; }
.incoin .rcoin-spin { --s: .1; animation: coin-in-turn .95s both; }
@keyframes coin-in {
  0% { opacity: 0; transform: translate(50%, -50%) translate(-250%, 150%) scale(1.75); animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
  10% { opacity: 1; }
  54% { opacity: 1; transform: translate(50%, -50%) translate(-24%, 0) scale(1); animation-timing-function: ease-in-out; }
  68% { opacity: 1; transform: translate(50%, -50%) translate(-19%, 0) scale(1); animation-timing-function: cubic-bezier(.5, 0, .9, .6); }
  100% { opacity: 1; transform: translate(50%, -50%) translate(24%, 0) scale(1); }
}
@keyframes coin-in-turn {
  0% { transform: perspective(var(--pp)) rotateY(12deg) rotateZ(-50deg); animation-timing-function: cubic-bezier(.3, .5, .3, 1); }
  54%, 100% { transform: perspective(var(--pp)) rotateY(73deg) rotateZ(0deg); }
}
/* coin return: the door hangs from its top edge; push it and the bottom swings back into the phone, change spills out */
.coin-return { position: absolute; padding: 0; border: 0; cursor: pointer; border-radius: 9% / 4%; background: none; container-type: size;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: box-shadow .2s; }
.coin-return-box { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; perspective: 210cqh; perspective-origin: 50% 30%; }
/* the cup behind the door: black at the back, side walls, a little light on its floor */
.coin-return-well { position: absolute; inset: 0; border-radius: inherit;
  background:
    linear-gradient(to top, rgba(150, 140, 124, .5) 0, rgba(74, 68, 60, .45) 6%, transparent 22%),
    linear-gradient(90deg, #000 0, transparent 18%, transparent 82%, #000 100%),
    linear-gradient(#000 0, #080707 55%, #1c1815 100%);
  box-shadow: inset 0 0 3cqh #000, inset 0 7cqh 7cqh -3cqh #000; }
.coin-return-plate { position: absolute; inset: 0; border-radius: inherit; background-image: url("../assets/objects/payphone-front-off-hook.webp"); background-repeat: no-repeat;
  transform-origin: 50% 0; backface-visibility: hidden; transition: transform .34s cubic-bezier(.3, 1.5, .5, 1); }
/* the door falls into shadow as it goes in */
.coin-return-plate i { position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .25s;
  background: linear-gradient(rgba(0,0,0,.06), rgba(0,0,0,.3) 40%, rgba(0,0,0,.6)); }
@media (hover: hover) {
  .coin-return:hover { box-shadow: 0 0 0 2px rgba(255, 215, 130, .6), 0 0 14px rgba(255, 215, 130, .35); }
  .coin-return:hover .coin-return-plate { transform: rotateX(-6deg); }
  .coin-return:hover .coin-return-plate i { opacity: .16; }
}
.coin-return.is-in .coin-return-plate { transform: rotateX(-48deg); transition: transform .11s cubic-bezier(.2, .7, .3, 1); }
.coin-return.is-in .coin-return-plate i { opacity: 1; transition-duration: .11s; }
.coin-return.is-back .coin-return-plate { animation: flap-back .52s both; }
.coin-return.is-back .coin-return-plate i { animation: flap-shade .52s both; }
/* springs shut and rattles against its stop (it can only ever swing inward) */
@keyframes flap-back {
  0% { transform: rotateX(-48deg); animation-timing-function: cubic-bezier(.5, 0, .9, .5); }
  30% { transform: rotateX(0); animation-timing-function: cubic-bezier(.1, .6, .4, 1); }
  46% { transform: rotateX(-10deg); animation-timing-function: cubic-bezier(.6, 0, .9, .5); }
  62% { transform: rotateX(0); animation-timing-function: cubic-bezier(.1, .6, .4, 1); }
  74% { transform: rotateX(-3.5deg); animation-timing-function: cubic-bezier(.6, 0, .9, .5); }
  86%, 100% { transform: rotateX(0); }
}
@keyframes flap-shade { 0% { opacity: 1; } 30% { opacity: 0; } 46% { opacity: .25; } 62% { opacity: 0; } 74% { opacity: .1; } 86%, 100% { opacity: 0; } }
.coin-return:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.coin-layer { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 3; }
/* real coin faces (US Mint photos) on a 3D disc with edge thickness; contact.js tumbles them and sets the light */
.rcoin { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform; }
.rcoin-spin { position: absolute; inset: 0; transform-style: preserve-3d; --s: 0; --g: 0; }
.rcoin-spin i { position: absolute; inset: 0; border-radius: 50%; }
.rcoin-e { background: repeating-conic-gradient(#767c85 0 3deg, #d3d6db 3deg 6deg); }
.is-nickel .rcoin-e { background: #94948e; }
.is-copper .rcoin-e { background: #9c5a33; }
.rcoin-f, .rcoin-b { backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: url("../assets/objects/coins.webp") calc(var(--col) / 3 * 100%) 0 / 400% 200% no-repeat; }
.rcoin-b { background-position-y: 100%; }
.rcoin-f::before, .rcoin-b::before, .rcoin-f::after, .rcoin-b::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.rcoin-f::before, .rcoin-b::before { background: #050404; opacity: var(--s); }
.rcoin-f::after, .rcoin-b::after { background: linear-gradient(120deg, transparent 22%, rgba(255,255,255,.95) 50%, transparent 78%); opacity: var(--g); }
.phone-key { position: absolute; width: 8.3%; height: 3.3%; transform: translate(-50%, -50%); border: 0; border-radius: 22%; background: transparent; cursor: pointer; transition: background .12s; }
.phone-key:hover { background: rgba(255, 215, 130, .22); }
.phone-key.is-press { animation: key-press .18s ease; }
@keyframes key-press { 50% { background: rgba(0,0,0,.28); transform: translate(-50%, -46%); } }
/* the email sticker: a postal label written on with a fat marker (drawn in contact.js), slapped across the lower door */
.sticker {
  position: absolute; display: block; transform: rotate(var(--rot)); text-decoration: none;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.6)) drop-shadow(1px 4px 5px rgba(0,0,0,.3));
  transition: transform .3s var(--ease-out), filter .3s;
}
.sticker svg { display: block; width: 100%; height: 100%; overflow: visible; }
.sticker-ink { mix-blend-mode: multiply; }
.sticker:hover { transform: rotate(calc(var(--rot) + 1.2deg)) scale(1.025); filter: drop-shadow(0 1px 1px rgba(0,0,0,.6)) drop-shadow(2px 8px 10px rgba(0,0,0,.4)) drop-shadow(0 0 7px rgba(255, 210, 122, .75)); }
.sticker:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; border-radius: 6px; }
.phone-dial {
  position: absolute; left: 50%; top: 84px; transform: translateX(-50%); padding: 10px 18px; border-radius: 10px; opacity: 0; transition: opacity .2s; z-index: 4; white-space: nowrap;
  background: #101a12; color: #8dff9e; font: 700 18px/1 ui-monospace, Menlo, monospace; letter-spacing: .14em; box-shadow: inset 0 0 0 2px #2b3a2d, 0 10px 20px rgba(0,0,0,.4);
}
.phone-dial.is-on { opacity: 1; }
.phone-zoom { position: absolute; left: 50%; bottom: max(20px, 4vh); z-index: 2; transform: translateX(-50%); animation: page-in .6s .9s var(--ease-out) both; }

/* =========================================================
   ART — the gallery
   ========================================================= */
.gallery { position: absolute; inset: 0; background: #dfe3e6; }
.g-canvas { position: absolute; inset: 0; }
.g-canvas canvas { width: 100% !important; height: 100% !important; display: block; touch-action: none; }
.g-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; background: #ece9e4; color: #4a433c; z-index: 4; transition: opacity .6s ease, visibility .6s; }
.g-loading span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(0,0,0,.12); border-top-color: #a8231f; animation: spin 1s linear infinite; }
.g-loading p { margin: 0; font-family: var(--hand); font-size: 22px; }
.g-loading.is-done { opacity: 0; visibility: hidden; }
@keyframes spin { to { transform: rotate(360deg); } }
.g-tools { position: absolute; z-index: 5; top: max(14px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; }
.g-tools .chip { height: 36px; padding: 0 13px; font-size: 13px; }
.g-tools .chip[aria-pressed="true"] { background: var(--paper); color: var(--paper-ink); }
.g-sep { width: 1px; height: 20px; background: rgba(0,0,0,.18); margin: 0 4px; }
.g-help { position: absolute; z-index: 3; left: 20px; bottom: 18px; margin: 0; padding: 7px 12px; border-radius: 10px; background: rgba(16,13,11,.55); color: rgba(255,255,255,.85); font-size: 12.5px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.g-help .kbd { margin: 0 1px; }
.g-caption {
  position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: baseline; gap: 12px; max-width: min(640px, 90vw);
  padding: 12px 18px; border: 0; border-radius: 14px; background: var(--paper); color: var(--paper-ink); cursor: pointer; text-align: left;
  box-shadow: 0 18px 40px -14px rgba(0,0,0,.5); animation: page-in .3s var(--ease-out);
}
.g-caption b { font-size: 16px; white-space: nowrap; }
.g-caption span { font-size: 13px; color: #776b60; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-caption em { font-style: normal; font-weight: 700; font-size: 13px; color: #a8231f; white-space: nowrap; }
.g-map { position: absolute; z-index: 3; right: 18px; bottom: 18px; width: 150px; padding: 8px; border-radius: 12px; background: rgba(16,13,11,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.g-map rect { fill: rgba(255,255,255,.1); stroke: rgba(255,255,255,.6); stroke-width: .8; }
.g-map .g-map-door { fill: rgba(255,255,255,.1); stroke: none; }
.g-map circle { fill: var(--glow); }
.g-map path { fill: #ff5a4a; }
.g-pad { position: absolute; z-index: 3; right: 18px; bottom: 124px; display: grid; grid-template-columns: repeat(3, 40px); grid-template-rows: repeat(2, 40px); gap: 5px; }
.g-pad button { border: 0; border-radius: 10px; background: rgba(16,13,11,.58); color: #fff; font-size: 13px; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .15s, transform .1s; touch-action: none; user-select: none; }
.g-pad button:hover { background: rgba(16,13,11,.78); }
.g-pad button.is-down-press { background: var(--paper); color: var(--paper-ink); transform: scale(.94); }
.g-pad .is-up { grid-column: 2; grid-row: 1; } .g-pad .is-left { grid-column: 1; grid-row: 2; } .g-pad .is-down { grid-column: 2; grid-row: 2; } .g-pad .is-right { grid-column: 3; grid-row: 2; }
.gallery[data-view="wall"] .g-help, .gallery[data-view="wall"] .g-map, .gallery[data-view="wall"] .g-caption, .gallery[data-view="wall"] .g-pad { display: none; }

.g-wall { position: absolute; inset: 0; z-index: 4; overflow-y: auto; padding: 120px max(24px, 5vw) 60px; background: #f2efea; color: #1d1a17; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s; }
.gallery[data-view="wall"] .g-wall { opacity: 1; visibility: visible; }
.g-wall section { max-width: 1180px; margin: 0 auto 40px; }
.g-wall h2 { margin: 0 0 16px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: #8a7d70; }
.g-wall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 26px 22px; }
.g-wall-item { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; }
.g-wall-img { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 14px; background: #e7e2da; border-radius: 6px; transition: transform .3s var(--ease-out), box-shadow .3s; }
.g-wall-img img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 8px 18px -6px rgba(0,0,0,.4); }
.g-wall-img.is-cutout img { box-shadow: none; filter: drop-shadow(0 8px 10px rgba(0,0,0,.3)); }
.g-wall-item:hover .g-wall-img { transform: translateY(-3px); box-shadow: 0 14px 30px -14px rgba(0,0,0,.35); }
.g-wall-item b { font-size: 16px; }
.g-wall-item small { font-size: 13px; color: #7d7268; }

.g-detail { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; padding: 70px 24px 24px; background: rgba(12,10,9,.86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: page-in .3s var(--ease-out); }
.g-detail-inner { width: min(1240px, 100%); height: 100%; display: grid; grid-template-columns: 1fr 300px; gap: 34px; align-items: center; }
.g-detail-fig { margin: 0; height: 100%; display: grid; place-items: center; min-height: 0; }
.g-detail-fig img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); }
.g-detail-fig.is-cutout img { box-shadow: none; filter: drop-shadow(0 26px 30px rgba(0,0,0,.6)); }
.g-detail-info { color: var(--ink); }
.g-detail-room { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.g-detail-info h2 { margin: 8px 0 8px; font-size: 32px; line-height: 1.05; letter-spacing: -.02em; }
.g-detail-info p { margin: 0; color: var(--ink-soft); }
.g-detail-nav { display: flex; gap: 8px; margin-top: 22px; }
@media (max-width: 900px) {
  .g-tools { top: 66px; flex-wrap: wrap; justify-content: center; width: calc(100vw - 24px); }
  .g-tools .g-sep, .g-help { display: none; }
  .g-detail-inner { grid-template-columns: 1fr; grid-template-rows: 1fr auto; gap: 16px; }
  .g-detail-fig img { max-height: calc(100vh - 300px); }
  .g-wall { padding-top: 160px; }
}

/* =========================================================
   SKATEBOARDS — one deck at a time on the cinder-block wall
   ========================================================= */
.sk8 { position: absolute; inset: 0; overflow: hidden; background: #f3eee5; --deck-h: 70vh;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.sk8.is-dragging { cursor: grabbing; }
/* The wall is one tile wider than the page; skateboards.js slides it under the decks and wraps it. */
.sk8-wall { position: absolute; top: 0; bottom: 0; left: 0; width: calc(100% + var(--deck-h) * 2); will-change: transform;
  background: #f3eee5 url("../assets/skateboards/wall.webp") 0 calc(50% + var(--deck-h) * .09) / calc(var(--deck-h) * 2) var(--deck-h) repeat; }
/* basement light: brightest on the deck, falling off toward the corners */
.sk8-light { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 46% 62% at 50% 46%, rgba(255, 252, 244, .34), transparent 70%),
    radial-gradient(ellipse 85% 90% at 50% 46%, transparent 52%, rgba(74, 52, 34, .26) 100%),
    linear-gradient(to bottom, rgba(40, 28, 18, .16), transparent 16%, transparent 86%, rgba(40, 28, 18, .14)); }
.sk8-track { position: absolute; inset: 0; }
.sk8-slide { position: absolute; inset: 0; margin: 0; padding: 84px 0 56px; display: flex; align-items: center; justify-content: center; will-change: transform; }
.sk8-deck { height: var(--deck-h); width: auto; max-width: none; flex: none; pointer-events: none; -webkit-user-drag: none;
  opacity: 0; transition: opacity .35s ease;
  filter: drop-shadow(3px 4px 3px rgba(52, 34, 20, .4)) drop-shadow(14px 22px 20px rgba(52, 34, 20, .36)); }
.sk8-deck.is-in { opacity: 1; }

/* the label: a scrap of paper taped to the wall beside the deck, like the labels in the basement */
.sk8-tag { position: absolute; left: calc(50% + var(--deck-h) * .16 + 34px); top: 58%; max-width: 250px;
  display: flex; flex-direction: column; gap: 3px; padding: 11px 16px 9px; border-radius: 3px;
  background: #fffdf4; color: #241b15; font-family: var(--hand); line-height: 1.05;
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 9px 18px rgba(60, 40, 22, .26); transform: rotate(-2deg); }
.sk8-tag::before { content: ""; position: absolute; left: 50%; top: -9px; width: 46px; height: 17px; transform: translateX(-50%) rotate(3deg);
  background: rgba(255, 226, 140, .82); box-shadow: 0 1px 2px rgba(0,0,0,.14); }
.sk8-tag b { font-size: 29px; font-weight: 400; }
.sk8-tag span { font-size: 20px; color: #6b5a4c; }

.sk8-arrow { position: absolute; z-index: 3; top: 50%; width: 58px; height: 58px; margin-top: -29px; padding: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; font-size: 25px; line-height: 1;
  background: rgba(16, 13, 11, .66); color: var(--ink); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: 0 8px 20px rgba(40, 26, 14, .28);
  transition: background .2s, transform .2s var(--ease-out); }
.sk8-arrow.is-prev { left: max(18px, calc(50% - 600px)); }
.sk8-arrow.is-next { right: max(18px, calc(50% - 600px)); }
.sk8-arrow:hover { background: rgba(16, 13, 11, .88); transform: scale(1.07); }
.sk8-arrow:active { transform: scale(.95); }
.sk8-arrow:focus-visible { outline-color: #241b15; }
.sk8-arrow span { display: block; margin-top: -2px; }
.sk8-count { position: absolute; z-index: 3; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); margin: 0;
  padding: 4px 12px; border-radius: 999px; background: rgba(16, 13, 11, .6); color: rgba(245, 239, 230, .9);
  font-size: 12px; font-weight: 700; letter-spacing: .12em; font-variant-numeric: tabular-nums; pointer-events: none; }

/* narrow windows and phones: the label goes under the deck, the arrows sit either side of it */
.sk8.is-narrow .sk8-slide { flex-direction: column; gap: 22px; padding: 74px 0 50px; }
.sk8.is-narrow .sk8-tag { position: relative; left: auto; top: auto; max-width: min(300px, 84vw); align-items: center; text-align: center; padding: 9px 14px 7px; }
.sk8.is-narrow .sk8-tag b { font-size: 24px; }
.sk8.is-narrow .sk8-tag span { font-size: 17px; }
.sk8.is-narrow .sk8-arrow { width: 46px; height: 46px; margin-top: -40px; font-size: 21px; }
.sk8.is-narrow .sk8-arrow.is-prev { left: 12px; }
.sk8.is-narrow .sk8-arrow.is-next { right: 12px; }
