/* =========================================================
   anthropig — helpful. harmless. hungry.
   ========================================================= */

:root {
  --cream: #f6f0e6;
  --paper: #fbf8f2;
  --cream-deep: #ece2d2;
  --ink: #2a1f1a;
  --ink-soft: #5d4b40;
  --ink-faint: #8f7c6f;
  --coral: #c4552c;
  --coral-deep: #9f4020;
  --orange: #e57a4b;
  --pink: #f2bfae;
  --pink-soft: #f8e1d8;
  --pink-deep: #e59b88;
  --line: rgba(42, 31, 26, 0.14);
  --line-strong: rgba(42, 31, 26, 0.28);

  --display: "Arial Rounded MT Bold", "Nunito", "Varela Round", ui-rounded, "SF Pro Rounded",
    "Segoe UI", "Trebuchet MS", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Consolas", "Liberation Mono", Menlo, monospace;

  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 32px;
  --header-h: 76px;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.12 0 0 0 0 0.1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --stamp-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.4 2.05'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: var(--noise);
  opacity: 0.22;
  mix-blend-mode: multiply;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

code {
  font-family: var(--mono);
}

h1,
h2,
h3,
p,
figure,
dl,
dd,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--pink);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 6px;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

.icon-x {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex: none;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-shadow: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0.8em 1.4em;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--btn-shadow);
  transform: translateY(0);
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out),
    background-color 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--btn-shadow);
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--btn-shadow);
  transition-duration: 0.06s;
}

.btn-primary {
  background: var(--coral);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--coral-deep);
}

.btn-ghost {
  background: transparent;
}

.btn-ghost:hover {
  background: var(--paper);
}

.btn-dark {
  background: var(--ink);
  color: var(--cream);
  --btn-shadow: var(--coral-deep);
}

.btn-sm {
  min-height: 40px;
  padding: 0.6em 1.15em;
  font-size: 0.95rem;
  box-shadow: 0 3px 0 var(--btn-shadow);
}

.btn-sm:hover {
  box-shadow: 0 5px 0 var(--btn-shadow);
}

.btn-lg {
  min-height: 56px;
  padding: 0.95em 1.6em;
  font-size: 1.08rem;
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease-spring);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  font-size: 1.15rem;
  box-shadow: 0 4px 0 var(--coral-deep);
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}

.btn-icon:hover {
  transform: translateY(-2px) rotate(-6deg);
  box-shadow: 0 6px 0 var(--coral-deep);
}

.btn-icon:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--coral-deep);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s, height 0.3s var(--ease-out);
}

