/* ───────────────────────────────────────────────────────────────
   Vessel: a specimen cabinet for a jar that never keeps its label.
   A fixed museum shell around content that will not sit still.
   The ONLY thing that adapts is --accent, sampled at runtime from
   whatever image the token is currently wearing.
   ─────────────────────────────────────────────────────────────── */

:root {
  --ink:       #0c100e;
  --ink-2:     #131917;
  --ink-3:     #1b2320;
  --hair:      #2b3531;
  --paper:      #e9e5d8;
  --paper-dim:  #c4c0b3;
  /* Was #7d7d74, which measured 3.87:1 on the darkest panel and drives EVERY
     small mono label on the page. At 10-12px anti-aliasing thins the strokes
     further, so these are solved to ~7:1 to leave headroom for that. */
  --paper-low:   #acaca0;
  --paper-faint: #98988d;
  /* IRIDESCENCE.
     A fired vessel does not have one colour, it has an oil-slick sheen that
     moves. Four stops, each solved independently against --ink-3, the LIGHTEST
     panel any accent text sits on. Solving against the darkest ground instead
     was a real bug: three elements passed on --ink and failed on --ink-3.
     Contrast figures below are against --ink-3. JS re-anchors these on the hue of whatever coin
     the token is currently wearing, so the sheen still answers to the chain.

     Explicit rgba, never color-mix(var, transparent): that pattern collapses to
     fully transparent if a var fails to resolve, and ships invisible ink. */
  --irid-1:      #23c2db;     /* cyan    7.50:1 */
  --irid-2:      #c184eb;     /* violet  5.94:1 */
  --irid-3:      #e872bd;     /* magenta 5.79:1 */
  --irid-4:      #dbaa23;     /* gold    7.48:1 */
  --accent:      #23c2db;     /* the solid stand-in, always the safest stop */
  --accent-glow: rgba(35, 194, 219, .10);
  --accent-line: rgba(35, 194, 219, .32);
  --accent-ink:  #0c100e;
  --irid: linear-gradient(102deg, var(--irid-1) 0%, var(--irid-2) 34%, var(--irid-3) 64%, var(--irid-4) 100%);

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans:  "Archivo", ui-sans-serif, system-ui, "Helvetica Neue", sans-serif;
  --mono:  "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gut: clamp(1.25rem, 4vw, 3rem);
  --rule: 1px solid var(--hair);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.94rem + 0.28vw, 1.0625rem);
  line-height: 1.6;
  /* faint vivarium grain so the flat black never reads as a default page */
  background-image:
    radial-gradient(ellipse 120% 70% at 50% -10%, var(--accent-glow), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.014) 0 1px, transparent 1px 3px);
  transition: background-image 900ms ease;
}

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

.wrap { width: min(1180px, 100% - calc(var(--gut) * 2)); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .8em; letter-spacing: -.02em; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--accent); color: var(--accent-ink); padding: .7rem 1.1rem; font-weight: 600;
}
.skip:focus { left: .5rem; top: .5rem; }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}

/* ─────────────────────────────────────────────── header */

.bar { border-bottom: var(--rule); background: rgba(12, 16, 14, .88); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(9px); }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 62px; }
.ident { display: flex; align-items: center; gap: .6rem; font-weight: 600; letter-spacing: -.01em; }
.ident-t b { font-family: var(--mono); font-weight: 700; font-size: .78em; color: var(--accent); margin-left: .5rem; }
.glyph { width: 12px; height: 12px; border-radius: 50% 50% 50% 2px; background: var(--accent); transform: rotate(-20deg); transition: background 600ms ease; }

.bar-r { display: flex; align-items: center; gap: .5rem; }
.ca {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  background: var(--ink-2); border: var(--rule); color: var(--paper-dim);
  padding: .38rem .6rem; border-radius: 3px; font-family: var(--mono); font-size: .72rem;
}
.ca:hover { border-color: var(--accent); color: var(--paper); }
.ca-l { color: var(--paper-low); }
.lnk { color: var(--paper-dim); text-decoration: none; border: var(--rule); border-radius: 3px; padding: .38rem .7rem; font-size: .78rem; font-weight: 600; }
.lnk:hover { border-color: var(--accent); color: var(--paper); }

