/* ---------------------------------------------
   paid's home — monochrome index
   --------------------------------------------- */

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-300.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  /* Three values only: black, graphite, white. */
  --bg: #000000;
  --graphite: #8d8d8d;
  --white: #ffffff;
  --ink: #f2f2f2;
  --soft: rgba(255, 255, 255, 0.56);
  --faint: rgba(255, 255, 255, 0.32);
  --dim: rgba(255, 255, 255, 0.16);
  --line: rgba(255, 255, 255, 0.12);
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --terminal: "SFMono-Regular", Menlo, Monaco, "Cascadia Mono", "IBM Plex Mono", monospace;
  --serif: "Instrument Serif", "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --cursor-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%23ffffff' stroke-opacity='.85' stroke-width='1.1' stroke-linecap='round'/%3E%3C/svg%3E") 12 12, crosshair;
}

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

/* One cursor for the whole site. Links, buttons, inputs, text — all plus. */
* {
  cursor: var(--cursor-plus) !important;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100svh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-gate {
  height: 100svh;
  overflow: hidden;
}

html {
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  width: 0;
  height: 0;
}

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

button {
  font: inherit;
}

::selection {
  color: #000;
  background: #fff;
}

:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.72);
  outline-offset: 5px;
}

/* After a pointer interaction, no focus outline. Keyboard focus keeps it. */
html[data-pointer] :focus,
html[data-pointer] :focus-visible {
  outline: none !important;
}

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

/* ---------------------------------------------
   Atmosphere
   --------------------------------------------- */

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #000;
}

/* Everything behind the type is deliberately out of focus. */
.ambient__halo {
  position: absolute;
  left: 50%;
  top: 46%;
  border-radius: 50%;
  filter: blur(70px);
  transform: translate(-50%, -50%);
  animation: ambientBreathe 14s ease-in-out infinite alternate;
  will-change: opacity, transform;
}

.ambient__halo--core {
  width: min(46vw, 46vh);
  height: min(46vw, 46vh);
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.075),
    rgba(141, 141, 141, 0.035) 42%,
    transparent 72%
  );
  opacity: 0.55;
}

.ambient__halo--wide {
  width: min(130vw, 115vh);
  height: min(130vw, 115vh);
  background: radial-gradient(
    ellipse at 50% 46%,
    rgba(255, 255, 255, 0.035),
    rgba(141, 141, 141, 0.018) 34%,
    transparent 66%
  );
  opacity: 0.75;
  animation-duration: 21s;
  animation-delay: -7s;
}

.ambient__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 20%, transparent 74%, rgba(0, 0, 0, 0.75)),
    radial-gradient(ellipse at 50% 48%, transparent 24%, rgba(0, 0, 0, 0.5) 100%);
}

/* ---------------------------------------------
   HUD
   --------------------------------------------- */

.hud {
  position: absolute;
  left: clamp(20px, 3vw, 38px);
  right: clamp(20px, 3vw, 38px);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--faint);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-7px);
  transition:
    opacity 0.9s ease 0.15s,
    transform 0.9s var(--ease-out) 0.15s;
  pointer-events: none;
}

.hud--top {
  top: max(26px, calc(env(safe-area-inset-top) + 16px));
}

.hud--bottom {
  bottom: max(22px, calc(env(safe-area-inset-bottom) + 14px));
  transform: translateY(7px);
}

.gate.is-on .hud {
  opacity: 1;
  transform: translateY(0);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.16em;
}

.brand__mark {
  display: inline-block;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.55);
  animation: markBreathe 5s ease-in-out infinite;
}

.hud__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  animation: softPulse 2.9s ease-in-out infinite;
}

.hud__center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.28em;
}

/* ---------------------------------------------
   Entrance
   --------------------------------------------- */

.gate {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 1;
  transition:
    opacity 0.78s ease,
    filter 0.9s var(--ease-out),
    transform 1.1s var(--ease-out);
}

.gate[hidden] {
  display: none;
}

.gate.is-leaving {
  opacity: 0;
  filter: blur(7px);
  transform: scale(1.012);
  pointer-events: none;
}

.gate.is-returning {
  opacity: 0;
}

.gate.is-ready {
  cursor: pointer;
}

