/* ============================================================
   f4rt.cloud
   A two-colour print shop for one artist at a time.
   Palette: paper / ink / electric blue / acid / vermilion.
   Fonts: self-hosted Space Grotesk + Georgia (system serif).
   No external requests, no analytics, no Google.
   ============================================================ */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/space-grotesk-latin.woff2") format("woff2");
}

:root {
  --paper: #f3efe3;
  --paper-warm: #eee8d8;
  --paper-bright: #fbf8ee;
  --ink: #111110;
  --ink-soft: #23231f;
  --blue: #2f35ff;
  --blue-deep: #171cbe;
  --acid: #d8ff45;
  --orange: #ff5a36;
  --pink: #ffb8d9;
  --muted: #67645b;
  --muted-light: #aaa79a;
  --line: rgba(17, 17, 16, 0.18);
  --line-strong: rgba(17, 17, 16, 0.74);
  --line-dark: rgba(243, 239, 227, 0.2);
  --sans: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --pad: clamp(1.25rem, 4.7vw, 5.5rem);
  --max: 1480px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

body:has(dialog[open]) { overflow: hidden; }

img { max-width: 100%; }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--acid); color: var(--ink); }

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

.section {
  padding: clamp(4.5rem, 9vw, 8.5rem) var(--pad);
  border-top: 1px solid var(--line);
  scroll-margin-top: 86px;
}

.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  transform: translateY(-200%);
  background: var(--acid);
  color: var(--ink);
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { transform: none; }

/* ---------- type ---------- */

.kicker,
.micro-label,
.section-index,
.section-aside,
.field-label,
.field-help,
.beta-strip,
.art-panel__seed,
.wall-card__meta,
.space__bar-note {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.7rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.145em;
}

.kicker__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 90, 54, 0.16);
  animation: pulse 2.8s ease-in-out infinite;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2.5rem, 5vw, 5rem);
}

.section-head--dark { border-color: var(--line-dark); }

.section-index {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.section-index span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.64rem;
}

.section-index--light { color: var(--paper); }

.section-aside {
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-align: right;
}

.section-head--dark .section-aside { color: var(--muted-light); }

h1, h2 {
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.88;
}

h2 {
  font-size: clamp(3rem, 5.4vw, 5.85rem);
}

h2 em,
h1 em {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.055em;
}

.body-lede,
.lede {
  font-size: clamp(1.02rem, 1.25vw, 1.2rem);
  line-height: 1.55;
  color: var(--muted);
}

strong { font-weight: 650; }

/* ---------- logo ---------- */

.brand {
  display: inline-flex;
  align-items: baseline;
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: clamp(1.45rem, 1.7vw, 1.75rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.085em;
  text-decoration: none;
  white-space: nowrap;
}

.brand__f { color: var(--blue); }

.brand__four {
  display: inline-grid;
  grid-template-areas: "four";
  margin-left: -0.012em;
  margin-right: -0.005em;
}

.brand__four-a,
.brand__four-b {
  grid-area: four;
  display: block;
}

.brand__four-a {
  color: var(--blue);
  clip-path: inset(0 48% 0 0);
}

.brand__four-b {
  color: var(--orange);
  clip-path: inset(0 0 0 52%);
  transform: translate(0.03em, 0.022em);
  mix-blend-mode: multiply;
}

.brand__rest { color: var(--orange); }

.brand--sm { font-size: 1.35rem; }

/* ---------- buttons / links ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 50px;
  padding: 0.8rem 1.35rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms ease, color 180ms ease;
  white-space: nowrap;
}

.button span[aria-hidden="true"] {
  display: inline-block;
  transition: transform 220ms var(--ease);
}

.button__label { white-space: nowrap; }

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.button:hover span[aria-hidden="true"] { transform: translate(2px, -2px); }
.button:active { transform: none; box-shadow: none; }

.button--sm { min-height: 42px; padding: 0.55rem 1rem; font-size: 0.76rem; }
.button--full { width: 100%; }

.button--ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.button--ink:hover { box-shadow: 4px 4px 0 var(--blue); }

.button--blue {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.button--blue:hover { box-shadow: 4px 4px 0 var(--ink); }

.button--acid {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--ink);
}
.button--acid:hover { box-shadow: 4px 4px 0 var(--paper); }

.button--paper {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.button--paper:hover { box-shadow: 4px 4px 0 var(--acid); }

.button--ghost-dark,
.button--line-dark {
  border-color: var(--line-dark);
  color: var(--paper);
}
.button--ghost-dark:hover,
.button--line-dark:hover { box-shadow: 4px 4px 0 var(--acid); border-color: var(--paper); }

.button--line-ink { border-color: var(--ink); }
.button--line-ink:hover { box-shadow: 4px 4px 0 var(--blue); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 560;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 160ms ease;
}

.text-link:hover { color: var(--blue); }
.text-link--arrow { text-decoration: underline; text-transform: none; letter-spacing: 0; }
.text-link--big { font-size: 1.02rem; font-weight: 650; }
.inline-link {
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.inline-link:hover { color: var(--blue); }

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6ee77e;
  box-shadow: 0 0 0 3px rgba(110, 231, 126, 0.16);
}

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

/* ---------- beta strip ---------- */

.beta-strip {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-height: 31px;
  padding: 0.35rem var(--pad);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.58rem;
  letter-spacing: 0.13em;
}

.beta-strip__tag {
  padding: 0.18rem 0.55rem;
  background: var(--acid);
  color: var(--ink);
  font-weight: 700;
}

.beta-strip__right { margin-left: auto; color: var(--acid); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 3rem);
  min-height: 72px;
  padding: 0.75rem var(--pad);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 91%, transparent);
  backdrop-filter: blur(14px);
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 2.2vw, 2.2rem);
  margin-left: auto;
}