.site-header.is-scrolled {
  --header-h: 64px;
  background: rgba(246, 240, 230, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -18px rgba(42, 31, 26, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  object-fit: cover;
  transition: transform 0.35s var(--ease-spring);
}

.brand:hover .brand-logo {
  transform: rotate(-8deg) scale(1.06);
}

.brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s, background-color 0.2s;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(242, 191, 174, 0.45);
}

.nav-x .icon-x {
  font-size: 0.85rem;
}

.nav-buy {
  margin-left: 8px;
}

.header-mobile {
  display: none;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  background: var(--paper);
  display: grid;
  place-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Shared section bits ---------- */
.section {
  position: relative;
  padding-block: clamp(80px, 11vw, 150px);
}

.section-head {
  margin-bottom: clamp(36px, 5vw, 64px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.kicker-num {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 22px;
  padding-inline: 6px;
  border-radius: 999px;
  border: 1.5px solid var(--coral);
  color: var(--coral);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.section-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.muted {
  color: var(--ink-faint);
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (scripting: none) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(48px, 6vw, 88px);
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + 8px);
}

.hero-paper {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 70% at 78% 45%, rgba(242, 191, 174, 0.55), transparent 70%),
    radial-gradient(40% 50% at 8% 90%, rgba(229, 122, 75, 0.12), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 40px;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
  opacity: 0.9;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  min-height: min(calc(100vh - var(--header-h) - 16px), 840px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-block: 8px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 10px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(251, 248, 242, 0.7);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}

.sol-glyph {
  display: inline-grid;
  gap: 2.5px;
  width: 16px;
}

.sol-glyph i {
  display: block;
  height: 3px;
  border-radius: 1px;
  background: linear-gradient(90deg, #9b7bd8, #4fc8a8);
  transform: skewX(-24deg);
  opacity: 0.85;
}

.sol-glyph i:nth-child(2) {
  transform: skewX(24deg);
}

.wordmark {
  margin: 18px 0 0.26em -0.04em;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.4rem, 8.4vw, 8rem);
  line-height: 0.86;
  letter-spacing: -0.06em;
  color: var(--ink);
}

.wm-pig {
  position: relative;
  color: var(--coral);
}

.wm-pig::after {
  content: "";
  position: absolute;
  left: 0.04em;
  right: 0.1em;
  bottom: -0.02em;
  height: 0.09em;
  border-radius: 999px;
  background: var(--pink);
  z-index: -1;
}

.ticker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: clamp(22px, 3vw, 34px);
}

.ticker-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ticker-meta {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

.hook {
  display: grid;
  gap: 2px;
  margin-bottom: 18px;
  font-family: var(--display);
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hook-line {
  display: block;
}

.hook b {
  position: relative;
  font-weight: 800;
  background-image: linear-gradient(transparent 62%, var(--pink) 62%, var(--pink) 92%, transparent 92%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size 0.9s var(--ease-out);
}

.hook.is-in b {
  background-size: 100% 100%;
}

.hook.is-in .hook-line:nth-child(2) b {
  transition-delay: 0.25s;
}

.hook.is-in .hook-line:nth-child(3) b {
  transition-delay: 0.5s;
  color: var(--coral);
}

.hero-support {
  max-width: 34ch;
  margin-bottom: clamp(24px, 3vw, 32px);
  font-size: 1.12rem;
  color: var(--ink-soft);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* ----- Hero stage ----- */
.hero-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.08;
  max-height: 780px;
  justify-self: center;
  --mx: 0;
  --my: 0;
}

.stage-plate {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stage-blob {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 78%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), transparent 55%),
    linear-gradient(160deg, var(--pink-soft), var(--pink) 70%, var(--pink-deep));
  box-shadow: inset 0 -20px 60px rgba(196, 85, 44, 0.12);
  animation: blob 14s ease-in-out infinite;
}

.stage-ring {
  position: absolute;
  left: 50%;
  top: 52%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  border: 1.5px dashed var(--line-strong);
}

.ring-a {
  width: 94%;
  animation: spin 80s linear infinite;
}

.ring-b {
  width: 62%;
  border-style: solid;
  border-color: rgba(196, 85, 44, 0.25);
}

.ring-a::after {
  content: "";
  position: absolute;
  top: 8%;
  left: 14%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 5px rgba(196, 85, 44, 0.18);
}

.stage-grid {
  position: absolute;
  inset: 6% 4%;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 28px 28px;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent);
  mask-image: radial-gradient(closest-side, #000 30%, transparent);
  opacity: 0.7;
}

.crosshair {
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: var(--ink-soft);
  border-style: solid;
  border-width: 0;
  opacity: 0.55;
}

.ch-tl {
  top: 4%;
  left: 4%;
  border-top-width: 2px;
  border-left-width: 2px;
}

.ch-br {
  bottom: 4%;
  right: 4%;
  border-bottom-width: 2px;
  border-right-width: 2px;
}

.float-label {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: rgba(251, 248, 242, 0.85);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  box-shadow: 0 6px 18px -10px rgba(42, 31, 26, 0.35);
  transform: translate3d(calc(var(--mx) * var(--depth, 10px)), calc(var(--py, 0px) + var(--my) * var(--depth, 10px)), 0);
  animation: bob 7s ease-in-out infinite;
}

.float-label i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

.fl-1 {
  top: 13%;
  left: 0;
  --depth: -14px;
}

.fl-2 {
  top: 40%;
  right: -2%;
  --depth: 18px;
  animation-delay: -2.3s;
}

.fl-2 i {
  background: var(--pink-deep);
}

.fl-3 {
  bottom: 18%;
  left: 3%;
  --depth: 10px;
  animation-delay: -4.6s;
}

.fl-3 i {
  background: var(--ink);
}

.feed-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.crumb-p {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform, opacity;
  pointer-events: none;
}

.crumb-p.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
}

.crumb-p.sq {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--ink);
}

.crumb-p.ring {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--pink-deep);
}

.crumb-p.tick {
  width: 6px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(var(--coral) 0 0) center / 2px 100% no-repeat;
}

.crumb-p.tick::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 30%;
  height: 45%;
  border-radius: 1.5px;
  background: var(--coral);
}

.crumb-p.glyph {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink-soft);
}

.mascot {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 2%;
  width: min(86%, 560px);
  translate: -50% 0;
  animation: float 6.5s ease-in-out infinite;
}

.mascot::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: -1.5%;
  height: 4.5%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(42, 31, 26, 0.28), transparent);
  z-index: -1;
  animation: shadow 6.5s ease-in-out infinite;
}

.mascot-img {
  width: 100%;
  height: auto;
  transform-origin: 50% 90%;
  transform: translate3d(calc(var(--mx) * 6px), calc(var(--my) * 4px), 0) rotate(calc(var(--mx) * 1.5deg));
  transition: transform 0.6s var(--ease-out);
  filter: drop-shadow(0 18px 24px rgba(42, 31, 26, 0.16));
}