.intro {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: flex;
  justify-content: center;
  width: min(94vw, 1080px);
  margin: 0;
  color: var(--white);
  font-family: var(--terminal);
  font-size: clamp(13px, 1.35vw, 18px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  opacity: 0;
  filter: blur(9px);
  transform: translate(-50%, -50%) translateY(6px);
  transition:
    opacity 0.8s ease,
    filter 1.1s var(--ease-out),
    transform 1.1s var(--ease-out);
  pointer-events: none;
  will-change: opacity, filter, transform;
}

/* A soft pool of terminal light behind the command. */
.intro::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 360%;
  height: 760%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.12),
    rgba(141, 141, 141, 0.055) 36%,
    transparent 68%
  );
  filter: blur(28px);
  z-index: -1;
  pointer-events: none;
}

.intro.is-in {
  opacity: 1;
  filter: blur(0);
  transform: translate(-50%, -50%);
}

.intro.is-out {
  opacity: 0;
  filter: blur(8px);
  transform: translate(-50%, -50%) translateY(-5px);
  transition-duration: 0.42s;
}

.intro__line {
  display: grid;
  justify-items: center;
  gap: 11px;
}

.intro__command {
  display: inline-grid;
  white-space: pre;
}

.intro__ghost,
.intro__live {
  grid-area: 1 / 1;
  white-space: pre;
}

.intro__ghost {
  visibility: hidden;
}

.intro__live {
  display: inline-flex;
  align-items: baseline;
}

.intro__text {
  color: var(--white);
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.9),
    0 0 18px rgba(255, 255, 255, 0.45),
    0 0 48px rgba(255, 255, 255, 0.2);
}

.intro__cursor {
  display: inline-block;
  margin-left: 0.04em;
  color: var(--white);
  text-shadow:
    0 0 7px rgba(255, 255, 255, 0.85),
    0 0 22px rgba(255, 255, 255, 0.38);
  animation: caretBlink 1.05s steps(1) infinite;
}

.intro__sub {
  color: rgba(255, 255, 255, 0.36);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.24em;
  line-height: 1;
  text-transform: lowercase;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.18);
  opacity: 0;
  transform: translateY(3px);
  transition:
    opacity 0.9s ease 0.08s,
    transform 0.9s var(--ease-out) 0.08s;
}

.intro.is-typed .intro__sub {
  opacity: 1;
  transform: translateY(0);
}

.intro.is-glitching .intro__text {
  animation: textGlitch 0.16s steps(2) infinite;
}

.intro.is-out .intro__cursor {
  animation: none;
  opacity: 0;
}

/* ---------------------------------------------
   Manifest
   The standing text where the flower used to be.
   --------------------------------------------- */

.manifest {
  position: absolute;
  top: 46%;
  left: 50%;
  z-index: 3;
  width: min(90vw, 660px);
  margin: 0;
  color: var(--white);
  text-align: center;
  opacity: 0;
  filter: blur(10px);
  transform: translate(-50%, calc(-50% + 12px));
  transition:
    opacity 1.15s ease,
    filter 1.5s var(--ease-out),
    transform 1.45s var(--ease-out);
  pointer-events: none;
  will-change: opacity, filter, transform;
}

.gate.is-text .manifest {
  opacity: 1;
  filter: blur(0);
  transform: translate(-50%, -50%);
}

/* Opening the index dissolves the text. The hub mark and the two
   entries take the centre, so nothing overlaps. */
.gate.is-index .manifest {
  opacity: 0;
  visibility: hidden;
  filter: blur(7px);
  transform: translate(-50%, -50%) scale(0.965);
  transition:
    opacity 0.55s ease,
    filter 0.7s ease,
    transform 0.7s var(--ease-out),
    visibility 0s linear 0.7s;
}

.manifest__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 clamp(16px, 2.4vh, 24px);
  color: rgba(255, 255, 255, 0.34);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.3em;
  line-height: 1;
  text-transform: uppercase;
}

.manifest__eyebrow::before,
.manifest__eyebrow::after {
  content: "";
  width: clamp(16px, 4vw, 34px);
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.manifest__title {
  margin: 0;
  color: var(--white);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.15rem, 4.9vw, 3.45rem);
  letter-spacing: -0.012em;
  line-height: 1.03;
  text-shadow:
    0 0 22px rgba(255, 255, 255, 0.14),
    0 0 64px rgba(255, 255, 255, 0.05);
}

