:root {
  --stone: #a39f96;       /* the warm stone grey of the page */
  --ink: #0c0c0b;         /* the giant letters of the ribbon */
  --paper: #f7f5ef;       /* the type in front */
  --accent: #d2f55a;      /* the one accent: the button */
  --accent-ink: #10110c;
  --text: clamp(10.5px, calc(0.6vw + 0.45vh + 4px), 15px);
  --pad: clamp(14px, 1.6vw, 24px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--stone);
  color: var(--paper);
  font-family: 'Mona Sans Variable', 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--text);
  line-height: 1.18;
  letter-spacing: 0.01em;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--stone);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* a still grain over everything, the shader adds a moving one on top when WebGL is on */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* the type: real HTML for readers and for the measures; with WebGL on it is drawn by the shader and hidden here */
[data-gl] { position: absolute; }
.gl [data-gl] { opacity: 0; }
[data-dim] { opacity: 0.62; }

.top { position: absolute; inset: 0 0 auto 0; }
.brand {
  top: var(--pad);
  left: var(--pad);
  display: flex;
  align-items: flex-start;
  gap: 0.7em;
}
.brand__name {
  font-family: 'Archivo Variable', 'Arial Black', sans-serif;
  font-weight: 900;
  font-stretch: 125%;
  font-size: 1.9em;
  line-height: 0.82;
  letter-spacing: -0.03em;
}
.brand__sub { line-height: 1.05; }
.nav {
  top: var(--pad);
  right: var(--pad);
  display: flex;
  gap: clamp(12px, 2.2vw, 30px);
}

.copy { width: min(34ch, calc(100% - 2 * var(--pad))); }
.tag { margin-right: 0.35em; }
.copy--one { top: calc(var(--pad) + clamp(30px, 6vh, 56px)); left: 26%; }
.copy--two { bottom: var(--pad); left: 26%; }

.title {
  left: var(--pad);
  right: var(--pad);
  top: 50%;
  margin-top: -0.6em;
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  font-size: clamp(28px, min(8.4vw, 12.5vh), 132px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.shelves {
  list-style: none;
  left: var(--pad);
  bottom: var(--pad);
  line-height: 1.12;
}
.count { margin-right: 0.25em; }

/* the button: one accent, follows the pointer a little, swells when pressed */
.cta-wrap {
  position: absolute;
  right: clamp(16px, 5vw, 72px);
  bottom: clamp(16px, 9vh, 96px);
  z-index: 3;
}
.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  height: clamp(38px, min(6vh, 5.4vw), 54px);
  padding: 0 clamp(16px, 1.6vw, 24px);
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--accent-ink);
  font: inherit;
  font-size: clamp(12.5px, min(1.25vw, 2vh), 16px);
  font-weight: 560;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.cta:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }
.cta__bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(40, 52, 0, 0.18),
    0 1px 2px rgba(12, 12, 11, 0.22),
    0 14px 26px -14px rgba(12, 12, 11, 0.55);
}
.cta__label { position: relative; font-variation-settings: 'wdth' 100; }
.cta__arrow {
  position: relative;
  width: 1.05em;
  height: 1.05em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ghost {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  fill: #fff;
  stroke: var(--ink);
  stroke-width: 1.2;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgba(12, 12, 11, 0.3));
}

/* without WebGL (or with reduced motion) the ribbon is a still drawing and the type is plain HTML */
.still .scene { opacity: 1; }

@media (max-width: 700px) {
  .copy--one { left: var(--pad); width: min(40ch, calc(100% - 2 * var(--pad))); }
  .copy--two { left: var(--pad); bottom: calc(var(--pad) + clamp(46px, 13vh, 64px)); width: min(40ch, calc(100% - 2 * var(--pad))); }
  .shelves { display: none; }
  .cta-wrap { right: var(--pad); bottom: var(--pad); }
  .nav { gap: 12px; }
}
@media (max-height: 520px) and (min-width: 701px) {
  .shelves { display: none; }
}
