@font-face {
  font-family: 'Arc Meme';
  src: url('/fonts/arc-meme-bold.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #020919;
  --navy: #041333;
  --panel: #071b43;
  --blue: #1268ff;
  --blue-hot: #2385ff;
  --cream: #fff2df;
  --paper: #f5e7d3;
  --coral: #ff6f5c;
  --muted: #8ba4d0;
  --line: rgba(112, 161, 255, .28);
  --shadow: 0 32px 80px rgba(0, 0, 0, .42);
  --generator-sticky-top: 100px;
  --compact-preview-size: clamp(88px, 24svh, 160px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  color: var(--cream);
  background: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 85% 8%, rgba(18, 104, 255, .2), transparent 26rem),
    radial-gradient(circle at 10% 55%, rgba(255, 111, 92, .08), transparent 22rem),
    linear-gradient(180deg, #061434 0%, #020919 45%, #061638 100%);
}
.site-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: .06;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.85'/%3E%3C/svg%3E");
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img, video { display: block; max-width: 100%; }
.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: .8rem 1rem;
  color: var(--ink);
  background: var(--cream);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }

.nav-shell {
  position: fixed;
  z-index: 40;
  top: 1rem;
  left: 50%;
  width: min(1180px, calc(100% - 2rem));
  min-height: 66px;
  padding: .55rem .7rem;
  border: 1px solid rgba(128, 171, 255, .25);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(2, 9, 25, .78);
  box-shadow: 0 18px 50px rgba(0,0,0,.24);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-width: max-content;
  text-decoration: none;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.2rem;
  letter-spacing: .05em;
}
.brand-mark {
  width: 46px;
  height: 46px;
  overflow: hidden;
  border: 1px solid rgba(35,133,255,.55);
  border-radius: 12px;
  background: var(--navy);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-emoji { font-family: initial; font-size: .9rem; }
.nav-shell nav { display: flex; align-items: center; gap: 1.35rem; }
.nav-shell nav a {
  position: relative;
  color: #bed0ef;
  text-decoration: none;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.nav-shell nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -.45rem;
  left: 0;
  height: 2px;
  background: var(--blue-hot);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav-shell nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.header-social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: .65rem .8rem;
  border: 1px solid rgba(128,171,255,.4);
  border-radius: 10px;
  color: var(--cream);
  background: rgba(18,104,255,.16);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 800;
  transition: background .2s ease, border-color .2s ease;
}
.header-social-button:hover { background: rgba(18,104,255,.3); border-color: var(--blue-hot); }
.header-actions .status-chip { min-height: 44px; white-space: nowrap; }
@media (max-width: 1120px) { .nav-shell nav { display: none; } }
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .75rem .9rem;
  border: 1px solid rgba(255,111,92,.5);
  border-radius: 10px;
  color: #ffd6cf;
  background: rgba(255,111,92,.08);
  text-decoration: none;
  font: 800 .72rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}
.status-chip span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(255,111,92,.12);
  animation: status-pulse 1.5s ease-out infinite;
}

.hero {
  position: relative;
  min-height: 920px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 10.5rem clamp(1.25rem, 5vw, 5rem) 5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
}
.hero::before {
  content: "A";
  position: absolute;
  z-index: -1;
  top: 5%;
  left: 33%;
  color: rgba(17, 92, 222, .08);
  font: 900 min(75vw, 920px)/1 Arial Black, sans-serif;
  transform: translateX(-50%);
}
.eyebrow, .section-kicker {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: #8fafe6;
  text-transform: uppercase;
  font: 800 .72rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .16em;
}
.eyebrow b { color: var(--coral); }
.eyebrow::before, .section-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--blue);
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin: 1.7rem 0 2rem;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(4.2rem, 9vw, 8.8rem);
  font-weight: 900;
  line-height: .75;
  letter-spacing: -.025em;
}
h1 span { display: block; }
.outline-word {
  color: transparent;
  -webkit-text-stroke: 2px var(--cream);
  text-stroke: 2px var(--cream);
}
.blue-word { color: var(--blue); }
.hero-deck {
  max-width: 590px;
  margin-bottom: 2rem;
  color: #dae7ff;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.48;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button {
  min-height: 52px;
  padding: .9rem 1.2rem;
  border: 1px solid var(--blue);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-decoration: none;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-3px) rotate(-1deg); }