.manifest__title span {
  display: block;
}

.manifest__body {
  max-width: 390px;
  margin: clamp(18px, 2.8vh, 26px) auto 0;
  color: rgba(255, 255, 255, 0.52);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.015em;
  line-height: 1.95;
}

.manifest__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, 360px);
  margin: clamp(22px, 3.2vh, 30px) auto 0;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.28);
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

/* A single plus at the hub centre, replacing the old dial core. */
.hub-mark {
  position: absolute;
  top: 46%;
  left: 50%;
  z-index: 3;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(0.86);
  transition:
    opacity 0.5s ease,
    transform 0.7s var(--ease-out),
    visibility 0s linear 0.7s;
  pointer-events: none;
}

.gate.is-index .hub-mark {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
  transition:
    opacity 0.55s ease 0.28s,
    transform 0.8s var(--ease-out) 0.24s,
    visibility 0s linear 0s;
}

/* ---------------------------------------------
   Bloom index
   --------------------------------------------- */

.gate.is-index {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%23ffffff' stroke-opacity='.85' stroke-width='1.1' stroke-linecap='round'/%3E%3C/svg%3E") 12 12, crosshair;
}

.gate.is-index .enter {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  pointer-events: none;
}

.bloom-index {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.7s ease 0.1s,
    visibility 0s linear 0.8s;
}

.gate.is-index .bloom-index {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.7s ease 0.1s,
    visibility 0s linear 0s;
}

.bloom-index__item {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 10px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.54);
  font-family: var(--terminal);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: lowercase;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.16);
  cursor: pointer;
  pointer-events: auto;
  transition: color 0.3s ease, letter-spacing 0.35s var(--ease-out);
}

.bloom-index__item::before {
  content: "[" attr(data-index) "] ";
  color: rgba(255, 255, 255, 0.24);
}

.bloom-index__item:hover,
.bloom-index__item:focus-visible {
  color: #fff;
  letter-spacing: 0.26em;
}

.bloom-index__item[data-panel="sauce"] {
  transform: translate(calc(-50% - min(31vw, 280px)), -104px);
}

.bloom-index__item[data-panel="indicators"] {
  transform: translate(calc(-50% + min(29vw, 260px)), 66px);
}

.bloom-hub {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.9s ease 0.2s,
    visibility 0s linear 1.1s;
}

.gate.is-index .bloom-hub {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 1.1s ease 0.35s,
    visibility 0s linear 0s;
}

.bloom-hub__links line {
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
  transition: stroke 0.35s ease, stroke-width 0.35s ease;
}

.bloom-hub__links line.is-hot {
  stroke: rgba(255, 255, 255, 0.32);
}

.bloom-hub__links line.is-active {
  stroke: rgba(255, 255, 255, 0.52);
  stroke-width: 0.9;
}

.bloom-index__item.is-active {
  color: #fff;
  letter-spacing: 0.26em;
}

.bloom-readout {
  position: absolute;
  left: 50%;
  bottom: max(64px, calc(env(safe-area-inset-bottom) + 56px));
  z-index: 4;
  width: min(560px, 84vw);
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.015em;
  line-height: 1.9;
  text-align: center;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
}

.bloom-readout.is-on {
  opacity: 1;
  pointer-events: auto;
}

.bloom-readout.is-swapping {
  opacity: 0;
  transform: translateX(-50%) translateY(6px);
  pointer-events: none;
}

.bloom-readout a {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.24);
  text-underline-offset: 3px;
}

.bloom-readout a:hover {
  text-decoration-color: rgba(255, 255, 255, 0.7);
}

.bloom-esc {
  position: fixed;
  left: 50%;
  bottom: max(20px, calc(env(safe-area-inset-bottom) + 14px));
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.28);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.gate.is-index .bloom-esc {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0s linear 0s;
}

.bloom-esc kbd {
  display: inline-block;
  padding: 2px 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--mono);
  font-size: 7px;
}

