/* 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; }
}

/* scroll cue: a hand-drawn arrow on a slip of yellow tape, pinned to the bottom of the window */
.scroll-cue {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 58px;
  height: 66px;
  margin-left: -29px;
  background: #ffe100;
  color: #0a0a0c;
  border-radius: 0.5em 0.14em 0.42em 0.12em / 0.18em 0.5em 0.16em 0.46em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  transform: rotate(-4deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s, transform 0.35s cubic-bezier(0.3, 1.7, 0.4, 1);
}
/* appears once the hero has lit up, leaves as soon as the page moves */
.lit .scroll-cue { opacity: 1; pointer-events: auto; transition-delay: 2.2s; }
.has-scrolled .scroll-cue { opacity: 0; pointer-events: none; transform: rotate(8deg) translateY(30px) scale(0.6); transition-delay: 0s; }
.scroll-cue svg {
  width: 30px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: cue 1.1s cubic-bezier(0.4, 0, 0.3, 1) infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(-5px) scale(1, 1); }
  45% { transform: translateY(7px) scale(1.06, 0.92); }
  60% { transform: translateY(4px) scale(0.97, 1.04); }
}
.scroll-cue:hover { transform: rotate(3deg) scale(1.1); }

/* ---------- 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 is the battery: its letters charge (--c fill, --g glow, set by js/layouts.js),
   let go into the router, and sit drained until the next round */
#sync-title .l {
  color: color-mix(in srgb, #8f8f9b, #ffffff calc(var(--c, 1) * 100%));
  text-shadow:
    0 0 calc(var(--g, 0) * 0.07em) #fff,
    0 0 calc(var(--g, 0) * 0.32em) rgb(110 255 170 / calc(var(--g, 0) * 0.85));
  scale: calc(1 + var(--g, 0) * 0.045);
}

/* 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; }
/* "Try me": lands when the app arrives, keeps nudging until the app has been touched */
.sticker--try { --rot: 12deg; top: 47%; right: calc(clamp(150px, 17vw, 250px) * -0.9); z-index: 4; pointer-events: none; }
.sticker--try.in svg { animation: tryme 1.5s ease-in-out 0.6s infinite; }
.sticker--try.is-used svg { animation: none; }
@keyframes tryme {
  0%, 60%, 100% { transform: rotate(0) scale(1); }
  70% { transform: rotate(-9deg) scale(1.1); }
  80% { transform: rotate(7deg) scale(1.1); }
  90% { transform: rotate(-4deg) scale(1.04); }
}
.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; }
/* the peanut that stands in for the "u" keeps getting tossed */
.nut {
  display: inline-block;
  margin: 0 0.03em 0 0.01em;
  font-size: 0.82em;
  letter-spacing: 0;
  transform-origin: 50% 60%;
  animation: juggle 1.5s cubic-bezier(0.3, 0, 0.3, 1) infinite;
}
@keyframes juggle {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1.08, 0.9); }
  12% { transform: translateY(-0.1em) rotate(-20deg) scale(0.95, 1.08); }
  45% { transform: translateY(-0.62em) rotate(-200deg) scale(1); }
  78% { transform: translateY(-0.1em) rotate(-345deg) scale(0.96, 1.06); }
  88% { transform: translateY(0) rotate(-360deg) scale(1.16, 0.84); }
}
.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: 1000px;
  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); }
/* the logo used as a word inside a line of text */
.logo--inline { width: 2.75em; margin: 0 0.02em -0.3em -0.04em; vertical-align: baseline; }
.dl a.is-soon .logo--inline { opacity: 0.85; }
.dl a.is-soon:hover .logo--inline { opacity: 1; }

