/* ========================================================================
   ZAYLUM — "A sanctuary for those longing to belong."
   Design system derived from the brand's own garment graphics:
   the blurred crowd / one lit figure / the lens-eye / Harare coordinates.

   Two themes. The site alternates ground and counter-ground section by
   section; light mode swaps which is which, so the rhythm survives.
   ======================================================================== */

/* ---- 1. Brand constants (never change between themes) ---- */
:root{
  --ink:        #0A0A0A;
  --ink-2:      #141312;
  --ink-3:      #1F1D1B;

  --red:        #E01B18;   /* screen-print red */
  --ember:      #E8441F;   /* the lit figure's orange-red */

  --paper:      #EFEBE1;
  --paper-2:    #E2DCCE;
  --paper-3:    #C9C1AE;
  --brown:      #6A4227;
  --brown-lit:  #8C5B37;

  --grey:       #9A958C;
  --grey-dim:   #56524C;

  --display: 'Big Shoulders Display','Arial Narrow',Impact,sans-serif;
  --body:    'Archivo',system-ui,-apple-system,sans-serif;
  --mono:    'DM Mono',ui-monospace,'SFMono-Regular',Menlo,monospace;

  --ease:      cubic-bezier(.2,.7,.2,1);
  --ease-snap: cubic-bezier(.16,1,.3,1);

  --gut: clamp(18px, 4vw, 64px);
}

/* ---- 2. Theme tokens ---- */
/* Dark is the brand default. */
:root,
:root[data-theme="dark"]{
  --bg:        var(--ink);
  --bg-rgb:    10,10,10;
  --fg:        var(--paper);
  --fg-dim:    var(--grey);
  --fg-mute:   var(--grey-dim);
  --rule:      rgba(255,255,255,.14);
  --surface:   var(--ink-2);

  --inv-bg:    var(--paper);
  --inv-fg:    var(--ink);
  --inv-rule:  rgba(10,10,10,.16);
  --inv-dim:   var(--grey-dim);

  --fig-ink:   var(--grey);
  --fig-boost: 1;

  --pre-lit:   #FFFFFF;
  --pre-body:  #EFEBE1;
  --pre-dim:   rgba(239,235,225,.085);
}

:root[data-theme="light"]{
  --bg:        var(--paper);
  --bg-rgb:    239,235,225;
  --fg:        var(--ink);
  --fg-dim:    #6E685E;
  --fg-mute:   #8E8779;
  --rule:      rgba(10,10,10,.17);
  --surface:   var(--paper-2);

  --inv-bg:    var(--ink);
  --inv-fg:    var(--paper);
  --inv-rule:  rgba(255,255,255,.14);
  --inv-dim:   var(--grey);

  --fig-ink:   #4A443B;
  --fig-boost: 1.5;

  --pre-lit:   #000000;
  --pre-body:  #14120F;
  --pre-dim:   rgba(10,10,10,.10);
}

*,*::before,*::after{ box-sizing:border-box; }

html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
@media (prefers-reduced-motion:reduce){ html{ scroll-behavior:auto; } }

