:root{
  --void:#000000;
  --bone:#f0ede4;
  --ink:#111111;
  --ease:cubic-bezier(.22,.61,.36,1);
}

*{margin:0;padding:0;box-sizing:border-box}
html{-webkit-text-size-adjust:100%}

body{
  /* white field tiled with the seamless sketch / body-outline monogram */
  background:var(--bone) url("pattern.png") repeat;
  /* tile scales with viewport width so monogram DENSITY is the same on phone & desktop
     (one shared rule — no mobile breakpoint): ~300px on desktop, smaller on phones */
  background-size:clamp(110px,22vw,300px) auto;
  color:var(--ink);
  font-family:"Helvetica Neue",Helvetica,Inter,system-ui,-apple-system,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  min-height:100svh;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:0 24px;
  position:relative;
  overflow-x:hidden;
}

/* ─────────────────────────── HOME / LOGO ─────────────────────────── */
.home{
  position:relative;z-index:2;
  width:100%;max-width:460px;
  flex:1;
  display:flex;flex-direction:column;
  align-items:center;justify-content:center;
  padding:64px 0 32px;
}
.mark-h1{margin:0;line-height:0}

/* old-school bouncing-DVD logo.
   The WRAPPER carries the per-frame transform on its own compositor layer
   (no mask/filter to re-rasterize) → butter-smooth GPU movement.
   Default (no-JS / reduced-motion) state: centered & static via inset+margin auto. */
.mark-mover{
  display:block;
  position:fixed;inset:0;margin:auto;z-index:3;
  width:clamp(220px,60vw,440px);
  aspect-ratio:1044 / 248;
  will-change:transform;
  transform:translateZ(0);
  pointer-events:none;
}
/* the visual: masked, neon-filled, glowing — static inside the mover, rasterized once */
.mark{
  display:block;
  width:100%;height:100%;
  background-color:#39ff14;                 /* recolored by JS on each wall hit */
  -webkit-mask:url("logo-mask.png") center / contain no-repeat;
          mask:url("logo-mask.png") center / contain no-repeat;
  filter:drop-shadow(0 0 16px #39ff14) drop-shadow(0 0 1.5px rgba(0,0,0,.55));
}

/* ─────────────────────────── DROPDOWN MENU ─────────────────────────── */
.menu{position:fixed;top:16px;right:16px;z-index:70}

/* the toggle button (a <summary>) styled as a hamburger chip */
summary.menu-btn{list-style:none;-webkit-tap-highlight-color:transparent}
summary.menu-btn::-webkit-details-marker{display:none}
.menu-btn{
  width:46px;height:46px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:var(--bone);border:1px solid rgba(17,17,17,.18);
  box-shadow:0 3px 14px rgba(0,0,0,.16);
  cursor:pointer;color:var(--ink);
  transition:transform .25s var(--ease),box-shadow .25s var(--ease);
}
.menu-btn:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(0,0,0,.22)}
.menu-btn:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.menu-icon{position:relative;display:block;width:18px;height:2px;background:var(--ink);border-radius:2px;
  transition:background .2s var(--ease)}
.menu-icon::before,.menu-icon::after{content:"";position:absolute;left:0;width:18px;height:2px;
  background:var(--ink);border-radius:2px;transition:transform .25s var(--ease),top .25s var(--ease)}
.menu-icon::before{top:-6px}
.menu-icon::after{top:6px}
/* hamburger → X when open */
.menu[open] .menu-icon{background:transparent}
.menu[open] .menu-icon::before{top:0;transform:rotate(45deg)}
.menu[open] .menu-icon::after{top:0;transform:rotate(-45deg)}