/* ─────────────────────────────────────────────── hero */

.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.hero-in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }

.plate-frame {
  position: relative; aspect-ratio: 1; border: var(--rule); background: var(--ink-2);
  padding: 10px; border-radius: 2px;
}
.plate-frame::after {
  content: ""; position: absolute; inset: 10px; border: 1px solid var(--accent-line);
  pointer-events: none;
}
.plate-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 1px; }
.plate-skel { position: absolute; inset: 10px; background: linear-gradient(100deg, var(--ink-3) 30%, var(--ink-2) 50%, var(--ink-3) 70%); background-size: 300% 100%; animation: sweep 1.5s linear infinite; }
@keyframes sweep { to { background-position: -200% 0; } }

.plate-cap {
  display: flex; justify-content: space-between; gap: 1rem; margin-top: .7rem;
  font-family: var(--mono); font-size: .72rem; color: var(--paper-low); text-transform: uppercase; letter-spacing: .06em;
}

.eyebrow { margin: 0 0 .4rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--accent); font-weight: 600; }

.specimen {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 1.2rem + 6.4vw, 6rem);
  line-height: .94; letter-spacing: -.022em; margin: 0;
  overflow-wrap: anywhere;
}
.tick { font-family: var(--mono); font-size: clamp(.95rem, .9rem + .3vw, 1.15rem); color: var(--accent); margin: .7rem 0 0; letter-spacing: .01em; }

.facts { margin: 1.9rem 0 0; padding: 0; border-top: var(--rule); }
.facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .62rem 0; border-bottom: var(--rule); }
.facts dt { color: var(--paper-low); font-size: .82rem; }
.facts dd { margin: 0; color: var(--paper-dim); text-align: right; overflow-wrap: anywhere; }

.note { color: var(--paper-dim); font-size: .93rem; margin: 1.4rem 0 0; max-width: 46ch; }
.note em { color: var(--paper); font-style: italic; font-family: var(--serif); font-size: 1.12em; }

/* ─────────────────────────────────────────────── stat strip */

.strip { border-block: var(--rule); background: var(--ink-2); }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 1.4rem .4rem; text-align: center; border-left: var(--rule); }
.stat:first-child { border-left: 0; }
.n { display: block; font-family: var(--serif); font-size: clamp(1.6rem, 1rem + 2.2vw, 2.7rem); line-height: 1; }
.l { display: block; margin-top: .45rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--paper-low); }

/* ─────────────────────────────────────────────── sections */

.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.9rem); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 1.6rem; display: flex; align-items: baseline; gap: .8rem; }
.h2-n { font-family: var(--mono); font-size: .42em; color: var(--accent); letter-spacing: 0; }
.lede { color: var(--paper-dim); margin: -1rem 0 2rem; max-width: 56ch; }

.ritual, .change, .archive, .collectors { padding: clamp(3rem, 7vw, 5.5rem) 0; border-bottom: var(--rule); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: var(--rule); }
.steps li { padding: 1.5rem 1.3rem 1.7rem; border-left: var(--rule); }
.steps li:first-child { border-left: 0; }
.s-n { font-family: var(--mono); font-size: .7rem; color: var(--accent); margin: 0 0 1.4rem; letter-spacing: .1em; }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 1.42rem; margin: 0 0 .5rem; line-height: 1.1; }
.steps p:last-child { margin: 0; color: var(--paper-dim); font-size: .9rem; }
.steps b { color: var(--paper); font-weight: 600; }

.caveat { margin: 1.6rem 0 0; color: var(--paper-low); font-size: .86rem; max-width: 70ch; border-left: 2px solid var(--hair); padding-left: 1rem; }

/* ─────────────────────────────────────────────── form */