.site-nav a {
  position: relative;
  font-size: 0.76rem;
  font-weight: 560;
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1.5px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms var(--ease);
}

.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  margin-left: 0.5rem;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(3rem, 6.2vw, 6.8rem) var(--pad) clamp(3.5rem, 7vw, 7rem);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(4.2rem, 8.15vw, 8.55rem);
  line-height: 0.82;
  letter-spacing: -0.075em;
}

.hero h1 em {
  position: relative;
  color: var(--blue);
  font-size: 1.06em;
  font-style: italic;
}

.highlight {
  position: relative;
  display: inline-block;
  z-index: 0;
  padding-right: 0.05em;
}

.highlight::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.045em;
  right: -0.03em;
  bottom: 0.05em;
  height: 0.33em;
  background: var(--acid);
  transform: rotate(-1.3deg);
  border-radius: 0.03em 0.08em 0.04em 0.02em;
}

.hero__promise {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.8rem;
  margin-top: clamp(1.4rem, 2.4vw, 2rem);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.9vw, 1.75rem);
  font-style: italic;
  letter-spacing: -0.02em;
}

.hero__promise span {
  font-family: var(--mono);
  font-size: 0.54rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.1rem;
}

.hero .hero__promise + .lede { margin-top: 1.05rem; }

.hero .lede {
  max-width: 51ch;
  margin-top: clamp(1.6rem, 2.6vw, 2.4rem);
  font-size: clamp(1.02rem, 1.15vw, 1.15rem);
}

.hero .lede strong {
  color: var(--ink);
  white-space: nowrap;
  border-bottom: 1.5px solid var(--blue);
  font-weight: 560;
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.hero__proof {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: 36ch;
  margin-top: clamp(2.4rem, 4vw, 4rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--muted);
}

.hero__proof strong { color: var(--ink); }

.proof__mark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--acid);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1;
  transform: rotate(-7deg);
}

/* hero stage */

.hero__stage {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin-left: auto;
  padding: clamp(1.2rem, 2.4vw, 2.3rem) 0 clamp(2rem, 4vw, 3.5rem);
}

.stage__sun {
  position: absolute;
  top: 4%;
  right: 2%;
  width: min(40vw, 390px);
  aspect-ratio: 1;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--acid);
  z-index: 0;
}

.stage__grid {
  position: absolute;
  top: 17%;
  left: 2%;
  width: 58%;
  height: 47%;
  z-index: 0;
  background-image: radial-gradient(var(--ink) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.24;
}

.stage__scribble {
  position: absolute;
  left: -5%;
  top: 2%;
  width: 150px;
  color: var(--ink);
  opacity: 0.55;
  transform: rotate(-9deg);
}

.space-card {
  position: relative;
  z-index: 2;
  width: 72%;
  max-width: 476px;
  margin: 2.7rem 0 0 auto;
  background: var(--paper-bright);
  border: 1.5px solid var(--ink);
  box-shadow: 15px 15px 0 var(--blue), 16.5px 16.5px 0 var(--ink);
  transform: rotate(1.25deg);
  transform-origin: 52% 48%;
  transition: transform 700ms var(--ease), box-shadow 700ms var(--ease);
  will-change: transform;
}

.hero__stage:hover .space-card {
  transform: rotate(0.35deg) translateY(-5px);
  box-shadow: 18px 18px 0 var(--blue), 19.5px 19.5px 0 var(--ink);
}

.space-card__chrome {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  height: 36px;
  padding: 0 0.7rem;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.02em;
  background: #e9e3d3;
}

.chrome-dots { display: flex; gap: 4px; }
.chrome-dots i {
  display: block;
  width: 7px;
  height: 7px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}
.chrome-dots i:first-child { background: var(--orange); }
.chrome-dots i:nth-child(2) { background: var(--acid); }
.chrome-dots i:nth-child(3) { background: var(--blue); }

.space-card__url {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 auto;
  font-weight: 600;
}
.space-card__url .live-dot { width: 5px; height: 5px; }
.space-card__lock { color: var(--muted); font-size: 0.8rem; }

.space-card__art { background: var(--ink); overflow: hidden; }
.space-card__art img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 1.2s var(--ease);
}
.hero__stage:hover .space-card__art img { transform: scale(1.018); }

.space-card__caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.7rem;
  border-top: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.52rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.float-chip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.75rem;
  border: 1.25px solid var(--ink);
  background: var(--paper-bright);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 0.6rem;
  line-height: 1.25;
  animation: float 6s ease-in-out infinite;
}

.float-chip strong { font-weight: 650; }
.float-chip .muted { font-size: 0.56rem; }

.float-chip__icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--acid);
  font-size: 0.75rem;
}
.float-chip__icon--blue { background: var(--blue); color: #fff; }

.float-chip--publish { left: -2%; top: 30%; animation-delay: -2.2s; }
.float-chip--share { right: -3%; bottom: -0.35rem; animation-delay: -4s; }

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--acid);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  width: max-content;
  padding: 0.72rem 0;
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  animation: marquee 34s linear infinite;
}

.marquee__track b { color: var(--orange); font-size: 0.8rem; font-weight: 400; }

/* ---------- claim ---------- */

.claim__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
}

.claim__copy h2 { max-width: 8ch; }
.claim__copy h2 em { color: var(--blue); }

.claim__copy .body-lede {
  max-width: 43ch;
  margin-top: 2rem;
}

.promise-list {
  display: grid;
  gap: 0;
  margin-top: 2.5rem;
  list-style: none;
  border-top: 1px solid var(--line);
}

