:root {
  --bg: #fff8df;
  --ink: #101114;
  --muted: #4b4f57;
  --paper: #fffef4;
  --line: #101114;
  --orange: #ff4f1a;
  --blue: #176fff;
  --green: #0b8656;
  --purple: #7a3cff;
  --yellow: #ffd83d;
  --pink: #ff4ba0;
  --cyan: #25d6ff;
  --shadow: 8px 8px 0 var(--line);
  --shadow-soft: 0 18px 45px rgba(16, 17, 20, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(16, 17, 20, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 17, 20, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 15% 8%, rgba(255, 216, 61, 0.38), transparent 28%),
    radial-gradient(circle at 92% 22%, rgba(37, 214, 255, 0.22), transparent 24%),
    var(--bg);
  background-size: 24px 24px, 24px 24px, auto, auto, auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.audio-hot {
  animation: audioPulse 1.1s steps(2, end) infinite;
}

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
}

.noise-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(45deg, var(--orange) 0 10%, transparent 10% 20%, var(--blue) 20% 30%, transparent 30% 40%, var(--yellow) 40% 50%, transparent 50% 100%);
  background-size: 80px 80px;
  animation: hazardSlide 5s linear infinite;
}

.alarm-crawl {
  display: flex;
  gap: 28px;
  width: max-content;
  min-width: 100%;
  border-bottom: 3px solid var(--line);
  background: var(--line);
  color: #fff;
  padding: 8px 0;
  font: 950 0.82rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
  white-space: nowrap;
  animation: crawl 18s linear infinite;
}

.alarm-crawl span {
  display: inline-block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 3px solid var(--line);
  background: rgba(255, 248, 223, 0.9);
  backdrop-filter: blur(12px);
}

.badge {
  display: grid;
  width: 48px;
  aspect-ratio: 1;
  place-items: center;
  border: 3px solid var(--line);
  background: var(--orange);
  color: #fff;
  box-shadow: 4px 4px 0 var(--line);
  font-weight: 950;
}

nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a,
.actions a,
.actions button,
.voice-console button,
.hero-status span,
.wall-controls span,
.cv-download {
  border: 3px solid var(--line);
  background: var(--paper);
  padding: 11px 13px;
  box-shadow: 4px 4px 0 var(--line);
  font: 950 0.78rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}

nav a:hover,
.actions a:hover,
.actions button:hover,
.voice-console button:hover,
.cv-download:hover {
  background: var(--line);
  color: #fff;
}

main {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 18px;
  overflow-x: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(430px, 1.14fr);
  gap: 18px;
  min-height: calc(100vh - 106px);
}

.hero-copy,
.portrait-card,
.intro-grid,
.stat-strip article,
.meme-board,
.photo-storm,
.cv-hero,
.cv-grid article,
.system-grid article,
.transmission,
.voice-rig {
  min-width: 0;
  border: 3px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4.2vw, 60px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 216, 61, 0.58) 0 18%, transparent 18% 34%, rgba(255, 75, 160, 0.2) 34% 54%, transparent 54%),
    var(--paper);
  animation: panelSnap 4s steps(2, end) infinite;
}

.hero-copy::after {
  content: "PABLOBOT";
  position: absolute;
  right: -32px;
  bottom: -22px;
  color: rgba(16, 17, 20, 0.055);
  font-size: clamp(5rem, 13vw, 12rem);
  font-weight: 950;
  line-height: 0.8;
  pointer-events: none;
}

.hero-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.hero-status span {
  background: var(--line);
  color: #fff;
  box-shadow: none;
  padding: 8px 10px;
}

.hero-status span:first-child {
  background: var(--orange);
  animation: blinkLive 0.9s steps(2, end) infinite;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--orange);
  font: 950 0.78rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(3.4rem, 5.75vw, 6.8rem);
  line-height: 0.78;
  text-transform: uppercase;
}

h1 span {
  display: block;
  max-width: 100%;
  color: var(--orange);
  font-size: 0.66em;
  text-shadow: 4px 4px 0 var(--line), 8px 8px 0 var(--cyan);
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 4.7rem);
  line-height: 0.9;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  text-transform: uppercase;
}

p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.55;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 720px;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
}

.zany-stickers,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.zany-stickers {
  margin-top: 16px;
}