.enter {
  position: absolute;
  top: calc(46% + clamp(140px, 18vh, 180px));
  left: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.7ch;
  margin: 0;
  padding: 14px 12px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.26em;
  line-height: 1;
  text-transform: lowercase;
  white-space: nowrap;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition:
    opacity 0.8s ease,
    transform 0.9s var(--ease-out),
    color 0.3s ease,
    visibility 0s linear 0.8s;
  cursor: pointer;
}

.enter.is-in {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition:
    opacity 0.9s ease,
    transform 1s var(--ease-out),
    color 0.3s ease,
    visibility 0s linear 0s;
}

.enter__bracket {
  color: rgba(255, 255, 255, 0.22);
  font-size: 10px;
  letter-spacing: 0;
  transition: color 0.35s ease, transform 0.5s var(--ease-out);
}

.enter__text {
  position: relative;
  padding-bottom: 6px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.enter__text::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  opacity: 0.18;
  transform: scaleX(0.5);
  transition: transform 0.55s var(--ease-out), opacity 0.4s ease;
}

.enter__signal {
  width: 3px;
  height: 3px;
  margin-left: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
  animation: softPulse 2.4s ease-in-out infinite;
}

.enter:hover {
  color: #fff;
}

.enter:hover .enter__text {
  text-shadow: 0 0 17px rgba(255, 255, 255, 0.4);
}

.enter:hover .enter__text::after {
  opacity: 0.72;
  transform: scaleX(1);
}

.enter:hover .enter__bracket:first-child {
  transform: translateX(-2px);
  color: rgba(255, 255, 255, 0.6);
}

.enter:hover .enter__bracket:nth-of-type(2) {
  transform: translateX(2px);
  color: rgba(255, 255, 255, 0.6);
}

.enter:disabled {
  cursor: default;
}

.gate__vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse at 50% 48%, transparent 42%, rgba(0, 0, 0, 0.68) 100%);
  pointer-events: none;
}

.gate__flash {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: radial-gradient(
    circle at 50% 46%,
    rgba(255, 255, 255, 0.48),
    rgba(255, 255, 255, 0.1) 24%,
    transparent 58%
  );
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
}

.gate.is-entering .gate__flash {
  animation: gateFlash 0.95s var(--ease-out);
}

/* ---------------------------------------------
   Card view
   --------------------------------------------- */

.card-view {
  position: relative;
  z-index: 5;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding:
    max(92px, calc(env(safe-area-inset-top) + 78px))
    clamp(16px, 4vw, 48px)
    max(88px, calc(env(safe-area-inset-bottom) + 76px));
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.9s ease,
    visibility 0s linear 0.9s;
}

.card-view.is-visible {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.9s ease,
    visibility 0s linear 0s;
}

.back {
  position: fixed;
  top: max(26px, calc(env(safe-area-inset-top) + 16px));
  left: clamp(20px, 3vw, 38px);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.44);
  font-size: 9px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-7px);
  transition:
    opacity 0.7s ease 0.45s,
    transform 0.8s var(--ease-out) 0.45s,
    color 0.3s ease;
  cursor: pointer;
}

.card-view.is-visible .back {
  opacity: 1;
  transform: translateY(0);
}

.back:hover {
  color: rgba(255, 255, 255, 0.94);
}

.back__arrow {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  transition: transform 0.35s var(--ease-out);
}

.back:hover .back__arrow {
  transform: translateX(-3px);
}

.card-stage {
  width: min(660px, 100%);
  perspective: 1300px;
  opacity: 0;
  filter: blur(9px);
  transform: translateY(30px) scale(0.965);
  transition:
    opacity 1s ease 0.14s,
    filter 1.3s var(--ease-out) 0.14s,
    transform 1.3s var(--ease-out) 0.14s;
}

.card-view.is-visible .card-stage {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.card {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 22%;
  position: relative;
  width: 100%;
  padding: clamp(26px, 4.5vw, 48px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(23, 23, 23, 0.74) 0%, rgba(11, 11, 11, 0.9) 42%, rgba(4, 4, 4, 0.955) 100%);
  box-shadow:
    0 44px 110px rgba(0, 0, 0, 0.74),
    0 2px 0 rgba(255, 255, 255, 0.035) inset,
    0 0 75px rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(28px) saturate(0%);
  -webkit-backdrop-filter: blur(28px) saturate(0%);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition:
    transform 0.65s var(--ease-out),
    border-color 0.5s ease,
    box-shadow 0.5s ease;
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow:
      0 50px 130px rgba(0, 0, 0, 0.78),
      0 2px 0 rgba(255, 255, 255, 0.045) inset,
      0 0 90px rgba(255, 255, 255, 0.04);
  }
}