.promise-list li {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.promise-list li > span {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--orange);
  padding-top: 0.15rem;
}

.promise-list p { font-size: 0.85rem; color: var(--muted); }
.promise-list strong { color: var(--ink); }

.claim-card {
  padding: clamp(1.3rem, 2.4vw, 2.2rem);
  border: 1.5px solid var(--ink);
  background: var(--paper-bright);
  box-shadow: 10px 10px 0 var(--ink), 11.5px 11.5px 0 var(--blue);
}

.claim-card__top,
.claim-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.claim-card__top { padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.claim-card__status { display: flex; align-items: center; gap: 0.4rem; color: var(--muted); }

.field-label {
  display: block;
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.105em;
  margin: 1.45rem 0 0.6rem;
}

.field-label--light { color: var(--paper); }
.optional { color: var(--muted-light); font-weight: 400; letter-spacing: 0.03em; text-transform: none; }

.handle-field {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.72rem 0.85rem;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  font-size: clamp(1.22rem, 2.4vw, 2rem);
  line-height: 1;
  transition: box-shadow 180ms ease, background 180ms ease;
}

.handle-field:focus-within {
  background: #fffdf6;
  box-shadow: 5px 5px 0 var(--acid);
}

.handle-field__prefix {
  color: var(--muted);
  font-size: 0.55em;
  letter-spacing: -0.02em;
}

.handle-field input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0;
  font-weight: 650;
  letter-spacing: -0.055em;
}

.handle-field__suffix {
  flex-shrink: 0;
  color: var(--blue);
  font-weight: 600;
  letter-spacing: -0.055em;
}

.field-help {
  margin-top: 0.55rem;
  font-size: 0.54rem;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-transform: none;
  color: var(--muted);
  font-family: var(--mono);
}
.field-help b { color: var(--ink); font-weight: 600; }
.field-help--dark { color: var(--muted-light); }

.claim-preview {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  margin: 1.25rem 0;
  padding: 0.7rem;
  background: var(--ink);
  color: var(--paper);
  min-height: 104px;
}

.claim-preview__art {
  width: 72px;
  height: 88px;
  overflow: hidden;
  background: var(--ink-soft);
}
.claim-preview__art img { width: 100%; height: 100%; object-fit: cover; display: block; }

.claim-preview__copy { min-width: 0; }
.claim-preview__copy .micro-label { color: var(--muted-light); font-size: 0.48rem; }
.claim-preview__copy strong {
  display: block;
  margin: 0.2rem 0 0.25rem;
  font-size: 0.86rem;
  letter-spacing: -0.02em;
  color: var(--acid);
  overflow-wrap: anywhere;
}
.claim-preview__copy p { font-size: 0.63rem; line-height: 1.4; color: #bab6a8; }
.claim-preview__arrow { font-size: 1.2rem; color: var(--acid); padding-right: 0.3rem; }

.claim-card__foot {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.5rem;
}

/* ---------- studio ---------- */

.studio {
  background: var(--ink);
  color: var(--paper);
  border-top-color: var(--ink);
}

.studio .section-head { color: var(--paper); }

.studio__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.68fr);
  gap: 3rem;
  align-items: end;
  max-width: var(--max);
  margin: 0 auto clamp(3rem, 5vw, 5rem);
}

.studio__intro h2 { font-size: clamp(3.2rem, 6.1vw, 6.5rem); }
.studio__intro h2 em { color: var(--acid); }

.studio__lede {
  max-width: 38ch;
  padding-bottom: 0.6rem;
  color: #b6b2a5;
  font-size: 0.95rem;
  line-height: 1.55;
}

.studio__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 4.5vw, 5rem);
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
}

.controls {
  padding-top: 0.15rem;
  border-top: 1px solid var(--line-dark);
}

.control-group { margin-top: 1.35rem; }
.control-group:first-child { margin-top: 1.5rem; }
.control-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.control-label-row .field-label { margin-top: 0; }

.surprise {
  border: 0;
  background: none;
  padding: 0;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.57rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.surprise:hover { color: var(--paper); }

.controls textarea,
.controls input[type="text"],
.controls select {
  display: block;
  width: 100%;
  border: 1px solid #494941;
  border-radius: 0;
  background: #191918;
  color: var(--paper);
  padding: 0.9rem;
  outline: 0;
  transition: border-color 160ms ease, background 160ms ease;
}

.controls textarea {
  min-height: 132px;
  resize: vertical;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.controls input[type="text"] { font-size: 0.9rem; }

.controls select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--acid) 50%), linear-gradient(135deg, var(--acid) 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  border-radius: 0;
  font-size: 0.82rem;
}

.controls textarea:focus,
.controls input[type="text"]:focus,
.controls select:focus {
  border-color: var(--acid);
  background-color: #1d1d1a;
  box-shadow: 0 0 0 1px var(--acid);
}

.control-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.9rem;
}
.control-row .field-label { margin-top: 1.35rem; }