/* a small drawing in front of each download */
.dl-title { text-wrap: balance; }
.dl-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(58px, 7vw, 104px);
  color: var(--lit);
  transition: transform 0.35s cubic-bezier(0.3, 1.7, 0.4, 1);
}
.dl-ico svg { display: block; width: 100%; height: auto; overflow: visible; }
.dl-ico--gh { width: clamp(38px, 4.6vw, 64px); transform: rotate(-6deg); }
.dl a.is-soon .dl-ico--gh { color: #c9c9d0; }
.dl-ico--parts { width: clamp(92px, 11vw, 168px); }
.dl a:hover .dl-ico--gh { transform: rotate(8deg) scale(1.12); }
.dl a:hover .dl-ico--parts { transform: rotate(-4deg) scale(1.06); }
.dl-ico .noz { animation: none; }
.dl a:hover .noz { animation: noz 1.1s ease-in-out infinite alternate; }
.dl a:hover .layer { animation: layer 1.1s steps(2, jump-none) infinite alternate; }
.dl a:hover .leds rect { animation: twinkle 0.9s ease-in-out infinite alternate; }
.dl a:hover .leds rect:nth-child(2n) { animation-delay: 0.3s; }
.dl a:hover .leds rect:nth-child(3n) { animation-delay: 0.6s; }
.dl a:hover .pwr { animation: twinkle 0.5s ease-in-out infinite alternate; }
@keyframes noz { from { transform: translateX(-6px); } to { transform: translateX(6px); } }
@keyframes layer { from { opacity: 0.2; } to { opacity: 1; } }
@keyframes twinkle { from { opacity: 0.25; } to { opacity: 1; } }

/* 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: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.1em 0.4em;
  margin-bottom: clamp(18px, 2.6vw, 34px);
  font-size: clamp(30px, 5.2vw, 72px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.95;
  color: var(--lit);
  cursor: text;
}
/* "updates" gets a swipe of cyan marker */
.news-hl {
  display: inline-block;
  padding: 0.02em 0.22em 0.08em;
  background: #00c8ff;
  color: #0a0a0c;
  border-radius: 0.12em 0.5em 0.14em 0.42em / 0.5em 0.14em 0.46em 0.16em;
  transform: rotate(2deg);
}
/* an envelope that hovers about and flies off when you subscribe */
.news-env {
  flex: none;
  width: 1.15em;
  transform: rotate(-10deg);
  animation: env 3.2s ease-in-out infinite;
  transition: transform 0.7s cubic-bezier(0.5, -0.3, 0.3, 1), opacity 0.4s 0.3s;
}
.news-env svg { display: block; width: 100%; height: auto; overflow: visible; }
@keyframes env {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -0.09em; rotate: 5deg; }
}
.news:focus-within .news-env { animation-duration: 0.9s; }
.news.is-sent .news-env { transform: translate(60vw, -70vh) rotate(35deg) scale(0.4); opacity: 0; animation: none; }

.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: saturate(0.55) brightness(0.6);
  transition: filter 0.25s;
  animation: strip 7s linear infinite;
}
.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: #ff2d95;
  color: #0a0a0c;
  font-size: clamp(17px, 1.9vw, 26px);
  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; } }