.zany-stickers span {
    border: 3px solid var(--line);
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--line);
  padding: 7px 8px;
  color: var(--line);
  font: 950 0.72rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
  animation: stickerWobble 1.8s steps(3, end) infinite;
}

.zany-stickers span:nth-child(2) {
  background: #e5ff67;
  animation-delay: -0.2s;
}

.zany-stickers span:nth-child(3) {
  background: var(--pink);
  color: #fff;
  animation-delay: -0.4s;
}

.zany-stickers span:nth-child(4) {
  background: var(--green);
  color: #fff;
  animation-delay: -0.6s;
}

.zany-stickers span:nth-child(5) {
  background: var(--purple);
  color: #fff;
  animation-delay: -0.8s;
}

.zany-stickers span:nth-child(6) {
  background: var(--cyan);
  animation-delay: -1s;
}

.actions {
  margin-top: 20px;
}

.actions a,
.actions button {
  min-height: 44px;
  padding: 9px 11px;
}

.actions button:first-child,
.actions a:nth-child(2),
.voice-console button:first-of-type {
  background: var(--orange);
  color: #fff;
}

.hero-meter {
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  font: 950 0.75rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}

.hero-meter div {
  height: 16px;
  overflow: hidden;
  border: 3px solid var(--line);
  background: #fff;
}

.hero-meter i {
  display: block;
  width: 99%;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--orange) 0 16px, var(--yellow) 16px 32px, var(--cyan) 32px 48px);
  animation: meterCharge 0.9s linear infinite;
}

.portrait-card {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 570px;
  margin: 0;
  overflow: hidden;
  box-shadow: var(--shadow), var(--shadow-soft);
}

#pabloSignal {
  width: 100%;
  height: 100%;
  min-height: 530px;
  display: block;
}

figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border-top: 3px solid var(--line);
  background: var(--paper);
  font: 950 0.9rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}

.section {
  margin-top: 44px;
}

.voice-rig,
.intro-grid,
.transmission {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 18px;
  align-items: center;
  padding: 22px;
}

.voice-rig h2,
.intro-grid h2,
.transmission h2 {
  margin-bottom: 0;
}

.voice-console {
  display: grid;
  gap: 10px;
}

.bot-form {
  display: grid;
  gap: 8px;
}

.unlock-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.bot-label {
  font: 950 0.74rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}

.unlock-strip label {
  font: 950 0.7rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}

.bot-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.bot-input-row input,
.unlock-strip input {
  min-width: 0;
  border: 3px solid var(--line);
  background: #fff;
  padding: 10px 12px;
  color: var(--ink);
  font: 850 0.9rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.unlock-strip input {
  min-height: 42px;
}

.bot-input-row input:focus,
.unlock-strip input:focus {
  outline: 4px solid var(--yellow);
}

.bot-transcript {
  display: grid;
  gap: 8px;
  max-height: 230px;
  overflow: auto;
  border: 3px solid var(--line);
  background: #fff;
  padding: 10px;
}

.bot-message {
  border: 2px solid var(--line);
  background: var(--paper);
  padding: 9px;
  font-size: 0.9rem;
  line-height: 1.35;
}

.bot-message strong {
  display: block;
  margin-bottom: 4px;
  font: 950 0.68rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}

.bot-message.user {
  background: #f2f6ff;
}

.bot-message.bot {
  background: #fff0f7;
}

.voice-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.voice-readout {
  min-height: 56px;
  border: 3px solid var(--line);
  background: #111;
  color: #73ff7c;
  padding: 14px;
  font: 950 0.92rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stat-strip article,
.system-grid article,
.cv-grid article {
  padding: 18px;
}

.stat-strip span,
.cv-grid span,
.meme-grid span {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--orange);
  font: 950 0.78rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}

.stat-strip strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.35rem;
  text-transform: uppercase;
}

.meme-board,
.photo-storm {
  padding: 22px;
}

.meme-board {
  background:
    repeating-linear-gradient(135deg, rgba(23, 111, 255, 0.18) 0 12px, rgba(255, 216, 61, 0.2) 12px 24px),
    var(--paper);
}

.meme-head,
.section-head {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 16px;
}

.meme-grid,
.system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.meme-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
}

.meme-grid article {
  min-width: 0;
  border: 3px solid var(--line);
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--line);
  padding: 18px;
}

.meme-main {
  background: #fff0f7 !important;
}