.mascot.chomp .mascot-img {
  animation: chomp 0.32s var(--ease-out);
}

.specimen-tag {
  position: absolute;
  z-index: 3;
  right: 2%;
  bottom: 7%;
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.35;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  rotate: 3deg;
  box-shadow: 3px 3px 0 var(--ink);
}

.specimen-tag span:first-child {
  font-weight: 700;
  color: var(--coral);
  letter-spacing: 0.18em;
}

/* =========================================================
   CONTRACT STRIP
   ========================================================= */
.ca-section {
  position: relative;
  z-index: 3;
  margin-top: clamp(-40px, -3vw, -16px);
  padding-bottom: 8px;
}

.ca-card {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 2.4vw, 28px);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(196, 85, 44, 0.06) 0 4px, transparent 4px) 0 0 / 22px 100%,
    var(--paper);
  box-shadow: 8px 8px 0 var(--pink);
}

.ca-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.ca-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink);
}

.ca-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.ca-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  animation: pulse 2.2s ease-in-out infinite;
}

.ca-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.ca-value {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--line-strong);
  background: var(--cream);
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-all;
  user-select: all;
}

.btn-copy {
  flex: none;
  min-width: 124px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--cream);
  --btn-shadow: var(--coral);
}

.btn-copy.is-copied {
  background: var(--coral);
  --btn-shadow: var(--ink);
}

.btn-copy.is-copied .copy-label {
  animation: pop 0.35s var(--ease-spring);
}

.ca-note {
  font-size: 0.88rem;
  color: var(--ink-faint);
}

.ca-note a {
  color: var(--coral-deep);
  font-weight: 600;
  text-underline-offset: 3px;
}

/* =========================================================
   PRINCIPLES
   ========================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 14px 14px clamp(24px, 3vw, 34px);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--paper);
  transition: transform 0.45s var(--ease-spring), box-shadow 0.35s var(--ease-out);
  box-shadow: 0 0 0 var(--ink);
}

.card.is-in {
  transition: opacity 0.8s var(--ease-out), transform 0.45s var(--ease-spring), box-shadow 0.35s var(--ease-out);
}

.card:hover {
  transform: translateY(-8px) rotate(-0.8deg);
  box-shadow: 8px 10px 0 var(--ink);
}

.card-hungry:hover {
  transform: translateY(-8px) rotate(0.8deg);
}

.card-art {
  position: relative;
  height: clamp(170px, 18vw, 220px);
  margin-bottom: 24px;
  border-radius: calc(var(--radius-lg) - 10px);
  overflow: hidden;
}

.card-index,
.card-title,
.card-quote {
  padding-inline: clamp(10px, 1.5vw, 18px);
}

.card-index {
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
}

.card-title {
  margin-bottom: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.card-quote {
  font-size: 1.18rem;
  color: var(--ink-soft);
}

/* Helpful art */
.art-helpful {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.6), transparent 40%),
    var(--pink-soft);
}

.bubble {
  position: absolute;
  top: 22%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-radius: 22px 22px 22px 6px;
  background: var(--ink);
  translate: -20% 0;
  transition: transform 0.4s var(--ease-spring);
}

.bubble i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cream);
  animation: typing 1.4s ease-in-out infinite;
}

.bubble i:nth-child(2) {
  animation-delay: 0.18s;
}

.bubble i:nth-child(3) {
  animation-delay: 0.36s;
}

.snout {
  position: absolute;
  left: 22%;
  bottom: 14%;
  width: 92px;
  height: 66px;
  border-radius: 50%;
  background: linear-gradient(170deg, #f7c6b6, var(--pink-deep));
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: transform 0.45s var(--ease-spring);
}

.snout i {
  width: 14px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
}

.card-helpful:hover .bubble {
  transform: translateY(-8px) scale(1.06);
}

.card-helpful:hover .snout {
  transform: rotate(-8deg) scale(1.05);
}

/* Harmless art */
.art-harmless {
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--cream);
}

.flask {
  position: absolute;
  left: 50%;
  bottom: 14%;
  width: 92px;
  height: 104px;
  translate: -50% 0;
  border: 3px solid var(--ink);
  border-top: 0;
  border-radius: 10px 10px 46px 46px;
  background: rgba(251, 248, 242, 0.7);
  overflow: hidden;
}

.flask::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% 0;
  width: 54px;
  height: 3px;
  background: var(--ink);
}

.liquid {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  background: linear-gradient(var(--pink), var(--pink-deep));
  transition: height 0.6s var(--ease-out);
}

.liquid::before {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  top: -6px;
  height: 12px;
  border-radius: 50%;
  background: var(--pink);
}

.flask i {
  position: absolute;
  bottom: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  animation: bubble 2.8s ease-in infinite;
}