.change-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.cool { display: flex; align-items: baseline; gap: .55rem; border: var(--rule); padding: .45rem .8rem; border-radius: 3px; background: var(--ink-2); }
.cool-l { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--paper-low); }
.cool-v { color: var(--accent); font-size: .95rem; }

.form { border: var(--rule); background: var(--ink-2); padding: clamp(1.2rem, 3vw, 2rem); border-radius: 2px; }
.row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1rem; }
.fld { display: block; margin-bottom: 1.1rem; }
.fld-l { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--paper-low); margin-bottom: .5rem; }
.fld-l i { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--paper-faint); margin-left: .5rem; }
.fld input[type="text"], .fld input:not([type]) {
  width: 100%; background: var(--ink); border: var(--rule); border-radius: 2px; color: var(--paper);
  font-family: var(--mono); font-size: 1rem; padding: .8rem .9rem;
}
.fld input:focus { border-color: var(--accent); outline: none; }
.fld input::placeholder { color: #6a736e; }

.drop { cursor: pointer; }
.drop-in {
  display: flex; align-items: center; justify-content: center; gap: 1rem; min-height: 132px;
  border: 1px dashed var(--hair); border-radius: 2px; background: var(--ink);
  color: var(--paper-low); font-size: .88rem; padding: 1rem; text-align: center;
}
.drop:hover .drop-in, .drop.on .drop-in { border-color: var(--accent); color: var(--paper-dim); }
.drop-in img { width: 96px; height: 96px; object-fit: cover; border-radius: 2px; }

.act { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; margin-top: .4rem; }
.btn {
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 2px;
  font-family: var(--sans); font-weight: 800; font-size: .95rem; letter-spacing: .01em;
  padding: .95rem 1.6rem; cursor: pointer; transition: filter 140ms ease, transform 140ms ease;
}
.btn:hover:not(:disabled) { filter: brightness(1.1); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { background: var(--ink-3); color: var(--paper-low); cursor: not-allowed; }
.act-n { margin: 0; font-size: .84rem; color: var(--paper-low); }
.act-n.err { color: #ff8a6b; }
.act-n.ok { color: var(--accent); }

/* ─────────────────────────────────────────────── archive */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1px; background: var(--hair); border: var(--rule); }
.sk { background: var(--ink); padding: .9rem; display: flex; flex-direction: column; gap: .6rem; text-decoration: none; color: inherit; }
.sk:hover { background: var(--ink-2); }
.sk-img { aspect-ratio: 1; background: var(--ink-3); border-radius: 1px; overflow: hidden; }
.sk-img img { width: 100%; height: 100%; object-fit: cover; }
.sk-no { font-family: var(--mono); font-size: .66rem; color: var(--paper-low); letter-spacing: .08em; }
.sk-n { font-family: var(--serif); font-size: 1.24rem; line-height: 1.05; overflow-wrap: anywhere; }
.sk-m { font-family: var(--mono); font-size: .68rem; color: var(--paper-low); display: flex; justify-content: space-between; gap: .5rem; margin-top: auto; }
.sk-b { color: color-mix(in oklab, var(--accent) 78%, var(--paper-low)); }

.empty { padding: 2.5rem 1rem; text-align: center; color: var(--paper-low); grid-column: 1 / -1; background: var(--ink); }

/* ─────────────────────────────────────────────── collectors */

.board { list-style: none; margin: 0; padding: 0; border-top: var(--rule); max-width: 720px; }
.board li { display: flex; align-items: baseline; gap: 1rem; padding: .8rem 0; border-bottom: var(--rule); }
.board .r { font-family: var(--mono); font-size: .78rem; color: var(--accent); width: 2.4rem; }
.board .w { font-family: var(--mono); font-size: .84rem; color: var(--paper-dim); overflow-wrap: anywhere; flex: 1; text-decoration: none; }
.board .w:hover { color: var(--paper); }
.board .c { font-size: .82rem; color: var(--paper-low); white-space: nowrap; }

/* ─────────────────────────────────────────────── footer */

.foot { padding: 2.6rem 0; }
.foot-in { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--paper-low); font-size: .82rem; }
.foot p { margin: 0; }

/* ─────────────────────────────────────────────── responsive */

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .plate { max-width: 340px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(3) { border-left: 0; }
  .steps li:nth-child(n+3) { border-top: var(--rule); }
  .strip-in { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: var(--rule); }
}
@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-left: 0; border-top: var(--rule); }
  .steps li:first-child { border-top: 0; }
  .foot-in { flex-direction: column; gap: .4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Pre-launch: every live number is blank by design, and the form is inert.
   Nothing on this page may imply a price or a volume before the token exists. */
body[data-prelaunch] .form { opacity: .55; }
body[data-prelaunch] .form input, body[data-prelaunch] .drop { pointer-events: none; }
body[data-prelaunch] .plate-frame::after { border-style: dashed; }



/* ─────────────────────────────────────────────── progress to the next one */

.nextbar { margin: 1.6rem 0 0; }
.nextbar-track { height: 4px; background: var(--ink-3); border-radius: 2px; overflow: hidden; }
/* scaleX, not width: animating a layout property forces reflow every frame. */
.nextbar-track span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left center; background: var(--accent); transition: transform 700ms cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.nextbar-t { margin: .65rem 0 0; font-size: .85rem; color: var(--paper-low); }
.nextbar-t .mono { color: var(--paper-dim); }
.nextbar-t b { color: var(--paper); font-weight: 600; }

/* ─────────────────────────────────────────────── the queue */

.queue { padding: clamp(3rem, 7vw, 5.5rem) 0; border-bottom: var(--rule); }
.qgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--hair); border: var(--rule); }
.q { background: var(--ink); padding: .8rem .7rem 1rem; display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.q-img { aspect-ratio: 1; background: var(--ink-3); border-radius: 1px; overflow: hidden; }
.q-img img { width: 100%; height: 100%; object-fit: cover; }
.q-n { font-family: var(--serif); font-size: 1rem; line-height: 1.1; overflow-wrap: anywhere; }
.q-s { color: var(--paper-low); font-size: .68rem; }
.q-b { font-size: .64rem; color: var(--paper-low); margin-top: auto; }
.q-next { background: var(--ink-3); box-shadow: inset 0 2px 0 var(--accent); }
.q-next .q-b { color: var(--accent); }

/* ─────────────────────────────────────────────── burn box */

.willmove { margin: 0; padding: .8rem .9rem; border: var(--rule); border-radius: 2px; background: var(--ink); color: var(--paper-low); font-size: .9rem; }
.willmove-on { color: var(--accent); border-color: var(--accent-line); }

.elsewhere { margin-top: 1.6rem; border-top: var(--rule); padding-top: 1.2rem; }
.elsewhere summary { cursor: pointer; font-size: .88rem; color: var(--paper-dim); font-weight: 600; }
.elsewhere summary:hover { color: var(--paper); }
.elsewhere p { color: var(--paper-low); font-size: .88rem; max-width: 62ch; }
.elsewhere-n { color: var(--paper-low); font-size: .82rem; }
.cli { background: var(--ink-2); border: var(--rule); border-radius: 2px; padding: .9rem 1rem; overflow-x: auto; }
.cli code { font-family: var(--mono); font-size: .76rem; color: var(--paper-dim); white-space: pre; }
.cli span { color: var(--accent); }

body[data-prelaunch] .form { opacity: .55; }
body[data-prelaunch] .form input { pointer-events: none; }

@media (max-width: 1000px) { .qgrid { grid-template-columns: repeat(3, 1fr); } .q:nth-child(n+4) { border-top: var(--rule); } }
@media (max-width: 560px)  { .qgrid { grid-template-columns: repeat(2, 1fr); } }

/* ─────────────────────────────────────────────── it just changed */

.live { font-family: var(--mono); font-size: .68rem; color: var(--accent); opacity: 0; transform: translateY(-2px); transition: opacity 400ms ease, transform 400ms ease; white-space: nowrap; }
.live.on { opacity: 1; transform: none; }
@media (max-width: 620px) { .live { display: none; } }

body.just-changed .plate-frame { animation: struck 2.4s ease-out; }
@keyframes struck {
  0%   { box-shadow: 0 0 0 0 var(--accent-line); }
  12%  { box-shadow: 0 0 0 10px var(--accent-glow); }
  100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}
@media (prefers-reduced-motion: reduce) { body.just-changed .plate-frame { animation: none; } }

/* An identity whose art is no longer on disk (the bank was rebuilt) shows as a
   struck-out plate rather than a broken-image box. */
.sk-img.gone, .q-img.gone {
  background:
    repeating-linear-gradient(45deg, var(--ink-3) 0 6px, var(--ink-2) 6px 12px);
}

/* ─────────────────────────────────────────────── burn it anywhere
   The single most misunderstood thing about this token gets its own band,
   directly under the hero numbers, not a collapsed panel further down. */

.anywhere { border-bottom: var(--rule); background: var(--ink); }
.anywhere-in {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(1rem, 3vw, 2.4rem); align-items: center;
  padding: 1.5rem 0;
}
.anywhere-k {
  margin: 0; font-family: var(--mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-ink); background: var(--accent);
  padding: .42rem .7rem; border-radius: 2px; white-space: nowrap; font-weight: 700;
}
.anywhere-t { margin: 0; color: var(--paper-dim); font-size: .95rem; max-width: 76ch; }
.anywhere-t b { color: var(--paper); font-weight: 600; }
.anywhere-t .mono { color: var(--accent); }
.anywhere-a {
  white-space: nowrap; font-size: .82rem; font-weight: 600; color: var(--paper-dim);
  text-decoration: none; border: var(--rule); border-radius: 2px; padding: .5rem .85rem;
}
.anywhere-a:hover { border-color: var(--accent); color: var(--paper); }

.elsewhere { margin-top: 1.8rem; border-top: var(--rule); padding-top: 1.5rem; }
.elsewhere-h { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin: 0 0 .6rem; }
.elsewhere p { color: var(--paper-dim); font-size: .92rem; max-width: 66ch; }
.ways { list-style: none; margin: 1.2rem 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair); border: var(--rule); }
.ways li { background: var(--ink); padding: .9rem 1rem; display: flex; flex-direction: column; gap: .3rem; }
.ways b { font-size: .88rem; }
.ways span { color: var(--paper-low); font-size: .82rem; }
.ways code { font-family: var(--mono); font-size: .92em; color: var(--paper-dim); }

