/* Sticks! V1 — centred layout, heavier type, overlaps and small details.
   Loaded after site.css, which still holds the phone, switches, stickers and logo. */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --lit: #ececf1;
  --dark: #17171b;
}

body { font-family: var(--font); }

.h2 {
  max-width: 13ch;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(46px, 8.6vw, 136px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.88;
  color: var(--lit);
}

/* headings rise in when they are scrolled to */
[data-reveal] {
  opacity: 0;
  transform: translateY(0.22em);
  transition: opacity 0.5s ease-out, transform 0.8s cubic-bezier(0.2, 0.9, 0.2, 1);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- hero ---------- */

.hero {
  min-height: clamp(540px, 100svh, max(640px, 78vw));
  padding: 0;
  display: grid;
  justify-items: center;
  align-items: start;
}
.hero::before {
  background:
    radial-gradient(90% 55% at 50% 100%, #15131b 0%, rgba(21, 19, 27, 0) 70%),
    linear-gradient(180deg, #040405 0%, #08080b 60%, #0d0c11 100%);
}
.hero-inner {
  display: grid;
  place-items: center;
  padding-top: clamp(18px, 4vh, 52px);
  width: 100%;
}
.hero-title {
  margin: 0;
  display: grid;
  justify-items: center;
  text-align: center;
  font-size: clamp(42px, 8vw, 124px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.9;
  color: var(--dark);
}
.logo--hero {
  display: block;
  width: min(90vw, 1040px);
  margin: 0;
}
.hero-let,
.hero-rest {
  position: relative;
  z-index: 2;
  transition: color 1.6s ease-out;
  /* a soft dark edge so the words hold up against the lit sticks behind them */
  text-shadow: 0 0.03em 0.05em rgba(0, 0, 0, 0.85), 0 0 0.35em rgba(0, 0, 0, 0.8), 0 0 0.9em rgba(0, 0, 0, 0.6);
}
/* "Let" sits on the shoulder of the S, a little crooked */
.hero-let {
  justify-self: start;
  margin: 0 0 -0.3em 5%;
  transform: rotate(-7deg);
  transform-origin: 0 100%;
}
.hero-rest {
  margin-top: -0.04em;
  white-space: nowrap;
  transition-delay: 0.9s;
}
/* the page starts dark; the words come up with the sticks */
.lit .hero-let,
.lit .hero-rest { color: var(--lit); }

.smiley {
  all: unset;
  display: inline-block;
  cursor: pointer;
  letter-spacing: 0;
  transform-origin: 50% 55%;
  transition: transform 0.6s cubic-bezier(0.3, 1.7, 0.4, 1);
  animation: nod 7s ease-in-out 4s infinite;
}
.smiley:hover,
.smiley.is-up { transform: rotate(180deg); animation: none; }
@keyframes nod {
  0%, 86%, 100% { rotate: 0deg; }
  90% { rotate: -14deg; }
  94% { rotate: 10deg; }
  97% { rotate: -4deg; }
}

/* ---------- sync ---------- */

.sync { padding-bottom: clamp(72px, 9vw, 130px); }
.stage { margin-top: clamp(8px, 1.6vw, 28px); }
.sync-bar {
  justify-content: center;
  border: 0;
  margin-top: 30px;
  padding: 0;
}
.switch--big {
  gap: 18px;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--lit);
}
.switch--big .switch-track { width: 76px; height: 44px; border-radius: 22px; }
.switch--big .switch-thumb { width: 36px; height: 36px; top: 4px; left: 4px; }
.switch--big[aria-checked="true"] .switch-thumb { transform: translateX(32px); }

/* the headline keeps time: a wave when in sync, every letter for itself when not */
.w { display: inline-block; white-space: nowrap; }
.l {
  display: inline-block;
  animation: bob 2.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.11s);
  transition: transform 0.55s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.is-off .l {
  transform: translate(var(--dx), var(--dy)) rotate(var(--dr));
  animation-delay: var(--dd);
  animation-duration: var(--du);
}
@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -0.055em; }
}

/* ---------- app ---------- */

.app { padding-bottom: clamp(150px, 17vw, 260px); }
.app-stack {
  display: grid;
  justify-items: center;
}
.app-stack .h2 { max-width: 9ch; }
.phone-wrap {
  z-index: 1;
  margin: clamp(2px, 0.8vw, 12px) auto 0;
}
.phone {
  transform: rotate(-2.4deg);
  transform-origin: 50% 0;
}

.sticker {
  width: clamp(150px, 17vw, 250px);
  opacity: 0;
  transform: rotate(calc(var(--rot) - 30deg)) scale(2.6);
}
.sticker.in {
  opacity: 1;
  transform: rotate(var(--rot)) scale(1);
  transition: transform 0.45s cubic-bezier(0.2, 1.7, 0.4, 1), opacity 0.12s linear;
}
.sticker--audio.in { transition-delay: 0.28s; }
.sticker--fx { --rot: 13deg; top: -70px; right: calc(clamp(150px, 17vw, 250px) * -0.62); }
.sticker--audio { --rot: -14deg; top: 56%; left: calc(clamp(150px, 17vw, 250px) * -0.7); }

/* "Fun for parties!" on a strip of tape across the bottom of the phone */
.tape {
  position: absolute;
  left: -6vw;
  right: -6vw;
  bottom: clamp(112px, 12.5vw, 196px);
  z-index: 3;
  margin: 0;
  padding: 0.3em 0 0.34em;
  overflow: hidden;
  transform: rotate(-3.2deg);
  background: #ffe100;
  color: #09090b;
  font-size: clamp(24px, 3.6vw, 54px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}
.tape-track {
  display: inline-flex;
  animation: tape 26s linear infinite;
}
.tape-track span { padding: 0 0.42em; }
/* outlined words: the fill is the tape colour and is painted over the stroke, so the
   overlapping shapes inside the font's letters never show through */
.tape-track span:nth-child(even) {
  color: #ffe100;
  -webkit-text-stroke: 0.07em #09090b;
  paint-order: stroke fill;
}
.tape:hover .tape-track { animation-play-state: paused; }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- gallery: a fan of prints, the front one large ---------- */

.gallery {
  padding: clamp(30px, 5vw, 80px) 0 clamp(60px, 8vw, 120px);
  overflow: hidden;
}
.ring-stage {
  --w: min(66vw, 430px);
  height: calc(var(--w) * 1.42 + 70px);
  display: grid;
  place-items: center;
  perspective: 1600px;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.ring-stage.is-dragging { cursor: grabbing; }
.ring-stage:focus-visible { outline-offset: -6px; }
.ring {
  position: relative;
  width: var(--w);
  height: calc(var(--w) * 1.42);
  transform-style: preserve-3d;
}
.shot {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 3.2% 3.2% 13%;
  background: #f2eee2;
  border-radius: 3px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65);
  filter: brightness(var(--b, 1));
  will-change: transform;
  cursor: pointer;
}
.shot.is-front { cursor: inherit; }
.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
  pointer-events: none;
  -webkit-user-drag: none;
}
/* a strip of tape holding each print */
.shot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -3.4%;
  width: 34%;
  height: 7%;
  background: var(--tape, #ffe100);
  transform: translateX(-50%) rotate(calc(var(--tilt, 0deg) * -2.2));
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ---------- build ---------- */

.h2--build { max-width: 11ch; }
.scr { position: relative; display: inline-block; }
.scr svg {
  position: absolute;
  left: -6%;
  width: 112%;
  overflow: visible;
  pointer-events: none;
}
.scr path {
  fill: none;
  stroke-width: 0.085em;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.5s cubic-bezier(0.6, 0, 0.3, 1);
}
.scr--not svg { top: 86%; height: 0.2em; }
.scr--not path { stroke: #ffe100; stroke-width: 6px; transition-delay: 0.5s; transition-duration: 0.7s; }
.scr--x svg { top: 32%; height: 0.46em; }
.scr--x path { stroke: #ff2d95; stroke-width: 9px; transition-delay: 1.15s; }
.scr--x2 path { transition-delay: 1.5s; }
.in .scr path { stroke-dashoffset: 0; }
.nuthing {
  display: inline-block;
  transform: rotate(-3deg);
  transform-origin: 0 100%;
}
.h2--build:hover .nuthing { animation: shrug 0.6s ease-in-out; }
@keyframes shrug {
  30% { transform: rotate(2deg) translateY(-0.04em); }
  60% { transform: rotate(-6deg); }
}

.sub {
  margin: clamp(30px, 4vw, 56px) 0 0;
  text-align: center;
  font-size: clamp(26px, 4.2vw, 62px);
  font-weight: 900;
  letter-spacing: -0.045em;
}
/* one swipe of a fat marker */
.marker {
  display: inline-block;
  padding: 0.12em 0.36em 0.16em;
  background: #ff2d95;
  color: #0a0a0c;
  border-radius: 0.5em 0.12em 0.42em 0.1em / 0.16em 0.5em 0.14em 0.46em;
  transform: rotate(-1.8deg);
  clip-path: inset(-10% 100% -10% -2%);
  transition: clip-path 0.55s cubic-bezier(0.6, 0, 0.2, 1) 0.35s;
}
.in .marker { clip-path: inset(-10% -2% -10% -2%); }

.dl {
  max-width: 860px;
  margin: clamp(56px, 7vw, 100px) auto 0;
  border: 0;
}
.dl li {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s ease-out, transform 0.6s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.dl li.in { opacity: 1; transform: none; }
.dl a {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 1.6vw, 22px);
  padding: clamp(22px, 2.6vw, 34px) 0 clamp(26px, 3vw, 40px);
  border: 0;
  text-align: center;
}
.dl-body { align-items: center; }
.dl-title {
  font-size: clamp(24px, 3.8vw, 52px);
  font-weight: 900;
  letter-spacing: -0.045em;
  color: var(--lit);
}
.dl-meta { font-size: 15px; font-weight: 700; color: var(--ink-3); }
.dl-icon { flex: none; transform: rotate(-8deg); }
.dl li:nth-child(2) .dl-icon { transform: rotate(6deg); }
/* not downloadable yet: a slip of tape where the arrow would be */
.dl a.is-soon { cursor: default; }
.dl a.is-soon .dl-title { color: #8d8d96; }
.dl a.is-soon:hover .dl-title { color: var(--lit); }
.soon {
  flex: none;
  padding: 0.42em 0.7em 0.46em;
  background: #ffe100;
  color: #0a0a0c;
  font-size: clamp(12px, 1.25vw, 16px);
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
  border-radius: 0.14em 0.5em 0.12em 0.44em / 0.5em 0.16em 0.46em 0.18em;
  transform: rotate(-7deg);
  transition: transform 0.3s cubic-bezier(0.3, 1.7, 0.4, 1);
}
.dl li:nth-child(2) .soon { transform: rotate(5deg); background: #7dff1a; }
.dl li:nth-child(3) .soon { transform: rotate(-4deg); background: #00c8ff; }
.dl a:hover .soon { transform: rotate(0deg) scale(1.08); }

/* each row is underlined by a strip of pixels that switches on under the pointer */
.dl a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, #ff2d95, #ffd60a, #7dff1a, #00c8ff, #9b4dff, #ff2d95, #ffd60a) 0 0 / 200% 100%;
  -webkit-mask: radial-gradient(circle, #000 2.3px, transparent 2.9px) 0 50% / 11px 6px repeat-x;
  mask: radial-gradient(circle, #000 2.3px, transparent 2.9px) 0 50% / 11px 6px repeat-x;
  filter: grayscale(1) brightness(0.32);
  transition: filter 0.25s;
}
.dl a:hover::after,
.dl a:focus-visible::after {
  filter: none;
  animation: strip 1.6s linear infinite;
}
@keyframes strip { to { background-position: -200% 0; } }

/* ---------- footer ---------- */

.site-footer {
  padding: clamp(72px, 9vw, 130px) 0 0;
  overflow: hidden;
}
.foot {
  display: grid;
  justify-items: center;
  gap: clamp(40px, 5vw, 68px);
  text-align: center;
}

/* newsletter: one big line to type on */
.news { width: min(100%, 760px); }
.news-label {
  display: block;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-3);
}
.news-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
}
.news-row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, #ff2d95, #ffd60a, #7dff1a, #00c8ff, #9b4dff, #ff2d95, #ffd60a) 0 0 / 200% 100%;
  -webkit-mask: radial-gradient(circle, #000 2.3px, transparent 2.9px) 0 50% / 11px 6px repeat-x;
  mask: radial-gradient(circle, #000 2.3px, transparent 2.9px) 0 50% / 11px 6px repeat-x;
  filter: grayscale(1) brightness(0.4);
  transition: filter 0.25s;
}
.news-row:focus-within::after,
.news.is-sent .news-row::after { filter: none; animation: strip 1.6s linear infinite; }
.news input {
  flex: 1;
  min-width: 0;
  padding: 6px 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--lit);
  font: inherit;
  font-size: clamp(24px, 4.4vw, 56px);
  font-weight: 900;
  letter-spacing: -0.045em;
  caret-color: #ff2d95;
}
.news input::placeholder { color: #3a3a42; }
.news button {
  position: relative;
  flex: none;
  padding: 0.62em 1em 0.66em;
  border: 0;
  border-radius: 0.5em 0.14em 0.42em 0.12em / 0.18em 0.5em 0.16em 0.46em;
  background: var(--lit);
  color: #0a0a0c;
  font-size: clamp(16px, 1.7vw, 22px);
  font-weight: 900;
  letter-spacing: -0.03em;
  cursor: pointer;
  transform: rotate(-2deg);
  transition: transform 0.3s cubic-bezier(0.3, 1.7, 0.4, 1), background-color 0.2s;
}
.news button:hover { transform: rotate(1.5deg) scale(1.05); background: #ffe100; }
.news button:active { transform: rotate(0) scale(0.96); }
.news-ok {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.3em;
  opacity: 0;
  transform: scale(0.3) rotate(-40deg);
  transition: transform 0.4s cubic-bezier(0.3, 1.8, 0.4, 1), opacity 0.15s;
}
.news-go { display: block; transition: opacity 0.15s; }
.news.is-sent button { background: #7dff1a; }
.news.is-sent .news-go { opacity: 0; }
.news.is-sent .news-ok { opacity: 1; transform: none; }

.made {
  margin: 0;
  font-size: clamp(30px, 5.4vw, 80px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.95;
  color: var(--lit);
  max-width: 12ch;
}
.made a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  white-space: nowrap;
}
.made svg {
  position: absolute;
  left: 0;
  top: 106%;
  width: 100%;
  height: 0.16em;
  overflow: visible;
}
.made path {
  fill: none;
  stroke: #ffe100;
  stroke-width: 5px;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  transition: stroke 0.2s;
}
.made a:hover path { stroke: #ff2d95; animation: squirm 0.5s ease-in-out infinite alternate; }
@keyframes squirm { to { transform: translateX(-2.5%) scaleY(-1); transform-origin: 50% 50%; transform-box: fill-box; } }

/* a yellow slip, stuck on a little crooked */
.coffee {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.7em 1.1em 0.72em;
  background: #ffdd00;
  color: #0a0a0c;
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-decoration: none;
  border-radius: 0.14em 0.5em 0.12em 0.44em / 0.5em 0.16em 0.46em 0.18em;
  transform: rotate(2.5deg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s cubic-bezier(0.3, 1.7, 0.4, 1);
}
.coffee:hover { transform: rotate(-2deg) scale(1.06); }
.coffee svg {
  width: 22px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.coffee .steam { opacity: 0; }
.coffee:hover .steam { animation: steam 1.3s ease-out infinite; }
.coffee:hover .s2 { animation-delay: 0.45s; }
@keyframes steam {
  0% { opacity: 0; transform: translateY(3px); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-6px); }
}

.news-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.news.is-busy button { opacity: 0.5; cursor: progress; }
.news.is-nope .news-row { animation: nope 0.4s ease-in-out; }
@keyframes nope {
  20% { transform: translateX(-9px); }
  45% { transform: translateX(8px); }
  70% { transform: translateX(-5px); }
  90% { transform: translateX(3px); }
}

.news-note {
  margin: 18px 0 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink-3);
}

/* the logo, huge, running off the bottom of the page */
.foot-logo {
  display: block;
  width: min(96vw, 1500px);
  margin: clamp(36px, 5vw, 70px) auto -9.5%;
  text-decoration: none;
  transition: transform 0.5s cubic-bezier(0.3, 1.5, 0.4, 1);
}
.foot-logo:hover { transform: translateY(-3%); }
.foot-logo .logo { display: block; width: 100%; }
/* the lockup image is transparent, so no blend mode is needed */
.logo-full { mix-blend-mode: normal; }

/* ---------- small screens ---------- */

@media (max-width: 900px) {
  .phone-wrap { margin-top: 4px; }
  .sticker { width: 138px; }
  .sticker--fx { top: -52px; right: -14px; }
  .sticker--audio { top: 46%; bottom: auto; left: -40px; }
  .tape { bottom: clamp(70px, 12vw, 120px); }
}
@media (max-width: 560px) {
  .hero-let { margin-left: 2%; }
  .sticker { width: 120px; }
  .phone { transform: rotate(-1.2deg); }
  .news-row { flex-wrap: wrap; justify-content: center; }
  .news input { flex-basis: 100%; text-align: center; }
  .news-row::after { bottom: auto; top: calc(clamp(24px, 4.4vw, 56px) * 1.2 + 18px); }
  .news button { margin-top: 26px; }
}

/* Reduced motion: keep the page alive but calm. Slower banner, no bobbing letters, no nodding. */
@media (prefers-reduced-motion: reduce) {
  .l, .smiley, .dl a:hover::after, .news-row::after, .made a:hover path { animation: none; }
  .tape-track { animation-duration: 70s; }
}

/* ---------- phones ---------- */

@media (max-width: 700px) {
  .section { padding: 64px 0; }
  .hero { min-height: 450px; }
  .sync { padding-bottom: 56px; }
  .stage { height: 330px; margin-top: 4px; }
  .sync-bar { margin-top: 22px; }

  /* the app is shown small, so the sticks beside it stay in view while you use it */
  .app { padding-bottom: 150px; }
  .phone-wrap { width: min(248px, 64vw); margin-top: 6px; }
  .phone { border-radius: 38px; padding: 7px; transform: rotate(-1.2deg); }
  .phone-screen { border-radius: 31px; padding: 0 11px 14px; font-size: 12px; }
  .app-status { height: 34px; padding: 4px 8px 0 10px; font-size: 12px; }
  .status-icons { transform: scale(0.8); transform-origin: 100% 50%; }
  .app-top { padding: 6px 2px 10px; }
  .app-name { font-size: 22px; }
  .app-online { font-size: 10px; gap: 5px; }
  .app-body { gap: 13px; }
  .app-label { margin-bottom: 6px; font-size: 11px; }
  .fx-grid { gap: 4px; }
  .fx { padding: 7px 6px 6px; gap: 6px; border-radius: 9px; font-size: 10.5px; }
  .fx canvas { height: 5px; }
  .swatch span { width: 24px; height: 24px; }
  .slider { font-size: 12.5px; row-gap: 4px; }
  .sliders .slider:nth-child(2) { display: none; }          /* speed */
  .app-body > .app-block:last-child { display: none; }       /* the list of ten sticks */
  .toggles { padding: 0 11px; border-radius: 12px; }
  .toggle-row { min-height: 40px; font-size: 12.5px; }
  .switch--app .switch-track { width: 42px; height: 26px; }
  .switch--app .switch-thumb { width: 20px; height: 20px; }
  .switch--app[aria-checked="true"] .switch-thumb { transform: translateX(16px); }
  .sticker { width: 104px; }
  .sticker--fx { top: -44px; right: -44px; }
  /* clear of the party tape, on the phone's left shoulder */
  .sticker--audio { top: 56%; bottom: auto; left: -80px; }
  .tape { bottom: 112px; }

  .gallery { padding: 20px 0 56px; }
  .build { padding-bottom: 20px; }
  .floor-space { height: 96px; }
  .site-footer { padding-top: 44px; }
}

/* ?still: no intro transitions */
.still .hero-let, .still .hero-rest { transition: none; }

/* ?og: the hero as a share image */
.og .hero-title { transform: scale(0.86); transform-origin: 50% 0; }
.og-tape {
  bottom: 30px;
  transform: rotate(-2.4deg);
  font-size: 50px;
  z-index: 5;
}
.og .tape-track { animation: none; transform: translateX(-4%); }