.controls ::placeholder { color: #777468; }

.palette-field { border: 0; padding: 0; margin-left: 0; margin-right: 0; }

.palette-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.palette {
  position: relative;
  display: block;
  padding: 0.6rem 0.55rem 0.55rem;
  border: 1px solid #45453e;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.palette:hover { border-color: var(--muted-light); }

.palette input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.palette:has(input:checked) {
  border-color: var(--acid);
  background: rgba(216, 255, 69, 0.07);
}

.palette:has(input:focus-visible) { outline: 2px solid var(--paper); outline-offset: 2px; }

.palette__swatches { display: flex; margin-bottom: 0.45rem; }
.palette__swatches i {
  display: block;
  width: 14px;
  height: 14px;
  margin-right: -3px;
  border: 1px solid rgba(243, 239, 227, 0.35);
  border-radius: 50%;
  background: var(--s);
}

.palette__name {
  display: block;
  font-family: var(--mono);
  font-size: 0.49rem;
  letter-spacing: 0.02em;
  color: #bab6a8;
  white-space: nowrap;
}
.palette:has(input:checked) .palette__name { color: var(--acid); }

.control-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.control-actions .button--acid { flex: 1 1 190px; }
.control-actions .button--ghost-dark { flex: 0 0 auto; }

.engine-note {
  max-width: 45ch;
  margin-top: 1rem;
  color: #8a8778;
  font-family: var(--mono);
  font-size: 0.53rem;
  line-height: 1.65;
  letter-spacing: 0.015em;
}

.studio-note {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-dark);
}

.studio-note .micro-label {
  color: var(--muted-light);
  font-size: 0.5rem;
  letter-spacing: 0.12em;
}

.studio-note ul {
  margin-top: 0.8rem;
  list-style: none;
  border-top: 1px solid rgba(243, 239, 227, 0.12);
}

.studio-note li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(243, 239, 227, 0.12);
}

.studio-note li > span {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.47rem;
  letter-spacing: 0.05em;
  padding-top: 0.1rem;
}

.studio-note li p {
  margin: 0;
  color: #9d9a8c;
  font-size: 0.66rem;
  line-height: 1.5;
}

/* studio stage */

.art-panel { min-width: 0; }

.art-panel__frame {
  position: relative;
  padding: clamp(0.65rem, 1.2vw, 1rem);
  border: 1px solid var(--line-dark);
  background: #1b1b19;
  box-shadow: 12px 12px 0 rgba(216, 255, 69, 0.12);
  transform: rotate(-0.35deg);
}

.art-panel__frame img {
  display: block;
  width: 100%;
  height: auto;
  background: #262622;
}

.art-panel__corner {
  position: absolute;
  width: 13px;
  height: 13px;
  z-index: 2;
  pointer-events: none;
}
.art-panel__corner::before,
.art-panel__corner::after {
  content: "";
  position: absolute;
  background: var(--acid);
}
.art-panel__corner::before { width: 13px; height: 1px; }
.art-panel__corner::after { width: 1px; height: 13px; }
.art-panel__corner--tl { top: 4px; left: 4px; }
.art-panel__corner--tr { top: 4px; right: 4px; transform: rotate(90deg); }
.art-panel__corner--br { bottom: 4px; right: 4px; transform: rotate(180deg); }
.art-panel__corner--bl { bottom: 4px; left: 4px; transform: rotate(270deg); }

.art-panel__loading {
  position: absolute;
  inset: 0.7rem;
  display: none;
  place-items: center;
  background: rgba(17, 17, 16, 0.82);
  backdrop-filter: blur(3px);
  z-index: 3;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.art-panel__loading.is-active { display: grid; }
.art-panel__loading i {
  width: 34px;
  height: 34px;
  margin-top: 0.8rem;
  border: 2px solid var(--acid);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.art-panel__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding: 1rem 0 1.1rem;
  border-bottom: 1px solid var(--line-dark);
}
.art-panel__meta .micro-label { color: var(--acid); font-size: 0.53rem; }
.art-panel__title { margin-top: 0.25rem; font-family: var(--serif); font-size: clamp(1.2rem, 1.8vw, 1.65rem); line-height: 1.05; letter-spacing: -0.02em; }
.art-panel__seed { color: #777468; font-size: 0.52rem; white-space: nowrap; }

.art-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}
.art-panel__actions .button--paper { flex: 1 1 210px; }

/* ---------- wall ---------- */

.wall__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 3rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.wall__head h2 em { color: var(--blue); }

.wall__head p {
  max-width: 31ch;
  padding-bottom: 0.7rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.wall-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4.3vw, 4.2rem) clamp(1.2rem, 2.4vw, 2.4rem);
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
}

.wall-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  text-decoration: none;
  color: inherit;
}

.wall-card:nth-child(2) { margin-top: clamp(1.5rem, 3.5vw, 3.3rem); }
.wall-card:nth-child(5) { margin-top: clamp(0.5rem, 1.8vw, 1.6rem); }

.wall-card__art {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--ink);
}
.wall-card__art::after {
  content: "↗";
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--acid);
  border: 1px solid var(--ink);
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 220ms ease, transform 220ms var(--ease);
}

.wall-card img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 700ms var(--ease), filter 400ms ease;
}
.wall-card:hover img { transform: scale(1.025); filter: saturate(1.06); }
.wall-card:hover .wall-card__art::after { opacity: 1; transform: none; }

.wall-card__caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 0.7rem;
}

