/* Sticks! — one-page site. No build step, no web fonts. */

:root {
  --bg: #08080a;
  --ink: #f4f4f6;
  --ink-2: #a6a6ae;
  --ink-3: #6c6c74;
  --lit: #85858d;          /* headline base: brightened and tinted by the sticks' light */
  --line: rgba(255, 255, 255, 0.1);

  --pink: #ff2d95;
  --yellow: #ffd60a;
  --cyan: #00c8ff;
  --lime: #7dff1a;
  --orange: #ff7a00;
  --violet: #9b4dff;

  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 4.4vw, 64px);
  --max: 1320px;
  --bleed: 200px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
}
/* body stays transparent so section backdrops (z-index:-1) are not covered */
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
  overflow-x: hidden;
  overflow: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
img { max-width: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 10px 14px;
  background: var(--ink);
  color: #000;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  z-index: 100;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- light ---------- */

.light-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
  mix-blend-mode: color-dodge;
}

.scene-canvas {
  position: absolute;
  left: 0;
  top: calc(var(--bleed) * -1);
  width: 100%;
  height: calc(100% + var(--bleed) * 2);
  pointer-events: none;
  mix-blend-mode: screen;
  display: block;
}

/* ---------- layout ---------- */

.section {
  position: relative;
  padding: clamp(104px, 13vw, 200px) 0;
  touch-action: pan-y pinch-zoom;
}
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.wrap {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- type ---------- */

.h2 {
  margin: 0;
  font-size: clamp(42px, 7vw, 112px);
  font-weight: 700;
  letter-spacing: -0.052em;
  line-height: 0.94;
  color: var(--lit);
  max-width: 12ch;
  text-wrap: balance;
}

.fact {
  margin: 0;
  font-size: clamp(16px, 1.35vw, 19px);
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--ink-2);
  max-width: 44ch;
}

/* ---------- header ---------- */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  max-width: calc(var(--max));
  margin: 0 auto;
}
.brand { display: inline-flex; text-decoration: none; }
.site-nav { display: flex; gap: clamp(18px, 3vw, 36px); }
.site-nav a {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 0;
}
.site-nav a:hover { color: var(--ink); }

/* ---------- logo ---------- */

