:root {
  --fondo: #0b0b0c;
  --testo: #f4f1ea;
  --grigio: #8f8b84;
  --linea: rgba(244, 241, 234, 0.14);
  --accento: #e8b04a;
}

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

html, body { height: 100%; background: var(--fondo); }

body {
  color: var(--testo);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: min(4vh, 32px) min(5vw, 48px);
  gap: min(2.6vh, 22px);
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: clamp(11px, 1.6vh, 13px);
  letter-spacing: 0.04em;
}

.brand {
  color: var(--testo);
  text-decoration: none;
  font-weight: 600;
  font-stretch: 112%;
  text-transform: uppercase;
}

.index {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding-right: 12px;
}

.index__item {
  background: none;
  border: 0;
  color: var(--grigio);
  font: inherit;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.4s ease;
}

.index__item.is-on { color: var(--testo); }

@media (hover: hover) {
  .index__item:hover { color: var(--testo); }
}

.index__item:focus-visible { outline: 1px solid var(--accento); outline-offset: 3px; }

/* a thin bar beside the active project, never a dot */
.index__bar {
  position: absolute;
  right: 0;
  top: 0;
  width: 2px;
  height: 12px;
  background: var(--accento);
}

.title {
  position: relative;
  display: flex;
  justify-content: center;
  font-weight: 800;
  font-stretch: 125%;
  font-size: min(19vw, 22vh);
  line-height: 0.82;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.letter {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.04em;
}

.letter__ink {
  display: inline-block;
  color: transparent;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  will-change: transform;
}

.strips {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  gap: min(0.9vw, 8px);
}

.strip {
  position: relative;
  flex: 1;
  overflow: hidden;
  border-radius: 3px;
  background: #151516;
}

/* the reel holds two frames, the one on show and the one rolling in */
.strip__reel {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.strip__frame {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
}

.strip__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.0) 55%, rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  font-size: clamp(11px, 1.6vh, 13px);
}

.meta { overflow: hidden; min-width: 0; }

.meta__line {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--testo);
}

.meta__credit {
  margin-top: 4px;
  color: var(--grigio);
}

.meta__line, .meta__credit { will-change: transform; }

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.next {
  color: var(--grigio);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-width: 6.5em;
  text-align: center;
}

.arrow {
  width: clamp(34px, 5vh, 42px);
  height: clamp(34px, 5vh, 42px);
  border-radius: 999px;
  border: 1px solid var(--linea);
  background: transparent;
  color: var(--testo);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.arrow svg {
  width: 45%;
  height: 45%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: hover) {
  .arrow:hover { border-color: var(--accento); background: rgba(232, 176, 74, 0.08); }
}

.arrow:focus-visible { outline: 1px solid var(--accento); outline-offset: 3px; }

@media (max-width: 560px) {
  .next { display: none; }
  .meta__credit { font-size: 10px; }
}
