:root {
  --ink: #090708;
  --ink-soft: #171014;
  --pink: #ff4fa3;
  --pink-hot: #ff177f;
  --cream: #fff3dc;
  --paper: #f3e8d5;
  --silver: #d9d9df;
  --mood-level: 0.42;
  --header-h: 80px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--pink) var(--ink);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  cursor: default;
}

body::selection,
body *::selection {
  background: var(--cream);
  color: var(--pink-hot);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  transform: translateY(-150%);
  background: var(--cream);
  color: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
}

.skip-link:focus {
  transform: none;
}

.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;
}

.noise {
  position: fixed;
  z-index: 200;
  inset: 0;
  pointer-events: none;
  opacity: 0.13;
  background-image:
    repeating-radial-gradient(circle at 17% 33%, transparent 0, rgba(255, 255, 255, 0.75) 0.7px, transparent 1.1px, transparent 4px),
    repeating-radial-gradient(circle at 83% 66%, transparent 0, rgba(0, 0, 0, 0.8) 0.8px, transparent 1.2px, transparent 5px);
  mix-blend-mode: overlay;
}

.cursor-glow {
  position: fixed;
  z-index: 3;
  width: 420px;
  height: 420px;
  left: 0;
  top: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 79, 163, 0.2), transparent 67%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 250ms ease;
}

body.pointer-active .cursor-glow {
  opacity: 1;
}

.site-header {
  position: fixed;
  z-index: 300;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(255, 243, 220, 0.35);
  background: rgba(9, 7, 8, 0.82);
  backdrop-filter: blur(18px) saturate(1.4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 26px;
  letter-spacing: 0.055em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--ink);
  font: 900 18px/1 "Arial Black", Arial, sans-serif;
  transform: rotate(-8deg);
  box-shadow: 3px 3px 0 var(--cream);
}

.nav-links,
.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 11px 13px;
  color: rgba(255, 243, 220, 0.72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--pink);
}

.social-links {
  justify-self: end;
}

.mini-link,
.circle-link {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 243, 220, 0.5);
  border-radius: 50%;
  font-weight: 900;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.mini-link {
  width: 40px;
  height: 40px;
  font-size: 12px;
}

.mini-link:hover,
.circle-link:hover {
  transform: rotate(-7deg) scale(1.06);
  background: var(--cream);
  color: var(--ink);
}

.buy-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 18px;
  background: var(--pink);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transition: background 180ms ease, transform 180ms ease;
}

.buy-link:hover {
  transform: translateY(-2px);
  background: var(--cream);
}

.hero {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + 54px) clamp(22px, 5vw, 82px) 56px;
  background: var(--ink);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 7, 8, 0.92) 0%, rgba(9, 7, 8, 0.38) 42%, rgba(9, 7, 8, 0.28) 67%, rgba(9, 7, 8, 0.8) 100%),
    url("../img/vortex-bg.png") center / cover no-repeat;
  transform: scale(calc(1.04 + var(--mood-level) * 0.04));
  filter: saturate(calc(0.92 + var(--mood-level) * 0.6));
  transition: transform 500ms ease, filter 500ms ease;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.027) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 85%, transparent);
}

.hero-art {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at 62% 47%, rgba(255, 79, 163, calc(0.12 + var(--mood-level) * 0.22)), transparent 28%);
  pointer-events: none;
}

.ticker {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  overflow: hidden;
  border-block: 1px solid rgba(255, 243, 220, 0.38);
  background: rgba(9, 7, 8, 0.78);
  color: var(--pink);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 13px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.ticker-top {
  top: var(--header-h);
}

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

.ticker-track span {
  display: inline-block;
  padding: 8px 12px;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.9fr);
  align-items: center;
  gap: clamp(30px, 6vw, 110px);
  width: min(1380px, 100%);
  min-height: calc(100svh - var(--header-h) - 155px);
  margin: 0 auto;
}

.hero-copy {
  position: relative;
  z-index: 4;
  padding-top: 30px;
}

.eyebrow,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 20px 5px rgba(255, 79, 163, 0.55);
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  50% { transform: scale(0.6); opacity: 0.5; }
}

.hero h1,
.machine-head h2,
.manifesto h2,
.wall-copy h2,
.final-cta h2 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-weight: 900;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(76px, 10.6vw, 170px);
  line-height: 0.73;
  text-shadow: 8px 8px 0 rgba(0, 0, 0, 0.24);
}

.hero h1 span {
  display: block;
  width: fit-content;
}

