:root {
  --bg: #12100e;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.52);
  --pad: clamp(16px, 3.2vw, 40px);
}

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

html {
  background: var(--bg);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: none;
  /* two resting states: the hero, and Side B */
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}
html::-webkit-scrollbar { display: none; }
/* no scrolling while the intro plays */
html.is-locked,
html.is-locked body { overflow: hidden; touch-action: none; }

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
}

.track { position: relative; pointer-events: none; }
.snap { height: 100vh; height: 100svh; scroll-snap-align: start; scroll-snap-stop: always; }

body {
  font-family: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-stretch: 125%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[hidden] { display: none !important; }

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

.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
}

#gl,
#wm {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#wm { pointer-events: none; overflow: visible; }

/* Sports-style stinger bars (the logo's stripes, blown up) */
.stinger {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.bar {
  position: absolute;
  top: -10%;
  left: 0;
  height: 120%;
  transform-origin: 50% 50%;
  will-change: transform;
  visibility: hidden;
  /* feathered leading/trailing edges read as motion blur at speed */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%);
}

.bar--s1 { background: linear-gradient(180deg, #59acf7 0%, #8cd7fa 45%, #bcfcfd 100%); }
.bar--s2 { background: linear-gradient(180deg, #fcc42d 0%, #fce00b 18%, #59acf7 58%, #a9eefb 100%); }
.bar--p  {
  background:
    linear-gradient(98deg, #59acf7 0%, #95be97 6%, #fce00b 13%, #fcc42d 22%, #fa9e3a 34%, #fc7530 48%, #fc4d26 64%, #fc4d26 100%);
}

.fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6vw;
}

/* Film grain over everything, including the white type */
.grain {
  position: absolute;
  inset: -40%;
  pointer-events: none;
  opacity: 0.085;
  mix-blend-mode: overlay;
  background-size: 220px 220px;
  will-change: transform;
}

/* ------------------------------------------------------------------
   Tape-label frame (borrowed from VHS sleeves + Swiss poster meta text)
   ------------------------------------------------------------------ */
.hud {
  --ink: rgba(255, 255, 255, 0.6);
  --ink-dim: rgba(255, 255, 255, 0.34);
  --padT: max(var(--pad), env(safe-area-inset-top));
  --padB: max(var(--pad), env(safe-area-inset-bottom));
  --ease: cubic-bezier(0.7, 0, 0.2, 1);
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: var(--ink);
  visibility: hidden;
  /* keeps the small type legible where it crosses the horizon light */
  text-shadow: 0 0 10px rgba(10, 9, 8, 0.55), 0 0 2px rgba(10, 9, 8, 0.4);
}
.hud.is-on { visibility: visible; }

.lbl {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  display: inline-block;
}
.mono {
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
  white-space: nowrap;
}

/* every piece fades/slides in on its own delay (--d) */
.hud [data-in] {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.6s ease var(--d, 0s), transform 0.8s var(--ease) var(--d, 0s);
}
.hud.is-on [data-in] { opacity: 1; transform: none; }

/* crop marks */
.crop {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 0 solid rgba(255, 255, 255, 0.3);
  opacity: 0;
  transition: opacity 0.8s ease 0.1s;
}
.hud.is-on .crop { opacity: 1; }
.crop--tl { top: calc(var(--padT) * 0.42); left: calc(var(--pad) * 0.42); border-top-width: 1px; border-left-width: 1px; }
.crop--tr { top: calc(var(--padT) * 0.42); right: calc(var(--pad) * 0.42); border-top-width: 1px; border-right-width: 1px; }
.crop--bl { bottom: calc(var(--padB) * 0.42); left: calc(var(--pad) * 0.42); border-bottom-width: 1px; border-left-width: 1px; }
.crop--br { bottom: calc(var(--padB) * 0.42); right: calc(var(--pad) * 0.42); border-bottom-width: 1px; border-right-width: 1px; }

/* bottom blocks */
.hud__bottom {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: var(--padB);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.hud__bl,
.hud__br { display: flex; align-items: flex-end; gap: 16px; }

.badge {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 7px 9px 6px;
  border: 1px solid var(--ink);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
  color: rgba(255, 255, 255, 0.82);
}

.langs {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-stretch: 100%;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--ink);
}

.chips { display: flex; gap: 3px; margin-bottom: 4px; }
.chips i {
  width: 12px;
  height: 4px;
  background: var(--c);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease) calc(var(--d, 0s) + var(--i, 0) * 0.06s);
}
.hud.is-on .chips i { transform: none; }

.barcode { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; color: var(--ink); }
.barcode svg {
  display: block;
  height: 19px;
  width: auto;
  fill: rgba(255, 255, 255, 0.55);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s var(--ease) var(--d, 0s);
}
.hud.is-on .barcode svg { clip-path: inset(0 0 0 0); }

.deck { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.deck__btns { display: flex; align-items: center; gap: 18px; }
.tc { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, 0.78); font-size: 10px; }
.tc__state { font-weight: 500; color: var(--ink-dim); letter-spacing: 0.14em; }
.tc__state::first-letter { color: #fc7530; }

.hud__link,
.hud__btn {
  pointer-events: auto;
  color: inherit;
  font-family: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.25s ease;
}
.hud__btn .ico { letter-spacing: -0.12em; margin-right: 0.35em; font-size: 0.9em; }
.hud__link:hover,
.hud__btn:hover,
.hud__link:focus-visible,
.hud__btn:focus-visible { color: var(--fg); }
.hud:not(.is-on) .hud__btn,
.hud:not(.is-on) .hud__link { pointer-events: none; }

/* skip (fast-forward) during the intro */
.skip {
  position: absolute;
  right: var(--pad);
  bottom: max(var(--pad), env(safe-area-inset-bottom));
  font-family: inherit;
  color: rgba(255, 255, 255, 0.45);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.5s ease, color 0.25s ease;
}
.skip .ico { letter-spacing: -0.12em; margin-left: 0.35em; font-size: 0.9em; }
.skip.is-on { opacity: 1; }
.skip:hover,
.skip:focus-visible { color: var(--fg); }
.skip:not(.is-on) { pointer-events: none; }

/* rewind: tape-tracking glitch */
.rew {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 3px);
  mix-blend-mode: screen;
  transition: opacity 0.12s linear;
}
.rew i {
  position: absolute;
  left: -5%;
  right: -5%;
  height: 7%;
  top: 100%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.16) 40%, rgba(188, 252, 253, 0.22) 55%, transparent);
  filter: blur(1.5px);
}
.stage.is-rew .rew { opacity: 1; }
.stage.is-rew .rew i { animation: rew-band 0.3s linear infinite; }
.stage.is-rew .rew i + i { animation-duration: 0.22s; animation-delay: -0.1s; height: 4%; }
.stage.is-rew #gl,
.stage.is-rew #wm { animation: rew-jit 0.6s steps(12) both; }
@keyframes rew-band { from { transform: translateY(0); } to { transform: translateY(-1600%); } }
@keyframes rew-jit {
  0% { transform: none; filter: none; }
  15% { transform: translate(-7px, 1px); filter: saturate(1.4) blur(0.6px); }
  30% { transform: translate(5px, -2px) skewX(-1.5deg); }
  45% { transform: translate(-3px, 2px); filter: saturate(1.2) blur(1px); }
  60% { transform: translate(8px, 0) skewX(1deg); }
  80% { transform: translate(-4px, -1px); filter: blur(0.6px); }
  100% { transform: none; filter: none; }
}

:focus-visible { outline: 1px solid rgba(255, 255, 255, 0.6); outline-offset: 4px; }

/* scroll hint under the logo: "Side B" with a pulse running down a hairline */
.hint {
  position: absolute;
  left: 50%;
  bottom: calc(var(--padB) - 2px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ink-dim);
  transition: opacity 0.3s linear, color 0.25s ease;
  pointer-events: auto;
  cursor: pointer;
  padding: 6px 10px 0;
}
.hint:hover { color: #fff; }
.hud:not(.is-on) .hint { pointer-events: none; }
.hint__line {
  position: relative;
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.hint__line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 1px;
  height: 40%;
  background: linear-gradient(180deg, transparent, #fff);
  animation: hint-run 1.8s cubic-bezier(0.6, 0, 0.3, 1) infinite;
}
@keyframes hint-run { to { top: 110%; } }

/* ------------------------------------------------------------------
   Side B: coming soon + contact
   ------------------------------------------------------------------ */
.sideb {
  --p: 0;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 var(--pad) 4vh;
  text-align: center;
  pointer-events: none;
}
/* each child rises in on its own offset (--o) along the scroll progress (--p) */
.sideb > * {
  --k: clamp(0, calc((var(--p) - var(--o, 0)) * 2.6), 1);
  opacity: var(--k);
  transform: translateY(calc((1 - var(--k)) * 34px));
}
.sideb.is-active .sideb__mail,
.sideb.is-active .sideb__credit a { pointer-events: auto; }

.sideb__title {
  font-style: italic;
  font-stretch: 125%;
  font-weight: 600;
  font-size: clamp(42px, 7.4vw, 124px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  color: #fff;
}

.sideb__copy {
  margin-top: 24px;
  font-stretch: 100%;
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
}

/* credit, bottom centre between the label clusters */
.sideb__credit {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(var(--pad), env(safe-area-inset-bottom));
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
}
@media (max-width: 1180px) {
  /* sits above the bottom labels where they'd otherwise meet */
  .sideb__credit { bottom: calc(max(var(--pad), env(safe-area-inset-bottom)) + 54px); }
}
.sideb__credit a {
  color: rgba(255, 255, 255, 0.66);
  text-decoration: none;
  text-shadow: 0 0 14px rgba(10, 9, 8, 0.75), 0 0 3px rgba(10, 9, 8, 0.6);
  transition: color 0.25s ease;
}
.sideb__credit a:hover,
.sideb__credit a:focus-visible { color: #fff; }

.sideb__mail {
  margin-top: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}
.sideb__mail-k { color: rgba(255, 255, 255, 0.42); }
.sideb__mail-v {
  position: relative;
  padding-bottom: 8px;
  font-stretch: 112%;
  font-size: clamp(15px, 1.5vw, 21px);
  font-weight: 500;
  letter-spacing: 0.01em;
}
/* hairline underline that redraws on hover */
.sideb__mail-v::before,
.sideb__mail-v::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}
.sideb__mail-v::after {
  background: linear-gradient(90deg, #bcfcfd, #59acf7, #fce00b, #fa9e3a, #fc4d26);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.7, 0, 0.2, 1);
}
.sideb__mail:hover .sideb__mail-v::after,
.sideb__mail:focus-visible .sideb__mail-v::after { transform: scaleX(1); }
.sideb__mail-a {
  display: inline-block;
  margin-left: 0.45em;
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.3s ease;
}
.sideb__mail:hover .sideb__mail-a { transform: translate(3px, -3px); color: #fff; }

/* About button: a slanted outline tab, same lean as the mark */
.sideb__about {
  position: relative;
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 20px;
  color: rgba(255, 255, 255, 0.78);
  font-family: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  isolation: isolate;
  transition: color 0.3s ease;
}
.sideb.is-active .sideb__about { pointer-events: auto; }
.sideb__about::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(98deg, #59acf7, #fce00b 30%, #fa9e3a 58%, #fc4d26) no-repeat;
  background-size: 0% 100%;
  transform: skewX(-17deg);
  transition: background-size 0.55s cubic-bezier(0.7, 0, 0.2, 1), border-color 0.3s ease;
}
.sideb__about:hover,
.sideb__about:focus-visible { color: #12100e; }
.sideb__about:hover::before,
.sideb__about:focus-visible::before { background-size: 100% 100%; border-color: transparent; }
.sideb__about:focus-visible { outline: none; }
/* plus sign that turns as it fills */
.sideb__about-ico {
  position: relative;
  width: 7px;
  height: 7px;
  transition: transform 0.5s cubic-bezier(0.7, 0, 0.2, 1);
}
.sideb__about-ico::before,
.sideb__about-ico::after {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 7px;
  height: 1px;
  background: currentColor;
}
.sideb__about-ico::after { transform: rotate(90deg); }
.sideb__about:hover .sideb__about-ico { transform: rotate(90deg); }

/* ------------------------------------------------------------------
   About popup: a cassette sleeve
   ------------------------------------------------------------------ */
html.is-modal,
html.is-modal body { overflow: hidden; }

.about {
  --ease: cubic-bezier(0.7, 0, 0.2, 1);
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: max(var(--pad), env(safe-area-inset-top)) var(--pad) max(var(--pad), env(safe-area-inset-bottom));
  border: 0;
  color: #f4efe6;
  background: rgba(10, 9, 8, 0.55);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
          backdrop-filter: blur(14px) saturate(1.1);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.about::-webkit-scrollbar { display: none; }
.about::backdrop { background: transparent; }
.about[open] { display: flex; }
.about.is-in { opacity: 1; }
.about__inner {
  width: 100%;
  max-width: 980px;
  margin: auto;
  display: flex;
  flex-direction: column;
}

.sleeve {
  /* sleeve geometry (also places the notch level with the stripes) */
  --px: 40px;          /* body side padding */
  --pb: 30px;          /* body bottom padding */
  --foot-h: 52px;
  --gap: 28px;         /* stripes ↔ foot */
  --band: 9px;
  --stripe-h: calc(var(--band) * 5);
  --notch-w: 38px;
  --notch-h: 132px;
  --notch-y: calc(var(--pb) + var(--foot-h) + var(--gap) + var(--stripe-h) / 2 - var(--notch-h) / 2);
  --ink: rgba(244, 239, 230, 0.62);
  position: relative;
  filter: drop-shadow(0 40px 70px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 0.6px rgba(255, 255, 255, 0.45));
}

/* the tape inside, only visible through the notch */
.sleeve__tape {
  position: absolute;
  right: 3px;
  bottom: calc(var(--notch-y) - 18px);
  width: 90px;
  height: calc(var(--notch-h) + 36px);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.5), transparent 40%),
    repeating-linear-gradient(180deg, #24201c 0 2px, #0d0c0b 2px 6px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.about.is-in .sleeve__tape { opacity: 1; transition-delay: 0.45s; }

.sleeve__card {
  position: relative;
  display: flex;
  border-radius: 14px;
  background-color: #16130f;
  /* notch cut into the right edge */
  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 132'%3E%3Cpath d='M39 0L10 32Q5 37.5 5 45V87Q5 94.5 10 100L39 132Z'/%3E%3C/svg%3E") right 0 bottom var(--notch-y) / var(--notch-w) var(--notch-h) no-repeat,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 132'%3E%3Cpath d='M39 0L10 32Q5 37.5 5 45V87Q5 94.5 10 100L39 132Z'/%3E%3C/svg%3E") right 0 bottom var(--notch-y) / var(--notch-w) var(--notch-h) no-repeat exclude,
    linear-gradient(#000 0 0);
  /* slanted wipe in, leading edge at the mark's lean */
  clip-path: polygon(0 0, 0 0, -18% 100%, -18% 100%);
  transition: clip-path 0.6s var(--ease);
}
.about.is-in .sleeve__card { clip-path: polygon(0 0, 118% 0, 100% 100%, -18% 100%); }
/* printed-card grain */
.sleeve__card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -0.2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* spine */
.sleeve__spine {
  flex: none;
  width: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0 24px;
  border-right: 1px solid rgba(244, 239, 230, 0.12);
  color: var(--ink);
}
/* the logo's three stripes, in miniature */
.sleeve__mark { display: flex; gap: 2px; transform: skewX(-17deg); }
.sleeve__mark i { width: 4px; height: 15px; }
.sleeve__mark i:nth-child(1) { background: linear-gradient(180deg, #59acf7, #bcfcfd); }
.sleeve__mark i:nth-child(2) { background: linear-gradient(180deg, #fce00b, #59acf7 60%, #a9eefb); }
.sleeve__mark i:nth-child(3) { width: 9px; background: linear-gradient(180deg, #fce00b, #fa9e3a 40%, #fc4d26); }
.sleeve__spine-txt { writing-mode: vertical-rl; transform: rotate(180deg); }
.sleeve__side {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--ink);
  font-style: italic;
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  color: #f4efe6;
}

.sleeve__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 34px var(--px) var(--pb);
}

.sleeve__title {
  font-style: italic;
  font-stretch: 125%;
  font-weight: 600;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: lowercase;
}
/* close sits just above the sleeve's top-right corner */
.about__close {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 -10px 4px 0;
  padding: 10px;
  color: rgba(255, 255, 255, 0.62);
  opacity: 0;
  transition: color 0.25s ease, opacity 0.4s ease 0.1s;
  font-family: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.25s ease;
}
.about.is-in .about__close { opacity: 1; }
.about__close:hover,
.about__close:focus-visible { color: #fff; }
.about__x {
  position: relative;
  width: 9px;
  height: 9px;
  transition: transform 0.45s var(--ease);
}
.about__x::before,
.about__x::after {
  content: "";
  position: absolute;
  left: -1px;
  top: 4px;
  width: 11px;
  height: 1px;
  background: currentColor;
  transform: rotate(45deg);
}
.about__x::after { transform: rotate(-45deg); }
.about__close:hover .about__x { transform: rotate(90deg); }

.sleeve__main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 44px;
  align-items: stretch;
}
.sleeve__text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}
.sleeve__bio {
  font-stretch: 100%;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.62;
  color: rgba(244, 239, 230, 0.74);
  text-wrap: pretty;
}

.sleeve__photo {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 3px;
  background: #1f1b17;
}
.sleeve__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  display: block;
}
/* stand-in until the real photo exists: the logo's stripes, dimmed */
.about__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(180deg, rgba(22, 19, 15, 0.15), rgba(22, 19, 15, 0.7)),
    repeating-linear-gradient(107deg, transparent 0 22%, rgba(22, 19, 15, 0.55) 22% 24%),
    linear-gradient(98deg, #59acf7 0%, #95be97 12%, #fce00b 28%, #fa9e3a 52%, #fc4d26 80%);
}

/* five bands, bleeding off the right edge into the notch */
.sleeve__stripes {
  display: flex;
  flex-direction: column;
  margin: 34px calc(var(--px) * -1) 0 0;
  height: var(--stripe-h);
}
.sleeve__stripes i {
  flex: 1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease);
}
.sleeve__stripes i:nth-child(1) { background: #bcfcfd; }
.sleeve__stripes i:nth-child(2) { background: #59acf7; }
.sleeve__stripes i:nth-child(3) { background: #fce00b; }
.sleeve__stripes i:nth-child(4) { background: #fa9e3a; }
.sleeve__stripes i:nth-child(5) { background: #fc4d26; }
.about.is-in .sleeve__stripes i { transform: none; }
.about.is-in .sleeve__stripes i:nth-child(1) { transition-delay: 0.3s; }
.about.is-in .sleeve__stripes i:nth-child(2) { transition-delay: 0.35s; }
.about.is-in .sleeve__stripes i:nth-child(3) { transition-delay: 0.4s; }
.about.is-in .sleeve__stripes i:nth-child(4) { transition-delay: 0.45s; }
.about.is-in .sleeve__stripes i:nth-child(5) { transition-delay: 0.5s; }

.sleeve__foot {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  height: var(--foot-h);
  margin-top: var(--gap);
  color: var(--ink);
}
.sleeve__foot .badge { color: #f4efe6; }
.sleeve__box {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 8px 10px 7px;
  border: 1px solid rgba(244, 239, 230, 0.28);
}
.sleeve__box svg { display: block; height: 19px; width: auto; fill: rgba(244, 239, 230, 0.7); }

/* contents rise in after the wipe */
.sleeve__spine,
.sleeve__title,
.sleeve__bio,
.sleeve__photo,
.sleeve__foot {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.7s var(--ease);
}
.about.is-in :is(.sleeve__spine, .sleeve__title, .sleeve__bio, .sleeve__photo, .sleeve__foot) { opacity: 1; transform: none; }
.about.is-in .sleeve__spine { transition-delay: 0.2s; }
.about.is-in .sleeve__title { transition-delay: 0.18s; }
.about.is-in .sleeve__bio   { transition-delay: 0.26s; }
.about.is-in .sleeve__photo { transition-delay: 0.32s; }
.about.is-in .sleeve__foot  { transition-delay: 0.5s; }

/* portrait sleeve on narrow screens */
@media (max-width: 760px) {
  .sleeve { --px: 22px; --pb: 22px; --foot-h: 44px; --gap: 22px; --band: 7px; max-width: 520px; }
  .sleeve__spine { display: none; }
  .sleeve { --notch-w: 28px; --notch-h: 97px; }
  .sleeve__body { padding-top: 24px; }
  .sleeve__main { grid-template-columns: 1fr; gap: 24px; }
  .sleeve__text { gap: 18px; }
  .sleeve__bio { font-size: 14px; }
  .sleeve__stripes { margin-top: 26px; }
  .sleeve__foot .langs { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .about,
  .about *,
  .sleeve__card { transition: none !important; }
}

@media (max-width: 560px) { .sideb__about { margin-top: 26px; } }

/* compact frame on smaller screens */
@media (max-width: 900px) {
  .barcode { display: none; }
}
@media (max-width: 560px) {
  .lbl, .badge, .mono { font-size: 8.5px; letter-spacing: 0.16em; }
  .langs span { display: none; }
  .langs .chips { margin-bottom: 0; }
  .badge { padding: 6px 7px 5px; gap: 3px; }
  .hud__bl { gap: 12px; align-items: center; }
  .tc { font-size: 9px; gap: 8px; }
  .hint { bottom: calc(var(--padB) + 58px); }
  .sideb__mail { margin-top: 36px; }
  .sideb__credit { bottom: calc(max(var(--pad), env(safe-area-inset-bottom)) + 58px); font-size: 8.5px; letter-spacing: 0.16em; }
}

/* Fallback when WebGL is unavailable */
.no-gl #gl,
.no-gl #wm,
.no-gl .stinger,
.no-gl .skip { display: none; }
.no-gl .fallback { display: block; }