@media (max-width: 900px) {
  .anywhere-in { grid-template-columns: 1fr; gap: .8rem; }
  .anywhere-k { justify-self: start; }
  .anywhere-a { justify-self: start; }
  .ways { grid-template-columns: 1fr; }
}


/* ─────────────────────────────────────────────── iridescence
   Applied sparingly: the marks that identify the thing (ticker, numerals,
   the live chip, the progress bar), not every accent on the page. */

.irid-text {
  background-image: var(--irid);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: sheen 14s ease-in-out infinite alternate;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .irid-text { color: var(--accent); -webkit-text-fill-color: var(--accent); }
}
@keyframes sheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.tick, .h2-n, .eyebrow, .ident-t b { }
.tick.irid-text, .h2-n.irid-text { font-weight: inherit; }

.glyph {
  background: var(--irid);
  background-size: 200% 100%;
  animation: sheen 14s ease-in-out infinite alternate;
}
.nextbar-track span { background: var(--irid); background-size: 200% 100%; animation: sheen 9s ease-in-out infinite alternate; }
.anywhere-k { background: var(--irid); background-size: 200% 100%; animation: sheen 11s ease-in-out infinite alternate; }
.plate-frame::after { border-color: var(--accent-line); }

@media (prefers-reduced-motion: reduce) {
  .irid-text, .glyph, .nextbar-track span, .anywhere-k { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════
   IRIDESCENCE, properly.

   A fired vessel does not sit under one flat light. The whole page is
   treated as a dark glazed surface with an oil-slick sheen moving over it:
   a soft colour mesh on the ground, gradient edges on the objects that
   matter, and a sweep on the things you touch.

   Three rules kept throughout:
     · every gradient stop is pre-solved for contrast, so nothing here can
       make text illegible
     · near-black gradients BAND in 8-bit, so a grain layer sits over the
       whole ground
     · only transform and opacity animate
   ═══════════════════════════════════════════════════════════════ */

/* ── the ground: an oil slick, not a flat black ───────────────── */

body::before {
  content: "";
  position: fixed;
  inset: -20vh -10vw;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(42vw 46vh at 16% 6%,  var(--accent-glow), transparent 64%),
    radial-gradient(48vw 44vh at 90% 22%, rgba(193, 132, 235, .17), transparent 66%),
    radial-gradient(44vw 48vh at 64% 94%, rgba(232, 114, 189, .13), transparent 68%),
    radial-gradient(54vw 44vh at 2% 76%,  rgba(219, 170, 35, .10), transparent 70%),
    radial-gradient(36vw 38vh at 46% 44%, rgba(35, 194, 219, .09), transparent 70%);
  animation: drift 46s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1.02); }
  to   { transform: translate3d(2%, 1.5%, 0) scale(1.08); }
}