body{
  margin:0;
  background:var(--bg);
  color:var(--fg);
  font-family:var(--body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  transition:background-color .5s var(--ease), color .5s var(--ease);
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; }

::selection{ background:var(--red); color:#fff; }

.sr-only{
  position:absolute; width:1px; height:1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap;
}

/* ---- 3. Type primitives ---- */
.display{
  font-family:var(--display);
  font-weight:900;
  line-height:.82;
  letter-spacing:-.005em;
  text-transform:uppercase;
  margin:0;
}
.mono{
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:.16em;
  text-transform:uppercase;
  line-height:1.4;
}
.mono--red{ color:var(--red); }
.muted{ color:var(--fg-dim); }

.eyebrow{
  display:flex; align-items:baseline; gap:14px;
  padding-bottom:14px;
  border-bottom:1px solid var(--rule);
  margin-bottom:clamp(28px,5vw,64px);
}
.eyebrow__no{ color:var(--red); }
.eyebrow__label{ letter-spacing:.2em; }
/* Section labels are real <h2>s, so the page has an outline search engines
   and screen readers can follow. This keeps them looking exactly like the
   <span>s they replaced. */
h2.eyebrow__label{ margin:0; font:inherit; letter-spacing:.2em; }
.eyebrow__meta{ margin-left:auto; color:var(--fg-dim); }

.section{ padding:clamp(72px,11vw,150px) var(--gut); position:relative; }

/* Counter-ground section — flips with the theme. */
.section--invert{
  background:var(--inv-bg);
  color:var(--inv-fg);
  transition:background-color .5s var(--ease), color .5s var(--ease);
}
.section--invert .eyebrow{ border-bottom-color:var(--inv-rule); }
.section--invert .muted,
.section--invert .eyebrow__meta{ color:var(--inv-dim); }

/* ---- 4. Lens wordmark ----
   Real hand-cut artwork as an alpha mask, so it takes whatever ink
   colour it sits in. ---------------------------------------------- */
.lens{
  display:block;
  width:100%;
  aspect-ratio:1846/852;
  background:currentColor;
  -webkit-mask:url(../img/zaylum-mark.png) center/contain no-repeat;
          mask:url(../img/zaylum-mark.png) center/contain no-repeat;
}

/* ---- 5. Preloader — the mark discovers its own light ---- */
.pre{
  position:fixed; inset:0; z-index:200;
  background:var(--bg);
  display:grid; place-items:center;
  transition:opacity .75s var(--ease), visibility .75s;
}
.pre.is-done{ opacity:0; visibility:hidden; pointer-events:none; }
.no-js .pre{ display:none; }
body.is-loading{ overflow:hidden; }

.pre__inner{ width:min(640px,86vw); text-align:center; }

.pre__mark{
  width:100%;
  aspect-ratio:1846/852;
  -webkit-mask:url(../img/zaylum-mark.png) center/contain no-repeat;
          mask:url(../img/zaylum-mark.png) center/contain no-repeat;
  background:linear-gradient(90deg,
    var(--pre-body) 0%,
    var(--pre-body) calc(var(--p, 0%) - 8%),
    var(--pre-lit)  var(--p, 0%),
    var(--pre-dim)  calc(var(--p, 0%) + 3%),
    var(--pre-dim)  100%);
  filter:drop-shadow(0 0 var(--glow, 0px) rgba(232,68,31,.42));
}
.pre__meta{
  margin-top:34px;
  display:flex; align-items:center; justify-content:center;
  gap:16px; flex-wrap:wrap;
}
.pre__num{ color:var(--ember); font-variant-numeric:tabular-nums; }
.pre__tag{ color:var(--fg-mute); letter-spacing:.2em; }

@media (prefers-reduced-motion:reduce){ .pre{ transition:none; } }

/* ---- 6. Nav ---- */
.nav{
  position:fixed; inset:0 0 auto 0; z-index:60;
  display:flex; align-items:center; gap:24px;
  padding:18px var(--gut);
  mix-blend-mode:difference;
  color:#fff;
  pointer-events:none;
  transition:padding .4s var(--ease), background-color .4s var(--ease);
}
.nav > *{ pointer-events:auto; }
.nav__mark{ width:104px; flex:none; transition:width .4s var(--ease); }
.nav__links{ margin-left:auto; display:flex; align-items:center; gap:clamp(14px,2.4vw,32px); }
.nav__links a{ position:relative; }
.nav__links a::after{
  content:''; position:absolute; left:0; right:0; bottom:-5px; height:1px;
  background:currentColor; transform:scaleX(0); transform-origin:left;
  transition:transform .4s var(--ease);
}
.nav__links a:hover::after,
.nav__links a:focus-visible::after{ transform:scaleX(1); }

/* Once scrolled, drop the blend trick for a bar legible over any section. */
.nav.is-stuck{
  mix-blend-mode:normal;
  background:rgba(var(--bg-rgb),.78);
  -webkit-backdrop-filter:saturate(1.1) blur(14px);
          backdrop-filter:saturate(1.1) blur(14px);
  border-bottom:1px solid var(--rule);
  padding-top:12px; padding-bottom:12px;
  color:var(--fg);
}
.nav.is-stuck .nav__mark{ width:78px; }

.nav__theme{
  display:inline-flex; align-items:center; gap:7px;
  padding:6px 12px;
  border:1px solid currentColor;
  border-radius:999px;
  font-family:var(--mono); font-size:10px; letter-spacing:.16em;
  text-transform:uppercase;
  transition:color .3s var(--ease), border-color .3s var(--ease), opacity .3s var(--ease);
}
.nav__theme:hover{ opacity:.6; }
.nav__theme i{
  width:13px; height:6px; flex:none;
  border-radius:50% / 60%;
  background:currentColor;
}

/* ---- 7. Hero — THE CROWD ---- */
.hero{
  position:relative;
  min-height:100svh;
  display:grid;
  place-items:center;
  padding:120px var(--gut) 86px;
  overflow:hidden;
  isolation:isolate;
}

.crowd{ position:absolute; inset:0; z-index:0; }
.fig{
  position:absolute;
  bottom:var(--b); left:var(--l);
  width:var(--w); aspect-ratio:100/260;
  transform:translate(-50%,0) rotate(var(--rot,0deg)) scaleX(var(--fx,1));
}
.fig__layer{
  position:absolute; inset:0;
  -webkit-mask-image:url(../img/figure.svg);
          mask-image:url(../img/figure.svg);
  -webkit-mask-size:100% 100%;  mask-size:100% 100%;
  -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
}
/* anonymous: blurred, low-contrast. Filter is baked, never animated. */
.fig__base{
  background:var(--fig-ink);
  opacity:calc(var(--o) * var(--fig-boost));
  filter:blur(var(--blur));
}
/* lit: sharp, red, glowing — "when you discover your own light".
   Only opacity moves, which keeps the whole field cheap. */
.fig__seen{
  background:var(--ember);
  opacity:0;
  filter:drop-shadow(0 0 22px rgba(232,68,31,.55)) drop-shadow(0 0 60px rgba(232,68,31,.28));
  transition:opacity .26s var(--ease);
}
/* the one who already found it */
.fig--chosen .fig__base{ background:var(--ember); filter:blur(1.5px); opacity:.95; }
.fig--chosen .fig__seen{ opacity:1; }

.hero__vignette{
  position:absolute; inset:0; z-index:1; pointer-events:none;
  background:
    radial-gradient(120% 85% at 50% 58%, transparent 28%, rgba(var(--bg-rgb),.72) 78%),
    linear-gradient(to bottom, rgba(var(--bg-rgb),.9) 0%, transparent 26%, transparent 62%, rgba(var(--bg-rgb),.95) 100%);
}

.hero__inner{ position:relative; z-index:2; width:min(940px,100%); text-align:center; }
.hero__mark{ width:min(498px,72vw); margin:0 auto; color:var(--fg); }
.hero__line{
  margin:clamp(26px,4vw,44px) auto 0;
  max-width:33ch;
  font-family:var(--display);
  font-weight:600;
  font-size:clamp(15px,2.1vw,25px);
  line-height:1.15;
  letter-spacing:.11em;
  text-transform:uppercase;
  color:var(--fg-dim);
}
.hero__sub{ margin:14px 0 0; color:var(--ember); letter-spacing:.22em; font-size:10.5px; }

.hero__foot{
  position:absolute; z-index:2; left:var(--gut); right:var(--gut); bottom:26px;
  display:flex; align-items:flex-end; justify-content:space-between; gap:20px;
}
.hero__hint{ display:flex; align-items:center; gap:10px; color:var(--fg-dim); }
.hero__hint i{
  display:block; width:26px; height:1px; background:var(--red);
  transform-origin:left; animation:sweep 2.6s var(--ease) infinite;
}
@keyframes sweep{ 0%,100%{ transform:scaleX(.25);} 50%{ transform:scaleX(1);} }

/* ---- 8. Manifesto ---- */
.manifesto{ text-align:center; }
.manifesto__stack{ max-width:1180px; margin:0 auto; }
.manifesto__line{
  font-family:var(--display);
  font-weight:900;
  text-transform:uppercase;
  line-height:.86;
  letter-spacing:-.01em;
  font-size:clamp(34px,8.4vw,124px);
  margin:0 0 .06em;
}
.manifesto__line em{ font-style:normal; color:var(--red); }

/* --- perspective crawl ---
   A tall track with a sticky plate; the type sits on a plane tilted away
   from the viewer and rises as the track scrolls. The perspective is
   deliberately very short, which is what gives the hard foreshortening. */
.manifesto__track{ position:relative; height:240vh; }

.manifesto__plate{
  position:sticky; top:0;
  height:100vh;
  display:flex; align-items:center; justify-content:center;
  perspective:300px;
  transform-style:preserve-3d;
  overflow:hidden;
}
/* --ty travels NEGATIVE → less negative: the type approaches from the
   distance. Positive values would push it along the tilted plane toward
   the camera (Z = ty·sin30) and, against a 300px perspective, blow it up
   past the camera plane — fine for the reference's tall paragraph, fatal
   for three short lines. */
.manifesto__stack{
  transform-style:preserve-3d;
  transform:rotateX(30deg) translateY(var(--ty,-540px)) translateZ(10px);
  width:min(920px,94%);
  margin:0;
  will-change:transform;
}
/* the near edge dissolves into the section's own ground, so this works
   unchanged when light mode swaps which ground that is */
.manifesto__fade{
  position:absolute; left:0; bottom:0; width:100%; height:42vh;
  background:linear-gradient(to bottom, transparent, var(--inv-bg) 78%);
  pointer-events:none;
}
.manifesto__plate .manifesto__line{
  font-size:clamp(30px,5.6vw,78px);
}

/* reduced motion flattens the rig entirely */
.manifesto--flat .manifesto__track{ height:auto; }
.manifesto--flat .manifesto__plate{
  position:static; height:auto; perspective:none; overflow:visible;
}
.manifesto--flat .manifesto__stack{ transform:none; }
.manifesto--flat .manifesto__fade{ display:none; }

/* --- per-character scramble (default) ---
   The paragraph pins in view, then each line resolves in turn across the
   track. Fully reversible: scrolling back up runs it backwards. */
.manifesto.fx-scramble .manifesto__track{ height:300vh; }
.manifesto.fx-scramble .manifesto__plate{
  position:sticky; top:0; height:100vh;
  display:flex; align-items:center; justify-content:center;
  perspective:none; overflow:hidden;
}
.manifesto.fx-scramble .manifesto__stack{
  transform:none; width:min(1180px,100%); margin:0 auto;
}
.manifesto.fx-scramble .manifesto__fade{ display:none; }
.manifesto.fx-scramble .manifesto__line{ font-size:clamp(34px,8.4vw,124px); }

/* One style write per scroll event: JS sets --mp on the section; each line
   maps it into its own window (--ls/--lspan), and each character offsets
   that again by its own --ph stagger.
   NB: named --mp, not --p — the preloader already uses --p as a PERCENTAGE
   for its fill gradient, and registering --p as <number> makes that
   declaration invalid, which kills the gradient and hides the logo. */
@property --mp    { syntax:'<number>'; inherits:true;  initial-value:0; }
@property --lp    { syntax:'<number>'; inherits:true;  initial-value:0; }
@property --ls    { syntax:'<number>'; inherits:false; initial-value:0; }
@property --lspan { syntax:'<number>'; inherits:false; initial-value:1; }
@property --ph    { syntax:'<number>'; inherits:false; initial-value:0; }
@property --dy    { syntax:'<length>'; inherits:false; initial-value:0px; }
@property --rx    { syntax:'<angle>';  inherits:false; initial-value:0deg; }

.manifesto__line{
  --lp:clamp(0, calc((var(--mp) - var(--ls)) / var(--lspan)), 1);
}
.manifesto__line .ch{
  display:inline-block;
  will-change:transform;
  --l:clamp(0, calc((var(--lp) - var(--ph)) / .55), 1);
  transform:
    perspective(760px)
    translateY(calc((1 - var(--l)) * var(--dy)))
    rotateX(calc((1 - var(--l)) * var(--rx)));
}
.manifesto__line.is-plain .ch{ transform:none; }
.manifesto__rule{
  width:100%; height:1px; background:var(--inv-rule);
  margin:clamp(34px,5vw,60px) 0 clamp(20px,3vw,30px);
}
.manifesto__meta{ display:flex; flex-wrap:wrap; gap:8px 28px; justify-content:center; }

/* ---- 9. The Noise (brand narration, set verbatim) ---- */
.noise{ background:var(--bg); }
.noise__head{ font-size:clamp(32px,6.6vw,96px); line-height:.88; max-width:16ch; margin:0; }
.noise__sub{
  color:var(--ember); letter-spacing:.2em;
  margin:18px 0 clamp(36px,5vw,64px);
}
.noise__grid{
  display:grid; grid-template-columns:1.02fr .98fr;
  gap:clamp(30px,5vw,76px); align-items:start;
}
.noise__body{
  max-width:60ch;
  font-size:clamp(15px,1.5vw,19px); line-height:1.72;
  color:var(--fg-dim);
}

/* ---- 9b. "Don't let them burst your bubble" ----
   The narration made playable: you are the red figure, the grey crowd is
   the noise. Self-contained to this section; keys are only captured while
   it is actually running, so arrows still scroll the page otherwise. */
.bubble{
  position:relative;
  margin-top:clamp(28px,4vw,48px);
  max-width:560px;
  border:1px solid var(--rule);
  background:rgba(var(--bg-rgb),.5);
  overflow:hidden;
}
.bubble__canvas{
  display:block; width:100%; aspect-ratio:4/3;
  touch-action:none;                 /* dragging drives the player, not the page */
  cursor:crosshair;
}
.bubble.is-idle .bubble__canvas{ cursor:default; }

/* ---- popped out ----
   Playing lifts the game out of the page and fills the screen. Inline it is
   a 4:3 box a few hundred pixels wide, which on a phone leaves no room to
   dodge anything; full-bleed it is actually playable. */
.bubble.is-pop{
  position:fixed; inset:0; z-index:200;
  margin:0; max-width:none; border:0; border-radius:0;
  background:var(--bg);
  display:flex; flex-direction:column;
}
.bubble.is-pop .bubble__canvas{
  flex:1 1 auto; width:100%; height:100%; aspect-ratio:auto;
}
.bubble.is-pop .bubble__hud{
  order:-1; position:static;
  /* right padding leaves the close button its corner */
  padding:calc(env(safe-area-inset-top,0px) + 16px) 68px 12px 18px;
  justify-content:space-between; gap:14px; flex-wrap:wrap;
}
.bubble.is-pop .bubble__keys{
  position:static; text-align:center;
  padding:10px 18px calc(env(safe-area-inset-bottom,0px) + 16px);
}
.bubble__close{
  position:absolute; z-index:3;
  top:calc(env(safe-area-inset-top,0px) + 10px); right:12px;
  width:44px; height:44px;              /* a real touch target */
  display:none; place-items:center;
  font-size:26px; line-height:1; color:var(--fg-dim);
  background:rgba(var(--bg-rgb),.6); border:1px solid var(--rule);
  border-radius:999px;
}
.bubble.is-pop .bubble__close{ display:grid; }
.bubble__close:hover{ color:var(--red); border-color:var(--red); }
body.is-gaming{ overflow:hidden; }

.bubble__hud{
  position:absolute; top:0; left:0; right:0;
  display:flex; gap:18px; flex-wrap:wrap;
  padding:10px 12px;
  color:var(--fg-mute); font-size:9.5px; letter-spacing:.16em;
  pointer-events:none;
}
.bubble__hud b{ color:var(--fg); font-weight:400; }
.bubble__hud b.is-hurt{ color:var(--red); }

.bubble__keys{
  position:absolute; left:0; right:0; bottom:0; margin:0;
  padding:9px 12px;
  color:var(--fg-mute); font-size:9px; letter-spacing:.14em;
  pointer-events:none; opacity:0;
  transition:opacity .35s var(--ease);
}
.bubble__keys b{ color:var(--fg-dim); font-weight:400; }
.bubble.is-playing .bubble__keys{ opacity:1; }

.bubble__overlay{
  position:absolute; inset:0;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:14px; padding:22px;
  text-align:center;
  background:rgba(var(--bg-rgb),.82);
  -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px);
  transition:opacity .4s var(--ease), visibility .4s;
}
.bubble.is-playing .bubble__overlay{ opacity:0; visibility:hidden; }

.bubble__title{
  margin:0; max-width:18ch;
  font-family:var(--display); font-weight:800; text-transform:uppercase;
  font-size:clamp(20px,2.6vw,30px); line-height:.98; color:var(--fg);
}
.bubble__hint{
  margin:0; max-width:42ch; color:var(--fg-mute);
  font-size:9.5px; letter-spacing:.14em; line-height:1.7;
}
.bubble__hint b{ color:var(--fg-dim); font-weight:400; }

.bubble__btn{
  padding:11px 26px;
  border:1px solid var(--red); color:var(--red);
  border-radius:999px;
  font-size:10px; letter-spacing:.2em; text-transform:uppercase;
  transition:background-color .3s var(--ease), color .3s var(--ease);
}
.bubble__btn:hover{ background:var(--red); color:#fff; }
.bubble__btn:focus-visible{ outline:2px solid var(--red); outline-offset:3px; }
.noise__beat{
  display:block; margin-top:1.1em;
  font-family:var(--display); font-weight:800; text-transform:uppercase;
  font-size:clamp(24px,3.4vw,46px); line-height:1;
  color:var(--red);
}

/* ---- 10. Wardrobe index ---- */
.wardrobe__grid{
  display:grid;
  grid-template-columns:1fr minmax(300px,38%);
  gap:clamp(30px,5vw,72px);
  align-items:start;
}
.ward__list{ list-style:none; margin:0; padding:0; border-top:1px solid var(--rule); }
.ward__row{ border-bottom:1px solid var(--rule); }
.ward__link{
  display:grid; grid-template-columns:auto 1fr auto;
  align-items:center; gap:clamp(14px,2.4vw,30px);
  padding:clamp(16px,2.3vw,26px) 0;
  position:relative;
  transition:padding-left .55s var(--ease), color .4s var(--ease);
}
.ward__row:hover .ward__link,
.ward__link:focus-visible{ padding-left:clamp(12px,2vw,26px); }
.ward__link::before{
  content:''; position:absolute; left:0; top:0; bottom:0; width:2px;
  background:var(--red);
  transform:scaleY(0); transform-origin:bottom;
  transition:transform .5s var(--ease-snap);
}
.ward__row:hover .ward__link::before,
.ward__link:focus-visible::before{ transform:scaleY(1); }

.ward__no{
  font-family:var(--mono); font-size:11px; letter-spacing:.14em;
  color:var(--fg-mute); min-width:2.4em;
  transition:color .3s var(--ease), transform .3s var(--ease-snap);
}
.ward__row:hover .ward__no{ color:var(--red); transform:scale(1.18); }

.ward__name{
  font-family:var(--display); font-weight:800; text-transform:uppercase;
  font-size:clamp(22px,3.6vw,46px); line-height:.95;
}
.ward__spec{
  display:block; margin-top:6px;
  font-family:var(--mono); font-size:10.5px; letter-spacing:.14em;
  text-transform:uppercase; color:var(--fg-mute);
}
.ward__status{
  font-family:var(--mono); font-size:10px; letter-spacing:.14em;
  text-transform:uppercase; white-space:nowrap; color:var(--fg-dim);
}
.ward__status[data-s="sold"]{ color:var(--red); }

.ward__plate{
  position:sticky; top:118px;
  aspect-ratio:4/5;
  background:var(--surface);
  overflow:hidden;
  border:1px solid var(--rule);
}
.ward__plate img{
  position:absolute; inset:0;
  width:100%; height:100%; object-fit:cover;
  opacity:0; filter:blur(16px); transform:scale(1.06);
  transition:opacity .6s var(--ease), filter .7s var(--ease), transform .9s var(--ease);
}
.ward__plate img.is-on{ opacity:1; filter:blur(0); transform:scale(1); }
.ward__plate__idle{
  position:absolute; inset:0; display:grid; place-items:center;
  font-family:var(--mono); font-size:10px; letter-spacing:.24em;
  text-transform:uppercase; color:var(--fg-mute); text-align:center; padding:20px;
  transition:opacity .4s var(--ease);
}
.ward__plate.is-active .ward__plate__idle{ opacity:0; }

/* ---- 11. Origin (Harare) — brown holds in both themes ---- */
.origin{ background:var(--brown); color:var(--paper); }
.origin .eyebrow{ border-bottom-color:rgba(239,235,225,.22); }
.origin .eyebrow__meta{ color:var(--paper-3); }
.origin__grid{
  display:grid; grid-template-columns:.82fr 1.18fr;  /* give the globe room */
  gap:clamp(30px,5vw,76px); align-items:center;
}
.origin__coord{
  font-family:var(--display); font-weight:900; text-transform:uppercase;
  font-size:clamp(30px,5.6vw,80px); line-height:.88; margin:0 0 .3em;
}
.origin__coord span{ color:var(--ember); display:block; }
.origin__copy{ max-width:46ch; color:var(--paper-2); }
.origin__copy p + p{ margin-top:.8em; }
.origin__fig img{ width:100%; aspect-ratio:3/4; object-fit:cover; }

/* ---- 11b. Interactive world map ----
   Drawn on canvas from assets/data/world.json (Natural Earth 110m, public
   domain, converted to flat rings at build time so nothing is fetched from
   a mapping library at runtime). */
/* Capped so the globe and its pin label sit inside the column without
   overlapping the copy or running off the edge. */
#worldMap{ position:relative; max-width:472px; margin-left:auto; }
.worldmap__canvas{
  display:block; width:100%; aspect-ratio:1/1;   /* a globe wants a square */
  cursor:grab;
  touch-action:pan-y;              /* never block page scrolling on touch */
}
.worldmap__canvas:active{ cursor:grabbing; }
.worldmap__label,
.worldmap__read{
  position:absolute; pointer-events:none;
  font-size:9.5px; letter-spacing:.16em; text-transform:uppercase;
  transition:opacity .25s var(--ease);
}
.worldmap__label{
  top:10px; left:12px; color:var(--paper);
  opacity:0; max-width:70%;
}
.worldmap__label.is-on{ opacity:1; }
.worldmap__label b{ color:var(--ember); font-weight:400; }
.worldmap__read{
  top:10px; right:12px; color:rgba(239,235,225,.45);
  font-variant-numeric:tabular-nums;
}
/* Zimbabwe is ~9px across at world scale, so it gets a pinned label with a
   drawn leader line — otherwise the origin is just a speck. */
.worldmap__pin{
  position:absolute; pointer-events:none;
  transform:translateY(-50%);
  font-size:9px; letter-spacing:.18em; text-transform:uppercase;
  color:var(--paper); line-height:1.5;
  opacity:0; transition:opacity .6s var(--ease);
  white-space:nowrap;
}
.worldmap__pin.is-on{ opacity:1; }
.worldmap__pin.is-left{ text-align:right; }
.worldmap__pin b{ display:block; color:var(--ember); font-weight:400; }

.worldmap__cap{
  display:block; margin-top:12px;
  color:var(--paper-3); font-size:9.5px; letter-spacing:.16em;
}
/* The caption colours its own words to match the globe: the origin in the
   screen-print red, the places visited in ember. */
.worldmap__cap b{ color:var(--red); font-weight:400; }
.worldmap__cap em{ color:var(--ember); font-style:normal; }

/* The caption's lead line. Sits above the fine print so the globe is read as
   a statement first and a control second. */
.worldmap__cap-title{
  display:block; margin-bottom:6px;
  color:var(--paper); font-size:12.5px; letter-spacing:.2em;
  text-transform:uppercase;
}

/* ---- 12. Lookbook ---- */
.lookbook{ background:var(--bg); padding-bottom:clamp(60px,9vw,120px); }
/* ---- 12a. Disc cascade carousel ----
   Ported from DiscCascadeCarousel (React). Each look is printed on a disc on a
   slanted line climbing out of the page. Replaces the lookbook grid, which
   stays in the DOM as the no-JS fallback. */
.lookbook.has-dcc .look__grid{ display:none; }

.dcc[hidden]{ display:none; }
.dcc{
  position:relative; overflow:hidden; width:100%;
  height:clamp(430px,62vh,660px);
  color:var(--fg);
  user-select:none; -webkit-user-select:none;
  touch-action:pan-y;
  outline:none;
  --dcc-pad:clamp(16px,3.2vw,40px);
  --dcc-s:clamp(180px,30vw,360px);
  --dcc-sheen:.5;
  --dcc-spin:26s;
}
.dcc:focus-visible{ box-shadow:inset 0 0 0 2px var(--red); }
.dcc[data-dragging], .dcc[data-dragging] .dcc-slide{ cursor:grabbing; }

.dcc-frame{
  position:absolute; inset:calc(var(--dcc-pad) * .45);
  pointer-events:none; z-index:1;
  border:1px solid var(--rule);
}

.dcc-stage{
  position:absolute; left:50%; top:53%;
  width:var(--dcc-s); aspect-ratio:1/1;
  transform:translate(-50%,-50%);
  perspective:calc(var(--dcc-s) * 3.2);
}

.dcc-slide{
  position:absolute; inset:0; margin:0; padding:0; border:0;
  background:none; color:inherit; font:inherit;
  border-radius:50%; cursor:pointer;
  will-change:transform; transform-style:preserve-3d;
  outline:none;
}
.dcc-tilt{
  position:absolute; inset:0; transform-style:preserve-3d;
  transition:transform .5s var(--ease);
}
.dcc-slide[data-active] .dcc-tilt{ transform:translateZ(var(--dcc-lift,0px)); }
.dcc-slide[data-active]:hover{ --dcc-lift:calc(var(--dcc-s) * .05); }

.dcc-shade{
  position:absolute; inset:0; border-radius:50%; pointer-events:none;
  transform:translate3d(0,7%,-18px) scale(.97);
  background:radial-gradient(circle closest-side,transparent 30%,rgba(0,0,0,.3) 52%,rgba(0,0,0,.14) 80%,transparent 100%);
}
.dcc-edge, .dcc-disc{
  position:absolute; inset:0; border-radius:50%;
  -webkit-mask:radial-gradient(circle closest-side,transparent 16.6%,#000 17.1%);
          mask:radial-gradient(circle closest-side,transparent 16.6%,#000 17.1%);
}
.dcc-edge{ transform:translateZ(-4px); background:linear-gradient(160deg,#d7d9dc,#8d9196 55%,#c4c7cb); }
.dcc-disc{
  overflow:hidden; background:#cfd2d6;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.28), inset 0 0 0 2px rgba(0,0,0,.08);
}
.dcc-roll, .dcc-idle{ position:absolute; inset:0; border-radius:50%; }
.dcc-roll{ transform:rotate(var(--dcc-roll,0deg)); }
.dcc[data-spin] .dcc-idle{ animation:dcc-spin var(--dcc-spin) linear infinite; animation-play-state:paused; }
.dcc[data-spin] .dcc-slide[data-active] .dcc-idle{ animation-play-state:running; }
.dcc[data-dragging] .dcc-idle{ animation-play-state:paused; }
@keyframes dcc-spin{ to{ transform:rotate(1turn); } }

.dcc-idle > img{
  position:absolute; inset:0; width:100%; height:100%;
  max-width:none; display:block; object-fit:cover;
}
.dcc-hub{ position:absolute; inset:0; width:100%; height:100%; display:block; pointer-events:none; }

.dcc-sheen{
  position:absolute; inset:0; border-radius:50%; pointer-events:none;
  mix-blend-mode:screen; opacity:var(--dcc-sheen);
  background:
    conic-gradient(from var(--dcc-glint,0deg),
      transparent 0deg, rgba(255,255,255,.45) 16deg, transparent 38deg, transparent 140deg,
      rgba(150,215,255,.3) 168deg, rgba(255,170,225,.3) 186deg, rgba(255,236,170,.24) 200deg,
      transparent 224deg, transparent 360deg),
    radial-gradient(circle at 32% 24%, rgba(255,255,255,.28), transparent 46%);
}
.dcc-slide:focus-visible .dcc-disc{ box-shadow:inset 0 0 0 3px var(--bg), inset 0 0 0 6px var(--red); }

.dcc-head{
  position:absolute; top:var(--dcc-pad); left:var(--dcc-pad); z-index:4;
  width:clamp(160px,22vw,300px); pointer-events:none;
}
.dcc-title{
  margin:0 0 8px;
  font-family:var(--display); font-weight:800; text-transform:uppercase;
  font-size:clamp(20px,2.6vw,34px); line-height:.98; color:var(--fg);
}
.dcc-sub{ margin:0; color:var(--fg-mute); font-size:9.5px; letter-spacing:.18em; }
.dcc-in{ animation:dcc-in .8s var(--ease) both; }
@keyframes dcc-in{ from{ opacity:0; transform:translateY(12px); filter:blur(5px); } }

.dcc-ctl{
  position:absolute; right:var(--dcc-pad); bottom:var(--dcc-pad); z-index:5;
  display:flex; align-items:center; gap:10px;
}
.dcc-btn{
  display:grid; place-items:center; width:34px; height:34px;
  border-radius:999px; border:1px solid var(--rule);
  color:var(--fg-dim); font-size:16px; line-height:1;
  transition:color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.dcc-btn:hover:not(:disabled){ color:var(--fg); border-color:var(--fg-dim); }
.dcc-btn:active:not(:disabled){ transform:scale(.9); }
.dcc-btn:disabled{ opacity:.28; cursor:default; }
.dcc-btn:focus-visible{ outline:2px solid var(--red); outline-offset:3px; }
.dcc-count{
  font-size:10px; letter-spacing:.14em; color:var(--fg-dim);
  font-variant-numeric:tabular-nums; min-width:58px; text-align:center;
}
.dcc-count b{ color:var(--red); font-weight:400; }

.dcc-hint{
  position:absolute; left:var(--dcc-pad); bottom:var(--dcc-pad); z-index:4;
  margin:0; font-size:9px; letter-spacing:.18em; color:var(--fg-mute);
  pointer-events:none; line-height:34px;
}

@media (max-width:720px){
  .dcc-hint{ display:none; }
  .dcc-head{ width:clamp(140px,46vw,230px); }
}
@media (prefers-reduced-motion:reduce){
  .dcc .dcc-idle{ animation:none; }
  .dcc-in{ animation:none; }
  .dcc-tilt, .dcc-btn{ transition:none; }
}

/* ---- 12a2. Lightbox ---- */
.pcbox[hidden]{ display:none; }
.pcbox{
  position:fixed; inset:0; z-index:150;
  display:grid; place-items:center;
  padding:clamp(20px,5vw,60px);
  background:rgba(var(--bg-rgb),.93);
  -webkit-backdrop-filter:blur(18px); backdrop-filter:blur(18px);
  opacity:0; transition:opacity .35s var(--ease);
}
.pcbox.is-on{ opacity:1; }
.pcbox__fig{ margin:0; display:grid; gap:14px; justify-items:center; max-height:100%; }
.pcbox__fig img{
  max-width:min(760px,92vw); max-height:78vh;
  width:auto; height:auto; object-fit:contain;
  border:1px solid var(--rule);
}
.pcbox__fig figcaption{
  color:var(--fg-dim); font-size:10px; letter-spacing:.16em; text-transform:uppercase;
}
.pcbox__close{
  position:absolute; top:clamp(14px,3vw,28px); right:clamp(14px,3vw,28px);
  width:40px; height:40px; border-radius:50%;
  border:1px solid var(--rule); color:var(--fg);
  font-size:20px; line-height:1;
  transition:color .25s var(--ease), border-color .25s var(--ease);
}
.pcbox__close:hover{ color:var(--red); border-color:var(--red); }
.pcbox__close:focus-visible{ outline:2px solid var(--red); outline-offset:3px; }
@media (prefers-reduced-motion:reduce){ .pcbox{ transition:none; } }

.look__grid{ display:grid; grid-template-columns:repeat(12,1fr); gap:clamp(10px,1.6vw,22px); }
.look__item{ position:relative; overflow:hidden; background:var(--surface); }
.look__item img{
  width:100%; height:100%; object-fit:cover;
  transition:transform 1.1s var(--ease);
}
.look__item:hover img{ transform:scale(1.035); }
.look__item figcaption{
  position:absolute; left:12px; bottom:11px;
  font-family:var(--mono); font-size:9.5px; letter-spacing:.18em;
  text-transform:uppercase; color:#fff;
  text-shadow:0 1px 10px rgba(0,0,0,.85);
}
.look--a{ grid-column:span 7; aspect-ratio:4/5; }
.look--b{ grid-column:span 5; aspect-ratio:3/4; align-self:end; }
.look--c{ grid-column:span 4; aspect-ratio:1/1; }
.look--d{ grid-column:span 8; aspect-ratio:16/10; }
.look--e{ grid-column:span 5; aspect-ratio:3/4; }
.look--f{ grid-column:span 7; aspect-ratio:4/3; align-self:start; }

/* ---- 12b. Soundtrack ----
   The credit list in the lookbook is the player's data source and its
   no-JS fallback. The pill itself is fixed to the viewport. */
.sound{
  margin-top:clamp(28px,4vw,52px);
  display:flex; align-items:baseline; gap:clamp(16px,3vw,40px);
  flex-wrap:wrap;
  padding-top:18px; border-top:1px solid var(--rule);
}
.sound__label{ margin:0; color:var(--fg-mute); font-weight:400; letter-spacing:.2em; }
.sound__list{
  list-style:none; margin:0; padding:0;
  display:flex; gap:clamp(14px,2.4vw,28px); flex-wrap:wrap;
  counter-reset:t;
}
.sound__list a{ color:var(--fg-dim); transition:color .25s var(--ease); }
.sound__list a::before{
  content:counter(t,decimal-leading-zero) '  ';
  counter-increment:t; color:var(--fg-mute);
}
.sound__list a:hover{ color:var(--red); }
.sound__list li.is-current a{ color:var(--red); }

/* ---- 12c. Floating player pill ---- */
.mini{
  position:fixed; z-index:80;
  left:clamp(14px,3vw,34px); bottom:clamp(14px,3vw,34px);
  display:flex; align-items:center;
  pointer-events:none;                 /* children opt back in */
  opacity:0; transform:translateY(14px);
  transition:opacity .5s var(--ease), transform .5s var(--ease);
}
.mini[hidden]{ display:none; }
.mini.is-ready{ opacity:1; transform:none; }
.mini > *{ pointer-events:auto; }

/* artwork sits proud of the pill, as in the reference */
.mini__art{
  position:relative; z-index:2; flex:none;
  width:66px; height:66px; border-radius:16px;
  background:var(--surface) center/cover no-repeat;
  border:1px solid var(--rule);
  box-shadow:0 10px 26px rgba(0,0,0,.45);
}
.mini__art.is-blank::after{
  content:''; position:absolute; inset:26% 12%;
  background:var(--fg-mute);
  -webkit-mask:url(../img/zaylum-mark.png) center/contain no-repeat;
          mask:url(../img/zaylum-mark.png) center/contain no-repeat;
}

.mini__panel{
  position:relative;
  display:flex; align-items:center; gap:14px;
  margin-left:-16px; padding:10px 16px 10px 30px;
  height:52px;
  border-radius:999px;
  background:rgba(var(--bg-rgb),.82);
  -webkit-backdrop-filter:blur(16px) saturate(1.1);
          backdrop-filter:blur(16px) saturate(1.1);
  border:1px solid var(--rule);
  overflow:hidden;
  transition:width .45s var(--ease), padding .45s var(--ease),
             opacity .3s var(--ease);
}

/* equaliser — animates only while actually playing */
.mini__eq{ display:flex; align-items:flex-end; gap:2px; height:16px; flex:none; }
.mini__eq i{
  width:3px; height:5px; background:var(--red);
  transform-origin:bottom;
}
.mini.is-playing .mini__eq i{ animation:eq .9s ease-in-out infinite; }
.mini__eq i:nth-child(2){ animation-delay:.15s; height:11px; }
.mini__eq i:nth-child(3){ animation-delay:.3s;  height:16px; }
.mini__eq i:nth-child(4){ animation-delay:.45s; height:8px; }
@keyframes eq{ 0%,100%{ transform:scaleY(.35);} 50%{ transform:scaleY(1);} }

.mini__now{ display:grid; gap:2px; min-width:0; max-width:190px; }
.mini__title{
  font-family:var(--display); font-weight:800; text-transform:uppercase;
  font-size:16px; line-height:1; color:var(--fg);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.mini__artist{
  font-size:9px; letter-spacing:.2em; color:var(--fg-mute);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

.mini__ctrls{ display:flex; align-items:center; gap:4px; flex:none; }
.mini__ctrls button{
  display:grid; place-items:center;
  width:30px; height:30px; border-radius:50%;
  color:var(--fg-dim);
  transition:color .25s var(--ease), background-color .25s var(--ease);
}
.mini__ctrls button svg{ width:15px; height:15px; display:block; }
.mini__ctrls button:hover{ color:var(--fg); }
.mini__ctrls button:focus-visible{ outline:2px solid var(--red); outline-offset:2px; }
.mini__play{
  width:34px !important; height:34px !important;
  background:rgba(239,235,225,.10); color:var(--fg) !important;
}
.mini__play:hover{ background:var(--red); color:#fff !important; }
.mini__play svg{ width:17px; height:17px; }
/* These must out-specify `.mini__ctrls button svg{display:block}` above,
   hence the extra class — otherwise both icons render at once. */
.mini__ctrls .mini__i-pause{ display:none; }
.mini.is-playing .mini__ctrls .mini__i-play{ display:none; }
.mini.is-playing .mini__ctrls .mini__i-pause{ display:block; }

/* seek line along the bottom edge of the pill */
.mini__bar{
  position:absolute; left:30px; right:16px; bottom:7px; height:2px;
  background:var(--rule); cursor:pointer;
}
.mini__bar::before{ content:''; position:absolute; left:0; right:0; top:-9px; bottom:-9px; }
.mini__bar:focus-visible{ outline:2px solid var(--red); outline-offset:4px; }
.mini__fill{ position:absolute; inset:0 auto 0 0; width:0; background:var(--red); }

.mini__toggle{
  flex:none; margin-left:8px;
  width:26px; height:26px; border-radius:50%;
  display:grid; place-items:center;
  border:1px solid var(--rule);
  background:rgba(var(--bg-rgb),.82);
  -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px);
  color:var(--fg-dim); font-size:13px; line-height:1;
  transition:color .25s var(--ease), border-color .25s var(--ease);
}
.mini__toggle:hover{ color:var(--fg); border-color:var(--fg-dim); }
.mini__toggle:focus-visible{ outline:2px solid var(--red); outline-offset:2px; }

/* collapsed: pill shrinks to the artwork + equaliser */
.mini.is-min .mini__now,
.mini.is-min .mini__ctrls,
.mini.is-min .mini__bar{ display:none; }
.mini.is-min .mini__panel{ padding-right:18px; }

/* Tucked: the Luzor credit is on screen, so the player shrinks to its
   artwork puck rather than sitting on top of it. Playback is untouched and
   the puck is still a play/pause target, so nothing is taken away — the
   credit simply wins the space while it is being read. */
.mini.is-tuck .mini__now,
.mini.is-tuck .mini__ctrls,
.mini.is-tuck .mini__bar{ display:none; }
.mini.is-tuck .mini__panel{ padding-right:18px; }
.mini.is-tuck .mini__toggle{ display:none; }

@media (max-width:620px){
  .mini__now{ max-width:112px; }
  .mini__art{ width:54px; height:54px; }
  .mini__artist{ display:none; }
}
@media (prefers-reduced-motion:reduce){
  .mini.is-playing .mini__eq i{ animation:none; }
  .mini{ transition:none; }
}

/* ---- 13. Signup ---- */
.find{ text-align:center; background:var(--bg); overflow:hidden; }

/* merch cursor trail — decorative, mouse-only (see wireTrail) */
.trail{ position:absolute; inset:0; z-index:0; pointer-events:none; }
.find > *:not(.trail){ position:relative; z-index:1; }

.trail__item{
  position:absolute; width:var(--s,140px);
  transform:translate(-50%,-50%) scale(.5) rotate(var(--r0,0deg));
  opacity:0;
  will-change:transform,opacity;
  transition:opacity .4s cubic-bezier(.23,1,.32,1),
             transform .4s cubic-bezier(.23,1,.32,1),
             filter .4s cubic-bezier(.23,1,.32,1);
}
/* Held well below full opacity: this section's job is the slogan and the
   signup, so the trail has to stay texture rather than compete with them. */
.trail__item.is-in{
  opacity:.58;
  transform:translate(-50%,-50%) scale(var(--s2,1)) rotate(var(--r,0deg));
}
.trail__item.is-out{
  opacity:0; filter:blur(4px);
  transform:translate(-50%,-50%) scale(.3) rotate(var(--ro,0deg));
}
.trail__item img{ width:100%; height:auto; display:block; }
.find__head{
  font-family:var(--display); font-weight:900; text-transform:uppercase;
  font-size:clamp(38px,9vw,140px); line-height:.84; margin:0 0 .22em;
  letter-spacing:-.012em;
}
.find__head em{ font-style:normal; color:var(--red); }
.find__form{
  display:flex; max-width:520px; margin:clamp(26px,4vw,44px) auto 0;
  border-bottom:1px solid var(--rule);
  transition:border-color .4s var(--ease);
}
.find__form:focus-within{ border-bottom-color:var(--red); }
.find__form input{
  flex:1; min-width:0; background:none; border:0; outline:0;
  color:var(--fg); padding:14px 2px;
  font-family:var(--mono); font-size:12px; letter-spacing:.1em;
}
.find__form input::placeholder{ color:var(--fg-mute); text-transform:uppercase; }
.find__form button{
  font-family:var(--mono); font-size:11px; letter-spacing:.18em;
  text-transform:uppercase; padding:14px 4px 14px 20px; color:var(--red);
  transition:opacity .3s var(--ease);
}
.find__form button:hover{ opacity:.65; }
.find__note{ margin-top:16px; }
.find__note[data-state="ok"]{ color:var(--ember); }

/* ---- 14. Footer ---- */
.foot{
  border-top:1px solid var(--rule);
  padding:clamp(40px,6vw,72px) var(--gut) 34px;
  display:grid; gap:clamp(26px,4vw,40px);
}
.foot__top{ display:flex; flex-wrap:wrap; gap:30px; align-items:flex-start; position:relative; }
.foot__mark{ width:min(300px,62vw); color:var(--fg); transition:color .55s var(--ease); }
/* he reaches it, and it takes his colour */
.foot__mark.is-lit{ color:var(--ember); }

/* ---- 14d. Footer walker ----
   An articulated figure — hips, shoulders, a bob — rather than a sliding
   silhouette, so the walk actually reads at this size. */
.walker{
  position:absolute; left:0; bottom:0;
  width:44px; height:110px;
  color:var(--ember);
  opacity:0; visibility:hidden;
  pointer-events:none;
  will-change:transform;
  z-index:2;
}
.walker.is-on{ opacity:1; visibility:visible; }
.walker__in{ width:100%; height:100%; transform-origin:50% 86%; }
/* --fx is the facing: narrow reads as profile, full width as facing us.
   Passing through ~0 on the way between them reads as a turn. */
.walker__face{
  width:100%; height:100%;
  transform-origin:50% 100%;
  transform:scaleX(var(--fx,.72));
  transition:transform .26s var(--ease);
}
.walker__svg{ width:100%; height:100%; display:block; fill:currentColor; overflow:visible; }

/* the far-side limbs sit back a touch, which is what gives it depth */
.w-arm-b, .w-leg-b{ opacity:.55; }

.w-limb, .w-body{ transform-box:view-box; }
.w-leg-f, .w-leg-b{ transform-origin:30px 84px; }   /* hips */
.w-arm-f, .w-arm-b{ transform-origin:30px 38px; }   /* shoulders */
.w-body{ transform-origin:30px 80px; }

.walker.is-walking .w-leg-f{ animation:w-legA .62s ease-in-out infinite; }
.walker.is-walking .w-leg-b{ animation:w-legB .62s ease-in-out infinite; }
.walker.is-walking .w-arm-f{ animation:w-armA .62s ease-in-out infinite; }
.walker.is-walking .w-arm-b{ animation:w-armB .62s ease-in-out infinite; }
.walker.is-walking .w-body{ animation:w-bob .31s ease-in-out infinite; }

@keyframes w-legA{ 0%,100%{ transform:rotate(21deg); } 50%{ transform:rotate(-21deg); } }
@keyframes w-legB{ 0%,100%{ transform:rotate(-21deg); } 50%{ transform:rotate(21deg); } }
@keyframes w-armA{ 0%,100%{ transform:rotate(-15deg); } 50%{ transform:rotate(15deg); } }
@keyframes w-armB{ 0%,100%{ transform:rotate(15deg); } 50%{ transform:rotate(-15deg); } }
@keyframes w-bob{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-2.5px); } }

/* ---- the dance: arms overhead, hips loose, planted feet ---- */
.walker.is-dancing .w-body{ animation:w-dbody .52s ease-in-out infinite; }
.walker.is-dancing .w-arm-f{ animation:w-darmA .52s ease-in-out infinite; }
.walker.is-dancing .w-arm-b{ animation:w-darmB .52s ease-in-out infinite; }
.walker.is-dancing .w-leg-f{ animation:w-dlegA 1.04s ease-in-out infinite; }
.walker.is-dancing .w-leg-b{ animation:w-dlegB 1.04s ease-in-out infinite; }

@keyframes w-dbody{
  0%,100%{ transform:translateY(0) rotate(-4deg); }
  50%    { transform:translateY(-7px) rotate(4deg); }
}
@keyframes w-darmA{ 0%,100%{ transform:rotate(-146deg); } 50%{ transform:rotate(-34deg); } }
@keyframes w-darmB{ 0%,100%{ transform:rotate(38deg);  } 50%{ transform:rotate(150deg); } }
@keyframes w-dlegA{ 0%,100%{ transform:rotate(11deg);  } 50%{ transform:rotate(-7deg); } }
@keyframes w-dlegB{ 0%,100%{ transform:rotate(-11deg); } 50%{ transform:rotate(7deg);  } }

/* absorbed into the mark */
.walker.is-gone .walker__in{
  opacity:0; transform:scale(.18) translateY(6%);
  transition:opacity .5s var(--ease), transform .62s var(--ease);
}

/* staff sign-in — deliberately quiet, this is not for customers */
.foot__staff{ color:var(--fg-mute); opacity:.5; transition:color .25s var(--ease), opacity .25s var(--ease); }
.foot__staff:hover{ color:var(--red); opacity:1; }

@media (prefers-reduced-motion:reduce){
  .walker{ display:none; }
  .foot__mark{ transition:none; }
}
.foot__cols{ margin-left:auto; display:flex; gap:clamp(30px,6vw,84px); flex-wrap:wrap; }
.foot__col h4{ margin:0 0 12px; color:var(--fg-mute); font-weight:400; }
.foot__col ul{ list-style:none; margin:0; padding:0; display:grid; gap:7px; }
.foot__col a:hover{ color:var(--red); }
/* ---- Buttons ----
   Lives here, not in shop.css, because every page loads zaylum.css while
   the dashboard and the sign-in page load admin.css instead. Defining it
   in shop.css left every button on those two pages unstyled. */
.btn{ display:inline-block; padding:13px 26px; border:1px solid var(--rule); border-radius:999px;
  font-family:var(--mono); font-size:10px; letter-spacing:.2em; text-transform:uppercase;
  color:var(--fg-dim); cursor:pointer; transition:all .25s var(--ease); }
.btn:hover{ color:var(--fg); border-color:var(--fg-dim); }
.btn--red{ color:var(--red); border-color:var(--red); }
.btn--red:hover{ background:var(--red); color:#fff; }
.btn--wide{ width:100%; text-align:center; }
.btn:focus-visible{ outline:2px solid var(--red); outline-offset:3px; }

.foot__base{
  display:flex; flex-wrap:wrap; gap:8px 26px; justify-content:space-between;
  padding-top:22px; border-top:1px solid var(--rule); color:var(--fg-mute);
}

/* Socials in the slim shop-page footer. The homepage has them as a full
   "Elsewhere" column instead, so this only styles the compact pair. */
.foot__social{ display:inline-flex; gap:16px; }
.foot__social a{ color:var(--fg-mute); transition:color .25s var(--ease); }
.foot__social a:hover,
.foot__social a:focus-visible{ color:var(--red); }

/* ---- 14b. Builder credit ----
   Renders in ZAYLUM's own muted ink so it stays subordinate, then blooms
   into Luzor's cyan→violet→magenta on hover/focus. The display lockup's
   stencil cuts in the Z and R are dropped here — at ~17px they'd be
   sub-pixel and read as damage rather than as the mark. */
/* padding-right keeps the credit clear of the fixed back-to-top button,
   which parks over the footer's bottom-right corner at full scroll. */
.foot__credit{
  display:flex; justify-content:flex-end;
  padding-top:4px; padding-right:70px;
}
/* On a phone the credit is centred and given its own line below the player's
   puck, so "Powered by Luzor" is never underneath it. */
@media (max-width:620px){
  .foot__credit{
    justify-content:center;
    padding-right:0;
    padding-top:22px;
    padding-bottom:84px;          /* clears the puck and the back-to-top */
    border-top:1px solid var(--rule);
    margin-top:18px;
  }
  .luzor{ flex-direction:column; gap:7px; }
  .luzor__by{ font-size:10.5px; }
  .luzor__mark{ font-size:30px; }   /* it has the line to itself here */
}

.luzor{
  display:inline-flex; align-items:center; gap:12px;
  color:var(--fg-dim);                 /* brighter than the footer's fine print */
  transition:color .45s var(--ease);
}
.luzor__by{
  font-family:var(--mono); font-size:11.5px;
  letter-spacing:.22em; text-transform:uppercase;
  transition:color .45s var(--ease);
}
.luzor__mark{
  display:inline-flex; align-items:center; gap:.04em;
  font-family:'Jura',system-ui,sans-serif;
  font-weight:400; font-size:26px;
  letter-spacing:.06em; line-height:1;
  -webkit-text-fill-color:currentColor;
}
.luzor__cloud{ width:1.18em; height:.86em; margin:0 .02em; overflow:visible; }
.luzor__cloudline{
  fill:none; stroke:currentColor; stroke-width:7; stroke-linejoin:round;
  transition:stroke .45s var(--ease);
}
.luzor__star line{ stroke:currentColor; stroke-linecap:round; transition:stroke .45s var(--ease); }
.luzor__star{ transform-origin:0 0; animation:luzorspin 30s linear infinite; }
@keyframes luzorspin{ to{ transform:rotate(360deg); } }

/* bloom */
.luzor:hover, .luzor:focus-visible{ color:#7e6cf0; }
.luzor:hover .luzor__by, .luzor:focus-visible .luzor__by{ color:var(--fg); }
.luzor:hover .luzor__mark, .luzor:focus-visible .luzor__mark{
  background:linear-gradient(90deg,#29b6f6 0%,#7e6cf0 52%,#c94bd8 100%);
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent;
}
.luzor:hover .luzor__cloudline, .luzor:focus-visible .luzor__cloudline{ stroke:url(#luzorGrad); }
.luzor:hover .luzor__star line, .luzor:focus-visible .luzor__star line{ stroke:url(#luzorStar); }
.luzor:hover .luzor__star, .luzor:focus-visible .luzor__star{ animation-duration:9s; }

@media (prefers-reduced-motion:reduce){
  .luzor__star{ animation:none; }
}
/* (the phone rule for .foot__credit lives with the credit itself, above —
   it centres the mark and clears the player's puck) */

/* ---- 14b2. Ink cursor ----
   Its own composited layer. pointer-events:none is essential — the hero
   crowd, the merch trail and the wardrobe plate are all pointer-driven and
   must keep receiving events. Sits under the nav (60) and under the
   preloader (200), so neither gets drawn over. */
.ink{
  position:fixed; inset:0; z-index:55;
  pointer-events:none;
}

/* ---- 14c. Back to top ---- */
.totop{
  position:fixed; z-index:70;
  right:clamp(16px,3vw,34px); bottom:clamp(16px,3vw,34px);
  width:48px; height:48px;
  display:grid; place-items:center;
  border:1px solid var(--rule); border-radius:999px;
  background:rgba(var(--bg-rgb),.74);
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
  color:var(--fg);
  opacity:0; visibility:hidden; transform:translateY(12px);
  transition:opacity .45s var(--ease), transform .45s var(--ease), visibility .45s,
             border-color .3s var(--ease), color .3s var(--ease);
}
.totop.is-on{ opacity:1; visibility:visible; transform:none; }
.totop svg{ width:18px; height:18px; transition:transform .35s var(--ease-snap); }
.totop:hover{ border-color:var(--red); color:var(--red); }
.totop:hover svg{ transform:translateY(-3px); }
.totop:focus-visible{ outline:2px solid var(--red); outline-offset:3px; }

@media (prefers-reduced-motion:reduce){
  .totop, .totop svg{ transition:opacity .2s linear, visibility .2s; }
  .totop:hover svg{ transform:none; }
}

/* ---- 15. Reveal — blur to focus (the brand's own graphic language) ---- */
.rv{
  opacity:0; filter:blur(13px); transform:translateY(16px);
  transition:opacity .9s var(--ease), filter 1s var(--ease), transform 1s var(--ease);
}
.rv.is-in{ opacity:1; filter:blur(0); transform:none; }
.no-js .rv, .rv-fallback .rv{ opacity:1; filter:none; transform:none; }

@media (prefers-reduced-motion:reduce){
  .rv{ opacity:1; filter:none; transform:none; transition:none; }
  .fig__seen{ transition:none; }
  .hero__hint i{ animation:none; transform:scaleX(1); }
  .look__item img{ transition:none; }
  body, .section--invert{ transition:none; }
}

/* ---- 16. Responsive ---- */
@media (max-width:1000px){
  .wardrobe__grid{ grid-template-columns:1fr; }
  .ward__plate{ display:none; }
  .origin__grid{ grid-template-columns:1fr; }
  .noise__body{ margin-left:0; }
  .look--a,.look--d,.look--f{ grid-column:span 12; }
  .look--b,.look--c,.look--e{ grid-column:span 6; }
}
@media (max-width:620px){
  .nav__links{ gap:12px; font-size:10px; }
  .nav__mark{ width:78px; }
  .nav__theme{ padding:5px 9px; }
  .nav__theme span{ display:none; }
  .ward__link{ grid-template-columns:auto 1fr; row-gap:6px; }
  .ward__status{ grid-column:2; }
  .look--b,.look--c,.look--e{ grid-column:span 12; }
  .hero__foot{ flex-direction:column; align-items:flex-start; gap:10px; }
  .foot__cols{ margin-left:0; }
}

/* The soundtrack pill is fixed bottom-left. On a phone that is right where a
   footer ends, so every footer keeps a clear strip beneath its content. */
@media (max-width:620px){
  .foot{ padding-bottom:84px; }
}

/* ---- phone navigation ----
   Five links, a wordmark and a theme toggle will not fit 375px: on the
   original build "Find it" was simply cut off the right edge. Below 620px
   the links move into a sheet behind a menu button.

   The nav uses mix-blend-mode:difference, which creates a stacking context
   and would trap a fixed child, so the sheet is a sibling positioned by the
   nav rather than a descendant of the blended layer. */
.nav__burger{
  display:none; margin-left:auto;
  width:44px; height:44px;                 /* a real touch target */
  flex-direction:column; justify-content:center; align-items:flex-end; gap:5px;
  background:none; border:0; cursor:pointer;
}
.nav__burger i{
  display:block; height:1.5px; background:currentColor;
  transition:transform .3s var(--ease), opacity .25s var(--ease), width .3s var(--ease);
}
.nav__burger i:nth-child(1){ width:22px; }
.nav__burger i:nth-child(2){ width:16px; }
.nav__burger i:nth-child(3){ width:22px; }
.nav__burger[aria-expanded="true"] i:nth-child(1){ width:22px; transform:translateY(6.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] i:nth-child(2){ opacity:0; }
.nav__burger[aria-expanded="true"] i:nth-child(3){ width:22px; transform:translateY(-6.5px) rotate(-45deg); }

@media (max-width:620px){
  .nav{ gap:12px; }
  .nav__burger{ display:flex; }

  .nav__links{
    position:fixed; inset:0 0 auto 0;
    margin:0; padding:86px var(--gut) 30px;
    flex-direction:column; align-items:stretch; gap:0;
    background:var(--bg); color:var(--fg);
    mix-blend-mode:normal;               /* readable over its own ground */
    border-bottom:1px solid var(--rule);
    transform:translateY(-102%);
    transition:transform .42s var(--ease);
    z-index:-1;                          /* sits under the bar it drops from */
  }
  .nav__links.is-open{ transform:none; }
  .nav__links a{
    padding:15px 2px; border-bottom:1px solid var(--rule);
    font-size:15px; letter-spacing:.2em; text-transform:uppercase;
  }
  .nav__links a::after{ display:none; }   /* the hover rule is desktop furniture */
  .nav__theme{ margin-top:18px; align-self:flex-start; }
  .nav__theme span{ display:inline; }     /* room for the word down here */
}
