:root {
  --blue: #1c3fa8;
  --red: #e63a21;
  --paper: #ededea;
  --font: 'Inter', system-ui, sans-serif; /* swapped to Neue Haas later — change here only */
  --e: cubic-bezier(0.16, 0.84, 0.24, 1);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  overflow: hidden;
  background: var(--paper);
  overscroll-behavior: none;
}
body {
  font-family: var(--font);
  color: var(--blue);
  -webkit-font-smoothing: antialiased;
  touch-action: none;
  user-select: none;
}
canvas#gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.ui {
  position: fixed;
  z-index: 20;
  transition: opacity 0.9s var(--e);
}
body:not(.intro) .ui.i {
  opacity: 0;
  pointer-events: none;
}
#logo {
  top: 32px;
  left: 34px;
}
#logo .w {
  font-size: clamp(23px, 2.5vw, 36px);
  font-weight: 800;
  letter-spacing: 0.02em;
}
#logo .w i {
  font-style: normal;
  color: var(--red);
}
#logo .tag {
  margin-top: 12px;
}
#logo .tag b {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  font-weight: 700;
  line-height: 1.9;
}
#logo .tag b:last-child {
  color: var(--red);
}
#names {
  top: 38px;
  right: 92px;
  display: flex;
  gap: 24px;
}
#names span {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
#burger {
  top: 38px;
  right: 34px;
  width: 29px;
  cursor: pointer;
}
#burger i {
  display: block;
  height: 2px;
  background: var(--blue);
  margin: 6px 0;
}
#hintS {
  top: 38px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}
#hintS .t {
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 700;
}
#hintS .arr {
  width: 1.5px;
  height: 76px;
  background: var(--blue);
  margin: 12px auto 0;
  position: relative;
  animation: arr 2.6s var(--e) infinite;
}
#hintS .arr::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--blue);
  border-bottom: 1.5px solid var(--blue);
  transform: translateX(-50%) rotate(45deg);
}
@keyframes arr {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(9px);
    opacity: 0.5;
  }
}
#nav {
  left: 34px;
  top: 52%;
  transform: translateY(-40%);
}
#nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 11px;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  padding: 8px 0;
}
#nav a .d {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0;
  transition: 0.25s;
}
#nav a[data-on] .d,
#nav a:hover .d {
  opacity: 1;
}
#drag {
  bottom: 58px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  cursor: grab;
}
#drag .t {
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 700;
  margin-bottom: 10px;
}
#drag .c {
  width: 78px;
  height: 78px;
  border: 1.5px solid var(--blue);
  border-radius: 50%;
  margin: auto;
  position: relative;
}
#drag .c::after {
  content: '';
  position: absolute;
  inset: 50%;
  width: 8px;
  height: 8px;
  margin: -4px;
  background: var(--red);
  border-radius: 50%;
  animation: pip 2.8s ease-in-out infinite;
}
@keyframes pip {
  50% {
    transform: scale(1.55);
  }
}
#scene {
  right: 34px;
  bottom: 96px;
  text-align: right;
}
#scene .n {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  font-weight: 800;
  color: var(--red);
}
#scene .nm {
  font-size: clamp(19px, 2.1vw, 28px);
  font-weight: 800;
  letter-spacing: 0.03em;
  margin: 3px 0 2px;
}
#scene .sb {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  font-weight: 700;
  opacity: 0.55;
}
#listen {
  margin-top: 12px;
  background: none;
  border: 1.5px solid var(--blue);
  border-radius: 2px;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.2em;
  font-weight: 800;
  color: var(--blue);
  padding: 10px 24px;
  cursor: pointer;
  transition: 0.3s;
}
#listen:hover {
  background: var(--blue);
  color: var(--paper);
}
#listen[disabled] {
  opacity: 0.35;
  cursor: default;
}
#footL {
  bottom: 30px;
  left: 34px;
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 700;
  display: flex;
  gap: 22px;
}
#sound {
  background: none;
  border: 0;
  font: inherit;
  letter-spacing: inherit;
  color: var(--red);
  cursor: pointer;
  font-weight: 700;
}
#footR {
  bottom: 30px;
  right: 34px;
  display: flex;
  gap: 22px;
}
#footR a {
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}

/* idle projection — the manifesto thrown onto the wall */
#proj {
  position: fixed;
  z-index: 19;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s var(--e);
}
#proj.on {
  opacity: 1;
}
#proj span {
  font-size: clamp(20px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--blue);
  mix-blend-mode: multiply;
  opacity: 0;
  filter: blur(0.4px);
  transition: opacity 1.4s var(--e);
  padding: 0 6vw;
}
#proj.on span.lit {
  opacity: 0.82;
}