/* Grain over everything. Near-black gradients band badly in 8-bit and the
   mesh above is exactly the case that shows it. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .62;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.038'/%3E%3C/svg%3E");
}
body { background-image: none; }   /* the mesh replaces the old flat wash */

/* ── an iridescent hairline, reusable ─────────────────────────── */

.irid-rule { position: relative; }
.irid-rule::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--irid);
  background-size: 220% 100%;
  opacity: .55;
  animation: sheen 18s ease-in-out infinite alternate;
}

/* ── the hero plate: the one big moment ───────────────────────── */

.plate-frame {
  border-color: transparent;
  background:
    linear-gradient(var(--ink-2), var(--ink-2)) padding-box,
    var(--irid) border-box;
  background-size: auto, 240% 100%;
  animation: sheen 20s ease-in-out infinite alternate;
}
.plate-frame::after { border-color: rgba(255, 255, 255, .07); }

/* the aura: the vessel throwing colour onto the wall behind it */
.plate { position: relative; }
.plate::before {
  content: "";
  position: absolute; inset: -14% -12% -8%;
  z-index: -1;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 74%);
  filter: blur(18px);
  opacity: .9;
  transition: opacity 900ms ease;
}

.strip { position: relative; }
.strip::before {
  content: "";
  position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: var(--irid); background-size: 220% 100%; opacity: .5;
  animation: sheen 22s ease-in-out infinite alternate;
}