.hero h1 span:nth-child(2) {
  color: var(--pink);
  transform: translateX(0.08em);
}

.hero h1 .outline-word {
  color: transparent;
  -webkit-text-stroke: 3px var(--cream);
  transform: translateX(1.16em) rotate(-2deg);
}

.hero-blurb {
  max-width: 520px;
  margin: 32px 0 0;
  color: rgba(255, 243, 220, 0.76);
  font-size: clamp(16px, 1.4vw, 21px);
  line-height: 1.5;
}

.hero-blurb strong {
  color: var(--cream);
}

.hero-actions,
.final-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 24px;
  border: 2px solid var(--cream);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--cream);
}

.button-primary {
  border-color: var(--pink);
  background: var(--pink);
  color: var(--ink);
}

.button-ghost {
  background: rgba(9, 7, 8, 0.25);
  backdrop-filter: blur(12px);
}

.portrait-stage {
  position: relative;
  z-index: 3;
  width: min(39vw, 610px);
  aspect-ratio: 1;
  justify-self: center;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55));
}

.portrait-frame {
  position: absolute;
  inset: 8%;
  overflow: hidden;
  border: 3px solid var(--cream);
  border-radius: 48% 52% 46% 54% / 53% 44% 56% 47%;
  background: var(--pink);
  box-shadow:
    0 0 0 12px rgba(9, 7, 8, 0.72),
    0 0 0 14px rgba(255, 243, 220, 0.72),
    inset 0 0 60px rgba(0, 0, 0, 0.2);
  transform: rotate(1.5deg);
}

.bear-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(calc(1.02 + var(--mood-level) * 0.055));
  filter: saturate(calc(0.82 + var(--mood-level) * 0.75)) contrast(1.05);
  transition: transform 450ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 450ms ease;
}

.portrait-scan {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(0, 0, 0, 0.45) 4px);
  mix-blend-mode: multiply;
}

.orbit {
  position: absolute;
  inset: 2%;
  border: 1px solid rgba(255, 243, 220, 0.62);
  border-radius: 50%;
  animation: spin 18s linear infinite;
}

.orbit::before,
.orbit::after {
  content: "✦";
  position: absolute;
  color: var(--pink);
  font-size: 28px;
  text-shadow: 0 0 18px var(--pink);
}

.orbit::before { top: 8%; left: 10%; }
.orbit::after { right: 6%; bottom: 13%; }

.orbit-two {
  inset: -3% 10%;
  transform: rotate(67deg);
  animation-direction: reverse;
  animation-duration: 25s;
  border-style: dashed;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.live-tag,
.mood-stamp,
.sticker {
  position: absolute;
  z-index: 5;
  font-weight: 900;
  text-transform: uppercase;
}

.live-tag {
  top: 9%;
  right: -3%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--cream);
  background: var(--ink);
  font-size: 10px;
  letter-spacing: 0.11em;
  transform: rotate(4deg);
}

.live-tag i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 10px var(--pink);
}

.mood-stamp {
  right: 1%;
  bottom: 4%;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  font-size: 10px;
  line-height: 1.1;
  text-align: center;
  box-shadow: 6px 6px 0 var(--pink);
  transform: rotate(-11deg);
}

.mood-stamp strong {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 31px;
  letter-spacing: 0.02em;
}

.sticker-one {
  left: -1%;
  bottom: 15%;
  padding: 10px 16px;
  background: var(--pink);
  color: var(--ink);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 25px;
  line-height: 0.8;
  letter-spacing: 0.03em;
  text-align: center;
  transform: rotate(10deg);
}

.sticker-two {
  top: 26%;
  left: 0;
  color: var(--cream);
  font-size: 48px;
  transform: rotate(-12deg);
  text-shadow: 0 0 16px var(--pink);
}

.ca-bar {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  width: min(900px, 100%);
  min-height: 54px;
  margin: -20px auto 0;
  padding: 8px 9px 8px 20px;
  border: 1px solid rgba(255, 243, 220, 0.6);
  background: rgba(9, 7, 8, 0.82);
  backdrop-filter: blur(18px);
}