.bar {
  position: fixed;
  left: 0;
  right: 0;
  height: 0;
  background: #000;
  z-index: 30;
  transition: height 1.1s var(--e);
}
#barT {
  top: 0;
}
#barB {
  bottom: 0;
}
body.film .bar {
  height: 9vh;
}
#film {
  position: fixed;
  z-index: 31;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s var(--e);
}
body.film #film {
  opacity: 1;
}
#filmV {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  display: none;
}
body.film #filmV {
  display: block;
}
#film .tc {
  position: absolute;
  left: 34px;
  bottom: calc(9vh + 18px);
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #fff;
  mix-blend-mode: difference;
}
#skip {
  position: fixed;
  z-index: 32;
  right: 34px;
  bottom: calc(9vh + 14px);
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  color: #fff;
  mix-blend-mode: difference;
  font-family: inherit;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  font-weight: 800;
  padding: 9px 18px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s;
}
body.film #skip {
  opacity: 1;
  pointer-events: auto;
}
#card {
  position: fixed;
  inset: 0;
  z-index: 33;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
  opacity: 0;
}
#card.on {
  animation: card 4.6s var(--e) forwards;
}
@keyframes card {
  12% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
#card .a {
  font-size: clamp(26px, 5.4vw, 64px);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  mix-blend-mode: difference;
}
#card .b {
  font-size: 10px;
  letter-spacing: 0.34em;
  font-weight: 700;
  color: #fff;
  mix-blend-mode: difference;
}

/* shop — the film's last frame, frozen */
#poster {
  position: fixed;
  z-index: 33;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s var(--e);
}
body.shop #poster {
  opacity: 1;
}
#shopHint {
  position: fixed;
  z-index: 34;
  top: 38px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s var(--e);
  width: 92vw;
}
body.shop #shopHint {
  opacity: 1;
}
#shopHint .a {
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 800;
  color: var(--red);
}
#shopHint .b {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-top: 6px;
  color: var(--blue);
}
.mk {
  position: fixed;
  z-index: 35;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  border: 1.5px solid var(--red);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--e);
  background: rgba(237, 237, 234, 0.14);
}
.mk::after {
  content: '';
  position: absolute;
  inset: 50%;
  width: 6px;
  height: 6px;
  margin: -3px;
  border-radius: 50%;
  background: var(--red);
}
.mk::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border: 1.5px solid var(--red);
  border-radius: 50%;
  animation: mk 2.4s var(--e) infinite;
}
@keyframes mk {
  to {
    transform: scale(2.1);
    opacity: 0;
  }
}
body.shop .mk {
  opacity: 1;
  pointer-events: auto;
}
.mk:hover {
  background: var(--red);
}
#prod {
  position: fixed;
  z-index: 36;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(360px, 88vw);
  background: var(--paper);
  border-left: 1.5px solid var(--blue);
  padding: 96px 30px 30px;
  transform: translateX(102%);
  transition: transform 0.7s var(--e);
}
#prod.on {
  transform: none;
}
#prod .k {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  font-weight: 800;
  color: var(--red);
}
#prod h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 8px 0 4px;
}
#prod .pr {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
#prod p {
  font-size: 11.5px;
  line-height: 1.9;
  font-weight: 500;
  margin: 18px 0 26px;
  color: #3a4a86;
}
#add {
  width: 100%;
  background: var(--blue);
  border: 0;
  border-radius: 2px;
  color: var(--paper);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 800;
  padding: 15px;
  cursor: pointer;
}
#add:hover {
  background: var(--red);
}
#prod .via {
  font-size: 9px;
  letter-spacing: 0.16em;
  font-weight: 700;
  opacity: 0.5;
  margin-top: 12px;
  text-align: center;
}
#pclose {
  position: absolute;
  top: 34px;
  right: 30px;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.2em;
  font-weight: 800;
  color: var(--blue);
  cursor: pointer;
}
#cart {
  position: fixed;
  z-index: 37;
  top: 34px;
  right: 88px;
  border: 1.5px solid var(--blue);
  border-radius: 2px;
  background: var(--paper);
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: var(--blue);
  padding: 9px 16px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: 0.6s var(--e);
}
body.shop #cart {
  opacity: 1;
  pointer-events: auto;
}
#cart b {
  color: var(--red);
}
#exit {
  position: fixed;
  z-index: 37;
  top: 34px;
  right: 34px;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 800;
  color: var(--blue);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: 0.6s var(--e);
}
body.shop #exit {
  opacity: 1;
  pointer-events: auto;
}

/* EXPASS checkout confirmation */
#via {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 12vh;
  transform: translateX(-50%);
  background: var(--blue);
  color: var(--paper);
  border-radius: 2px;
  padding: 13px 26px;
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--e);
}
#via.on {
  opacity: 1;
}

@media (max-width: 820px) {
  #names {
    display: none;
  }
  #logo {
    left: 22px;
    top: 24px;
  }
  #burger {
    right: 22px;
    top: 26px;
  }
  #nav {
    top: auto;
    bottom: 210px;
    transform: none;
    left: 22px;
  }
  #scene {
    right: 22px;
    bottom: 212px;
  }
  #footL {
    left: 22px;
    bottom: 24px;
  }
  #footR {
    right: 22px;
    bottom: 24px;
  }
  #drag {
    bottom: 104px;
  }
  #hintS .arr {
    height: 46px;
  }
  #prod {
    padding-top: 84px;
  }
  #film .tc {
    left: 22px;
  }
  #skip {
    right: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #hintS .arr,
  #drag .c::after,
  .mk::before {
    animation: none;
  }
}