.stamp,
.meme-grid span {
  border: 3px solid var(--line);
  background: var(--orange);
  color: #fff;
  padding: 7px 9px;
  transform: rotate(-2deg);
}

.meme-grid article:nth-child(2) span {
  background: var(--purple);
}

.meme-grid article:nth-child(3) span {
  background: var(--green);
}

.photo-storm {
  background:
    linear-gradient(135deg, rgba(255, 75, 160, 0.18), transparent 34%),
    linear-gradient(315deg, rgba(37, 214, 255, 0.18), transparent 38%),
    var(--paper);
}

.wall-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 14px;
}

.wall-controls span {
  background: var(--line);
  color: #fff;
  box-shadow: 3px 3px 0 var(--orange);
}

.wall-controls span:nth-child(2) {
  background: var(--purple);
}

.wall-controls span:nth-child(3) {
  background: var(--green);
}

.wall-controls span:nth-child(4) {
  background: var(--pink);
}

.section-head p {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(1rem, 1.45vw, 1.35rem);
}

.pablo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
  max-height: min(980px, 145vh);
  overflow: hidden;
  border: 3px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 216, 61, 0.14), rgba(255, 75, 160, 0.18)),
    var(--line);
  padding: 8px;
}

.pablo-tile {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid var(--line);
  background: var(--paper);
  box-shadow: 3px 3px 0 rgba(255, 255, 255, 0.2);
  animation: tilePanic 2.8s steps(5, end) infinite;
}

.pablo-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.pablo-tile figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  border: 0;
  background: rgba(16, 17, 20, 0.82);
  color: #fff;
  padding: 3px;
  font-size: 0.55rem;
  text-align: center;
}

.pablo-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 4px solid transparent;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 42%) border-box;
  pointer-events: none;
  mix-blend-mode: screen;
}

.pablo-tile:nth-child(5n) img {
  filter: saturate(1.8) contrast(1.12);
}

.pablo-tile:nth-child(7n) img {
  filter: hue-rotate(60deg) saturate(1.6);
}

.pablo-tile:nth-child(11n) img {
  filter: grayscale(1) contrast(1.4);
}

.pablo-tile:nth-child(13n) {
  transform: rotate(2deg);
}

.pablo-tile:nth-child(17n) {
  transform: rotate(-2deg);
}

.cv-zone {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
  gap: 18px;
  align-items: start;
}

.cv-hero {
  position: sticky;
  top: 100px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(255, 216, 61, 0.58), transparent 34%),
    var(--paper);
}

.cv-hero p:not(.eyebrow) {
  color: var(--ink);
  font-size: clamp(1.04rem, 1.25vw, 1.18rem);
}

.cv-download {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 12px;
  background: var(--blue);
  color: #fff;
}

.cv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cv-grid article:nth-child(2n) {
  background: #f2fff7;
}

.cv-grid article:nth-child(3n) {
  background: #f2f6ff;
}

.icon {
  display: grid;
  width: 50px;
  aspect-ratio: 1;
  place-items: center;
  margin-bottom: 58px;
  border: 3px solid var(--line);
  color: #fff;
  background: var(--blue);
  box-shadow: 4px 4px 0 var(--line);
  font: 950 1rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.system-grid article:nth-child(2) .icon {
  background: var(--green);
}

.system-grid article:nth-child(3) .icon {
  background: var(--purple);
}

.system-grid article:nth-child(4) .icon {
  background: var(--orange);
}

.transmission {
  margin-bottom: 42px;
}

@keyframes crawl {
  from { transform: translateX(0); }
  to { transform: translateX(-48%); }
}

@keyframes hazardSlide {
  from { background-position: 0 0; }
  to { background-position: 160px 80px; }
}

@keyframes panelSnap {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(2px, -2px); }
}

@keyframes blinkLive {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes meterCharge {
  from { transform: translateX(-18%); }
  to { transform: translateX(0); }
}

@keyframes stickerWobble {
  0%, 100% { transform: rotate(-1deg); }
  50% { transform: rotate(2deg) translateY(-2px); }
}

@keyframes tilePanic {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2) saturate(1.35); }
}