/* the name: every letter can flip between plain type and its Sticks! outfit (js/name.js) */
.made { max-width: none; }
.made a[data-name] { white-space: normal; text-decoration: underline; text-decoration-color: #ffe100; text-decoration-thickness: 0.07em; text-underline-offset: 0.14em; }
.made a.is-ready { text-decoration: none; display: block; margin-top: 0.12em; }
.nm-line { display: block; }
.nm-word { display: inline-block; white-space: nowrap; padding: 0 0.12em; }
.nm {
  display: inline-grid;
  grid-template-columns: 100%;
  justify-items: center;
  align-items: baseline;
  perspective: 5em;
  transition: width 0.7s cubic-bezier(0.3, 2.6, 0.4, 1);
}
.nm-a, .nm-b { grid-area: 1 / 1; transform-origin: 50% 85%; }
.nm-a { white-space: pre; }
.nm-b {
  display: block;
  max-width: none;
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
/* styled letter arrives (five ways, like the letters of the logo), then keeps jiggling */
.nm.on .nm-a { animation: nm-out 0.2s cubic-bezier(0.5, 0, 0.8, 0.4) both; }
.nm.on .nm-b { opacity: 1; transform: none; animation: nm-drop 1.25s both, nm-bob 1.9s ease-in-out var(--d, 0s) infinite; }
.nm--1.on .nm-b { animation-name: nm-flip, nm-bob; }
.nm--2.on .nm-b { animation-name: nm-pop, nm-bob; }
.nm--3.on .nm-b { animation-name: nm-spin, nm-bob; }
.nm--4.on .nm-b { animation-name: nm-jelly, nm-bob; }
/* and the plain letter springs back */
.nm.off .nm-a { animation: nm-back 0.95s both; }
.nm.off .nm-b { animation: nm-out 0.2s ease-in both; }

@keyframes nm-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(0.1) rotate(-40deg) translateY(0.5em); } }
@keyframes nm-back {
  0% { opacity: 0; transform: translateY(0.9em) scale(0.2, 1.6); }
  28% { opacity: 1; transform: translateY(-0.5em) scale(1.45, 0.7); }
  46% { transform: translateY(0.1em) scale(0.8, 1.3); }
  62% { transform: translateY(-0.18em) scale(1.18, 0.86); }
  76% { transform: translateY(0.04em) scale(0.93, 1.08); }
  88% { transform: translateY(-0.04em) scale(1.04, 0.97); }
  100% { opacity: 1; transform: none; }
}
@keyframes nm-drop {
  0% { opacity: 0; transform: translateY(-2.6em) scale(0.8, 1.3); }
  22% { opacity: 1; transform: translateY(0.1em) scale(1.55, 0.5); }
  38% { transform: translateY(-0.9em) scale(0.86, 1.22); }
  54% { transform: translateY(0.06em) scale(1.3, 0.7); }
  68% { transform: translateY(-0.36em) scale(0.94, 1.1); }
  80% { transform: translateY(0.03em) scale(1.12, 0.88); }
  90% { transform: translateY(-0.09em) scale(0.98, 1.03); }
  100% { opacity: 1; transform: none; }
}
@keyframes nm-flip {
  0% { opacity: 0; transform: rotateY(-540deg) scale(0.3) translateY(0.4em); }
  40% { opacity: 1; transform: rotateY(60deg) scale(1.5) translateY(-0.3em); }
  56% { transform: rotateY(-38deg) scale(0.9, 1.1); }
  70% { transform: rotateY(22deg) scale(1.1, 0.92); }
  84% { transform: rotateY(-9deg) scale(0.98, 1.03); }
  100% { opacity: 1; transform: none; }
}
@keyframes nm-pop {
  0% { opacity: 0; transform: scale(0) rotate(-90deg); }
  30% { opacity: 1; transform: scale(1.9, 1.6) rotate(22deg); }
  46% { transform: scale(0.7, 1.15) rotate(-14deg); }
  60% { transform: scale(1.28, 0.84) rotate(8deg); }
  74% { transform: scale(0.9, 1.1) rotate(-4deg); }
  88% { transform: scale(1.05, 0.97) rotate(2deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes nm-spin {
  0% { opacity: 0; transform: translateY(1.4em) rotate(-540deg) scale(0.15); }
  38% { opacity: 1; transform: translateY(-0.7em) rotate(40deg) scale(1.45); }
  54% { transform: translateY(0.08em) rotate(-22deg) scale(0.86, 1.1); }
  68% { transform: translateY(-0.22em) rotate(12deg) scale(1.12, 0.92); }
  82% { transform: translateY(0.02em) rotate(-5deg) scale(0.97, 1.03); }
  100% { opacity: 1; transform: none; }
}
@keyframes nm-jelly {
  0% { opacity: 0; transform: translateY(1em) scale(0.2, 2.4); }
  24% { opacity: 1; transform: translateY(-0.3em) scale(1.8, 0.45); }
  40% { transform: translateY(0) scale(0.62, 1.55); }
  54% { transform: scale(1.38, 0.72); }
  68% { transform: scale(0.82, 1.2); }
  80% { transform: scale(1.12, 0.92); }
  90% { transform: scale(0.97, 1.04); }
  100% { opacity: 1; transform: none; }
}
@keyframes nm-bob {
  0%, 100% { translate: 0 0; rotate: 0deg; scale: 1 1; }
  25% { translate: 0 -0.1em; rotate: 4deg; scale: 0.97 1.05; }
  50% { translate: 0 0.02em; rotate: -1deg; scale: 1.06 0.95; }
  75% { translate: 0 -0.05em; rotate: -4deg; scale: 0.99 1.02; }
}

/* 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; }
  .sticker--try { top: 50%; right: -70px; }
  .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, .nut, .scroll-cue svg, .dl a:hover::after, .news-row::after, .made a:hover path, .dl a:hover .noz, .dl a:hover .layer, .dl a:hover .leds rect, .dl a:hover .pwr, .news-env, .sticker--try.in svg { animation: none; }
  .nm { transition-duration: 0.01s; }
  .nm.on .nm-a, .nm.on .nm-b, .nm.off .nm-a, .nm.off .nm-b { animation: none; }
  .nm.on .nm-a { opacity: 0; }
  .tape-track { animation-duration: 70s; }
}

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

@media (max-width: 700px) {
  .section { padding: 64px 0; }
  /* phones: the hero fills nearly the whole screen, leaving the top of the next section peeking in */
  .hero { min-height: clamp(520px, calc(var(--win-h, 100svh) - 128px), 840px); }
  .hero-inner { padding-top: clamp(40px, 13svh, 120px); }
  .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; }
  .sticker--try { top: 63%; right: -66px; }
  .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%); }

/* never in the share-image capture */
.still .scroll-cue { display: none; }