.flask i:nth-of-type(1) {
  left: 28%;
}

.flask i:nth-of-type(2) {
  left: 55%;
  animation-delay: 0.9s;
}

.flask i:nth-of-type(3) {
  left: 42%;
  animation-delay: 1.8s;
}

.no-access {
  position: absolute;
  top: 16%;
  right: 10%;
  padding: 6px 10px;
  border: 2.5px solid var(--coral);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--coral);
  rotate: 12deg;
  -webkit-mask-image: var(--stamp-mask);
  mask-image: var(--stamp-mask);
  transition: transform 0.4s var(--ease-spring);
}

.card-harmless:hover .liquid {
  height: 64%;
}

.card-harmless:hover .no-access {
  transform: scale(1.12);
}

/* Hungry art */
.art-hungry {
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.35), transparent 40%),
    linear-gradient(165deg, #f0a07c, var(--orange));
}

.trough {
  position: absolute;
  left: 50%;
  bottom: 16%;
  width: 150px;
  height: 46px;
  translate: -50% 0;
  border: 3px solid var(--ink);
  border-radius: 6px 6px 40px 40px;
  background: var(--paper);
  z-index: 1;
}

.trough::before {
  content: "";
  position: absolute;
  left: -14px;
  right: -14px;
  top: -3px;
  height: 8px;
  border-radius: 6px;
  background: var(--ink);
}

.crumb {
  position: absolute;
  top: -10%;
  left: 50%;
  width: 12px;
  height: 12px;
  background: var(--ink);
  border-radius: 3px;
  animation: drop 2.4s cubic-bezier(0.5, 0, 0.75, 0) infinite;
}

.crumb.c1 {
  margin-left: -44px;
}

.crumb.c2 {
  margin-left: -10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper);
  animation-delay: 0.6s;
}

.crumb.c3 {
  margin-left: 24px;
  width: 6px;
  height: 18px;
  border-radius: 2px;
  background: var(--coral-deep);
  animation-delay: 1.2s;
}

.crumb.c4 {
  margin-left: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: transparent;
  animation-delay: 1.8s;
}

.card-hungry:hover .crumb {
  animation-duration: 1.2s;
}

.card-hungry:hover .trough {
  animation: wiggle 0.5s ease-in-out infinite;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  background:
    linear-gradient(180deg, transparent, rgba(236, 226, 210, 0.6) 30%, rgba(236, 226, 210, 0.6) 70%, transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  grid-template-areas:
    "lead doc"
    "stamps doc";
  gap: clamp(40px, 6vw, 80px) clamp(32px, 5vw, 72px);
  align-items: start;
}

.about-lead {
  grid-area: lead;
}

.about-quote {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.q-line {
  display: block;
}

.q-line + .q-line {
  margin-top: 0.12em;
  padding-left: clamp(0px, 6vw, 90px);
}

.about-quote em {
  font-style: normal;
  color: var(--coral);
}

.pig-word {
  position: relative;
  display: inline-block;
  color: var(--ink) !important;
  z-index: 0;
}

.pig-word::before {
  content: "";
  position: absolute;
  inset: 12% -10% 4% -8%;
  border-radius: 50% 44% 52% 46%;
  background: var(--pink);
  z-index: -1;
  rotate: -4deg;
}

.about-doc {
  grid-area: doc;
  position: relative;
  padding: clamp(26px, 3vw, 40px) clamp(22px, 3vw, 36px) clamp(26px, 3vw, 36px) clamp(44px, 4.5vw, 64px);
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent calc(clamp(30px, 3vw, 44px) - 1px), rgba(196, 85, 44, 0.45) calc(clamp(30px, 3vw, 44px) - 1px), rgba(196, 85, 44, 0.45) clamp(30px, 3vw, 44px), transparent clamp(30px, 3vw, 44px)),
    repeating-linear-gradient(transparent 0 31px, rgba(42, 31, 26, 0.09) 31px 32px),
    var(--paper);
  box-shadow:
    0 1px 0 var(--line),
    0 24px 50px -28px rgba(42, 31, 26, 0.45);
  rotate: 1.2deg;
}

.about-doc::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 110px;
  height: 28px;
  translate: -50% 0;
  rotate: -3deg;
  background: rgba(242, 191, 174, 0.75);
  border-radius: 3px;
}