.ca-label {
  color: var(--pink);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.ca-bar code {
  overflow: hidden;
  color: rgba(255, 243, 220, 0.74);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  background: var(--cream);
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 180ms ease;
}

.copy-button:hover {
  background: var(--pink);
}

.scroll-cue {
  position: absolute;
  right: 25px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  writing-mode: vertical-rl;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.scroll-cue b {
  color: var(--pink);
  font-size: 22px;
  animation: down 1.4s ease-in-out infinite;
}

@keyframes down {
  50% { transform: translateY(6px); }
}

.machine-section {
  position: relative;
  overflow: hidden;
  padding: clamp(86px, 11vw, 165px) clamp(22px, 6vw, 100px);
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 79, 163, 0.19), transparent 24%),
    linear-gradient(135deg, #0d090b 0%, #1c0d16 52%, #090708 100%);
}

.machine-section::before {
  content: "GRIN";
  position: absolute;
  top: 4%;
  right: -0.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 79, 163, 0.13);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: min(31vw, 520px);
  letter-spacing: -0.06em;
  line-height: 0.8;
}

.section-kicker,
.machine-head,
.machine-shell {
  position: relative;
  z-index: 1;
  width: min(1280px, 100%);
  margin-inline: auto;
}

.section-kicker {
  justify-content: flex-end;
  margin-bottom: 16px;
  color: var(--pink);
}

.machine-head {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr;
  align-items: end;
  gap: 40px;
  margin-bottom: 55px;
}

.machine-head h2 {
  font-size: clamp(60px, 8.4vw, 128px);
  line-height: 0.8;
}

.machine-head h2 em {
  color: var(--pink);
  font-style: normal;
}

.machine-head p {
  max-width: 390px;
  margin: 0 0 5px;
  color: rgba(255, 243, 220, 0.66);
  font-size: 16px;
  line-height: 1.6;
}

.machine-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  min-height: 590px;
  border: 2px solid var(--cream);
  box-shadow: 18px 18px 0 var(--pink);
  background: #beb9b1;
  color: var(--ink);
}

.machine-screen {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 1.05fr) 0.95fr;
  grid-template-rows: auto 1fr;
  gap: 20px;
  overflow: hidden;
  margin: 24px;
  padding: 20px;
  border: 8px solid #272326;
  border-radius: 36px 36px 44px 42px / 31px 35px 50px 46px;
  background: #121012;
  color: var(--cream);
  box-shadow:
    inset 0 0 0 3px #050405,
    inset 0 0 50px rgba(255, 79, 163, 0.1);
}

.screen-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background: repeating-linear-gradient(to bottom, transparent 0 4px, rgba(255, 255, 255, 0.1) 5px);
  mix-blend-mode: overlay;
}

.screen-topline {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 243, 220, 0.3);
  color: var(--pink);
  font: 700 10px/1 Consolas, "Courier New", monospace;
  letter-spacing: 0.13em;
}

.machine-portrait {
  position: relative;
  align-self: stretch;
  min-height: 410px;
  overflow: hidden;
  border: 1px solid rgba(255, 243, 220, 0.36);
  background: var(--pink);
}

.machine-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter:
    saturate(calc(0.65 + var(--mood-level) * 1.15))
    contrast(calc(1 + var(--mood-level) * 0.23));
  transform: scale(calc(1.01 + var(--mood-level) * 0.08));
  transition: filter 300ms ease, transform 350ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.crosshair,
.crosshair::before,
.crosshair::after {
  position: absolute;
  pointer-events: none;
}

.crosshair {
  top: 50%;
  left: 50%;
  width: 90px;
  height: 90px;
  border: 1px solid rgba(255, 243, 220, 0.45);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.crosshair::before,
.crosshair::after {
  content: "";
  background: rgba(255, 243, 220, 0.42);
}

.crosshair::before { width: 150px; height: 1px; top: 50%; left: -30px; }
.crosshair::after { height: 150px; width: 1px; left: 50%; top: -30px; }

.status-block {
  position: relative;
  z-index: 2;
  align-self: end;
  padding: 20px;
  border-left: 3px solid var(--pink);
}

.status-block span {
  display: block;
  margin-bottom: 14px;
  color: rgba(255, 243, 220, 0.53);
  font: 700 9px/1 Consolas, "Courier New", monospace;
  letter-spacing: 0.15em;
}

.status-block strong {
  display: block;
  max-width: 340px;
  color: var(--pink);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(30px, 3vw, 52px);
  line-height: 0.94;
  letter-spacing: 0.015em;
}

.status-block p {
  max-width: 320px;
  margin: 18px 0 0;
  color: rgba(255, 243, 220, 0.65);
  font-size: 13px;
  line-height: 1.55;
}

.machine-controls {
  position: relative;
  padding: 46px 34px 34px;
  border-left: 2px solid var(--ink);
  background:
    repeating-linear-gradient(90deg, transparent 0 7px, rgba(0, 0, 0, 0.035) 8px),
    var(--paper);
}

.machine-controls::before {
  content: "MANUAL OVERRIDE";
  display: block;
  margin-bottom: 50px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

#mood-range {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 28px;
  margin: 0;
  opacity: 0;
  cursor: grab;
}

#mood-range:active {
  cursor: grabbing;
}

