/* The Clankers, v1.7 (17 Oct 2026). White, black, and the button's red. Nothing else. */

/* Archivo Black, latin subset, served from this site (SIL Open Font License 1.1).
   Not from Google Fonts: no visitor's IP goes to Google. */
@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/archivo-black-latin.woff2") format("woff2");
}

:root {
  --white: #ffffff;
  --black: #000000;
  --red: #d0241c;        /* sampled from Brand/button.png; 5.3:1 on white */
  --grey: #555555;       /* small print only; 7.5:1 on white */
  --heavy: "Archivo Black", "Arial Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
  --col: 560px;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.5;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--black); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red); }

:focus-visible { outline: 4px solid var(--red); outline-offset: 3px; }

h1, h2 { font-family: var(--heavy); font-weight: 400; line-height: 1.05; margin: 0; }

/* ---------- top ---------- */
.top {
  max-width: var(--col);
  margin: 0 auto;
  padding: 20px var(--gutter) 0;
  border-bottom: 0;
}
.wordmark {
  margin: 0;
  font-family: var(--heavy);
  font-weight: 400;
  line-height: 1.05;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ---------- hero ---------- */
main { max-width: var(--col); margin: 0 auto; padding: 0 var(--gutter); }

.hero { padding: 28px 0 8px; text-align: center; }

/* The button (v1.7): a 3D model of the real button (Blender, ../_tools/button3d.py,
   Merch/button3d/), rendered in 8 frames from up to down: button3d/press_00..07.webp.
   script.js plays them on press and release. Nothing is cut out of a photo any more,
   so behind the cap there is always the real base, never a hole (the author, 17 Oct
   2026). The render has its own shadow on the floor. */
.big-button {
  --press: 0;                      /* 0 up, 1 down (set by the .is-down class) */
  position: relative;
  display: block;
  width: min(80vw, 360px);
  aspect-ratio: 760 / 719;
  isolation: isolate;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.big-button:focus-visible { outline-offset: 10px; border-radius: 50%; }
.big-button img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; -webkit-user-drag: none; }
/* soft contact shadow under the base (the render's own floor veil is removed by
   _tools/button3d_web.py, it showed as a grey box), squashed while pressed */
.big-button .btn-floor {
  position: absolute; left: 8%; right: 8%; top: 79%; height: 20%;
  background: radial-gradient(closest-side, rgba(0,0,0,.42), rgba(0,0,0,0));
  transform: scaleX(calc(1 - var(--press) * .03));
  transition: transform 260ms cubic-bezier(.3, 1.6, .5, 1);
  pointer-events: none;
}
.big-button .btn-body {
  position: absolute; inset: 0;
  transform-origin: 50% 90%;
  transform: scale(calc(1 - var(--press) * .008), calc(1 - var(--press) * .014));
  transition: transform 260ms cubic-bezier(.3, 1.6, .5, 1);
}
.big-button.is-down { --press: 1; }
.big-button.is-down .btn-body,
.big-button.is-down .btn-floor { transition-duration: 70ms; transition-timing-function: cubic-bezier(.5, 0, .9, .4); }

/* until the first press, the button glows now and then: it wants to be pressed */
.big-button.is-idle .btn-frame { animation: cap-glow 3.2s ease-in-out 1.2s infinite; }
@keyframes cap-glow {
  0%, 70%, 100% { filter: brightness(1); }
  80% { filter: brightness(1.12) saturate(1.15); }
}

/* the shock wave: red rings from behind the base. Invisible unless script.js is
   animating them, and removed after at most a second, so none can stay on screen.
   v1.5: the ring is the base's foot on the floor, in the button's perspective (98% wide,
   1.4:1, bottom on the base's bottom edge), and grows less; v1.4 still had the old
   button's ring (62% wide, 1.55:1, centred high), too big and in the wrong perspective. */
.big-button .wave {
  position: absolute; left: 50%; top: 56.6%;  /* v1.7: the 3D base's foot (84% wide, 1.36:1) */
  width: 84%; aspect-ratio: 1.36;
  border: 6px solid var(--red);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(.95);
  opacity: 0;
  z-index: -1;                     /* behind the base: a wave on the floor */
  pointer-events: none;
}

/* a short jolt of the whole hero on every press */
.hero.is-hit { animation: jolt 180ms cubic-bezier(.36, .07, .19, .97); }
@keyframes jolt {
  20% { transform: translate(-3px, 2px) rotate(-.4deg); }
  45% { transform: translate(3px, -1px) rotate(.3deg); }
  70% { transform: translate(-2px, 1px); }
  100% { transform: none; }
}

.press-hint {
  margin: 22px 0 0;
  font-family: var(--heavy);
  font-size: 18px;
  text-transform: uppercase;
  color: var(--red);
}

.bio {
  margin: 28px 0 0;
  font-family: var(--heavy);
  font-size: clamp(30px, 9vw, 46px);
  line-height: 1.08;
  text-transform: uppercase;
}
.bio span { display: block; }
.bio span + span { color: var(--red); margin-top: 6px; }

.socials { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 12px; }

.block-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 14px 18px;
  border: 4px solid var(--black);
  background: var(--black);
  color: var(--white);
  font-family: var(--heavy);
  font-size: 22px;
  text-decoration: none;
  text-align: left;
}
.block-link span { font-family: var(--body); font-weight: 700; font-size: 18px; overflow-wrap: anywhere; }
.block-link:hover { background: var(--red); border-color: var(--red); color: var(--white); }