.menu-list{
  position:absolute;top:58px;right:0;
  min-width:200px;list-style:none;
  background:var(--bone);
  border:1px solid rgba(17,17,17,.14);
  border-radius:6px;
  box-shadow:0 12px 44px rgba(0,0,0,.20);
  padding:6px;
}
.menu-list a{
  display:flex;align-items:center;justify-content:center;
  text-decoration:none;
  padding:14px 18px;border-radius:4px;
  transition:background .2s var(--ease);
}
.menu-list a:hover{background:var(--ink)}          /* black blocks vanish on dark → white letters pop */
.menu-list a:focus-visible{outline:2px solid var(--ink);outline-offset:-2px;border-radius:4px}
.nav-word{height:22px;width:auto;display:block}

/* ─────────────────────── MOTION PAUSE/PLAY (WCAG 2.2.2) ─────────────────────── */
.motion-toggle{
  position:fixed;right:16px;bottom:16px;z-index:50;
  width:42px;height:42px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:var(--bone);
  border:1px solid rgba(17,17,17,.18);
  box-shadow:0 3px 14px rgba(0,0,0,.16);
  cursor:pointer;color:var(--ink);
  transition:transform .25s var(--ease),box-shadow .25s var(--ease);
}
.motion-toggle:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(0,0,0,.22)}
.motion-toggle:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.motion-toggle .glyph{position:relative;display:block;width:14px;height:14px}
.motion-toggle .glyph::before,
.motion-toggle .glyph::after{content:"";position:absolute;top:1px;width:4px;height:12px;background:var(--ink);border-radius:1px}
.motion-toggle .glyph::before{left:2px}
.motion-toggle .glyph::after{right:2px}
.motion-toggle.paused .glyph::before{
  left:3px;top:0;width:0;height:0;background:none;border-radius:0;
  border-style:solid;border-width:7px 0 7px 12px;
  border-color:transparent transparent transparent var(--ink);
}
.motion-toggle.paused .glyph::after{display:none}

/* ─────────────────────────── SHOP PAGE (/shop) ─────────────────────────── */
.shop-page{
  flex:1;width:100%;
  display:flex;align-items:center;justify-content:center;
  padding:96px 0 64px;
}
.shop-inner{
  text-align:center;
  background:rgba(240,237,228,.9);
  padding:40px 46px;border-radius:3px;
  box-shadow:0 12px 60px rgba(0,0,0,.10);
}
.shop-soon{
  font-size:14px;letter-spacing:.4em;text-indent:.4em;text-transform:uppercase;
  color:var(--ink);
}

/* newsletter / drops signup */
.drops-form{margin:26px auto 0;display:flex;flex-direction:column;gap:10px;width:min(320px,82vw)}
.drops-lead{font-size:11px;letter-spacing:.28em;text-indent:.28em;text-transform:uppercase;color:var(--ink);margin-bottom:2px}
.drops-input{
  appearance:none;-webkit-appearance:none;font-family:inherit;
  width:100%;padding:13px 14px;
  background:#fff;border:1px solid rgba(17,17,17,.25);border-radius:3px;
  color:var(--ink);font-size:14px;
}
.drops-input::placeholder{color:rgba(17,17,17,.5)}
.drops-input:focus{outline:2px solid var(--ink);outline-offset:1px;border-color:var(--ink)}
.drops-btn{
  appearance:none;-webkit-appearance:none;cursor:pointer;font-family:inherit;
  margin-top:4px;padding:13px 14px;border:1px solid var(--ink);border-radius:3px;
  background:var(--ink);color:var(--bone);
  font-size:12px;letter-spacing:.3em;text-indent:.3em;text-transform:uppercase;
  transition:background .25s var(--ease),color .25s var(--ease);
}
.drops-btn:hover{background:transparent;color:var(--ink)}
.drops-btn:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.drops-note{margin-top:6px;font-size:10px;letter-spacing:.05em;color:rgba(17,17,17,.55)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}