/* ── objects you touch ────────────────────────────────────────── */

.btn {
  background: var(--irid);
  background-size: 200% 100%;
  color: var(--accent-ink);
  animation: sheen 12s ease-in-out infinite alternate;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset;
}
.btn:disabled { background: var(--ink-3); color: var(--paper-low); animation: none; box-shadow: none; }

.sk, .q, .rung { position: relative; isolation: isolate; }
.sk::after, .q::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--irid);
  opacity: 0;
  transition: opacity 260ms ease;
}
.sk:hover::after { opacity: .07; }
.sk:hover { background: var(--ink-2); }
.q-next::after { opacity: .06; }

.lnk:hover, .ca:hover, .anywhere-a:hover { border-color: transparent; background:
    linear-gradient(var(--ink-2), var(--ink-2)) padding-box,
    var(--irid) border-box; }

/* ── small print ──────────────────────────────────────────────── */

::selection { background: var(--irid-3); color: #0c100e; }
:where(a, button, input, [tabindex]):focus-visible { outline-color: var(--irid-1); }

.form { position: relative; }
.form::before {
  content: "";
  position: absolute; inset: -1px; border-radius: 3px; z-index: -1;
  background: var(--irid); background-size: 240% 100%;
  opacity: .30;
  animation: sheen 24s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  body::before, .irid-rule::after, .plate-frame, .strip::before, .btn, .form::before { animation: none; }
}