.card__spot {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    430px circle at var(--mx) var(--my),
    rgba(255, 255, 255, 0.07),
    transparent 42%
  );
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.38) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.38) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse at 72% 4%, #000, transparent 55%);
  mask-image: radial-gradient(ellipse at 72% 4%, #000, transparent 55%);
  pointer-events: none;
}

.card__corner {
  position: absolute;
  width: 15px;
  height: 15px;
  border-color: rgba(255, 255, 255, 0.22);
  border-style: solid;
  pointer-events: none;
}

.card__corner--tl {
  top: 13px;
  left: 13px;
  border-width: 1px 0 0 1px;
  border-radius: 5px 0 0;
}

.card__corner--tr {
  top: 13px;
  right: 13px;
  border-width: 1px 1px 0 0;
  border-radius: 0 5px 0 0;
}

.card__corner--bl {
  bottom: 13px;
  left: 13px;
  border-width: 0 0 1px 1px;
  border-radius: 0 0 0 5px;
}

.card__corner--br {
  right: 13px;
  bottom: 13px;
  border-width: 0 1px 1px 0;
  border-radius: 0 0 5px;
}

.card__number {
  position: absolute;
  top: 50%;
  right: 15px;
  color: rgba(255, 255, 255, 0.19);
  font-size: 7px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  pointer-events: none;
}

.profile {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 19px);
  position: relative;
  z-index: 2;
}

.avatar {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: clamp(72px, 13vw, 94px);
  height: clamp(72px, 13vw, 94px);
  border: 1px solid rgba(255, 255, 255, 0.21);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(64, 64, 64, 0.5), rgba(7, 7, 7, 0.82) 68%);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.018),
    0 0 36px rgba(255, 255, 255, 0.07),
    inset 0 0 28px rgba(255, 255, 255, 0.035);
  place-items: center;
}

.avatar::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.avatar canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: avatarFloat 7s ease-in-out infinite alternate;
}

.avatar__orbit {
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  -webkit-mask-image: linear-gradient(transparent 9%, #000 36%, #000 64%, transparent 91%);
  mask-image: linear-gradient(transparent 9%, #000 36%, #000 64%, transparent 91%);
  animation: orbit 15s linear infinite;
  pointer-events: none;
}

.avatar__status {
  position: absolute;
  right: 3px;
  bottom: 5px;
  z-index: 2;
  width: 12px;
  height: 12px;
  border: 2px solid #090909;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.62);
}

.identity {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 7px;
  color: rgba(255, 255, 255, 0.43);
  font-size: 8px;
  letter-spacing: 0.24em;
  line-height: 1;
  text-transform: uppercase;
}

.identity h1 {
  margin: 0;
  color: #fff;
  font-family: var(--mono);
  font-size: clamp(1.75rem, 4.2vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.95;
  text-shadow: 0 0 32px rgba(255, 255, 255, 0.1);
}

.handle {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.43);
  font-size: 9px;
  letter-spacing: 0.15em;
}

.badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  margin-left: auto;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.52);
  font-size: 8px;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  animation: softPulse 2.9s ease-in-out infinite;
}

.rule {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: clamp(22px, 3.4vw, 30px) 0;
  color: rgba(255, 255, 255, 0.25);
  font-size: 7px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.rule::before,
.rule::after {
  content: "";
  height: 1px;
  flex: 1;
}

.rule::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18));
}

.rule::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent);
}

.rule--soft {
  gap: 0;
  margin: clamp(21px, 3vw, 27px) 0;
}

.rule--soft::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.rule--soft::after {
  display: none;
}

.card__body {
  position: relative;
  z-index: 2;
}

.tagline {
  max-width: 11ch;
  margin: 0 0 17px;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(2.15rem, 5.4vw, 3.25rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.96;
  text-wrap: balance;
}

.tagline::after {
  content: ".";
  color: #fff;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.7);
}

.bio {
  max-width: 50ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-family: var(--mono);
  font-size: clamp(11px, 1.25vw, 13px);
  font-weight: 300;
  letter-spacing: 0.005em;
  line-height: 1.82;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 21px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.015);
  color: rgba(255, 255, 255, 0.44);
  font-size: 7.5px;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  position: relative;
  z-index: 2;
}