.meter-track {
  position: relative;
  height: 16px;
  margin-top: -22px;
  border: 2px solid var(--ink);
  background: rgba(9, 7, 8, 0.12);
}

.meter-track::after {
  content: "";
  position: absolute;
  inset: -6px 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(9, 7, 8, 0.4) calc(10% - 1px) 10%);
  pointer-events: none;
}

.meter-track i {
  display: block;
  width: 42%;
  height: 100%;
  background: var(--pink);
  box-shadow: 0 0 20px rgba(255, 79, 163, 0.5);
  transition: width 80ms linear;
}

.max-grin {
  position: relative;
  width: 100%;
  min-height: 190px;
  margin-top: 52px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--pink);
  color: var(--ink);
  cursor: pointer;
  box-shadow:
    inset 0 -14px 0 rgba(0, 0, 0, 0.13),
    0 12px 0 var(--ink);
  transition: transform 100ms ease, box-shadow 100ms ease, background 180ms ease;
}

.max-grin:hover {
  background: var(--pink-hot);
}

.max-grin:active {
  transform: translateY(8px);
  box-shadow:
    inset 0 -7px 0 rgba(0, 0, 0, 0.13),
    0 4px 0 var(--ink);
}

.max-grin span,
.max-grin strong {
  display: block;
  text-transform: uppercase;
}

.max-grin span {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.max-grin strong {
  margin-top: 4px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 37px;
  letter-spacing: 0.015em;
}

.max-grin b {
  position: absolute;
  top: 17px;
  right: 27px;
  font-size: 19px;
  transform: rotate(12deg);
}

.machine-note {
  margin-top: 40px;
  padding: 14px;
  border: 1px dashed var(--ink);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
}

.machine-note span {
  display: inline-block;
  margin-right: 7px;
  padding: 3px 5px;
  background: var(--ink);
  color: var(--pink);
}

.manifesto {
  position: relative;
  padding: clamp(90px, 11vw, 170px) clamp(22px, 8vw, 130px);
  overflow: hidden;
  background: var(--pink);
  color: var(--ink);
}

.manifesto::after {
  content: ":D";
  position: absolute;
  right: -0.08em;
  bottom: -0.29em;
  color: rgba(9, 7, 8, 0.07);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: min(43vw, 660px);
  transform: rotate(-9deg);
}

.torn-label {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: 0 auto 30px;
  padding: 13px 20px;
  background: var(--cream);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-align: center;
  transform: rotate(-1.5deg);
  clip-path: polygon(0 12%, 4% 0, 12% 7%, 19% 1%, 27% 8%, 35% 0, 42% 7%, 51% 1%, 59% 9%, 68% 0, 76% 7%, 84% 1%, 92% 8%, 100% 2%, 98% 91%, 90% 100%, 82% 94%, 73% 100%, 64% 93%, 56% 100%, 47% 94%, 38% 100%, 29% 92%, 19% 100%, 11% 93%, 2% 100%);
}

.manifesto h2 {
  position: relative;
  z-index: 1;
  max-width: 1050px;
  margin: 0 auto 70px;
  font-size: clamp(76px, 12vw, 190px);
  line-height: 0.78;
  text-align: center;
}

.rule-list {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  margin: 0 auto;
  border-top: 2px solid var(--ink);
}

.rule {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 30px;
  min-height: 165px;
  border-bottom: 2px solid var(--ink);
  transition: padding 250ms ease, background 250ms ease;
}

.rule:hover {
  padding-inline: 22px;
  background: var(--cream);
}

.rule-number {
  font: 900 14px/1 Consolas, "Courier New", monospace;
}

.rule h3 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(42px, 5vw, 75px);
  letter-spacing: 0.015em;
  line-height: 0.9;
}