@keyframes audioPulse {
  0%, 100% { background-color: var(--bg); }
  50% { background-color: #ffe2f0; }
}

/* Refined chaos layer */
:root {
  --bg: #fff8ea;
  --paper: #fffdf3;
  --muted: #3f444b;
  --line: #141315;
  --orange: #f4511e;
  --blue: #1c63d8;
  --green: #0a7a54;
  --purple: #6842d9;
  --yellow: #ffd647;
  --pink: #e6498f;
  --cyan: #18bfd6;
  --shadow: 5px 5px 0 rgba(20, 19, 21, 0.95);
  --shadow-soft: 0 24px 80px rgba(20, 19, 21, 0.16);
}

body {
  background:
    linear-gradient(90deg, rgba(20, 19, 21, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(20, 19, 21, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 13% 9%, rgba(255, 214, 71, 0.28), transparent 26%),
    radial-gradient(circle at 90% 18%, rgba(24, 191, 214, 0.15), transparent 24%),
    linear-gradient(135deg, rgba(244, 81, 30, 0.06), transparent 38%),
    var(--bg);
  background-size: 32px 32px, 32px 32px, auto, auto, auto, auto;
}

.noise-layer {
  opacity: 0.04;
  background-size: 132px 132px;
  animation-duration: 18s;
}

.alarm-crawl {
  gap: 34px;
  border-bottom-width: 1px;
  padding: 6px 0;
  background: rgba(20, 19, 21, 0.96);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  animation-duration: 34s;
}

.site-header {
  padding: 12px clamp(14px, 2vw, 24px);
  border-bottom-width: 1px;
  background: rgba(255, 248, 234, 0.82);
  backdrop-filter: blur(18px);
}

.badge {
  width: 44px;
  border-width: 2px;
  box-shadow: 3px 3px 0 var(--line);
}

nav {
  gap: 7px;
}

nav a,
.actions a,
.actions button,
.voice-console button,
.hero-status span,
.wall-controls span,
.cv-download {
  border-width: 2px;
  box-shadow: 3px 3px 0 rgba(20, 19, 21, 0.95);
  padding: 10px 12px;
  border-radius: 2px;
}

.hero {
  gap: 22px;
  min-height: calc(100vh - 96px);
}

.hero-copy,
.portrait-card,
.intro-grid,
.stat-strip article,
.meme-board,
.photo-storm,
.cv-hero,
.cv-grid article,
.system-grid article,
.transmission,
.voice-rig {
  border-width: 2px;
  box-shadow: var(--shadow), 0 12px 40px rgba(20, 19, 21, 0.08);
}

.hero-copy {
  background:
    linear-gradient(135deg, rgba(255, 214, 71, 0.42) 0 16%, transparent 16% 35%, rgba(230, 73, 143, 0.13) 35% 52%, transparent 52%),
    linear-gradient(45deg, rgba(24, 191, 214, 0.09), transparent 48%),
    var(--paper);
  animation: panelFloat 16s ease-in-out infinite;
}

.hero-copy::after {
  right: -22px;
  bottom: -14px;
  color: rgba(20, 19, 21, 0.038);
}

.hero-status span:first-child {
  animation-duration: 2.4s;
}

h1 {
  line-height: 0.82;
}

h1 span {
  color: var(--orange);
  text-shadow: 2px 2px 0 var(--line), 5px 5px 0 rgba(24, 191, 214, 0.8);
}

.zany-stickers span {
  border-width: 2px;
  box-shadow: 2px 2px 0 var(--line);
  animation-duration: 7.5s;
  animation-timing-function: ease-in-out;
}

.actions {
  align-items: center;
}

.actions a,
.actions button {
  min-height: 42px;
}

.hero-meter div {
  height: 14px;
  border-width: 2px;
}

.portrait-card {
  border-color: rgba(20, 19, 21, 0.92);
}

figcaption {
  border-top-width: 2px;
}

.voice-readout,
.bot-input-row input,
.unlock-strip input,
.bot-transcript,
.bot-message,
.meme-grid article,
.pablo-wall,
.pablo-tile,
.icon {
  border-width: 2px;
}

.voice-readout {
  background: #0e1110;
  color: #9af5a2;
  box-shadow: inset 0 0 0 1px rgba(154, 245, 162, 0.16);
}

.photo-storm {
  background:
    linear-gradient(135deg, rgba(230, 73, 143, 0.11), transparent 34%),
    linear-gradient(315deg, rgba(24, 191, 214, 0.12), transparent 38%),
    var(--paper);
}

.pablo-wall {
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 7px;
  max-height: min(840px, 128vh);
}

.pablo-tile {
  animation-duration: 7.2s;
  animation-timing-function: ease-in-out;
}

.pablo-tile:nth-child(29n)::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 8px;
  width: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(20, 19, 21, 0.88);
  box-shadow: 7px 0 0 rgba(20, 19, 21, 0.88);
  opacity: 0.28;
}

.gato-negro {
  position: fixed;
  right: clamp(10px, 1.6vw, 22px);
  bottom: clamp(9px, 1.5vw, 20px);
  z-index: 35;
  width: 30px;
  height: 21px;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 0.12;
  filter: drop-shadow(0 2px 1px rgba(255, 248, 234, 0.58));
  transform: translate(6px, 12px);
  transition: opacity 220ms ease, transform 220ms ease, filter 220ms ease;
}

.gato-negro:hover,
.gato-negro:focus-visible,
body.gato-awake .gato-negro {
  opacity: 0.86;
  transform: translateY(0);
  outline: 0;
}

.gato-body,
.gato-head,
.gato-tail {
  position: absolute;
  display: block;
  background: #101114;
}

.gato-body {
  right: 6px;
  bottom: 2px;
  width: 19px;
  height: 12px;
  border-radius: 12px 12px 8px 8px;
}

.gato-head {
  right: 0;
  bottom: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.gato-head::before,
.gato-head::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 0;
  height: 0;
  border-right: 4px solid transparent;
  border-bottom: 7px solid #101114;
  border-left: 4px solid transparent;
}

.gato-head::before {
  left: 0;
  transform: rotate(-22deg);
}

.gato-head::after {
  right: -1px;
  transform: rotate(24deg);
}

.gato-tail {
  left: 0;
  bottom: 10px;
  width: 14px;
  height: 5px;
  border-radius: 999px;
  transform: rotate(-32deg);
  transform-origin: right center;
}

.gato-tail::before {
  content: "";
  position: absolute;
  left: -3px;
  top: -6px;
  width: 5px;
  height: 12px;
  border: 4px solid #101114;
  border-right: 0;
  border-bottom: 0;
  border-radius: 999px 0 0 0;
  background: transparent;
}

body.gato-awake .noise-layer {
  opacity: 0.075;
}

body.gato-awake .portrait-card {
  box-shadow: var(--shadow), 0 0 0 1px rgba(154, 245, 162, 0.25), 0 28px 90px rgba(20, 19, 21, 0.18);
}

body.gato-awake .hero-meter i {
  background: repeating-linear-gradient(90deg, #101114 0 14px, #9af5a2 14px 28px, var(--cyan) 28px 42px);
}

@keyframes panelFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(1px, -1px, 0); }
}

@media (max-width: 1060px) {
  .hero,
  .voice-rig,
  .intro-grid,
  .transmission,
  .section-head,
  .meme-head,
  .cv-zone {
    grid-template-columns: 1fr;
  }

  .cv-hero {
    position: static;
  }

  .stat-strip,
  .system-grid,
  .cv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meme-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
  }

  nav {
    flex: 1;
  }

  nav a {
    flex: 1 1 32%;
    text-align: center;
  }

  main {
    padding: 10px;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy,
  .portrait-card,
  .intro-grid,
  .stat-strip article,
  .meme-board,
  .photo-storm,
  .cv-hero,
  .cv-grid article,
  .system-grid article,
  .transmission,
  .voice-rig {
    box-shadow: 5px 5px 0 var(--line);
  }

  .hero-copy,
  .intro-grid,
  .meme-board,
  .photo-storm,
  .cv-hero,
  .transmission,
  .voice-rig {
    padding: 20px;
  }

  h1 {
    font-size: clamp(2.85rem, 13.5vw, 4.2rem);
  }

  h1 span {
    text-shadow: 2px 2px 0 var(--line);
  }

  h2 {
    font-size: clamp(1.85rem, 9vw, 3rem);
  }

  .stat-strip,
  .system-grid,
  .cv-grid {
    grid-template-columns: 1fr;
  }

  .portrait-card {
    min-height: 450px;
  }

  #pabloSignal {
    min-height: 390px;
  }

  figcaption {
    display: grid;
  }

  .pablo-wall {
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    max-height: 860px;
  }

  .voice-buttons {
    grid-template-columns: 1fr;
  }

  .bot-input-row {
    grid-template-columns: 1fr;
  }

  .unlock-strip {
    grid-template-columns: 1fr;
  }

  .hero-meter {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