.meta__item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.meta__item span {
  color: rgba(255, 255, 255, 0.29);
  font-size: 7px;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.meta__item strong {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.meta__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.65);
}

.card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(24px, 3.5vw, 31px);
  position: relative;
  z-index: 2;
}

.copy {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 13px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.17em;
  line-height: 1;
  text-transform: lowercase;
  cursor: pointer;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}

.copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.1), transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.7s var(--ease-out);
  pointer-events: none;
}

.copy:hover {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.05);
}

.copy:hover::before {
  transform: translateX(110%);
}

.copy__tag {
  color: rgba(255, 255, 255, 0.4);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.copy__icon {
  display: inline-flex;
  width: 12px;
  height: 12px;
  margin-left: 2px;
  opacity: 0.38;
  transition: opacity 0.3s ease;
}

.copy__icon svg {
  width: 100%;
  height: 100%;
}

.copy:hover .copy__icon {
  opacity: 0.8;
}

.copy.is-copied {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.links {
  display: flex;
  gap: 4px;
}

.links a {
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 8px;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: lowercase;
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.links a span {
  color: rgba(255, 255, 255, 0.48);
}

.links a:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.022);
  color: rgba(255, 255, 255, 0.9);
}

.card__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: clamp(24px, 3.4vw, 29px) 0 0;
  color: rgba(255, 255, 255, 0.22);
  font-size: 7px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.card__foot span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 9px;
}

.hint {
  position: fixed;
  left: 50%;
  bottom: max(20px, calc(env(safe-area-inset-bottom) + 14px));
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 10px 14px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: rgba(255, 255, 255, 0.28);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
  cursor: pointer;
  transition: color 0.3s ease, background 0.3s ease;
}

.hint:hover {
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.72);
}

.hint:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.4);
  outline-offset: 2px;
}

.hint kbd {
  display: inline-block;
  margin-right: 2px;
  padding: 2px 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--mono);
  font-size: 7px;
}

/* Staggered card content */

.card-view.is-visible .profile,
.card-view.is-visible .rule,
.card-view.is-visible .card__body,
.card-view.is-visible .meta,
.card-view.is-visible .card__actions,
.card-view.is-visible .card__foot {
  animation: contentIn 0.85s var(--ease-out) both;
}

.card-view.is-visible .profile {
  animation-delay: 0.32s;
}

.card-view.is-visible .rule {
  animation-delay: 0.39s;
}

.card-view.is-visible .card__body {
  animation-delay: 0.44s;
}

.card-view.is-visible .meta {
  animation-delay: 0.51s;
}

.card-view.is-visible .card__actions {
  animation-delay: 0.57s;
}

.card-view.is-visible .card__foot {
  animation-delay: 0.63s;
}

/* ---------------------------------------------
   Toast
   --------------------------------------------- */

.toast {
  position: fixed;
  bottom: max(28px, calc(env(safe-area-inset-bottom) + 20px));
  left: 50%;
  z-index: 60;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(9, 9, 9, 0.94);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 8.5px;
  letter-spacing: 0.13em;
  line-height: 1;
  opacity: 0;
  transform: translate(-50%, 13px);
  transition:
    opacity 0.35s ease,
    transform 0.45s var(--ease-out);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
}

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

/* ---------------------------------------------
   Animation
   --------------------------------------------- */

@keyframes ambientBreathe {
  from {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(0.97);
  }
  to {
    opacity: 0.92;
    transform: translate(-50%, -50%) scale(1.045);
  }
}

@keyframes markBreathe {
  0%,
  100% {
    opacity: 0.55;
    transform: rotate(0deg) scale(0.94);
  }
  50% {
    opacity: 1;
    transform: rotate(45deg) scale(1.06);
  }
}

