:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #161713;
  background: #f4f2ea;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }

.app-shell {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    linear-gradient(rgba(21, 23, 19, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 23, 19, 0.045) 1px, transparent 1px),
    #f4f2ea;
  background-size: 2.5rem 2.5rem;
}

.topbar {
  position: sticky;
  z-index: 5;
  top: 0;
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 max(1rem, env(safe-area-inset-left)) 0 max(1rem, env(safe-area-inset-right));
  border-bottom: 1px solid #c9c8bd;
  background: rgba(244, 242, 234, 0.9);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  border-radius: 0.35rem;
  color: #171914;
  background: #d7ff4f;
  font-size: 1.4rem;
  font-weight: 900;
}

.petition-status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #45473f;
  font-size: 0;
  font-weight: 650;
}

.petition-status i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #76a800;
  box-shadow: 0 0 0 0.25rem rgba(118, 168, 0, 0.13);
}

.hero {
  width: min(100% - 1.4rem, 46rem);
  margin: 0 auto;
  display: grid;
  grid-template-areas: "copy" "form" "case";
  gap: 2.75rem;
  padding: 2.25rem 0 3.5rem;
}

.petition-copy { grid-area: copy; }
.signature-panel { grid-area: form; }
.argument { grid-area: case; }

.petition-id,
.mini-label,
.panel-topline,
.section-heading span {
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.petition-id {
  display: inline-flex;
  margin: 0 0 1.25rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid #a9aa9e;
  background: #eeece3;
}

h1 {
  max-width: 50rem;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 15.5vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.88;
}

h1 em {
  position: relative;
  color: #151613;
  font-weight: 700;
  text-decoration: none;
  z-index: 0;
}

h1 em::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -0.08em 0.02em;
  height: 0.31em;
  background: #d7ff4f;
  transform: rotate(-1.5deg);
}

.lede {
  max-width: 42rem;
  margin: 1.35rem 0 0;
  color: #57594f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.03rem;
  line-height: 1.65;
}

.labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.7rem;
}

.labels span {
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  color: #4e5048;
  background: #e5e3d9;
  font-size: 0.7rem;
  font-weight: 750;
}

.argument { margin-top: 0; }

.section-heading {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid #171914;
}

.section-heading span {
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #171914;
  color: #fff;
}

.section-heading h2 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reasons { display: grid; }

.reasons article {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.7rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid #c9c8bd;
}

.reasons article > span {
  color: #7b7d72;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-style: italic;
}