.doc-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1.5px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.definition dt {
  margin-bottom: 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.pos {
  font-family: var(--body);
  font-weight: 400;
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0;
  color: var(--ink-faint);
}

.definition dd p {
  font-size: clamp(1.1rem, 1.6vw, 1.28rem);
  line-height: 32px;
}

.definition .emph {
  font-weight: 700;
  color: var(--coral);
}

.doc-match {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 18px;
  margin: 24px 0;
  padding: 14px 16px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 10px;
  background: rgba(246, 240, 230, 0.8);
  font-family: var(--mono);
  font-size: 0.84rem;
}

.m-k {
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.m-v {
  font-weight: 700;
}

.m-ok {
  color: var(--coral);
}

.doc-facts {
  display: grid;
  gap: 0;
}

.doc-facts li {
  position: relative;
  padding-left: 22px;
  line-height: 32px;
  color: var(--ink-soft);
}

.doc-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--coral);
  border-bottom: 2px solid var(--coral);
  rotate: -45deg;
}

.stamps {
  grid-area: stamps;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.stamp {
  display: inline-block;
  padding: 12px 22px;
  border: 4px double var(--coral);
  border-radius: 10px;
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(1.1rem, 2.3vw, 1.7rem);
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--coral);
  -webkit-mask-image: var(--stamp-mask);
  mask-image: var(--stamp-mask);
  -webkit-mask-size: 180px 180px;
  mask-size: 180px 180px;
}

.stamp-1 {
  rotate: -4deg;
}

.stamp-2 {
  rotate: 2.5deg;
  margin-left: clamp(16px, 5vw, 80px);
  color: var(--ink-soft);
  border-color: var(--ink-soft);
}

.stamp-3 {
  rotate: -1.5deg;
  margin-left: clamp(4px, 2vw, 28px);
  color: var(--coral-deep);
  border-color: var(--coral-deep);
}

.stamp.reveal {
  transform: scale(1.5);
  transition: opacity 0.25s ease-out, transform 0.45s var(--ease-spring);
  transition-delay: var(--d, 0s);
}

.stamp.reveal.is-in {
  transform: none;
}

/* =========================================================
   BANNER BREAK
   ========================================================= */
.banner-break {
  position: relative;
  border-block: 2px solid var(--ink);
  background: var(--ink);
}

.banner-frame {
  position: relative;
  height: clamp(190px, 36vw, 560px);
  overflow: hidden;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 50%;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.08);
  will-change: transform;
}

.banner-ticker {
  overflow: hidden;
  background: var(--coral);
  border-top: 2px solid var(--ink);
  color: var(--paper);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.ticker-track span {
  padding: 14px 26px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.ticker-track span:nth-child(4n) {
  font-family: var(--mono);
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  color: var(--ink);
  align-self: center;
}

.ticker-track span::after {
  content: "\2022";
  margin-left: 52px;
  opacity: 0.45;
}

/* =========================================================
   THE PIG
   ========================================================= */
.pig-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
}

.pig-portrait {
  position: relative;
}

.pig-portrait::before {
  content: "";
  position: absolute;
  inset: 8% -6% -6% 8%;
  border-radius: 50%;
  background: var(--pink-soft);
  z-index: -1;
}

.portrait-frame {
  position: relative;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--paper);
  rotate: -2.5deg;
  box-shadow: 10px 12px 0 var(--coral);
  transition: rotate 0.5s var(--ease-spring), box-shadow 0.4s var(--ease-out);
}

.portrait-frame:hover {
  rotate: 0deg;
  box-shadow: 14px 16px 0 var(--coral);
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 12px);
}

.reg {
  position: absolute;
  width: 18px;
  height: 18px;
}

.reg::before,
.reg::after {
  content: "";
  position: absolute;
  background: var(--ink);
}

.reg::before {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1.5px;
  translate: -50% 0;
}

.reg::after {
  top: 50%;
  left: 0;
  right: 0;
  height: 1.5px;
  translate: 0 -50%;
}

.reg-tl {
  top: -26px;
  left: -26px;
}

.reg-tr {
  top: -26px;
  right: -26px;
}

.reg-bl {
  bottom: -26px;
  left: -26px;
}

.reg-br {
  bottom: -26px;
  right: -26px;
}

.pig-portrait figcaption {
  margin-top: 36px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

.pig-title {
  margin-bottom: 26px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 7.2vw, 6.6rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.pig-lines {
  max-width: 30ch;
  margin-bottom: clamp(32px, 4vw, 48px);
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.triple {
  display: grid;
  gap: 0;
}

.triple-word {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5.6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  transform: translate3d(var(--py, 0px), 0, 0);
}

.triple-word:nth-child(1) {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}

.triple-word:nth-child(2) {
  color: var(--ink);
  padding-left: 0.6em;
}

.triple-word:nth-child(3) {
  color: var(--coral);
  padding-left: 1.2em;
}

/* =========================================================
   LAB CONSOLE
   ========================================================= */
.lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(36px, 6vw, 90px);
}

.lab-sub {
  max-width: 32ch;
  margin-top: 22px;
  color: var(--ink-soft);
}

.console {
  position: relative;
  border-radius: var(--radius);
  border: 2px solid var(--ink);
  background: #241b16;
  color: #efe5d6;
  box-shadow: 10px 10px 0 var(--pink);
  overflow: hidden;
}

.console::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(transparent 0 2px, rgba(0, 0, 0, 0.16) 2px 3px);
  mix-blend-mode: multiply;
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(239, 229, 214, 0.12);
  background: #2e231d;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

.dots {
  display: inline-flex;
  gap: 6px;
}

.dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--coral);
}