.wall-card__title {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.wall-card__handle {
  margin-top: 0.25rem;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.wall-card__meta {
  font-size: 0.48rem;
  color: var(--muted);
  text-align: right;
  line-height: 1.6;
  white-space: nowrap;
}

.wall__note {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- how ---------- */

.how {
  background: var(--blue);
  color: var(--paper);
  border-top-color: var(--blue-deep);
}

.how__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
}

.how .section-index span { border-color: var(--paper); }
.how h2 { margin-top: 1.6rem; font-size: clamp(3rem, 5vw, 5.3rem); }
.how h2 em { color: var(--acid); }

.how__lede {
  max-width: 39ch;
  margin-top: 1.5rem;
  color: #d3d5ff;
  font-size: 0.95rem;
}

.steps {
  margin: 2.5rem 0;
  list-style: none;
  border-top: 1px solid rgba(243, 239, 227, 0.26);
}
.steps li {
  display: grid;
  grid-template-columns: 2.3rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(243, 239, 227, 0.26);
}
.steps li > span {
  font-family: var(--mono);
  font-size: 0.57rem;
  color: var(--acid);
  padding-top: 0.2rem;
}
.steps strong { display: block; margin-bottom: 0.15rem; font-size: 0.94rem; }
.steps p { max-width: 41ch; color: #c9ccff; font-size: 0.75rem; line-height: 1.5; }
.steps b { color: var(--paper); font-weight: 600; }

.how__visual {
  position: relative;
  min-height: 820px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cloud-stack { position: relative; width: min(100%, 520px); height: 820px; }

.cloud-stack__front,
.cloud-stack__back {
  position: absolute;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
}

.cloud-stack__back {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 84%;
  padding: 0.55rem 0.8rem;
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.03em;
  box-shadow: 7px 7px 0 rgba(17, 17, 16, 0.8);
}
.cloud-stack__back span { font-weight: 650; }
.cloud-stack__back i { font-style: normal; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.46rem; }
.cloud-stack__back--one { top: 32px; left: 0; transform: rotate(-5.5deg); background: var(--acid); }
.cloud-stack__back--two { top: 106px; right: 0; transform: rotate(4.8deg); background: var(--pink); }

.cloud-stack__front {
  top: 160px;
  left: 7%;
  width: 86%;
  box-shadow: 14px 14px 0 rgba(17, 17, 16, 0.9), 15.5px 15.5px 0 var(--acid);
  transform: rotate(1.1deg);
  z-index: 2;
}

.cloud-stack__chrome {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--ink);
  background: #e9e3d3;
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.02em;
}
.cloud-stack__chrome span:last-child { margin-left: auto; }
.cloud-stack__front img { display: block; width: 100%; height: auto; }
.cloud-stack__foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.7rem;
  border-top: 1px solid var(--ink);
  font-size: 0.55rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cloud-stack__label {
  position: absolute;
  right: -8%;
  bottom: 17%;
  z-index: 3;
  padding: 0.65rem 0.7rem;
  background: var(--ink);
  color: var(--acid);
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.55rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.08em;
  transform: rotate(-6deg);
  box-shadow: 4px 4px 0 var(--orange);
}

.wildcard-note {
  position: absolute;
  left: -14%;
  bottom: -1.4rem;
  z-index: 4;
  display: flex;
  gap: 0.65rem;
  width: min(84%, 330px);
  padding: 0.7rem;
  background: var(--acid);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  font-size: 0.66rem;
  line-height: 1.4;
}
.wildcard-note__icon { font-family: var(--serif); font-size: 1.7rem; line-height: 0.7; }
.wildcard-note strong { display: block; margin-bottom: 0.15rem; font-size: 0.7rem; }

/* ---------- manifesto ---------- */

.manifesto { background: var(--paper); }
.manifesto__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, 0.87fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: end;
  max-width: var(--max);
  margin: 2.5rem auto 0;
}
.manifesto h2 { font-size: clamp(3.6rem, 7.4vw, 8rem); }
.manifesto h2 em { color: var(--blue); }
.manifesto__copy { padding-bottom: 0.7rem; }
.manifesto__copy p {
  max-width: 44ch;
  margin-bottom: 1.15rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}
.manifesto__copy strong { color: var(--ink); }
.manifesto__copy .text-link { margin-top: 1rem; color: var(--ink); }
.manifesto__copy .text-link:hover { color: var(--blue); }

/* ---------- footer ---------- */

.site-footer {
  padding: clamp(4.5rem, 8vw, 8rem) var(--pad) 2rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
}

.site-footer__cta {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 2rem;
  align-items: end;
  max-width: var(--max);
  margin: 0 auto;
}
.site-footer__cta .section-index { grid-column: 1 / -1; align-self: start; }
.site-footer__cta h2 { font-size: clamp(3rem, 5.7vw, 6.2rem); }
.site-footer__cta h2 em { color: var(--blue); }
.site-footer__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  align-self: end;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 0.7rem;
}

.site-footer__brand {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin: clamp(3rem, 7vw, 6rem) auto 1.5rem;
  font-size: clamp(5.2rem, 17.4vw, 17rem);
  font-weight: 700;
  line-height: 0.74;
  letter-spacing: -0.095em;
  white-space: nowrap;
  user-select: none;
}
.site-footer__brand .brand__four { margin-left: -0.018em; margin-right: -0.005em; }
.site-footer__brand .brand__four-b { transform: translate(0.032em, 0.021em); }
.site-footer__brand .brand__f { color: var(--blue); }
.site-footer__brand .brand__rest { color: var(--orange); }

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}
.site-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.site-footer__bottom a { text-decoration: none; }
.site-footer__bottom a:hover { color: var(--ink); }
.footer-dot { color: var(--orange); font-size: 0.45rem; }

/* ---------- space view ---------- */

.space {
  min-height: 100vh;
  background: var(--paper);
  padding-bottom: var(--pad);
}

.space[hidden] { display: none; }

.space__bar {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  min-height: 68px;
  padding: 0.7rem var(--pad);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 93%, transparent);
  backdrop-filter: blur(14px);
}
.space__bar-note {
  font-size: 0.56rem;
  color: var(--muted);
  letter-spacing: 0.07em;
}
.space__bar-actions { display: flex; align-items: center; gap: 0.55rem; margin-left: auto; }

.space__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 7rem) var(--pad) clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}

.space__identity { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.7rem); }

.space__avatar {
  display: grid;
  place-items: center;
  width: clamp(70px, 8vw, 104px);
  height: clamp(70px, 8vw, 104px);
  flex: 0 0 auto;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--acid);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  box-shadow: 5px 5px 0 var(--blue);
}