.rule p {
  margin: 9px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.rule > b {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 45px;
}

.grin-wall {
  position: relative;
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  align-items: center;
  gap: clamp(30px, 7vw, 120px);
  min-height: 860px;
  padding: 110px clamp(22px, 7vw, 115px);
  overflow: hidden;
  background:
    linear-gradient(rgba(9, 7, 8, 0.4), rgba(9, 7, 8, 0.87)),
    url("../img/vortex-bg.png") center / cover fixed;
}

.wall-copy {
  position: relative;
  z-index: 4;
}

.wall-copy p {
  margin: 0 0 18px;
  color: var(--pink);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.wall-copy h2 {
  font-size: clamp(64px, 8vw, 128px);
  line-height: 0.78;
}

.photo-stack {
  position: relative;
  width: min(660px, 46vw);
  aspect-ratio: 1.08;
  justify-self: center;
}

.photo-card {
  position: absolute;
  width: 55%;
  margin: 0;
  padding: 11px 11px 46px;
  background: var(--cream);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), z-index 0ms;
}

.photo-card::after {
  content: "GRIN CAM";
  position: absolute;
  left: 16px;
  bottom: 16px;
  color: var(--ink);
  font: 900 10px/1 Consolas, "Courier New", monospace;
  letter-spacing: 0.12em;
}

.photo-card img {
  aspect-ratio: 1;
  object-fit: cover;
}

.card-a { top: 6%; left: 0; transform: rotate(-12deg); }
.card-b { top: 0; right: 2%; transform: rotate(9deg); }
.card-c { bottom: 0; left: 25%; transform: rotate(-1deg); }

.card-a img { filter: contrast(1.2) saturate(0.5) hue-rotate(305deg); }
.card-b img { filter: contrast(1.15) saturate(1.7); }
.card-c img { filter: grayscale(1) contrast(1.4); }

.photo-card:hover {
  z-index: 8;
  transform: rotate(0) scale(1.06);
}

.hand-note {
  position: absolute;
  z-index: 9;
  right: 5%;
  bottom: 7%;
  padding: 13px 20px;
  background: var(--pink);
  color: var(--ink);
  font-family: "Comic Sans MS", cursive;
  font-size: 26px;
  font-weight: 900;
  line-height: 0.85;
  text-align: center;
  transform: rotate(-8deg);
}

.final-cta {
  position: relative;
  display: flex;
  min-height: 830px;
  padding: 100px 22px;
  overflow: hidden;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--cream);
  color: var(--ink);
}

.final-vortex {
  position: absolute;
  inset: -30%;
  opacity: 0.18;
  background: url("../img/vortex-bg.png") center / cover;
  filter: grayscale(1) contrast(1.8);
  animation: vortex 45s linear infinite;
}

@keyframes vortex {
  to { transform: rotate(360deg) scale(1.12); }
}

.final-cta > p,
.final-cta > h2,
.final-cta > .final-links {
  position: relative;
  z-index: 2;
}