/* The box is a crop of the 2048x1360 lockup around the wordmark (see js/logo.js). */
.logo {
  position: relative;
  display: inline-block;
  aspect-ratio: 1920 / 640;
  vertical-align: baseline;
}
.logo--small { width: 116px; }
.logo--hero {
  width: 3.55em;
  margin: 0 -0.04em -0.17em 0.02em;
}
.logo-full {
  position: absolute;
  display: block;
  mix-blend-mode: screen;
  pointer-events: none;
  user-select: none;
}
.logo-letters {
  position: absolute;
  inset: 0;
}
.lt {
  position: absolute;
  display: block;
  will-change: transform, opacity, filter;
  transform-origin: 50% 85%;
}
.lt img {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.logo.is-pending .lt { opacity: 0; }

/* last-resort text wordmark if logo-c.webp is missing too */
.wordmark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: calc(100% * 1);
  letter-spacing: -0.03em;
  line-height: 1;
}
.logo--small .wordmark { font-size: 26px; }
.wordmark b { font-weight: 800; }
.wordmark b:nth-child(1) { color: #d9dbe4; }
.wordmark b:nth-child(2) { color: #f2f2f2; }
.wordmark b:nth-child(3) { color: #ffb21a; }
.wordmark b:nth-child(4) { color: #3aa8ff; }
.wordmark b:nth-child(5) { color: #ff3fa4; }
.wordmark b:nth-child(6) { color: #ff8a00; }
.wordmark b:nth-child(7) { color: #7dff1a; }

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

.hero {
  min-height: max(660px, 100svh);
  padding: 132px 0 40px;
  display: flex;
}
.hero::before {
  background:
    radial-gradient(120% 60% at 75% 100%, #121117 0%, rgba(18, 17, 23, 0) 70%),
    linear-gradient(180deg, #050507 0%, #08080b 60%, #0c0b10 100%);
}
.hero-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 56px;
}
.hero-title {
  margin: 4vh 0 0;
  font-size: clamp(54px, 10.4vw, 176px);
  font-weight: 700;
  letter-spacing: -0.058em;
  line-height: 0.9;
  color: var(--lit);
}
.hero-title .line { display: block; white-space: nowrap; }
.hero-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-foot .fact { max-width: none; }
.hint {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
}
.hint-coarse { display: none; }
@media (pointer: coarse) {
  .hint-fine { display: none; }
  .hint-coarse { display: inline; }
}

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

.sync::before {
  background: linear-gradient(180deg, #0c0b10 0%, #0a0a0d 30%, #0b0b0f 100%);
}
.sync .fact { margin-top: 28px; }
.stage {
  height: clamp(460px, 62vw, 700px);
  margin-top: 24px;
}
.sync-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.sync-status {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
}
.sync-status .sep { margin: 0 10px; color: var(--ink-3); }

/* switch (shared by the sync bar and the app mock) */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.switch-track {
  position: relative;
  width: 50px;
  height: 30px;
  border-radius: 15px;
  background: #2a2a31;
  transition: background-color 0.2s;
  flex: none;
}
.switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: transform 0.22s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.switch[aria-checked="true"] .switch-track { background: #31c75a; }
.switch[aria-checked="true"] .switch-thumb { transform: translateX(20px); }
.switch:focus-visible { outline: none; }
.switch:focus-visible .switch-track { outline: 2px solid var(--ink); outline-offset: 3px; }

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

.app::before {
  background: linear-gradient(180deg, #0b0b0f 0%, #0d0c12 50%, #0a0a0d 100%);
}
.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px clamp(48px, 9vw, 160px);
  align-items: stretch;
}
.app-copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}
.parties {
  margin: auto 0 40px;
  font-size: clamp(38px, 5.2vw, 84px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: var(--lit);
  max-width: 7ch;
}

.phone-wrap {
  position: relative;
  width: min(392px, 100%);
  margin-right: clamp(0px, 4vw, 70px);
}
.phone {
  position: relative;
  border-radius: 58px;
  padding: 11px;
  background: linear-gradient(160deg, #26262c, #111114 40%, #1a1a1f);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    0 50px 90px rgba(0, 0, 0, 0.55);
}
.phone-screen {
  position: relative;
  border-radius: 47px;
  background: #0e0e12;
  overflow: hidden;
  padding: 0 18px 22px;
  font-size: 14px;
  color: var(--ink);
}

.app-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px;
  padding: 6px 14px 0 18px;
  font-size: 15px;
  font-weight: 600;
}
.status-icons { display: flex; gap: 6px; align-items: center; }
.status-icons i { display: block; background: var(--ink); }
.status-icons .sig { width: 17px; height: 11px; clip-path: polygon(0 100%, 100% 0, 100% 100%); border-radius: 1px; }
.status-icons .wifi { width: 15px; height: 11px; clip-path: polygon(50% 100%, 0 25%, 15% 8%, 50% 0, 85% 8%, 100% 25%); }
.status-icons .batt { width: 24px; height: 11px; border-radius: 3px; background: none; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6), inset 0 0 0 3px #0e0e12, inset 0 0 0 9px var(--ink); }

.app-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 10px 2px 16px;
}
.app-name {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}
.app-online {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #31c75a;
  flex: none;
}

.app-body { display: flex; flex-direction: column; gap: 22px; }
.app-block { margin: 0; padding: 0; border: 0; min-width: 0; }
.app-label {
  display: block;
  margin: 0 0 10px;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink-3);
}

.fx-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.fx {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  min-width: 0;
  padding: 10px 10px 9px;
  border: 0;
  border-radius: 12px;
  background: #18181e;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: background-color 0.15s, box-shadow 0.15s;
}
.fx:hover { background: #1f1f26; }
.fx[aria-pressed="true"] {
  background: #24242c;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.85);
}
.fx canvas { display: block; width: 100%; height: 7px; }
.fx span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.swatches { display: flex; justify-content: space-between; gap: 6px; }
.swatch { position: relative; }
.swatch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.swatch span {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  transition: transform 0.15s;
}
.swatch--auto span {
  background: conic-gradient(var(--pink), var(--orange), var(--yellow), var(--lime), var(--cyan), var(--violet), var(--pink));
}
.swatch input:checked + span {
  box-shadow: 0 0 0 2px #0e0e12, 0 0 0 4px #fff;
}
.swatch input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 5px; }
.swatch:hover span { transform: scale(1.06); }

.sliders { display: flex; flex-direction: column; gap: 14px; }
.slider {
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 8px;
  font-size: 15px;
  font-weight: 600;
}
.slider output { color: var(--ink-2); font-variant-numeric: tabular-nums; font-weight: 500; }
.slider input { grid-column: 1 / -1; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  --p: 50%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #fff var(--p), #2c2c33 var(--p));
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: #2c2c33; }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: #fff; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -10px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--ink); outline-offset: 3px; }

.toggles {
  border-radius: 14px;
  background: #16161b;
  padding: 2px 14px;
}
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 50px;
  font-size: 15px;
  font-weight: 600;
}
.toggle-row + .toggle-row { border-top: 1px solid rgba(255, 255, 255, 0.06); }

.stick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.stick-btn {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: center;
  padding: 9px 8px;
  border: 0;
  border-radius: 12px;
  background: #18181e;
  cursor: pointer;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.stick-btn:hover { background: #1f1f26; }
.stick-bar {
  grid-row: 1 / 3;
  width: 6px;
  height: 34px;
  border-radius: 3px;
  background: #222;
}
.stick-num { font-size: 15px; font-weight: 700; line-height: 1; }
.stick-state { display: flex; align-items: center; gap: 4px; font-size: 10px; color: var(--ink-3); font-weight: 600; }
.stick-state .dot { width: 6px; height: 6px; }

/* ---------- stickers ---------- */

.sticker {
  position: absolute;
  width: clamp(128px, 14.5vw, 204px);
  aspect-ratio: 1;
  transform: rotate(var(--rot, 0deg));
  z-index: 2;
  cursor: default;
}
.sticker svg { display: block; width: 100%; height: 100%; overflow: visible; transform-origin: 50% 50%; }
.sticker--fx { --rot: 11deg; top: -34px; right: calc(clamp(128px, 14.5vw, 204px) * -0.6); }
.sticker--audio { --rot: -12deg; top: 61%; left: calc(clamp(128px, 14.5vw, 204px) * -0.8); }
.sticker:hover svg { animation: wobble 0.75s cubic-bezier(0.3, 0.8, 0.4, 1); }
@keyframes wobble {
  0% { transform: rotate(0) scale(1); }
  18% { transform: rotate(-6deg) scale(1.04); }
  40% { transform: rotate(4.5deg) scale(1.02); }
  62% { transform: rotate(-2.5deg); }
  82% { transform: rotate(1deg); }
  100% { transform: rotate(0) scale(1); }
}

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

.build::before {
  background: linear-gradient(180deg, #0a0a0d 0%, #09090b 60%, #070708 100%);
}
.h2--build { max-width: 13ch; }
.sub {
  margin: 28px 0 0;
  font-size: clamp(26px, 3.4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.dl {
  list-style: none;
  margin: clamp(56px, 7vw, 96px) 0 0;
  padding: 0;
  max-width: 820px;
  border-top: 1px solid var(--line);
}
.dl a {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: clamp(22px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}
.dl-num {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.dl-body { display: flex; flex-direction: column; gap: 6px; }
.dl-title {
  font-size: clamp(22px, 2.9vw, 40px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: #c9c9cf;
  transition: color 0.15s;
}
.dl-meta { font-size: 14px; font-weight: 500; color: var(--ink-3); }
.dl-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.25);
  transition: background-color 0.15s, box-shadow 0.15s;
}
.dl-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.dl a:hover .dl-title { color: #fff; }
.dl a:hover .dl-icon { background: #fff; box-shadow: none; }
.dl a:hover .dl-icon svg { stroke: #000; transform: translateY(2px); }
.dl a:focus-visible { outline-offset: 6px; }
.floor-space { height: clamp(120px, 14vw, 180px); }

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

.site-footer {
  position: relative;
  padding: 40px 0 48px;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #050506;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 36px;
}
.made { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.foot-links { display: flex; gap: 28px; margin-left: auto; }
.foot-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 4px;
}
.foot-links a:hover { text-decoration-color: currentColor; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .app-grid { grid-template-columns: 1fr; }
  .parties { margin: 8px 0 0; }
  .phone-wrap { margin: 40px auto 0; }
  .sticker { width: 132px; }
  .sticker--fx { top: -34px; right: -10px; }
  .sticker--audio { top: auto; bottom: -100px; left: -6px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-header { height: 72px; }
  .logo--small { width: 96px; }
  .hero { padding-top: 108px; }
  .hero-title { margin-top: 2vh; }
  .stage { height: 440px; }
  .phone { border-radius: 50px; padding: 9px; }
  .phone-screen { border-radius: 41px; padding: 0 14px 18px; }
  .swatch span { width: 30px; height: 30px; }
  .sticker { width: 116px; }
  .dl a { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; }
  .dl-icon { width: 42px; height: 42px; }
  .foot-links { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sticker:hover svg { animation: none; }
  .switch-thumb, .switch-track { transition: none; }
}