.space__header h1 {
  font-size: clamp(2.2rem, 5.6vw, 5.7rem);
  letter-spacing: -0.07em;
  overflow-wrap: anywhere;
}
.space__header .micro-label { margin-bottom: 0.5rem; color: var(--muted); font-size: 0.55rem; }
.space__bio { max-width: 44ch; margin-top: 0.5rem; color: var(--muted); font-size: 0.85rem; }

.space__stat {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
}
.space__stat span { font-family: var(--serif); font-size: clamp(3rem, 6vw, 5.5rem); line-height: 0.7; letter-spacing: -0.06em; }
.space__stat small {
  font-family: var(--mono);
  font-size: 0.5rem;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.space__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.5rem) var(--pad) 4rem;
}

.space__gallery--single {
  grid-template-columns: minmax(0, 780px);
  justify-content: center;
}

.space-piece { border: 0; padding: 0; background: none; text-align: left; }
.space-piece__art {
  border: 1px solid var(--ink);
  background: var(--ink);
  overflow: hidden;
}
.space-piece img { display: block; width: 100%; height: auto; transition: transform 700ms var(--ease); }
.space-piece:hover img { transform: scale(1.018); }
.space-piece__caption { display: flex; justify-content: space-between; gap: 1rem; padding-top: 0.8rem; }
.space-piece__caption h2 { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 400; }
.space-piece__caption p { margin-top: 0.3rem; font-family: var(--mono); font-size: 0.52rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.space-piece__seed { font-family: var(--mono); font-size: 0.48rem; color: var(--muted); white-space: nowrap; }

.space__empty {
  max-width: 640px;
  margin: clamp(2rem, 5vw, 4rem) auto;
  padding: 3rem var(--pad);
  text-align: center;
}
.space__empty-art { position: relative; width: 160px; height: 105px; margin: 0 auto 2rem; }
.empty-cloud {
  position: absolute;
  inset: 22px 18px 0 0;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--acid);
  transform: rotate(-8deg);
}
.empty-cloud--two { inset: 0 0 22px 40px; background: var(--pink); transform: rotate(7deg); mix-blend-mode: multiply; }
.space__empty h2 { margin: 0.6rem 0 1rem; font-size: clamp(2.5rem, 5vw, 4rem); }
.space__empty h2 em { color: var(--blue); }
.space__empty > p:not(.micro-label) { max-width: 40ch; margin: 0 auto 1.5rem; color: var(--muted); font-size: 0.85rem; }

.space__foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1320px;
  margin: 0 auto;
  padding: 1rem var(--pad);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.52rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.space__foot a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- dialogs ---------- */

.dialog {
  width: min(94vw, 585px);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}
.dialog::backdrop {
  background: rgba(17, 17, 16, 0.68);
  backdrop-filter: blur(7px);
}
.dialog[open] .dialog__panel { animation: dialogIn 380ms var(--ease); }

.dialog__panel {
  position: relative;
  max-height: 92vh;
  padding: clamp(1.4rem, 3.2vw, 2.6rem);
  overflow-y: auto;
  border: 1.5px solid var(--ink);
  background: var(--paper-bright);
  box-shadow: 14px 14px 0 var(--blue), 15.5px 15.5px 0 var(--ink);
}

.dialog__close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  font-size: 1.25rem;
  line-height: 1;
  transition: background 160ms ease, transform 160ms ease;
}
.dialog__close:hover { background: var(--acid); transform: rotate(8deg); }

.dialog h2 { margin-top: 0.7rem; font-size: clamp(2.4rem, 5vw, 3.5rem); }
.dialog h2 em { color: var(--blue); }
.dialog__lede { max-width: 44ch; margin-top: 0.85rem; color: var(--muted); font-size: 0.8rem; line-height: 1.5; }

.publish-preview {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 0.8rem;
  align-items: center;
  margin: 1.4rem 0 1.2rem;
  padding: 0.65rem;
  background: var(--ink);
  color: var(--paper);
}
.publish-preview img { width: 84px; height: 105px; object-fit: cover; display: block; }
.publish-preview .micro-label { color: var(--muted-light); font-size: 0.46rem; }
.publish-preview strong { display: block; margin: 0.2rem 0; font-family: var(--serif); font-size: 1.05rem; line-height: 1.1; font-weight: 400; }
.publish-preview span:last-child { display: block; color: #bab6a8; font-family: var(--mono); font-size: 0.48rem; text-transform: uppercase; letter-spacing: 0.05em; }

.handle-field--dialog { font-size: clamp(1.1rem, 2.4vw, 1.45rem); }

.dialog__actions { display: flex; gap: 0.6rem; margin-top: 1.2rem; }

.dialog__error {
  margin-top: 0.9rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--orange);
  background: #fff0eb;
  color: #8e2a12;
  font-family: var(--mono);
  font-size: 0.56rem;
  line-height: 1.5;
}
.dialog__error strong { display: block; color: var(--ink); margin-bottom: 0.1rem; }

.share-card {
  margin: 1.5rem 0 1rem;
  padding: 1rem;
  background: var(--ink);
  color: var(--paper);
}
.share-card .micro-label { color: var(--acid); font-size: 0.5rem; }
.share-card > a {
  display: block;
  margin: 0.35rem 0 0.9rem;
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}
.share-card__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.share-card .button--ink { background: var(--acid); color: var(--ink); border-color: var(--acid); }
.share-card .button--line-ink { border-color: var(--paper); color: var(--paper); }

.dialog__foot {
  margin: 0.9rem 0 1.2rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.53rem;
  line-height: 1.6;
}

#publish-success-state .text-link { margin-top: 0.4rem; }

/* art lightbox */