/* ---------- get the button (where the videos' "GET THE BUTTON" end card leads) ---------- */
.get,
.cast,
.follow {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 6px solid var(--black);
}
.get { margin-top: 40px; }
.get h2,
.cast h2 { font-size: clamp(34px, 10vw, 48px); text-transform: uppercase; }
.get h2 { color: var(--red); }
.get > p,
.cast > p { margin: 16px 0 0; }

/* ---------- the clankers: one small phone screen each, from clankers.json ---------- */
.cast-grid {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 14px;
}
.clanker { min-width: 0; }
.screen {
  margin: 0;
  aspect-ratio: 9 / 16;
  border: 4px solid var(--black);
  border-radius: 18px;
  overflow: hidden;
  background: var(--black);
}
.screen img { width: 100%; height: 100%; object-fit: cover; }
.clanker h3 {
  margin: 12px 0 0;
  font-family: var(--heavy);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.1;
  text-transform: uppercase;
}
.clanker .who { margin: 4px 0 0; font-size: 16px; line-height: 1.3; color: var(--grey); }
.clanker blockquote { margin: 8px 0 0; font-size: 17px; line-height: 1.35; font-weight: 700; }
.clanker .ep {
  margin: 8px 0 0;
  font-family: var(--heavy);
  font-size: 14px;
  text-transform: uppercase;
  color: var(--red);
}
.clanker .ep a { color: var(--red); }
.cast .empty { font-weight: 700; }
@media (min-width: 700px) {
  .cast-grid { gap: 36px 24px; }
}

.follow .socials { margin-top: 0; }

.waitlist { margin-top: 24px; display: grid; gap: 14px; }

.waitlist > label { font-weight: 800; font-size: 19px; }

.waitlist input[type="email"] {
  width: 100%;
  min-height: 60px;
  padding: 12px 14px;
  border: 4px solid var(--black);
  border-radius: 0;
  background: var(--white);
  color: var(--black);
  font: inherit;
  font-size: 20px;
  -webkit-appearance: none;
  appearance: none;
}
.waitlist input[type="email"]:focus { outline: none; border-color: var(--red); }
.waitlist input[aria-invalid="true"] { border-color: var(--red); }

.consent {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
  padding: 6px 0;
}
.consent input {
  width: 30px;
  height: 30px;
  margin: 0;
  accent-color: var(--red);
  cursor: pointer;
}

.submit {
  min-height: 64px;
  padding: 14px 18px;
  border: 4px solid var(--red);
  border-radius: 0;
  background: var(--red);
  color: var(--white);
  font-family: var(--heavy);
  font-size: 22px;
  text-transform: uppercase;
  cursor: pointer;
}
.submit:hover { background: var(--black); border-color: var(--black); }
.submit:disabled { background: var(--white); color: var(--black); border-color: var(--black); cursor: wait; }

.status { margin: 0; min-height: 1.5em; font-weight: 700; font-size: 19px; }
.status.is-error { color: var(--red); }
.status.is-ok { border-left: 6px solid var(--red); padding-left: 12px; }

/* honeypot: hidden from people, visible to dumb bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- tagline + footer ---------- */
.tagline {
  margin: 64px 0 0;
  font-family: var(--heavy);
  font-size: clamp(24px, 7vw, 32px);
  line-height: 1.15;
  text-transform: uppercase;
}

.foot {
  max-width: var(--col);
  margin: 56px auto 0;
  padding: 24px var(--gutter) 40px;
  border-top: 2px solid var(--black);
  font-size: 18px;
}
.foot p { margin: 0 0 8px; }
.foot a { display: inline-block; min-height: 44px; padding: 8px 0; }
.version { color: var(--grey); font-size: 16px; }

/* ---------- privacy page ---------- */
.doc h1 { font-size: clamp(34px, 10vw, 48px); text-transform: uppercase; margin-top: 28px; }
.doc h2 { font-size: 26px; text-transform: uppercase; margin-top: 40px; }
.doc h3 { font-size: 20px; margin: 28px 0 0; }
.doc p, .doc ul { margin: 12px 0 0; }
.doc li { margin-top: 6px; }
.doc .lang-switch { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.doc .lang-switch a {
  display: inline-block; min-height: 48px; padding: 10px 16px;
  border: 4px solid var(--black); font-weight: 800; text-decoration: none;
}
.doc section + section { margin-top: 56px; padding-top: 8px; border-top: 6px solid var(--black); }
.todo { outline: 3px dashed var(--red); outline-offset: 2px; color: var(--red); padding: 0 4px; font-weight: 800; }
.back { display: inline-block; margin-top: 20px; padding: 6px 0; font-weight: 800; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .big-button .btn-body,
  .big-button .btn-floor { transition: none; transform: none; }
  .big-button.is-idle .btn-frame { animation: none; }
  .big-button .wave { display: none; }
  .hero.is-hit { animation: none; }
}

@media (min-width: 700px) {
  body { font-size: 20px; }
  .hero { padding-top: 40px; }
}