.dots i:nth-child(2) {
  background: var(--pink);
}

.dots i:nth-child(3) {
  background: #8a7a6c;
}

.console-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(239, 229, 214, 0.6);
}

.console-rec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange);
  font-weight: 700;
}

.console-rec i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  animation: blink 1.2s steps(2, start) infinite;
}

.console-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 22px 28px;
  padding: clamp(20px, 3vw, 32px);
  font-family: var(--mono);
}

.readout {
  display: grid;
  gap: 4px;
}

.readout li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 8px;
  margin-inline: -8px;
  border-radius: 6px;
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  transition: background-color 0.4s;
}

.readout li.ping {
  background: rgba(242, 191, 174, 0.12);
}

.readout .k {
  flex: none;
  color: rgba(239, 229, 214, 0.55);
  letter-spacing: 0.12em;
}

.readout li::after {
  content: "";
  order: 1;
  flex: 1;
  min-width: 16px;
  border-bottom: 1.5px dotted rgba(239, 229, 214, 0.22);
  translate: 0 -4px;
}

.readout .v {
  order: 2;
  font-weight: 700;
  color: #fbf3e8;
  white-space: nowrap;
}

.readout .v.ok {
  color: var(--pink);
}

.readout .v.hot {
  color: var(--orange);
}

.console-side {
  display: grid;
  align-content: start;
  gap: 22px;
}

.scope {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 32%, rgba(239, 229, 214, 0.12) 32.5%, transparent 33.5%),
    radial-gradient(circle, transparent 64%, rgba(239, 229, 214, 0.12) 64.5%, transparent 65.5%),
    linear-gradient(rgba(239, 229, 214, 0.1) 0 0) center / 1px 100% no-repeat,
    linear-gradient(rgba(239, 229, 214, 0.1) 0 0) center / 100% 1px no-repeat,
    #1c1511;
  border: 1.5px solid rgba(239, 229, 214, 0.2);
  overflow: hidden;
}

.scope-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(229, 122, 75, 0.45), transparent 22%);
  animation: spin 4s linear infinite;
}

.scope-dot {
  position: absolute;
  left: 60%;
  top: 36%;
  width: 12px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(242, 191, 174, 0.2), 0 0 14px rgba(242, 191, 174, 0.7);
  animation: wander 9s ease-in-out infinite;
}

.scope-label {
  position: absolute;
  left: 50%;
  bottom: 12%;
  translate: -50% 0;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: rgba(239, 229, 214, 0.45);
}

.appetite {
  display: grid;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.appetite-k {
  color: rgba(239, 229, 214, 0.55);
}

.appetite-bar {
  position: relative;
  height: 12px;
  border-radius: 999px;
  border: 1.5px solid rgba(239, 229, 214, 0.25);
  overflow: hidden;
}

.appetite-bar i {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, var(--orange) 0 8px, var(--coral) 8px 16px);
  transform-origin: left;
  animation: appetite 3.2s ease-in-out infinite;
}

.appetite-v {
  color: var(--orange);
  font-weight: 700;
}

.console-log {
  grid-column: 1 / -1;
  min-height: calc(4 * 1.7em + 28px);
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(239, 229, 214, 0.75);
}

.log-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.log-line .t {
  color: rgba(239, 229, 214, 0.38);
  margin-right: 10px;
}

.log-line.is-new::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 1em;
  margin-left: 4px;
  vertical-align: -0.15em;
  background: var(--orange);
  animation: blink 1s steps(2, start) infinite;
}

/* =========================================================
   CHART
   ========================================================= */
.chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
}

.chart-card {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  box-shadow: 10px 10px 0 var(--cream-deep);
}

.chart-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 14px 20px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.85rem;
}

.chart-pair b {
  color: var(--coral);
}

.chart-addr {
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--cream);
  border: 1px dashed var(--line-strong);
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.chart-embed {
  position: relative;
  height: clamp(420px, 56vw, 640px);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 48px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 48px 100%,
    var(--paper);
}

.chart-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.chart-placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: radial-gradient(closest-side, rgba(251, 248, 242, 0.96), rgba(251, 248, 242, 0.75));
  transition: opacity 0.4s, visibility 0.4s;
}

.chart-placeholder[hidden] {
  display: grid;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.trough-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 64px;
  padding: 0 18px 10px;
  margin-bottom: 10px;
  border: 3px solid var(--ink);
  border-top: 0;
  border-radius: 0 0 34px 34px;
}