/* back-to-home link (shop page) */
.back{
  position:fixed;top:16px;left:16px;z-index:10;
  text-decoration:none;
  background:var(--bone);border:1px solid rgba(17,17,17,.18);
  color:var(--ink);
  font-size:12px;letter-spacing:.22em;text-transform:uppercase;
  padding:11px 18px;border-radius:3px;
  box-shadow:0 3px 14px rgba(0,0,0,.14);
  transition:background .3s var(--ease),color .3s var(--ease);
}
.back:hover{background:var(--ink);color:var(--bone)}
.back:focus-visible{outline:2px solid var(--ink);outline-offset:3px}

/* ─────────────────────────── GALLERY (/gallery) ─────────────────────────── */
.gallery-page{
  width:100%;max-width:1400px;margin:0 auto;
  padding:84px 0 72px;
}
.gallery-title{text-align:center;margin:0 0 20px}
.title-word{height:46px;width:auto;display:inline-block}
/* full-page ransom collage — every photo is clickable and opens the slideshow AT that photo.
   Full-bleed masonry; rotations + white cut-paper borders; monogram shows through the gaps. */
.gallery-grid{
  width:100vw;max-width:100vw;margin-left:calc(50% - 50vw);
  padding:4px;
  display:grid;
  /* square tiles: ~3 across on phones, denser on desktop — one rule, no breakpoint */
  grid-template-columns:repeat(auto-fill,minmax(clamp(100px,29vw,132px),1fr));
  gap:3px;
  overflow:hidden;
}
.g-item{margin:0}
.g-btn{
  display:block;width:100%;aspect-ratio:1;padding:0;cursor:pointer;
  border:0;background:#000;overflow:hidden;
  transition:transform .15s var(--ease),box-shadow .15s var(--ease);
}
.g-btn img{display:block;width:100%;height:100%;object-fit:cover}
.g-btn:focus-visible{outline:2px solid var(--ink);outline-offset:-2px;position:relative;z-index:3}
.g-btn:hover{transform:scale(1.06);box-shadow:0 8px 22px rgba(0,0,0,.35);position:relative;z-index:3}
.video-block{max-width:760px;margin:22px auto 0}
.g-vid{
  display:block;width:100%;height:auto;aspect-ratio:16 / 9;background:#000;
  border-radius:5px;border:1px solid rgba(17,17,17,.12);
  box-shadow:0 6px 24px rgba(0,0,0,.16);
}

/* lightbox */
.lightbox{
  position:fixed;inset:0;z-index:90;
  display:flex;align-items:center;justify-content:center;
  background:rgba(0,0,0,.93);
  padding:5vh 4vw;
}
.lightbox[hidden]{display:none}
body.lb-open{overflow:hidden}
.lb-img{max-width:100%;max-height:90vh;object-fit:contain;border-radius:2px;
  box-shadow:0 24px 90px rgba(0,0,0,.6)}
.lb-btn{
  position:absolute;appearance:none;-webkit-appearance:none;cursor:pointer;
  background:rgba(240,237,228,.92);color:var(--ink);
  border:1px solid rgba(17,17,17,.2);border-radius:50%;
  width:48px;height:48px;font-size:24px;line-height:1;
  display:flex;align-items:center;justify-content:center;
  transition:background .2s var(--ease),transform .2s var(--ease);
}
.lb-btn:hover{background:#fff;transform:scale(1.06)}
.lb-btn:focus-visible{outline:2px solid #fff;outline-offset:3px}
.lb-close{top:16px;right:16px}
.lb-prev{left:14px;top:50%;transform:translateY(-50%)}
.lb-next{right:14px;top:50%;transform:translateY(-50%)}
.lb-prev:hover,.lb-next:hover{transform:translateY(-50%) scale(1.06)}

/* ─────────────────────────── A11Y: reduced motion ─────────────────────────── */
@media (prefers-reduced-motion:reduce){
  /* no bouncing — leave the logo centered (its default state) and hide the toggle */
  .mark-mover{transform:none!important}
  .motion-toggle{display:none}
}