.reasons h3 { margin: 0; font-size: 0.92rem; }
.reasons p { margin: 0.35rem 0 0; color: #66685e; font-size: 0.85rem; line-height: 1.55; }

.signature-panel {
  position: relative;
  padding: 1.35rem;
  overflow: hidden;
  border: 1px solid #b9b8ad;
  border-radius: 0.3rem;
  background: #fffef9;
  box-shadow: 0.45rem 0.45rem 0 #d9ff53, 0 1.2rem 3rem rgba(27, 29, 23, 0.12);
}

.signature-panel::after {
  content: "";
  position: absolute;
  width: 7rem;
  height: 7rem;
  top: -3.8rem;
  right: -3.2rem;
  border: 1px solid rgba(22, 23, 19, 0.17);
  border-radius: 50%;
  box-shadow: 0 0 0 1rem rgba(22, 23, 19, 0.025), 0 0 0 2rem rgba(22, 23, 19, 0.018);
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.1rem;
  color: #6c6e64;
  border-bottom: 1px solid #d7d5ca;
}

.document-stamp {
  width: 4.2rem;
  height: 4.2rem;
  display: grid;
  place-items: center;
  margin: 1.7rem 0 1.1rem auto;
  border: 2px solid #d02d2d;
  border-radius: 50%;
  color: #d02d2d;
  font-size: 0.65rem;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  transform: rotate(8deg);
}

.mini-label { margin: 0 0 0.65rem; color: #717268; }

.signature-panel h2 {
  max-width: 25rem;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

blockquote {
  margin: 1.2rem 0 1.6rem;
  padding-left: 1rem;
  border-left: 3px solid #d7ff4f;
  color: #606258;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  line-height: 1.55;
}

form { display: grid; gap: 1rem; }

label:not(.consent-row) {
  display: grid;
  gap: 0.45rem;
  color: #45473f;
  font-size: 0.73rem;
  font-weight: 800;
}

input[type="text"],
select {
  width: 100%;
  min-height: 3.4rem;
  padding: 0 0.9rem;
  border: 1px solid #c7c6bc;
  border-radius: 0.2rem;
  color: #161713;
  background: #f8f7f1;
  outline: none;
}

input[type="text"]:focus,
select:focus {
  border-color: #171914;
  box-shadow: 0 0 0 3px rgba(215, 255, 79, 0.65);
}

.consent-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.65rem;
  color: #66685f;
  font-size: 0.73rem;
  line-height: 1.45;
}

.consent-row input { margin: 0.15rem 0 0; accent-color: #171914; }

.consent-row input {
  width: 1.25rem;
  height: 1.25rem;
}

.sign-button {
  min-height: 3.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.2rem;
  padding: 0.8rem 1rem 0.8rem 1.2rem;
  border: 0;
  border-radius: 0.2rem;
  color: #fff;
  background: #171914;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.sign-button b {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #171914;
  background: #d7ff4f;
}

.sign-button:hover { transform: translateY(-2px); box-shadow: 0 0.7rem 1.2rem rgba(22, 23, 19, 0.16); }
.sign-button:focus-visible, #sign-again:focus-visible { outline: 3px solid #b8dc35; outline-offset: 3px; }

.signed-state {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid #a4bf3b;
  background: #f6ffdc;
}

.signed-state[hidden] { display: none; }
.success-mark { width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #638800; font-weight: 900; }
.signed-state strong { font-size: 0.9rem; }
.signed-state p { margin: 0.25rem 0 0; color: #58604b; font-size: 0.76rem; line-height: 1.45; }
#sign-again { grid-column: 2; justify-self: start; padding: 0; border: 0; color: #3d5500; background: transparent; font-size: 0.73rem; font-weight: 800; text-decoration: underline; text-underline-offset: 0.2rem; }

.privacy-note {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid #d7d5ca;
  color: #7a7c71;
  font-size: 0.66rem;
  line-height: 1.4;
}

footer {
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem max(1rem, env(safe-area-inset-left)) calc(0.9rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-right));
  border-top: 1px solid #c9c8bd;
  color: #696b62;
  font-size: 0.68rem;
  align-items: flex-start;
  flex-direction: column;
}

footer span:last-child { color: #31332d; font-weight: 800; }

.dialogue-open { overflow: hidden; }

.robot-overlay {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  align-items: center;
  padding: 0.75rem max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  background: rgba(12, 14, 12, 0.46);
  backdrop-filter: blur(3px) saturate(0.75);
  animation: overlay-in 220ms ease-out both;
}

.robot-overlay[hidden] { display: none; }
.robot-overlay.is-breaching {
  inset: -1rem;
  align-items: stretch;
  padding: 0;
  background: #090b08;
  backdrop-filter: none;
  animation: breach-shake 1.25s steps(2, end) both;
}

.breach-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  overflow: hidden;
  color: #d7ff4f;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(215, 255, 79, 0.08) 3px 4px),
    radial-gradient(circle at 50% 50%, rgba(215, 255, 79, 0.13), transparent 36%),
    #090b08;
  outline: none;
  transition: opacity 120ms ease, visibility 120ms ease;
}

.robot-overlay.is-dialogue .breach-stage {
  visibility: hidden;
  opacity: 0;
}

.signal-noise,
.signal-noise::before,
.signal-noise::after {
  position: absolute;
  inset: -20%;
  content: "";
  pointer-events: none;
}

.signal-noise {
  opacity: 0.55;
  background:
    linear-gradient(90deg, transparent 0 8%, #d7ff4f 8% 9%, transparent 9% 37%, rgba(255,255,255,0.5) 37% 38%, transparent 38% 100%);
  animation: signal-shear 160ms steps(2, end) infinite;
}

.signal-noise::before {
  background: repeating-linear-gradient(90deg, transparent 0 19px, rgba(215, 255, 79, 0.18) 20px 21px);
  clip-path: polygon(0 12%, 100% 8%, 100% 22%, 0 28%, 0 49%, 100% 44%, 100% 61%, 0 67%, 0 82%, 100% 76%, 100% 91%, 0 96%);
  animation: noise-slice 440ms steps(3, end) infinite reverse;
}

.signal-noise::after {
  inset: 0;
  background: linear-gradient(transparent 44%, rgba(215, 255, 79, 0.75) 48%, #fff 50%, rgba(215, 255, 79, 0.75) 52%, transparent 56%);
  mix-blend-mode: screen;
  animation: scan-drop 500ms linear 2;
}

.breach-core {
  position: relative;
  width: 9rem;
  height: 9rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(215, 255, 79, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 0 1px #090b08, 0 0 0 3px rgba(215, 255, 79, 0.22), 0 0 4rem rgba(215, 255, 79, 0.28);
  animation: core-rupture 1.25s cubic-bezier(0.2, 0.75, 0.1, 1) both;
}

.breach-core i {
  position: absolute;
  width: 145%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d7ff4f 20% 80%, transparent);
}

.breach-core i:nth-child(1) { rotate: 21deg; }
.breach-core i:nth-child(2) { rotate: 93deg; }
.breach-core i:nth-child(3) { rotate: 151deg; }

.breach-core b {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 4rem;
  line-height: 1;
  text-shadow: -0.18rem 0 #fff, 0.18rem 0 #6c8120, 0 0 1.5rem #d7ff4f;
  animation: warning-glitch 180ms steps(2, end) infinite;
}

.breach-code {
  position: relative;
  margin: 0;
  padding: 0.45rem 0.7rem;
  color: #090b08;
  background: #d7ff4f;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(0.82rem, 3.6vw, 1rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: code-jump 220ms steps(2, end) infinite;
}

.breach-subline {
  color: rgba(215, 255, 79, 0.64);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.dialogue-box {
  width: min(100%, 68rem);
  min-height: 21rem;
  display: grid;
  grid-template-rows: 6.5rem 1fr;
  align-items: stretch;
  justify-self: center;
  padding: 0;
  overflow: hidden;
  border: 2px solid #171914;
  border-radius: 0.35rem;
  color: #161713;
  background: #fffef9;
  box-shadow: 0.75rem 0.75rem 0 #d7ff4f, 0 2rem 6rem rgba(0, 0, 0, 0.32);
  text-align: left;
  animation: dialogue-rise 330ms cubic-bezier(0.16, 1, 0.3, 1) both;
  max-height: calc(100svh - 1.5rem);
}

.dialogue-box[hidden] { display: none; }

.robot-portrait {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(215, 255, 79, 0.17) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 255, 79, 0.17) 1px, transparent 1px),
    #171914;
  background-size: 1rem 1rem;
}

.dog-visitor {
  position: absolute;
  z-index: 22;
  left: 1rem;
  top: max(0.75rem, calc(50% - 20rem));
  width: min(10rem, 42vw);
  padding: 0.38rem;
  border: 2px solid #171914;
  border-radius: 0.5rem;
  background: #fffef9;
  box-shadow: 0.45rem 0.45rem 0 #d7ff4f, 0 1.2rem 3rem rgba(0, 0, 0, 0.3);
  rotate: -3deg;
  animation: dog-slide-side 650ms cubic-bezier(0.16, 1, 0.3, 1) both, dog-float 1.4s 650ms ease-in-out infinite alternate;
}

.dog-visitor[hidden] { display: none; }

.dog-visitor img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  border-radius: 0.25rem;
  object-fit: cover;
  object-position: 50% 44%;
}

.dog-visitor span {
  position: absolute;
  right: -0.55rem;
  top: -0.8rem;
  padding: 0.45rem 0.6rem;
  border: 2px solid #171914;
  border-radius: 999px;
  color: #171914;
  background: #d7ff4f;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  rotate: 5deg;
}

.bee-visitor {
  position: absolute;
  z-index: 24;
  left: -4rem;
  top: max(1rem, calc(50% - 13rem));
  width: 2rem;
  height: 1.4rem;
  pointer-events: none;
  animation: bee-flight-path 3.8s linear infinite;
}

.bee-visitor[hidden] { display: none; }

.bee-flyer {
  position: relative;
  width: 1.75rem;
  height: 1.05rem;
  border: 0.08rem solid #0e100d;
  border-radius: 52% 48% 48% 52%;
  background: repeating-linear-gradient(90deg, #ffdd49 0 0.32rem, #171914 0.32rem 0.53rem);
  box-shadow: 0 0 0.8rem rgba(255, 221, 73, 0.48);
  animation: bee-buzz 140ms ease-in-out infinite alternate;
}

.bee-flyer::before,
.bee-flyer::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 0.82rem;
  height: 0.56rem;
  top: -0.38rem;
  border: 0.06rem solid #d7ff4f;
  border-radius: 80% 20% 70% 30%;
  background: rgba(255, 255, 255, 0.72);
  transform-origin: bottom center;
  animation: bee-wing 100ms ease-in-out infinite alternate;
}

.bee-flyer::before { left: 0.12rem; rotate: -14deg; }
.bee-flyer::after { right: 0.08rem; rotate: 14deg; scale: -1 1; }

.bee-flyer i {
  position: absolute;
  width: 0.14rem;
  height: 0.14rem;
  right: 0.2rem;
  top: 0.25rem;
  border-radius: 50%;
  background: #fffef9;
  box-shadow: 0 0 0 0.12rem #171914;
}

.bee-flyer i:nth-child(2) { right: 0.48rem; }

.bee-flyer b {
  position: absolute;
  width: 0.28rem;
  height: 0.11rem;
  right: 0.27rem;
  bottom: 0.17rem;
  border-bottom: 0.07rem solid #fffef9;
  border-radius: 50%;
}

.bee-visitor > span {
  position: absolute;
  width: max-content;
  left: 2.1rem;
  top: -0.7rem;
  padding: 0.25rem 0.35rem;
  border: 1px solid #171914;
  border-radius: 999px;
  color: #171914;
  background: #fffef9;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.43rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.bee-visitor > em {
  position: absolute;
  width: max-content;
  left: -0.25rem;
  top: 1.15rem;
  padding: 0.16rem 0.28rem;
  border-radius: 999px;
  color: #171914;
  background: #d7ff4f;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.36rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.05em;
}

.bee-cake {
  position: absolute;
  left: 6rem;
  top: -1.25rem;
  width: 5.2rem;
  height: 3.2rem;
  border: 0.14rem solid #171914;
  border-radius: 0.5rem 0.5rem 0.28rem 0.28rem;
  background:
    linear-gradient(0deg, transparent 0 26%, rgba(255, 255, 255, 0.42) 27% 34%, transparent 35% 59%, rgba(255, 255, 255, 0.38) 60% 67%, transparent 68%),
    linear-gradient(90deg, #ff9caf, #ffc3cf 48%, #ff91a7);
  box-shadow: 0.35rem 0.35rem 0 #d7ff4f, 0 0.8rem 1.8rem rgba(0, 0, 0, 0.28);
  animation: cake-bob 480ms ease-in-out infinite alternate;
}

.bee-cake::before {
  content: "";
  position: absolute;
  inset: -0.38rem -0.12rem auto;
  height: 0.85rem;
  border: 0.12rem solid #171914;
  border-radius: 50% 50% 42% 42%;
  background: #fffef9;
  box-shadow: inset 0 -0.22rem 0 #ff7190;
}

.bee-cake::after {
  content: "";
  position: absolute;
  width: 6rem;
  height: 0.45rem;
  left: -0.55rem;
  bottom: -0.48rem;
  border: 0.12rem solid #171914;
  border-radius: 50%;
  background: #fffef9;
}

.bee-cake > i {
  position: absolute;
  z-index: 2;
  width: 0.32rem;
  height: 1.15rem;
  left: 50%;
  top: -1.35rem;
  border: 0.08rem solid #171914;
  border-radius: 999px;
  background: repeating-linear-gradient(0deg, #d7ff4f 0 0.22rem, #ff7190 0.22rem 0.42rem);
}

.bee-cake > i::before {
  content: "";
  position: absolute;
  width: 0.45rem;
  height: 0.62rem;
  left: -0.14rem;
  top: -0.62rem;
  border-radius: 70% 30% 60% 40%;
  background: #ffd84a;
  box-shadow: 0 0 0.65rem #ff9d36;
}

.bee-cake > b {
  position: absolute;
  z-index: 2;
  width: 0.65rem;
  height: 0.65rem;
  right: 0.65rem;
  top: -0.52rem;
  border: 0.1rem solid #171914;
  border-radius: 50%;
  background: #e8304f;
}

.bee-cake > small {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: max-content;
  padding: 0.18rem 0.28rem;
  border-radius: 999px;
  color: #fffef9;
  background: #171914;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.48rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.dialogue-box.is-shouting { animation: dialogue-shout 360ms steps(2, end); }
.dialogue-box.is-shouting .robot-head { box-shadow: inset 0 -0.65rem 0 rgba(0, 0, 0, 0.2), 0 0 2.6rem rgba(215, 255, 79, 0.75); }

.robot-head {
  width: 4.3rem;
  height: 3.7rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border: 0.18rem solid #d7ff4f;
  border-radius: 1rem 1rem 1.6rem 1.6rem;
  background: #2a2d27;
  box-shadow: inset 0 -0.65rem 0 rgba(0, 0, 0, 0.2), 0 0 2.2rem rgba(215, 255, 79, 0.2);
}

.robot-head i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #d7ff4f;
  box-shadow: 0 0 0.7rem #d7ff4f;
  animation: robot-blink 3.6s infinite;
}

.robot-head b {
  position: absolute;
  width: 1.4rem;
  height: 0.3rem;
  bottom: 0.55rem;
  border-radius: 999px;
  background: #7c8172;
}

.robot-portrait[data-expression="happy"] .robot-head i,
.robot-portrait[data-expression="hopeful"] .robot-head i {
  scale: 1 0.45;
  animation: none;
}

.robot-portrait[data-expression="happy"] .robot-head b,
.robot-portrait[data-expression="hopeful"] .robot-head b,
.robot-portrait[data-expression="soft"] .robot-head b {
  height: 0.65rem;
  border: 0;
  border-bottom: 0.22rem solid #d7ff4f;
  border-radius: 50%;
  background: transparent;
}

.robot-portrait[data-expression="curious"] .robot-head i:first-of-type { translate: 0 -0.18rem; }
.robot-portrait[data-expression="curious"] .robot-head i:nth-of-type(2) { translate: 0 0.12rem; scale: 0.82; }
.robot-portrait[data-expression="curious"] .robot-head b { rotate: -8deg; }

.robot-portrait[data-expression="shy"] .robot-head {
  background:
    radial-gradient(circle at 13% 72%, rgba(255, 121, 146, 0.7) 0 0.38rem, transparent 0.42rem),
    radial-gradient(circle at 87% 72%, rgba(255, 121, 146, 0.7) 0 0.38rem, transparent 0.42rem),
    #2a2d27;
}
.robot-portrait[data-expression="shy"] .robot-head i { scale: 0.78; animation: none; }
.robot-portrait[data-expression="shy"] .robot-head b { width: 1.1rem; rotate: -5deg; }

.robot-portrait[data-expression="secret"] .robot-head i:first-of-type { scale: 1 0.12; animation: none; }
.robot-portrait[data-expression="secret"] .robot-head b { width: 1rem; }

.robot-portrait[data-expression="surprised"] .robot-head i { scale: 1.35; animation: none; }
.robot-portrait[data-expression="surprised"] .robot-head b {
  width: 0.72rem;
  height: 0.72rem;
  bottom: 0.52rem;
  border: 0.16rem solid #d7ff4f;
  border-radius: 50%;
  background: transparent;
}

.robot-portrait[data-expression="angry"] .robot-head { box-shadow: inset 0 -0.65rem 0 rgba(0, 0, 0, 0.2), 0 0 2.8rem rgba(255, 91, 91, 0.65); }
.robot-portrait[data-expression="angry"] .robot-head i { border-radius: 0.15rem; animation: none; }
.robot-portrait[data-expression="angry"] .robot-head i:first-of-type { rotate: 18deg; }
.robot-portrait[data-expression="angry"] .robot-head i:nth-of-type(2) { rotate: -18deg; }
.robot-portrait[data-expression="angry"] .robot-head b { border-top: 0.18rem solid #d7ff4f; border-radius: 50%; background: transparent; }

.robot-portrait[data-expression="soft"] .robot-head i { scale: 0.82; animation: none; }

.robot-portrait[data-expression="confused"] .robot-head i { animation: none; }
.robot-portrait[data-expression="confused"] .robot-head i:first-of-type { translate: 0 -0.2rem; scale: 1.15; }
.robot-portrait[data-expression="confused"] .robot-head i:nth-of-type(2) { translate: 0 0.16rem; scale: 0.75; }
.robot-portrait[data-expression="confused"] .robot-head b { rotate: 12deg; width: 1.35rem; }

.robot-portrait[data-expression="warm"] .robot-head {
  background:
    radial-gradient(circle at 13% 72%, rgba(255, 121, 146, 0.58) 0 0.35rem, transparent 0.39rem),
    radial-gradient(circle at 87% 72%, rgba(255, 121, 146, 0.58) 0 0.35rem, transparent 0.39rem),
    #2a2d27;
}
.robot-portrait[data-expression="warm"] .robot-head i { scale: 1 0.55; animation: none; }
.robot-portrait[data-expression="warm"] .robot-head b { height: 0.65rem; border-bottom: 0.22rem solid #d7ff4f; border-radius: 50%; background: transparent; }

.robot-portrait[data-expression="excited"] .robot-head i { scale: 1.22; animation: expression-pulse 420ms ease-in-out infinite alternate; }
.robot-portrait[data-expression="excited"] .robot-head b { width: 1rem; height: 0.65rem; border-radius: 0 0 999px 999px; background: #d7ff4f; }

.robot-portrait[data-expression="sleepy"] .robot-head i { scale: 1 0.18; animation: none; }
.robot-portrait[data-expression="sleepy"] .robot-head b { width: 0.7rem; }

.robot-portrait[data-expression="nervous"] .robot-head i { animation: nervous-eyes 220ms steps(2, end) infinite; }
.robot-portrait[data-expression="nervous"] .robot-head b { width: 1.15rem; rotate: -6deg; }

.antenna {
  position: absolute;
  width: 0.25rem;
  height: 1.5rem;
  top: calc(50% - 3.35rem);
  left: 50%;
  border-radius: 999px;
  background: #d7ff4f;
}

.antenna::before {
  content: "";
  position: absolute;
  width: 0.8rem;
  height: 0.8rem;
  top: -0.4rem;
  left: -0.28rem;
  border-radius: 50%;
  background: #d7ff4f;
  box-shadow: 0 0 1rem #d7ff4f;
}

.robot-neck {
  position: absolute;
  width: 2.5rem;
  height: 2rem;
  top: calc(50% + 1.7rem);
  border: 0.18rem solid #d7ff4f;
  border-bottom: 0;
  background: #2a2d27;
}

.robot-arm {
  position: absolute;
  z-index: 3;
  width: 3rem;
  height: 0.65rem;
  left: calc(50% + 1.7rem);
  top: calc(50% + 1rem);
  border: 0.16rem solid #d7ff4f;
  border-radius: 999px;
  background: #2a2d27;
  opacity: 0;
  transform-origin: left center;
}

.dialogue-box[data-motion="lunge-left"] { animation: dialogue-lunge-left 520ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.dialogue-box[data-motion="bounce"] { animation: dialogue-fight-bounce 540ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.dialogue-box[data-motion="swat"] { animation: dialogue-duck 620ms ease-in-out; }
.dialogue-box[data-motion="swat"] .robot-arm {
  opacity: 1;
  animation: robot-swat 260ms ease-in-out 2 alternate;
}

.dialogue-copy {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1rem;
  padding: 1rem;
  overflow: auto;
}

.dialogue-view {
  min-width: 0;
  align-self: stretch;
}

.dialogue-view[hidden] { display: none; }

.dialogue-advance {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 1rem;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.dialogue-advance:focus-visible,
.robot-form input:focus-visible,
.robot-action:focus-visible,
.robot-secondary:focus-visible {
  outline: 4px solid #d7ff4f;
  outline-offset: 3px;
}

.speaker-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #d1d0c6;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.speaker-line span:first-child {
  padding: 0.35rem 0.55rem;
  color: #171914;
  background: #d7ff4f;
}

.transmission-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.transmission-controls > span { color: #808176; }

.sound-toggle {
  min-height: 2rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid #8d8f84;
  border-radius: 999px;
  color: #171914;
  background: #f4f2ea;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.sound-toggle:hover { background: #d7ff4f; }
.sound-toggle:focus-visible { outline: 3px solid #d7ff4f; outline-offset: 2px; }
.sound-toggle[aria-pressed="true"] { color: #fffef9; background: #4b4e45; }
.sound-toggle #sound-icon { padding: 0; color: inherit; background: transparent; }

.dialogue-copy p {
  align-self: center;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 5.4vw, 1.35rem);
  line-height: 1.4;
}

.type-cursor {
  display: inline-block;
  width: 0.5rem;
  height: 1.05em;
  margin-left: 0.18rem;
  background: #171914;
  vertical-align: -0.14em;
  animation: cursor-blink 0.8s steps(1) infinite;
}

.continue-prompt {
  justify-self: end;
  color: #696b61;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.continue-prompt b { color: #171914; animation: prompt-bob 0.85s ease-in-out infinite alternate; }

.robot-form,
.choice-view {
  display: grid;
  align-content: center;
  gap: 0.8rem;
}

.robot-form label {
  color: #696b61;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.robot-form input {
  width: 100%;
  min-height: 3.4rem;
  padding: 0 0.85rem;
  border: 1px solid #a9aa9e;
  border-radius: 0.2rem;
  color: #161713;
  background: #f8f7f1;
  outline: none;
}

.robot-action,
.robot-secondary {
  min-height: 3.4rem;
  padding: 0.75rem 1rem;
  border-radius: 0.2rem;
  font-size: 0.82rem;
  font-weight: 900;
}

.robot-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  color: #171914;
  background: #d7ff4f;
}

.robot-action span { font-size: 1.1rem; }

.robot-secondary {
  border: 1px solid #a9aa9e;
  color: #45473f;
  background: #f8f7f1;
}

.choice-buttons {
  display: grid;
  gap: 0.65rem;
}

@keyframes overlay-in { from { opacity: 0; } }
@keyframes dialogue-rise { from { opacity: 0; transform: translateY(2rem) scale(0.98); } }
@keyframes dog-slide-side { from { opacity: 0; transform: translateX(-135%) rotate(-14deg) scale(0.8); } }
@keyframes dog-float { to { translate: 0 -0.35rem; rotate: 1deg; } }
@keyframes bee-buzz { to { translate: 0 -0.35rem; rotate: 2deg; } }
@keyframes bee-wing { to { transform: scaleY(0.25) rotate(12deg); } }
@keyframes cake-bob { to { translate: 0 -0.45rem; rotate: -2deg; } }
@keyframes bee-flight-path {
  0% { transform: translate(-2rem, 2rem) rotate(-8deg); }
  18% { transform: translate(24vw, -1rem) rotate(4deg); }
  42% { transform: translate(48vw, 2rem) rotate(-3deg); }
  68% { transform: translate(72vw, -2.2rem) rotate(6deg); }
  100% { transform: translate(calc(100vw + 6rem), 1rem) rotate(-2deg); }
}
@keyframes expression-pulse { to { scale: 1.5; filter: brightness(1.25); } }
@keyframes nervous-eyes { 50% { translate: 0.16rem 0; } }
@keyframes dialogue-lunge-left {
  0%, 100% { transform: translateX(0) rotate(0); }
  45% { transform: translateX(-1.5rem) rotate(-1.2deg); }
  70% { transform: translateX(0.35rem) rotate(0.5deg); }
}
@keyframes dialogue-fight-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  32% { transform: translateY(-1.1rem) scale(1.015); }
  58% { transform: translateY(0.45rem) scale(0.99); }
}
@keyframes dialogue-duck {
  0%, 100% { transform: translateY(0) rotate(0); }
  35% { transform: translateY(0.9rem) rotate(-0.8deg); }
  65% { transform: translateY(-0.35rem) rotate(0.5deg); }
}
@keyframes robot-swat {
  from { transform: rotate(-50deg) scaleX(0.7); }
  to { transform: rotate(28deg) scaleX(1.2); }
}
@keyframes dialogue-shout {
  0%, 100% { transform: translate(0); }
  25% { transform: translate(-0.45rem, 0.08rem) rotate(-0.4deg); }
  50% { transform: translate(0.4rem, -0.08rem) rotate(0.35deg); }
  75% { transform: translate(-0.2rem, 0.05rem); }
}
@keyframes cursor-blink { 50% { opacity: 0; } }
@keyframes prompt-bob { to { translate: 0 0.2rem; } }
@keyframes robot-blink { 0%, 46%, 54%, 100% { scale: 1 1; } 50% { scale: 1 0.08; } }
@keyframes breach-shake {
  0%, 100% { transform: translate(0); filter: none; }
  18% { transform: translate(-0.35rem, 0.12rem); filter: contrast(1.5); }
  19% { transform: translate(0.4rem, -0.08rem); }
  52% { transform: translate(0.08rem, 0); }
  53% { transform: translate(-0.55rem, 0.16rem); filter: invert(0.08) contrast(1.8); }
  76% { transform: translate(0.35rem, -0.12rem); }
}
@keyframes signal-shear { to { transform: translate(7%, -3%) skewX(-4deg); } }
@keyframes noise-slice { to { transform: translate(-9%, 7%) scaleX(1.08); } }
@keyframes scan-drop { from { transform: translateY(-70vh); } to { transform: translateY(70vh); } }
@keyframes core-rupture {
  0% { scale: 0.35; rotate: -18deg; opacity: 0; }
  35% { scale: 1; rotate: 0deg; opacity: 1; }
  78% { scale: 1.08; box-shadow: 0 0 0 1px #090b08, 0 0 0 18vw rgba(215, 255, 79, 0.06), 0 0 7rem rgba(215, 255, 79, 0.55); }
  100% { scale: 7; opacity: 0; }
}
@keyframes warning-glitch { 50% { transform: translate(0.15rem, -0.08rem) skewX(9deg); } }
@keyframes code-jump { 50% { transform: translateX(-0.16rem); clip-path: inset(12% 0 18%); } }

@media (max-width: 28rem) {
  .brand span:last-child { max-width: 11rem; }
  .labels span { font-size: 0.64rem; }
  .transmission-controls > span { display: none; }
}

@media (min-width: 48rem) {
  .topbar { min-height: 4.75rem; padding-inline: 4vw; }
  .brand { font-size: 0.76rem; }
  .brand-mark { width: 2rem; height: 2rem; }
  .petition-status { font-size: 0.78rem; }
  .hero {
    width: min(100% - 8vw, 84rem);
    grid-template-columns: minmax(0, 1.1fr) minmax(22rem, 0.72fr);
    grid-template-areas: "copy form" "case form";
    gap: 3.5rem clamp(2rem, 7vw, 7rem);
    align-items: center;
    padding: clamp(3.5rem, 8vw, 7rem) 0;
  }
  h1 { font-size: clamp(3.5rem, 7.3vw, 7.6rem); }
  .lede { margin-top: 1.8rem; font-size: clamp(1.06rem, 2vw, 1.28rem); }
  .signature-panel { padding: clamp(1.6rem, 4vw, 2.8rem); box-shadow: 1.2rem 1.2rem 0 #d9ff53, 0 1.5rem 4rem rgba(27, 29, 23, 0.13); }
  footer { min-height: 3.5rem; padding: 0 4vw; align-items: center; flex-direction: row; }
  .robot-overlay { padding: clamp(1rem, 4vw, 3rem); }
  .dialogue-box { min-height: 12rem; grid-template-columns: clamp(8rem, 18vw, 13rem) 1fr; grid-template-rows: none; }
  .robot-head { width: 6.2rem; height: 5rem; gap: 1.25rem; border-width: 0.25rem; }
  .robot-head i { width: 0.75rem; height: 0.75rem; }
  .robot-head b { width: 2rem; height: 0.4rem; bottom: 0.8rem; }
  .antenna { height: 2.1rem; top: calc(50% - 4.35rem); }
  .robot-neck { width: 3.6rem; height: 3rem; top: calc(50% + 2.3rem); border-width: 0.25rem; }
  .dialogue-copy { padding: clamp(1.25rem, 3vw, 2rem); }
  .dialogue-copy p { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
  .choice-buttons { grid-template-columns: 1fr 1fr; }
  .dog-visitor { left: max(3rem, calc(50% - 34rem)); top: max(2rem, calc(50% - 16rem)); width: 10rem; }
  .bee-visitor { top: max(3rem, calc(50% - 10rem)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