@keyframes softPulse {
  0%,
  100% {
    opacity: 0.48;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes caretBlink {
  0%,
  54% {
    opacity: 1;
  }
  55%,
  100% {
    opacity: 0;
  }
}

@keyframes textGlitch {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  25% {
    transform: translateX(-1.5px);
    opacity: 0.82;
  }
  50% {
    transform: translateX(1px);
    opacity: 1;
  }
  75% {
    transform: translateX(-0.5px);
    opacity: 0.7;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes gateFlash {
  0% {
    opacity: 0;
  }
  14% {
    opacity: 0.54;
  }
  100% {
    opacity: 0;
  }
}

@keyframes avatarFloat {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(-1px) scale(1.012);
  }
}

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

@keyframes contentIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------------------------------------------
   Responsive
   --------------------------------------------- */

@media (max-width: 620px) {
  .hud {
    font-size: 8px;
    letter-spacing: 0.18em;
  }

  .hud__center {
    display: none;
  }

  .intro {
    font-size: 12px;
    letter-spacing: 0.01em;
  }

  .intro__sub {
    font-size: 7.5px;
  }

  .manifest {
    top: 45%;
    width: 90vw;
  }

  .manifest__eyebrow {
    gap: 10px;
    margin-bottom: 15px;
    font-size: 7px;
    letter-spacing: 0.24em;
  }

  .manifest__title {
    font-size: clamp(1.85rem, 8.8vw, 2.5rem);
  }

  .manifest__body {
    max-width: 32ch;
    margin-top: 16px;
    font-size: 9.5px;
    line-height: 1.85;
  }

  .manifest__meta {
    gap: 12px;
    width: min(100%, 300px);
    margin-top: 20px;
    padding-top: 9px;
    font-size: 6.8px;
    letter-spacing: 0.13em;
  }

  .back {
    font-size: 8px;
    letter-spacing: 0.16em;
  }

  .badge {
    position: absolute;
    top: 0;
    right: 0;
  }

  .profile {
    padding-right: 2px;
  }

  .identity h1 {
    font-size: clamp(1.7rem, 8vw, 2.15rem);
  }

  .card {
    padding: 26px 22px 24px;
    border-radius: 20px;
  }

  .card__number {
    display: none;
  }

  .rule {
    margin: 23px 0;
  }

  .rule--soft {
    margin: 21px 0;
  }

  .tagline {
    max-width: 13ch;
    font-size: clamp(2rem, 9.3vw, 2.7rem);
  }

  .bio {
    font-size: 11.5px;
    line-height: 1.76;
  }

  .meta {
    gap: 8px;
  }

  .meta__item strong {
    font-size: 8.7px;
  }

  .card__actions {
    flex-wrap: wrap;
    margin-top: 23px;
  }

  .copy {
    height: 39px;
  }

  .bloom-index__item {
    font-size: 9px;
    letter-spacing: 0.14em;
  }

  .bloom-index__item:hover,
  .bloom-index__item:focus-visible {
    letter-spacing: 0.17em;
  }

  .bloom-index__item[data-panel="sauce"] {
    transform: translate(calc(-50% - 30vw), -92px);
  }

  .bloom-index__item[data-panel="indicators"] {
    transform: translate(calc(-50% + 27vw), 66px);
  }

  .bloom-readout {
    bottom: max(70px, calc(env(safe-area-inset-bottom) + 62px));
    font-size: 9px;
  }
}

@media (max-width: 420px) {
  .avatar {
    width: 66px;
    height: 66px;
  }

  .profile {
    gap: 13px;
  }

  .eyebrow {
    font-size: 7px;
    letter-spacing: 0.19em;
  }

  .handle {
    font-size: 8px;
  }

  .badge {
    display: none;
  }

  .card-view {
    padding-top: 84px;
  }

  .card {
    padding: 24px 18px 22px;
  }

  .tagline {
    font-size: clamp(1.9rem, 9.7vw, 2.35rem);
  }

  .copy__tag {
    display: none;
  }

  .links a {
    padding: 9px 8px;
  }
}

@media (max-height: 720px) and (min-width: 621px) {
  .card-view {
    padding-top: 76px;
    padding-bottom: 82px;
  }

  .card {
    padding: 28px 36px;
  }

  .tagline {
    font-size: 2.45rem;
    max-width: 13ch;
  }

  .rule {
    margin: 20px 0;
  }

  .card__foot {
    margin-top: 20px;
  }
}

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