.trough-chart span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pink-deep);
  animation: hop 1.6s ease-in-out infinite;
}

.trough-chart span:nth-child(2n) {
  background: var(--coral);
  border-radius: 3px;
}

.trough-chart span:nth-child(3n) {
  background: var(--ink);
}

.trough-chart span:nth-child(2) { animation-delay: 0.12s; }
.trough-chart span:nth-child(3) { animation-delay: 0.24s; }
.trough-chart span:nth-child(4) { animation-delay: 0.36s; }
.trough-chart span:nth-child(5) { animation-delay: 0.48s; }
.trough-chart span:nth-child(6) { animation-delay: 0.6s; }
.trough-chart span:nth-child(7) { animation-delay: 0.72s; }

.ph-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.ph-sub {
  max-width: 40ch;
  color: var(--ink-soft);
}

.ph-sub code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: 0.9em;
}

.ph-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

/* =========================================================
   FINAL CTA
   ========================================================= */
.final {
  position: relative;
  overflow: hidden;
  padding-block: clamp(80px, 10vw, 140px) 0;
  background:
    radial-gradient(70% 60% at 75% 60%, rgba(242, 191, 174, 0.75), transparent 70%),
    linear-gradient(180deg, var(--cream), var(--pink-soft));
  border-top: 2px solid var(--ink);
}

.final-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: clamp(24px, 4vw, 56px);
}

.final-copy {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(80px, 10vw, 140px);
}

.final-title {
  display: grid;
  margin-bottom: 22px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.2rem, 8.6vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.final-title span:nth-child(2) {
  color: var(--ink-soft);
}

.final-title span:nth-child(3) {
  color: var(--coral);
}

.final-sub {
  margin-bottom: 34px;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--ink-soft);
}

.final-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.final-stage {
  position: relative;
  align-self: stretch;
  min-height: 420px;
}

.final-sun {
  position: absolute;
  left: 50%;
  bottom: 18%;
  width: 92%;
  aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, transparent 0 22px, rgba(196, 85, 44, 0.12) 22px 23.5px),
    radial-gradient(circle, rgba(229, 122, 75, 0.35), rgba(229, 122, 75, 0.05) 70%);
}

.final-bowl {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 86%;
  height: 34px;
  translate: -50% 0;
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  background: var(--coral);
  z-index: 2;
}

.final-pig {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100%, 520px);
  translate: -50% 4%;
  transform: translate3d(0, var(--py, 0px), 0);
  z-index: 1;
  filter: drop-shadow(0 24px 30px rgba(42, 31, 26, 0.2));
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding-block: clamp(48px, 6vw, 72px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand links"
    "disc disc";
  align-items: center;
  gap: 32px;
}

.footer-brand {
  grid-area: brand;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.site-footer .brand-logo {
  border-color: var(--cream);
}

.footer-meta {
  display: inline-flex;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.88rem;
  color: rgba(246, 240, 230, 0.65);
}

.footer-meta .sep {
  opacity: 0.4;
}

.footer-links {
  grid-area: links;
  display: flex;
  gap: 8px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid rgba(246, 240, 230, 0.25);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease-spring);
}

.footer-links a:hover {
  background: var(--coral);
  border-color: var(--coral);
  transform: translateY(-2px);
}

.footer-disclaimer {
  grid-area: disc;
  padding-top: 24px;
  border-top: 1px dashed rgba(246, 240, 230, 0.2);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: rgba(246, 240, 230, 0.5);
}

/* =========================================================
   KEYFRAMES
   ========================================================= */
@keyframes float {
  0%, 100% { translate: -50% 0; }
  50% { translate: -50% -14px; }
}

@keyframes shadow {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(0.86); opacity: 0.7; }
}

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}

@keyframes blob {
  0%, 100% { border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%; }
  50% { border-radius: 54% 46% 48% 52% / 46% 54% 46% 54%; }
}

@keyframes spin {
  to { rotate: 360deg; }
}

@keyframes chomp {
  0% { scale: 1; }
  40% { scale: 1.015 0.99; }
  100% { scale: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes pop {
  0% { transform: scale(0.6); }
  100% { transform: scale(1); }
}

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.55; }
  30% { transform: translateY(-6px); opacity: 1; }
}

@keyframes bubble {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(-80px); opacity: 0; }
}

@keyframes drop {
  0% { transform: translateY(0) rotate(0); opacity: 0; }
  10% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(150px) rotate(200deg); opacity: 0; }
}