.dialog--art {
  width: min(94vw, 1080px);
  color: var(--paper);
}
.dialog--art .art-dialog__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  max-height: 92vh;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  box-shadow: 14px 14px 0 var(--acid), 15.5px 15.5px 0 var(--blue);
  animation: dialogIn 380ms var(--ease);
}
.art-dialog__art {
  overflow: auto;
  background: #0b0b0a;
  display: flex;
  align-items: center;
  padding: clamp(1rem, 2.4vw, 2rem);
}
.art-dialog__art img { display: block; width: 100%; height: auto; box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4); }
.art-dialog__copy { padding: clamp(1.5rem, 3vw, 2.8rem); overflow-y: auto; display: flex; flex-direction: column; }
.art-dialog__copy .micro-label { color: var(--acid); font-size: 0.52rem; }
.art-dialog__copy h2 { margin: 0.65rem 0 1rem; font-size: clamp(2rem, 3.6vw, 3.2rem); }
.art-dialog__prompt { font-family: var(--serif); font-style: italic; color: #c5c1b4; font-size: 0.95rem; line-height: 1.4; }
.art-dialog__meta {
  margin: 1.4rem 0 1.5rem;
  border-top: 1px solid var(--line-dark);
}
.art-dialog__meta div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px solid var(--line-dark); }
.art-dialog__meta dt { font-family: var(--mono); font-size: 0.5rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted-light); }
.art-dialog__meta dd { margin: 0; font-size: 0.68rem; text-align: right; }
.art-dialog__copy .button { display: flex; width: 100%; margin-top: 0.55rem; }
.art-dialog__copy .button--ink { background: var(--acid); color: var(--ink); border-color: var(--acid); }
.art-dialog__copy .button--line-ink { border-color: var(--line-dark); color: var(--paper); }

.art-dialog__note {
  margin-top: auto;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-dark);
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 0.52rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dialog__close--light {
  border-color: var(--paper);
  background: var(--ink);
  color: var(--paper);
  z-index: 6;
}
.dialog__close--light:hover { background: var(--acid); color: var(--ink); }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  z-index: 300;
  transform: translate(-50%, 180%);
  max-width: 90vw;
  padding: 0.75rem 1rem;
  border: 1px solid var(--acid);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  text-align: center;
  transition: transform 340ms var(--ease);
  pointer-events: none;
}
.toast.is-visible { transform: translate(-50%, 0); }

/* ---------- motion ---------- */

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 90, 54, 0.14); }
  50% { box-shadow: 0 0 0 7px rgba(255, 90, 54, 0.04); }
}

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

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

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