.final-cta > p {
  margin: 0 0 25px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.final-cta h2 {
  font-size: clamp(77px, 12vw, 190px);
  line-height: 0.75;
}

.final-cta h2 span {
  color: var(--pink);
  text-shadow: 5px 5px 0 var(--ink);
}

.final-links {
  justify-content: center;
}

.final-links .button-primary {
  min-width: 230px;
  border-color: var(--ink);
}

.final-links .button:hover {
  box-shadow: 6px 6px 0 var(--ink);
}

.circle-link {
  width: 58px;
  height: 58px;
  border: 2px solid var(--ink);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  min-height: 110px;
  padding: 22px 34px;
  background: var(--ink);
  color: rgba(255, 243, 220, 0.62);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
  text-align: center;
}

.site-footer > span {
  justify-self: end;
}

.footer-brand {
  color: var(--cream);
  font-size: 20px;
}

.footer-brand .brand-mark {
  width: 34px;
  height: 34px;
  font-size: 14px;
}

.toast {
  position: fixed;
  z-index: 600;
  left: 50%;
  bottom: 25px;
  max-width: calc(100vw - 32px);
  padding: 14px 18px;
  border: 2px solid var(--cream);
  background: var(--ink);
  color: var(--cream);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 5px 5px 0 var(--pink);
  transform: translate(-50%, 140%);
  opacity: 0;
  pointer-events: none;
  transition: transform 250ms ease, opacity 250ms ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.particle-layer {
  position: fixed;
  z-index: 500;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.grin-particle {
  position: absolute;
  left: var(--x);
  top: 110%;
  color: var(--color);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: var(--size);
  text-shadow: 2px 2px 0 var(--ink);
  animation: particle-rise var(--duration) cubic-bezier(0.16, 0.72, 0.25, 1) forwards;
}

@keyframes particle-rise {
  75% { opacity: 1; }
  to { top: -20%; transform: translateX(var(--drift)) rotate(var(--spin)); opacity: 0; }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.grin-max .portrait-frame,
body.grin-max .machine-portrait {
  animation: grin-shake 340ms steps(2, end) 3;
}

body.grin-max .brand-mark {
  animation: grin-pop 420ms ease 2;
}

@keyframes grin-shake {
  25% { transform: rotate(-1deg) translate(-4px, 2px); }
  50% { transform: rotate(2deg) translate(4px, -2px); }
  75% { transform: rotate(-2deg) translate(-2px, -3px); }
}

@keyframes grin-pop {
  50% { transform: rotate(14deg) scale(1.3); }
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(350px, 0.8fr);
    gap: 20px;
  }

  .portrait-stage {
    width: min(45vw, 550px);
  }

  .machine-screen {
    grid-template-columns: 1fr;
  }

  .status-block {
    position: absolute;
    right: 30px;
    bottom: 30px;
    max-width: 48%;
    background: rgba(9, 7, 8, 0.72);
    backdrop-filter: blur(12px);
  }
}

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

  .site-header {
    padding: 0 16px;
  }

  .brand { font-size: 22px; }
  .brand-mark { width: 36px; height: 36px; font-size: 15px; }
  .social-links .mini-link { display: none; }
  .buy-link { min-height: 38px; padding-inline: 14px; font-size: 10px; }

  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 64px) 18px 55px;
  }

  .hero::before {
    background:
      linear-gradient(to bottom, rgba(9, 7, 8, 0.78), rgba(9, 7, 8, 0.2) 50%, rgba(9, 7, 8, 0.88)),
      url("../img/vortex-bg.png") center / cover no-repeat;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 20px;
  }

  .hero-copy { padding-top: 20px; }
  .hero h1 { font-size: clamp(72px, 25vw, 118px); }
  .hero h1 .outline-word { transform: translateX(0.5em) rotate(-2deg); }
  .hero-blurb { margin-top: 26px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }

  .portrait-stage {
    width: min(92vw, 530px);
    margin-top: 20px;
  }

  .ca-bar {
    grid-template-columns: 1fr auto;
    margin-top: 30px;
  }

  .ca-label { grid-column: 1 / -1; }
  .scroll-cue { display: none; }

  .machine-section { padding-inline: 18px; }
  .section-kicker { justify-content: flex-start; }

  .machine-head {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .machine-head h2 { font-size: clamp(55px, 17vw, 92px); }

  .machine-shell {
    grid-template-columns: 1fr;
    box-shadow: 9px 9px 0 var(--pink);
  }

  .machine-screen {
    min-height: 520px;
    margin: 14px;
    padding: 14px;
  }

  .machine-portrait { min-height: 440px; }
  .status-block { right: 22px; bottom: 23px; max-width: 72%; }
  .machine-controls { border-top: 2px solid var(--ink); border-left: 0; }

  .manifesto { padding-inline: 18px; }
  .manifesto h2 { font-size: clamp(70px, 22vw, 122px); }
  .rule { grid-template-columns: 42px 1fr auto; gap: 14px; min-height: 145px; }
  .rule h3 { font-size: clamp(37px, 12vw, 62px); }
  .rule p { max-width: 260px; font-size: 12px; }
  .rule > b { font-size: 27px; }

  .grin-wall {
    grid-template-columns: 1fr;
    min-height: 980px;
    padding: 90px 18px;
    background-attachment: scroll;
  }

  .wall-copy { text-align: center; }
  .photo-stack { width: min(93vw, 570px); }

  .final-cta { min-height: 720px; }
  .final-cta h2 { font-size: clamp(70px, 22vw, 125px); }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 40px 22px;
    text-align: center;
  }

  .site-footer > span { justify-self: center; }
}

@media (max-width: 420px) {
  .buy-link span { display: none; }
  .hero h1 { font-size: 70px; }
  .hero h1 .outline-word { transform: translateX(0.35em) rotate(-2deg); }
  .portrait-stage { width: 96vw; margin-left: -4vw; }
  .mood-stamp { width: 88px; height: 88px; }
  .mood-stamp strong { font-size: 24px; }
  .sticker-one { left: 4%; font-size: 20px; }
  .ca-bar { gap: 10px; padding-left: 14px; }
  .ca-bar code { font-size: 10px; }
  .machine-controls { padding-inline: 22px; }
  .max-grin { min-height: 166px; }
  .rule { grid-template-columns: 34px 1fr; }
  .rule > b { display: none; }
  .photo-stack { margin-left: -4vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .cursor-glow { display: none; }
}