@keyframes wiggle {
  0%, 100% { rotate: 0deg; }
  25% { rotate: -3deg; }
  75% { rotate: 3deg; }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes blink {
  to { visibility: hidden; }
}

@keyframes wander {
  0%, 100% { left: 60%; top: 36%; }
  25% { left: 34%; top: 30%; }
  50% { left: 40%; top: 62%; }
  75% { left: 66%; top: 58%; }
}

@keyframes appetite {
  0%, 100% { transform: scaleX(0.82); }
  50% { transform: scaleX(1); }
}

@keyframes hop {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-14px); }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .console-body {
    grid-template-columns: minmax(0, 1fr) 150px;
  }

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

  .lab-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    gap: 0 40px;
  }

  .lab-intro .kicker {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .lab-sub {
    margin-top: 0;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 68px;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px var(--gutter) 28px;
    background: var(--cream);
    border-bottom: 2px solid var(--ink);
    box-shadow: 0 30px 40px -30px rgba(42, 31, 26, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s, transform 0.3s var(--ease-out), visibility 0.25s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-link {
    padding: 14px 12px;
    font-family: var(--display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    border-radius: 10px;
  }

  .nav-x .icon-x {
    font-size: 1.1rem;
  }

  .nav-buy {
    display: none;
  }

  .header-mobile {
    display: flex;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-hungry {
    grid-column: 1 / -1;
  }

  .card-hungry .card-art {
    height: 180px;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "lead lead"
      "stamps doc";
  }

  .pig-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 48px;
  }

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

@media (max-width: 720px) {
  body {
    font-size: 1rem;
  }

  .hero {
    padding-bottom: 40px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 8px;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .wordmark {
    font-size: 16vw;
  }

  .hero-support {
    font-size: 1.05rem;
  }

  .hero-ctas .btn-lg {
    flex: 1 1 auto;
  }

  .hero-stage {
    width: min(100%, 480px);
    margin-top: 8px;
  }

  .float-label {
    font-size: 0.62rem;
    padding: 6px 10px;
    letter-spacing: 0.18em;
  }

  .fl-2 {
    right: 0;
  }

  .specimen-tag {
    font-size: 0.6rem;
    padding: 8px 10px;
  }

  .ca-section {
    margin-top: 0;
  }

  .ca-row {
    flex-direction: column;
  }

  .btn-copy {
    width: 100%;
    min-height: 52px;
  }

  .ca-card {
    box-shadow: 5px 5px 0 var(--pink);
  }

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

  .card-hungry {
    grid-column: auto;
  }

  .card:hover,
  .card-hungry:hover {
    transform: translateY(-4px);
    box-shadow: 5px 6px 0 var(--ink);
  }

  .about-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "lead"
      "doc"
      "stamps";
  }

  .about-doc {
    rotate: 0.6deg;
  }

  .stamps {
    align-items: flex-start;
  }

  .stamp-2 {
    margin-left: 28px;
  }

  .stamp-3 {
    margin-left: 8px;
  }

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

  .pig-portrait {
    width: min(100%, 420px);
    margin-inline: auto;
    padding: 28px 28px 0;
  }

  .reg-tl,
  .reg-tr {
    top: 2px;
  }

  .reg-bl,
  .reg-br {
    bottom: 2px;
  }

  .reg-tl,
  .reg-bl {
    left: 2px;
  }

  .reg-tr,
  .reg-br {
    right: 2px;
  }

  .portrait-frame {
    box-shadow: 7px 8px 0 var(--coral);
  }

  .pig-portrait figcaption {
    margin-top: 20px;
    text-align: center;
  }

  .lab-intro {
    display: block;
  }

  .lab-sub {
    margin-top: 18px;
  }

  .console {
    box-shadow: 6px 6px 0 var(--pink);
  }

  .console-body {
    grid-template-columns: 1fr;
  }

  .console-side {
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: center;
    gap: 20px;
  }

  .console-log {
    font-size: 0.74rem;
  }

  .chart-head .btn {
    width: 100%;
  }

  .chart-embed {
    height: 480px;
  }

  .chart-card {
    box-shadow: 6px 6px 0 var(--cream-deep);
  }

  .ph-actions .btn {
    width: 100%;
  }

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

  .final-copy {
    padding-bottom: 0;
  }

  .final-ctas .btn {
    flex: 1 1 100%;
  }

  .final-stage {
    min-height: 0;
    width: min(100%, 420px);
    aspect-ratio: 1 / 1.24;
    margin-top: 24px;
    margin-inline: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "links"
      "disc";
    gap: 24px;
  }

  .footer-links a {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .brand-name {
    font-size: 1.25rem;
  }

  .hero-ctas .btn-lg {
    flex: 1 1 100%;
  }

  .btn-icon {
    margin-inline: auto;
  }

  .readout li {
    font-size: 0.8rem;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .ticker-track {
    animation: none;
  }

  .feed-layer {
    display: none;
  }

  .banner-img {
    transform: none;
  }
}