@keyframes dialogIn {
  from { opacity: 0; transform: translateY(22px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

@keyframes artFlash {
  0% { opacity: 0; transform: scale(0.985); }
  100% { opacity: 1; transform: none; }
}

.art-panel__frame img.is-new { animation: artFlash 420ms var(--ease); }

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .hero h1 { font-size: clamp(4rem, 8.7vw, 7.4rem); }
  .float-chip--publish { left: -1%; }
  .float-chip--share { right: -3%; }
}

@media (max-width: 1020px) {
  .site-nav { display: none; }
  .site-header__actions { margin-left: auto; }
  .hero__grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero__copy { max-width: 730px; }
  .hero h1 { max-width: 12ch; font-size: clamp(4.4rem, 11.4vw, 8rem); }
  .hero__stage { max-width: 660px; margin: 0 auto; width: 100%; }
  .space-card { width: 65%; }
  .claim__grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .claim__copy { max-width: 650px; }
  .claim-card { max-width: 660px; }
  .studio__intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .studio__lede { max-width: 55ch; padding-bottom: 0; }
  .studio__grid { grid-template-columns: 1fr; }
  .controls { max-width: 680px; }
  .art-panel { max-width: 760px; margin: 0 auto; width: 100%; }
  .how__grid { grid-template-columns: 1fr; gap: 4rem; }
  .how__copy { max-width: 680px; }
  .how__visual { min-height: 580px; }
  .manifesto__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .manifesto__copy { max-width: 620px; }
  .site-footer__cta { grid-template-columns: 1fr; }
}

@media (max-width: 840px) {
  .section { padding-top: 4.3rem; padding-bottom: 4.3rem; }
  .section-head { margin-bottom: 2.7rem; }
  .section-aside { display: none; }
  .beta-strip span:nth-child(2) { display: none; }
  .wall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wall-card:nth-child(2) { margin-top: 2rem; }
  .wall-card:nth-child(5) { margin-top: 0; }
  .wall-card:nth-child(4) { margin-top: 1.25rem; }
  .space__header { align-items: flex-start; }
  .space__stat { display: none; }
  .dialog--art .art-dialog__panel { grid-template-columns: 1fr; overflow-y: auto; }
  .art-dialog__art { max-height: 48vh; }
  .art-dialog__copy { overflow: visible; }
  .space__bar-note { display: none; }
}

@media (max-width: 680px) {
  :root { --pad: 1.1rem; }
  .site-header { min-height: 62px; gap: 0.8rem; }
  .site-header__actions .text-link { display: none; }
  .site-header .button { min-height: 39px; padding: 0.45rem 0.8rem; font-size: 0.66rem; }
  .beta-strip { min-height: 28px; font-size: 0.5rem; padding-top: 0.25rem; padding-bottom: 0.25rem; }
  .beta-strip__right { font-size: 0.46rem; }

  .hero { padding-top: 2.7rem; }
  .hero h1 { font-size: clamp(3.35rem, 14.2vw, 5.2rem); max-width: 10.5ch; }
  .hero .lede { font-size: 0.94rem; }
  .hero__actions { gap: 1rem; }
  .hero__actions .button { width: 100%; }
  .hero__actions .text-link { margin-left: 0.15rem; }
  .hero__proof { margin-top: 2.2rem; }
  .hero__stage { padding-top: 0.5rem; padding-bottom: 0.8rem; }
  .stage__sun { width: 54vw; max-width: 280px; top: 0; right: -3%; }
  .stage__scribble { width: 100px; left: -7%; top: -2%; }
  .space-card { width: 78%; margin-top: 2.2rem; box-shadow: 9px 9px 0 var(--blue), 10.5px 10.5px 0 var(--ink); }
  .space-card__chrome { height: 31px; font-size: 0.47rem; }
  .space-card__caption { font-size: 0.44rem; }
  .float-chip { padding: 0.45rem 0.55rem; font-size: 0.51rem; box-shadow: 3px 3px 0 var(--ink); }
  .float-chip__icon { width: 22px; height: 22px; font-size: 0.6rem; }
  .float-chip--publish { left: -3%; top: 27%; }
  .float-chip--share { right: -2%; bottom: 2%; }

  .claim-card { box-shadow: 6px 6px 0 var(--ink), 7.5px 7.5px 0 var(--blue); padding: 1rem; }
  .claim-card__top { padding-bottom: 0.85rem; align-items: center; }
  .claim-card__top .micro-label { white-space: nowrap; max-width: none; font-size: 0.5rem; }
  .handle-field { font-size: 1.22rem; padding: 0.65rem 0.58rem; }
  .handle-field__prefix { display: none; }
  .claim-preview { grid-template-columns: 58px minmax(0, 1fr); gap: 0.65rem; }
  .claim-preview__art { width: 58px; height: 74px; }
  .claim-preview__arrow { display: none; }
  .claim-preview__copy strong { font-size: 0.73rem; }
  .claim-card__foot { font-size: 0.43rem; }

  .studio__intro h2 { font-size: clamp(2.9rem, 12.7vw, 4.4rem); }
  .control-row { grid-template-columns: 1fr; gap: 0; }
  .control-row .field-label { margin-top: 1.35rem; }
  .palette-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .palette__name { font-size: 0.52rem; }
  .control-actions .button { width: 100%; }
  .art-panel__meta { align-items: flex-start; }
  .art-panel__seed { font-size: 0.45rem; }
  .art-panel__actions .button { width: 100%; }
  .art-panel__frame { box-shadow: 7px 7px 0 rgba(216, 255, 69, 0.12); }

  .wall__head { display: block; }
  .wall__head p { margin-top: 1rem; padding-bottom: 0; }
  .wall-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .wall-card:nth-child(2),
  .wall-card:nth-child(4),
  .wall-card:nth-child(5) { margin-top: 0; }
  .wall-card__title { font-size: 1.2rem; }

  .how__visual { display: block; min-height: 0; margin-top: 0.5rem; padding-bottom: 0; }
  .cloud-stack { height: 610px; width: 100%; }
  .cloud-stack__front { top: 118px; left: 3%; width: 94%; }
  .cloud-stack__back { width: 90%; font-size: 0.47rem; }
  .cloud-stack__back--one { top: 25px; }
  .cloud-stack__back--two { top: 83px; }
  .cloud-stack__label { display: none; }
  .wildcard-note { position: relative; left: auto; bottom: auto; width: 100%; margin-top: 1.1rem; font-size: 0.57rem; }
  .wildcard-note__icon { font-size: 1.3rem; }

  .manifesto h2 { font-size: clamp(3rem, 14vw, 5rem); }
  .manifesto__copy p { font-size: 0.9rem; }

  .site-footer { padding-top: 3.5rem; }
  .site-footer__brand { font-size: clamp(4.7rem, 21vw, 7rem); }
  .site-footer__cta h2 { font-size: clamp(2.5rem, 10.5vw, 3.4rem); }
  .site-footer__actions { gap: 1rem; justify-content: flex-start; }
  .site-footer__actions .button { width: 100%; }
  .site-footer__actions .text-link { margin-left: 0.1rem; }
  .site-footer__bottom { display: block; }
  .site-footer__bottom nav { margin-bottom: 0.8rem; gap: 0.8rem; }
  .site-footer__bottom p { margin-bottom: 0.5rem; }

  .space__bar { gap: 0.7rem; padding-top: 0.5rem; padding-bottom: 0.5rem; min-height: 60px; }
  .space__bar .brand { font-size: 1.15rem; }
  .space__bar-actions .button { min-height: 36px; font-size: 0.6rem; padding: 0.35rem 0.65rem; }
  .space__header { display: block; padding-top: 2.4rem; }
  .space__identity { align-items: flex-start; }
  .space__avatar { width: 58px; height: 58px; font-size: 1.8rem; box-shadow: 3px 3px 0 var(--blue); }
  .space__header h1 { font-size: clamp(1.75rem, 8vw, 2.7rem); }
  .space__bio { font-size: 0.75rem; }
  .space__gallery { grid-template-columns: 1fr; gap: 2.4rem; }
  .space__foot { display: block; line-height: 1.8; }

  .dialog { width: 95vw; }
  .dialog__panel { box-shadow: 8px 8px 0 var(--blue), 9.5px 9.5px 0 var(--ink); }
  .dialog--art .art-dialog__panel { box-shadow: 8px 8px 0 var(--acid), 9.5px 9.5px 0 var(--blue); }
  .art-dialog__art { padding: 0.7rem; max-height: 42vh; }
  .art-dialog__copy { padding: 1.2rem; }
  .art-dialog__copy h2 { font-size: 2rem; }

  .toast { bottom: 0.75rem; font-size: 0.55rem; }
}

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