.button-primary { color: white; background: var(--blue); box-shadow: 7px 7px 0 rgba(3, 31, 87, .9); }
.button-primary:hover { box-shadow: 11px 11px 0 rgba(3, 31, 87, .9); }
.button-ghost { color: #b9d0fa; background: rgba(9,32,78,.35); }
.button-ghost:hover { color: white; background: rgba(18,104,255,.14); }
.microcopy { margin: 1.3rem 0 0; color: #6e87b3; font: .72rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }

.hero-art {
  position: relative;
  isolation: isolate;
  min-height: 620px;
  display: grid;
  place-items: center;
}
.specimen-card {
  position: relative;
  width: min(100%, 590px);
  padding: 10px;
  border: 1px solid rgba(91, 150, 255, .48);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(17, 57, 128, .5), rgba(2, 9, 25, .94) 45%);
  box-shadow: 0 42px 90px rgba(0, 0, 0, .44), 18px 18px 0 rgba(18, 104, 255, .1);
  transform: rotate(.7deg);
}
.specimen-card::before,
.specimen-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 70px;
  height: 70px;
  border-color: var(--coral);
  opacity: .9;
}
.specimen-card::before {
  top: -13px;
  left: -13px;
  border-top: 3px solid var(--coral);
  border-left: 3px solid var(--coral);
  border-radius: 16px 0 0;
}
.specimen-card::after {
  right: -13px;
  bottom: -13px;
  border-right: 3px solid var(--coral);
  border-bottom: 3px solid var(--coral);
  border-radius: 0 0 16px;
}
.specimen-head,
.specimen-foot {
  display: flex;
  align-items: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .11em;
}
.specimen-head {
  min-height: 46px;
  padding: .2rem .85rem .35rem;
  justify-content: space-between;
  color: #7898ce;
  font-size: .67rem;
  font-weight: 800;
}
.specimen-state {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--cream);
}
.specimen-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 5px rgba(255, 111, 92, .12);
  animation: status-pulse 1.5s ease-out infinite;
}
.specimen-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid rgba(93, 151, 255, .28);
  border-radius: 17px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(72, 132, 238, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 132, 238, .05) 1px, transparent 1px),
    radial-gradient(circle at 50% 44%, rgba(18, 104, 255, .2), transparent 58%),
    #020b20;
  background-size: 32px 32px, 32px 32px, auto, auto;
}
.specimen-stage::before {
  content: "";
  position: absolute;
  inset: 5.5%;
  border: 1px solid rgba(255, 242, 223, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(18, 104, 255, .025);
}
.specimen-stage img {
  position: relative;
  z-index: 2;
  width: 91%;
  border-radius: 50%;
  filter: drop-shadow(0 24px 32px rgba(0, 0, 0, .38));
  animation: bull-float 5.5s ease-in-out infinite;
}
.stage-index {
  position: absolute;
  z-index: 3;
  color: rgba(138, 177, 241, .55);
  font: 800 .62rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .14em;
}
.stage-index-top { top: 1.1rem; left: 1.1rem; }
.stage-index-bottom { right: 1.1rem; bottom: 1.1rem; }
.specimen-warning {
  position: absolute;
  z-index: 4;
  right: 1.15rem;
  top: 1.1rem;
  padding: .62rem .72rem;
  color: var(--ink);
  background: var(--coral);
  box-shadow: 5px 5px 0 var(--blue);
  font: 900 .72rem/1 Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: .1em;
  transform: rotate(2.5deg);
}
.specimen-foot {
  min-height: 68px;
  padding: .7rem .85rem .45rem;
  justify-content: space-between;
  gap: 1rem;
}
.specimen-foot span { min-width: 0; display: grid; gap: .35rem; }
.specimen-foot small {
  color: #526f9f;
  font-size: .55rem;
  font-weight: 800;
}
.specimen-foot b {
  overflow: hidden;
  color: #bdd1f3;
  font-size: .68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.specimen-foot span:last-child b { color: var(--coral); }

.ticker {
  overflow: hidden;
  border-top: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  background: var(--blue);
  transform: rotate(-1deg) scale(1.01);
}
.ticker-track {
  width: max-content;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  color: white;
  text-transform: uppercase;
  font: 900 1rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
  animation: ticker-run 26s linear infinite;
}
.ticker b { color: var(--coral); }

.generator {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(circle at 12% 15%, rgba(18,104,255,.2), transparent 28rem),
    linear-gradient(180deg, #061638 0%, #030c23 100%);
}
.generator::before {
  content: "BUILD";
  position: absolute;
  right: -2rem;
  top: 2rem;
  color: rgba(18,104,255,.05);
  font: 900 clamp(8rem, 24vw, 25rem)/.8 Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: -.04em;
  pointer-events: none;
}
.generator-heading {
  position: relative;
  z-index: 1;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: end;
  gap: 3rem;
}
.generator-heading h2 {
  margin: 1.8rem 0 0;
  font: 900 clamp(4rem, 8vw, 8rem)/.82 Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: -.01em;
}
.generator-heading h2 span { color: var(--blue); }
.generator-intro { padding-bottom: .7rem; }
.generator-intro p { margin-bottom: 1.2rem; color: #b6c9eb; font-size: 1.15rem; line-height: 1.55; }
.generator-intro > span {
  display: inline-flex;
  padding: .7rem .85rem;
  border: 1px solid rgba(255,111,92,.48);
  border-radius: 8px;
  color: #ffd0c8;
  background: rgba(255,111,92,.08);
  font: 800 .75rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
}
.generator-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(360px, .86fr) minmax(500px, 1.14fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.generator-preview {
  position: sticky;
  top: var(--generator-sticky-top);
  scroll-margin-top: var(--generator-sticky-top);
}
.generator-preview .generator-screen {
  max-width: max(180px, calc(100svh - var(--generator-sticky-top) - 240px));
  margin-inline: auto;
}
.compact-preview { display: none; }
.generator-screen {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--cream);
  border-radius: 20px;
  background: #020919;
  box-shadow: 14px 14px 0 var(--coral), var(--shadow);
}
.generator-screen::after {
  content: "LIVE PREVIEW";
  position: absolute;
  right: .8rem;
  top: .8rem;
  z-index: 3;
  padding: .55rem .65rem;
  border-radius: 7px;
  color: var(--cream);
  background: rgba(2,9,25,.72);
  backdrop-filter: blur(10px);
  font: 800 .7rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
}
#bull-canvas { width: 100%; height: auto; aspect-ratio: 1; background: #020919; }
.canvas-loading {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  color: #afc5eb;
  background: rgba(2,9,25,.9);
  font: 800 .76rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
  transition: opacity .25s ease, visibility .25s ease;
}
.canvas-loading span {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(35,133,255,.28);
  border-top-color: var(--blue-hot);
  border-radius: 50%;
  animation: generator-spin .7s linear infinite;
}
.canvas-loading.ready { opacity: 0; visibility: hidden; }
.bullprint-row {
  margin-top: 1.8rem;
  padding: .9rem 1rem;
  border-top: 1px solid rgba(94,148,245,.28);
  border-bottom: 1px solid rgba(94,148,245,.28);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: #718cbb;
  font: 800 .76rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
}
.bullprint-row strong { color: var(--cream); font-size: .9rem; }
.bullprint-row span:last-child { justify-self: end; }
.generator-actions {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.generator-button {
  min-height: 50px;
  padding: .75rem .9rem;
  border: 1px solid rgba(83,145,255,.45);
  border-radius: 9px;
  color: #c7d9f8;
  background: rgba(8,29,70,.88);
  cursor: pointer;
  text-transform: uppercase;
  font: 900 .76rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.generator-button:hover:not(:disabled) { border-color: var(--blue-hot); background: rgba(18,104,255,.2); transform: translateY(-2px); }
.generator-button:disabled { cursor: wait; opacity: .45; }
.generator-button-random { color: var(--ink); background: var(--cream); }
.generator-button-random:hover:not(:disabled) { color: var(--cream); background: var(--blue); }
.generator-button-random span { margin-right: .35rem; font-size: 1.15rem; }
.generator-button-download { color: white; background: var(--blue); }
.generator-button-share { border-color: var(--cream); color: var(--ink); background: var(--cream); }
.generator-message { min-height: 2.6em; margin: .9rem 0 0; color: #718cbb; font: .75rem/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; }
.generator-message.success { color: #50eab1; }
.generator-message.error { color: #ff8e7f; }

.generator-controls {
  border: 1px solid rgba(83,145,255,.34);
  border-radius: 20px;
  overflow: clip;
  background: rgba(4,19,51,.72);
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.control-heading {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(83,145,255,.25);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #7e9bcb;
  font: 800 .72rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
}
.control-heading span:last-child { color: var(--coral); }
.generator-fieldset { margin: 0; padding: 1.2rem; border: 0; border-bottom: 1px solid rgba(83,145,255,.2); }
.generator-fieldset legend {
  width: 100%;
  margin: 0;
  padding: 0 0 .9rem;
  color: var(--cream);
  text-transform: uppercase;
  font: 900 .88rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}
.generator-fieldset legend span { margin-right: .6rem; color: var(--blue-hot); font-size: .72rem; }
.option-grid { display: grid; gap: .55rem; }
.option-grid-six { grid-template-columns: repeat(6, 1fr); }
.option-grid-five { grid-template-columns: repeat(5, 1fr); }
.gen-option {
  min-width: 0;
  padding: .4rem .35rem .55rem;
  border: 1px solid rgba(113,157,231,.25);
  border-radius: 10px;
  display: grid;
  grid-template-rows: 64px auto;
  align-items: center;
  justify-items: center;
  gap: .35rem;
  color: #8fa8d1;
  background: rgba(2,9,25,.65);
  cursor: pointer;
  font: 800 .7rem/1.15 ui-monospace, SFMono-Regular, Menlo, monospace;
  transition: transform .14s ease, border-color .14s ease, background .14s ease, color .14s ease;
}
.gen-option:hover { border-color: rgba(35,133,255,.8); color: var(--cream); transform: translateY(-2px); }
.gen-option[aria-pressed="true"] { border-color: var(--blue-hot); color: white; background: rgba(18,104,255,.2); box-shadow: inset 0 0 0 1px var(--blue-hot); }
.gen-option > img { width: 100%; height: 64px; object-fit: contain; }
.gen-option img { filter: drop-shadow(0 5px 7px rgba(0,0,0,.35)); }
.gen-option > span:last-child { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
.option-empty {
  width: 44px;
  height: 44px;
  border: 1px dashed rgba(137,174,236,.42);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #5674a6;
  font-size: 1.15rem;
}
.bg-swatch {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  display: block;
}
.bg-midnight { background: radial-gradient(circle at 70% 20%, #164ca8, #020919 65%); }
.bg-cobalt { background: linear-gradient(145deg, #0d7cff, #0036a8); }
.bg-orbit { background: radial-gradient(circle, transparent 38%, #1268ff 40%, transparent 43%), #03102d; }
.bg-chart { background: linear-gradient(140deg, transparent 48%, #ff6f5c 50%, transparent 52%), repeating-linear-gradient(0deg, #06183d 0 8px, #0c2b60 9px); }
.bg-coral { background: linear-gradient(145deg, #ff8b79, #d53e3e); }
.share-note { margin: 0; padding: 1.1rem 1.2rem 1.25rem; color: #7f98c4; font-size: .88rem; line-height: 1.55; }
.share-note strong { color: var(--cream); }

.preset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.preset-option { padding: .85rem; min-height: 72px; border: 1px solid rgba(113,157,231,.3); border-radius: 10px; text-align: left; color: var(--cream); background: #091d43; cursor: pointer; }
.preset-option strong { display: block; font-size: .95rem; }
.preset-option span { display: block; margin-top: .3rem; color: #a8bddf; font-size: .875rem; }
.preset-option:last-child { grid-column: 1 / -1; }
.preset-option[aria-pressed="true"] { border-color: var(--coral); background: #392536; }
.preset-option:hover { border-color: var(--cream); }
.generator-controls .gen-option { font-size: .875rem; grid-template-rows: 64px minmax(2.3em, auto); }
.generator-controls .gen-option > span:last-child { white-space: normal; overflow-wrap: anywhere; text-align: center; }
.expression-preview { display: block; width: 100%; height: 64px; overflow: hidden; position: relative; }
/* Keep the square face crop independent of direct accessory-image sizing. */
.expression-preview img { position: absolute; width: 150px; max-width: none; height: 150px; left: calc(50% - 83px); top: -36px; }
.scene-option img { object-fit: cover; border-radius: 6px; }
.text-mode-options { display: flex; flex-wrap: wrap; gap: .45rem; }
.text-mode-option { flex: 1 1 auto; min-height: 44px; padding: .6rem; border: 1px solid #395981; border-radius: 8px; background: #081934; color: #b7cbeb; font-size: .875rem; cursor: pointer; }
.text-mode-option[aria-pressed="true"] { background: var(--blue); border-color: #73a9ff; color: #fff; }
.meme-input-row { display: grid; gap: .5rem; margin-top: 1.1rem; }
.meme-input-row label { color: var(--cream); font-size: .9rem; font-weight: 700; }
.meme-input-row textarea { width: 100%; resize: vertical; min-height: 82px; padding: .8rem; border: 1px solid #395981; border-radius: 8px; background: #020d21; color: white; font-family: inherit; font-size: 1rem; line-height: 1.5; }
.meme-input-row textarea::placeholder { color: #829abf; }
.text-count { justify-self: end; color: #99aed1; font-size: .8125rem; }
.clear-meme-text { margin-top: .5rem; min-height: 44px; padding: .5rem .8rem; border: 1px solid #395981; border-radius: 7px; color: #c6d7f3; background: transparent; cursor: pointer; font-size: .875rem; }
.generator-controls :is(button, textarea):focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.generator-controls [hidden] { display: none; }
.generator-button { font-size: .875rem; }

.section-pad { padding: clamp(5rem, 10vw, 9rem) max(1.25rem, calc((100vw - 1180px) / 2)); }
.lore { position: relative; overflow: hidden; }
.lore::after {
  content: "";
  position: absolute;
  right: -16rem;
  top: 8rem;
  width: 34rem;
  height: 34rem;
  border: 1px solid rgba(18,104,255,.22);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(18,104,255,.025), 0 0 0 160px rgba(18,104,255,.015);
  pointer-events: none;
}
.lore-grid {
  position: relative;
  z-index: 1;
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(3rem, 8vw, 8rem);
}
.lore-heading h2, .herd h2, .meme-machine h2, .safety h2, .final-call h2 {
  margin-bottom: 1.5rem;
  font: 900 clamp(3.4rem, 7vw, 7.2rem)/.87 Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: -.01em;
}
.lore-heading h2 em { color: var(--coral); font-style: normal; }
.lore-heading > p { max-width: 560px; color: #a9bee3; font-size: 1.15rem; line-height: 1.7; }
.lore-steps { border-top: 1px solid var(--line); }
.lore-steps article {
  position: relative;
  padding: 1.7rem 0 1.7rem 4.3rem;
  border-bottom: 1px solid var(--line);
}
.lore-steps article > span {
  position: absolute;
  top: 1.9rem;
  left: 0;
  color: var(--blue-hot);
  font: 800 .72rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.lore-steps h3 { margin-bottom: .5rem; text-transform: uppercase; font-size: 1rem; letter-spacing: .08em; }
.lore-steps p { margin: 0; color: #829ac3; line-height: 1.55; }

.story-player {
  position: relative;
  z-index: 2;
  margin-top: clamp(4rem, 8vw, 7rem);
  padding: .8rem;
  border: 1px solid rgba(83,145,255,.4);
  border-radius: 18px;
  background: #020919;
  box-shadow: var(--shadow);
}
.story-player video { width: 100%; aspect-ratio: 16/9; border-radius: 10px; background: #020919; object-fit: cover; }
.player-label {
  padding: .4rem .35rem .9rem;
  display: flex;
  justify-content: space-between;
  color: #7893c2;
  font: 700 .7rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
}
.story-player > p {
  margin: 0;
  padding: 1rem .35rem .3rem;
  text-align: center;
  color: var(--blue-hot);
  font: 800 .72rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .13em;
}

.herd {
  color: var(--ink);
  background: var(--paper);
  clip-path: polygon(0 2%, 100% 0, 100% 98%, 0 100%);
}
.section-kicker.light { color: #36527e; }
.herd-title-row {
  margin: 2.2rem 0 3.5rem;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  align-items: end;
  gap: 4rem;
}
.herd-title-row h2 { margin: 0; }
.herd-title-row h2 span { color: var(--blue); }
.herd-title-row p { margin: 0 0 .6rem; max-width: 420px; color: #3e4d68; font-size: 1.05rem; line-height: 1.6; }
.crew-frame {
  margin: 0;
  padding: .65rem;
  border: 2px solid var(--ink);
  background: var(--ink);
  box-shadow: 14px 14px 0 var(--coral);
  transform: rotate(-.5deg);
}
.crew-frame img { width: 100%; aspect-ratio: 3/1; object-fit: cover; }
.crew-frame figcaption {
  padding: 1rem .7rem .5rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  color: #a7c2ee;
  font: 800 .62rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
  text-align: center;
}

.meme-machine { padding-top: clamp(7rem, 13vw, 11rem); }
.meme-panel {
  overflow: hidden;
  border: 1px solid rgba(74,139,255,.42);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(9,31,74,.9), rgba(2,9,25,.96));
  box-shadow: var(--shadow);
}
.terminal-bar {
  padding: .9rem 1rem;
  border-bottom: 1px solid rgba(95,151,255,.28);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: #708bb8;
  font: 700 .65rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
}
.terminal-bar > span:last-child { justify-self: end; color: #50eab1; }
.terminal-dots { display: flex; gap: .35rem; }
.terminal-dots i { width: 8px; height: 8px; border-radius: 50%; background: #385481; }
.terminal-dots i:first-child { background: var(--coral); }
.terminal-dots i:nth-child(2) { background: #ffcc5b; }
.terminal-dots i:nth-child(3) { background: #50eab1; }
.terminal-body {
  min-height: 590px;
  padding: clamp(2rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 8vw, 8rem);
  background-image:
    linear-gradient(rgba(18,104,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18,104,255,.05) 1px, transparent 1px);
  background-size: 28px 28px;
}
.terminal-body h2 { margin-top: 2rem; }
.terminal-body h2 span { color: var(--blue); }
.terminal-body > div:first-child > p { color: #a9bee3; font-size: 1.1rem; }
.terminal-body small { color: #627ba8; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.signal-box { display: grid; gap: 1.2rem; }
.signal-readout {
  min-height: 218px;
  padding: 2rem;
  border: 1px solid rgba(71,138,255,.45);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(3,15,43,.82);
  box-shadow: inset 0 0 45px rgba(18,104,255,.06);
}
.signal-readout > span { color: #6986b9; font: 700 .7rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .15em; }
.signal-readout strong { margin: 1.1rem 0 .8rem; color: var(--cream); font: 900 clamp(2rem, 5vw, 4rem)/.92 Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; }
.signal-readout p { margin: 0; color: var(--blue-hot); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.signal-readout.flash { animation: signal-flash .5s ease; }
.bull-button {
  min-height: 110px;
  border: 0;
  border-radius: 14px;
  color: white;
  background: var(--blue);
  box-shadow: 0 9px 0 #0037a1, 0 16px 30px rgba(0,0,0,.35);
  cursor: pointer;
  font: 900 clamp(1.5rem, 4vw, 3rem)/.9 Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: .04em;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.bull-button span { display: block; margin-bottom: .35rem; font: 800 .63rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; }
.bull-button:hover { background: var(--blue-hot); transform: translateY(-3px); box-shadow: 0 12px 0 #0037a1, 0 20px 36px rgba(0,0,0,.4); }
.bull-button:active { transform: translateY(7px); box-shadow: 0 2px 0 #0037a1; }

.safety { padding-top: 6rem; }
.warning-tape {
  margin: 0 calc(-1 * max(1.25rem, (100vw - 1180px) / 2)) 5rem;
  padding: .85rem 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--coral);
  text-align: center;
  white-space: nowrap;
  font: 900 .8rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .14em;
  transform: rotate(1deg);
}
.safety-inner {
  display: grid;
  grid-template-columns: auto 1fr .85fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.safety-icon {
  width: 100px;
  height: 100px;
  margin: 0;
  border: 3px solid var(--coral);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--coral);
  font: 900 4rem/1 Impact, sans-serif;
  transform: rotate(-7deg);
}
.safety h2 { margin: 1.8rem 0 0; font-size: clamp(3rem, 6vw, 6.3rem); }
.safety h2 span { color: var(--coral); }
.safety-inner > p:last-child { margin: 0; color: #a7badd; font-size: 1.05rem; line-height: 1.7; }

.status-chip-live { color: #bed8ff; border-color: var(--blue-hot); background: rgba(18,104,255,.16); }
.status-chip-live span { background: var(--blue-hot); animation: none; }
.safety-inner > * { min-width: 0; }
.contract-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(128,171,255,.4);
  border-radius: 12px;
  background: rgba(18,104,255,.08);
}
.hero-contract { max-width: 38rem; margin: 1.5rem auto 0; }
.contract-label { display: block; color: #bed8ff; font-size: .875rem; font-weight: 800; letter-spacing: .04em; }
.contract-address {
  display: block;
  margin: .75rem 0;
  color: var(--cream);
  font: 500 .875rem/1.7 ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow-wrap: anywhere;
  user-select: all;
}
.contract-card button { cursor: pointer; font-family: inherit; }
.contract-card button:disabled { cursor: wait; opacity: .7; }
.contract-feedback, .contract-note { margin: .75rem 0 0; color: #b9d0fa; font-size: .875rem; line-height: 1.6; }
.contract-feedback:empty { margin: 0; }

.final-call {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 760px;
  padding: 7rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--paper);
  color: var(--ink);
}
.final-call img {
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -43%;
  width: min(850px, 80vw);
  border-radius: 50%;
  opacity: .13;
  transform: translateX(-50%);
}
.final-call > p { color: #4b5b75; font: 800 .72rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .15em; }
.final-call h2 { margin: 1.5rem 0 2.5rem; font-size: clamp(4rem, 10vw, 9rem); }
.final-call h2 span { color: var(--blue); }
.final-call .button-primary { position: relative; z-index: 2; }
.final-rings {
  position: absolute;
  z-index: -2;
  width: min(1000px, 90vw);
  aspect-ratio: 1;
  border: 2px solid rgba(18,104,255,.18);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(18,104,255,.035), 0 0 0 180px rgba(18,104,255,.02);
}

footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  color: #6f88b4;
  font: 700 .68rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .06em;
}
footer p { margin: 0; }
footer p:last-child { justify-self: end; }
.footer-brand { color: var(--cream); text-decoration: none; font-weight: 900; }
.footer-brand span { margin-right: .5rem; }
.social-links { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; font: 700 .875rem/1.5 ui-sans-serif, system-ui, sans-serif; }
.social-links a { display: inline-flex; align-items: center; min-height: 44px; color: #b9d0fa; text-decoration: underline; text-underline-offset: 5px; }
.social-links a:hover { color: var(--cream); }
.social-links a:focus-visible { outline: 2px solid var(--cream); outline-offset: 4px; border-radius: 3px; }
@media (max-width: 640px) { footer .social-links { justify-content: center; } }

.confetti-layer { position: fixed; inset: 0; z-index: 100; pointer-events: none; overflow: hidden; }
.confetti {
  position: absolute;
  top: -30px;
  width: 10px;
  height: 18px;
  border-radius: 2px;
  animation: confetti-fall 1.6s cubic-bezier(.17,.67,.28,1) forwards;
}

@keyframes bull-float { 0%,100% { transform: translateY(0) rotate(-.5deg); } 50% { transform: translateY(-14px) rotate(.5deg); } }
@keyframes ticker-run { to { transform: translateX(-50%); } }
@keyframes status-pulse { 70%,100% { box-shadow: 0 0 0 10px rgba(255,111,92,0); } }
@keyframes signal-flash { 0%,100% { transform: scale(1); } 40% { transform: scale(1.02) rotate(-.5deg); border-color: var(--coral); } }
@keyframes confetti-fall { to { transform: translate3d(var(--drift), 110vh, 0) rotate(var(--spin)); opacity: .2; } }
@keyframes generator-spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .nav-shell nav { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 9rem; text-align: center; }
  .hero-copy { position: relative; z-index: 8; }
  .eyebrow { justify-content: center; }
  .hero-deck { margin-right: auto; margin-left: auto; }
  .hero-actions { justify-content: center; }
  .hero-art { min-height: 630px; max-width: 650px; width: 100%; margin: 2rem auto 0; }
  .generator-heading, .generator-shell, .lore-grid, .herd-title-row, .terminal-body, .safety-inner { grid-template-columns: 1fr; }
  .generator-heading { gap: 1rem; }
  .generator-preview { position: static; max-width: 680px; width: 100%; margin: 0 auto; }
  .generator-preview .generator-screen { max-width: none; }
  .generator-controls { margin-top: 1.5rem; }
  .compact-preview {
    position: sticky;
    top: var(--generator-sticky-top);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: .6rem;
    border-bottom: 2px solid var(--blue);
    background: #071b43;
    box-shadow: 0 8px 18px rgba(0,0,0,.24);
  }
  #compact-bull-canvas {
    display: block;
    flex: 0 0 auto;
    width: var(--compact-preview-size);
    height: var(--compact-preview-size);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--ink);
  }
  .compact-preview-copy { min-width: 0; display: grid; gap: .3rem; font-size: .875rem; }
  .compact-preview-copy strong { letter-spacing: .06em; }
  .compact-preview-copy span { color: #b9d0fa; }
  .compact-preview-copy a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }
  .generator-controls :is(button, textarea) { scroll-margin-top: calc(var(--generator-sticky-top) + var(--compact-preview-size) + 40px); }
  .herd-title-row { gap: 1rem; }
  .safety-inner { text-align: center; }
  .safety-icon { margin: 0 auto; }
}

@media (max-width: 640px) {
  .nav-shell { top: .6rem; width: calc(100% - 1.2rem); min-height: 58px; border-radius: 14px; }
  .nav-shell { flex-wrap: wrap; justify-content: center; gap: .5rem; }
  .nav-shell .brand { flex-basis: 100%; justify-content: center; }
  .header-actions { justify-content: center; gap: .4rem; }
  .header-social-button { padding: .65rem .6rem; }
  .brand-mark { width: 40px; height: 40px; }
  .brand { font-size: 1rem; }
  .brand-emoji { display: none; }
  .status-chip { padding: .65rem .7rem; font-size: .6rem; }
  .hero { padding: 10rem 1rem 3rem; }
  h1 { font-size: clamp(4rem, 22vw, 6.3rem); }
  .hero-art { min-height: 440px; margin-top: 2.5rem; }
  .specimen-card { width: calc(100% - .75rem); padding: 7px; border-radius: 18px; box-shadow: 0 28px 60px rgba(0, 0, 0, .42), 10px 10px 0 rgba(18, 104, 255, .1); }
  .specimen-card::before { top: -8px; left: -8px; }
  .specimen-card::after { right: -8px; bottom: -8px; }
  .specimen-head { min-height: 40px; padding: .1rem .55rem .25rem; font-size: .58rem; }
  .specimen-stage { border-radius: 13px; background-size: 24px 24px, 24px 24px, auto, auto; }
  .specimen-stage img { width: 94%; }
  .specimen-warning { top: .75rem; right: .75rem; padding: .52rem .58rem; font-size: .62rem; }
  .stage-index-top { top: .85rem; left: .8rem; }
  .stage-index-bottom { right: .8rem; bottom: .8rem; }
  .specimen-foot { min-height: 59px; padding: .6rem .55rem .35rem; gap: .5rem; }
  .specimen-foot small { font-size: .48rem; }
  .specimen-foot b { font-size: .57rem; }
  .section-pad { padding-right: 1rem; padding-left: 1rem; }
  .generator-heading h2, .lore-heading h2, .herd h2, .meme-machine h2, .safety h2 { font-size: clamp(3.1rem, 15vw, 5rem); }
  .generator-screen { box-shadow: 8px 8px 0 var(--coral), var(--shadow); }
  .option-grid-six { grid-template-columns: repeat(3, 1fr); }
  .option-grid-five { grid-template-columns: repeat(3, 1fr); }
  .gen-option { grid-template-rows: 70px auto; min-height: 104px; }
  .gen-option > img { height: 70px; }
  .control-heading { font-size: .65rem; }
  .bullprint-row { grid-template-columns: 1fr auto; }
  .bullprint-row span:last-child { display: none; }
  .crew-frame { padding: .35rem; box-shadow: 8px 8px 0 var(--coral); overflow: hidden; }
  .crew-frame img { width: 180%; max-width: none; transform: translateX(-22%); }
  .crew-frame figcaption { display: none; }
  .terminal-bar { grid-template-columns: 1fr auto; }
  .terminal-bar > span:nth-child(2) { display: none; }
  .terminal-body { min-height: auto; padding: 2rem 1.2rem; }
  .signal-readout { min-height: 190px; padding: 1.4rem; }
  .bull-button { min-height: 92px; }
  .warning-tape { margin-right: -1rem; margin-left: -1rem; }
  .final-call { min-height: 650px; }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer p:last-child { justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ticker-track { transform: none !important; }
}
