/* ==========================================================================
   Einzelkartenshop — editorial commerce, mobile-first
   Ink / Bone / Ultramarine · Bricolage Grotesque + Instrument Sans
   ========================================================================== */

:root {
  --ink: #0b0c0f;
  --ink-2: #14161b;
  --ink-3: #22252d;
  --paper: #f2f1ec;
  --paper-2: #e8e6df;
  --surface: #ffffff;
  --muted: #6b6f78;
  --muted-2: #8d9199;
  --line: rgba(11, 12, 15, 0.11);
  --line-2: rgba(11, 12, 15, 0.2);
  --signal: #2b45ff;
  --signal-deep: #1b2ed4;
  --signal-lite: #a3b0ff;
  --on-dark: #f4f4f2;
  --on-dark-soft: rgba(244, 244, 242, 0.62);

  --pad: 1.15rem;
  --max: 78rem;
  --tap: 50px;
  --r: 3px;
  --r-sm: 2px;
  --hdr: 104px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --font-d: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-b: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-b);
  font-size: 16px;
  font-weight: 450;
  line-height: 1.55;
  letter-spacing: -0.008em;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--signal-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

::selection { background: var(--signal); color: #fff; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

/* —— shared type atoms —————————————————————————————————————————————— */

.eyebrow {
  margin: 0;
  font-family: var(--font-b);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-dot::before {
  content: "";
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  margin-right: 0.7em;
  vertical-align: 0.12em;
  background: var(--signal);
  border-radius: 50%;
}

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--pad);
}

/* —— header ————————————————————————————————————————————————————————— */

.hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(242, 241, 236, 0.82);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.hdr.is-stuck {
  background: rgba(242, 241, 236, 0.94);
  border-bottom-color: var(--line);
}

.hdr-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem var(--pad) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  flex: none;
  transition: transform 0.5s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }
.brand-word {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.045em;
  line-height: 1;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: stretch;
  gap: 0.15rem;
  margin-top: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  position: relative;
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 0.5rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* —— hero (home) ——————————————————————————————————————————————————— */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 80svh;
  display: grid;
  align-items: end;
  background: var(--ink);
  color: var(--on-dark);
}

.hero-art {
  position: absolute;
  inset: -16% -4%;
  z-index: 0;
  transform: translate3d(0, calc(var(--py, 0) * 1px), 0);
  will-change: transform;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.5) contrast(1.08) brightness(0.55) blur(5px);
  animation: kenburns 26s var(--ease-io) infinite alternate;
}

/* —— hero QC overlay (Near Mint pipeline) ——————————————————————————— */

.hero-inspect {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-inspect-grid {
  position: absolute;
  inset: -1px;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(125, 211, 168, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 168, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(163, 176, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163, 176, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px, 72px 72px, 18px 18px, 18px 18px;
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 92%);
}

.hero-inspect-noise {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-reticle {
  position: absolute;
  top: 14%;
  left: 8%;
  right: 8%;
  bottom: 22%;
  max-width: 28rem;
}
.hero-reticle .reticle-corner {
  position: absolute;
  width: 1.35rem;
  height: 1.35rem;
  border-color: rgba(125, 211, 168, 0.75);
  border-style: solid;
  animation: reticle-pulse 3.2s ease-in-out infinite;
}
.hero-reticle .tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
.hero-reticle .tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.hero-reticle .bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.hero-reticle .br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }
.hero-reticle .reticle-cross {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.1rem;
  height: 1.1rem;
  margin: -0.55rem;
  border: 1px solid rgba(125, 211, 168, 0.35);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(125, 211, 168, 0.12);
}
.hero-reticle .reticle-cross::before,
.hero-reticle .reticle-cross::after {
  content: "";
  position: absolute;
  background: rgba(125, 211, 168, 0.45);
}
.hero-reticle .reticle-cross::before {
  left: 50%;
  top: -0.35rem;
  width: 1px;
  height: calc(100% + 0.7rem);
  transform: translateX(-50%);
}
.hero-reticle .reticle-cross::after {
  top: 50%;
  left: -0.35rem;
  height: 1px;
  width: calc(100% + 0.7rem);
  transform: translateY(-50%);
}

.hero-scan-beam {
  position: absolute;
  left: -5%;
  right: -5%;
  height: 3px;
  top: 18%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(125, 211, 168, 0.15) 18%,
    rgba(125, 211, 168, 0.95) 50%,
    rgba(43, 69, 255, 0.85) 82%,
    transparent 100%
  );
  box-shadow:
    0 0 18px rgba(125, 211, 168, 0.55),
    0 0 42px rgba(43, 69, 255, 0.25);
  animation: scan-sweep 4.8s var(--ease-io) infinite;
  opacity: 0;
}

.hero-scan-readout {
  position: absolute;
  top: 1.1rem;
  left: var(--pad);
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", monospace;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(125, 211, 168, 0.72);
}
.hero-scan-readout .scan-live {
  color: rgba(244, 244, 242, 0.45);
  animation: scan-live 2s step-end infinite;
}

.hero-qc {
  position: absolute;
  z-index: 3;
  right: var(--pad);
  top: 3.6rem;
  width: min(12.5rem, 42vw);
  height: min(17.5rem, 48vw);
  min-height: 15.5rem;
  padding: 0;
  border: 1px solid rgba(125, 211, 168, 0.28);
  border-radius: var(--r);
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  background: rgba(8, 10, 14, 0.55);
}

/* Cards streaming behind the glass */
.hero-qc-stream {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-qc-stream::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(8, 10, 14, 0.15) 0%, transparent 28%, transparent 62%, rgba(8, 10, 14, 0.55) 100%),
    linear-gradient(90deg, rgba(8, 10, 14, 0.35) 0%, transparent 18%, transparent 82%, rgba(8, 10, 14, 0.35) 100%);
  pointer-events: none;
}
.hero-qc-track {
  position: absolute;
  inset: -8% -20%;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: center;
  animation: qc-cards-flow 22s linear infinite;
  will-change: transform;
}
.hero-qc-track img {
  width: 82%;
  max-width: 10rem;
  height: auto;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  filter: saturate(1.1) contrast(1.08) brightness(1);
  transform: rotate(-4deg);
}
.hero-qc-track img:nth-child(even) {
  transform: rotate(5deg) translateX(10%);
}
.hero-qc-track img:nth-child(3n) {
  transform: rotate(-7deg) translateX(-8%);
}

.hero-qc-glass {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0.7rem 0.75rem 0.65rem;
  background:
    linear-gradient(180deg, rgba(11, 12, 15, 0.28) 0%, rgba(11, 12, 15, 0.16) 42%, rgba(11, 12, 15, 0.58) 100%);
  backdrop-filter: blur(1.2px);
  -webkit-backdrop-filter: blur(1.2px);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85), 0 0 2px rgba(0, 0, 0, 0.9);
}

@keyframes qc-cards-flow {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -50%, 0); }
}

.hero-qc-head {
  margin: 0 0 0.35rem;
  font-family: ui-monospace, monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 244, 242, 0.55);
}
.hero-qc-meta {
  margin: 0 0 0.65rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: ui-monospace, monospace;
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 244, 242, 0.38);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.55rem;
}
.hero-qc-meta .qc-pulse {
  color: rgba(125, 211, 168, 0.9);
  animation: scan-live 1.4s step-end infinite;
}
.hero-qc-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  --qc-cycle: 12s;
}
.hero-qc-steps li {
  position: relative;
  margin: 0;
  padding: 0.32rem 0 0.32rem 1.05rem;
  font-family: ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244, 244, 242, 0.28);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}
.hero-qc-steps li::before {
  content: "";
  position: absolute;
  left: -0.35rem;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
  border-radius: 1px;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.hero-qc-steps li:nth-child(1) { animation: qc-step var(--qc-cycle) infinite 0s; }
.hero-qc-steps li:nth-child(2) { animation: qc-step var(--qc-cycle) infinite 2.4s; }
.hero-qc-steps li:nth-child(3) { animation: qc-step var(--qc-cycle) infinite 4.8s; }
.hero-qc-steps li:nth-child(4) { animation: qc-step var(--qc-cycle) infinite 7.2s; }

.hero-qc-stamp {
  position: relative;
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.55rem;
  align-items: center;
  animation: stamp-reveal var(--qc-cycle) infinite;
}
.hero-qc-stamp .stamp-ring {
  grid-row: span 2;
  width: 2.35rem;
  height: 2.35rem;
  border: 2px solid rgba(196, 164, 98, 0.55);
  border-radius: 50%;
  position: relative;
}
.hero-qc-stamp .stamp-ring::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px dashed rgba(196, 164, 98, 0.35);
  border-radius: 50%;
  animation: stamp-spin 18s linear infinite;
}
.hero-qc-stamp .stamp-nm {
  font-family: var(--font-d);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #e8d4a8;
}
.hero-qc-stamp .stamp-ok {
  font-family: ui-monospace, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(125, 211, 168, 0.88);
}

@keyframes scan-sweep {
  0% { top: 14%; opacity: 0; }
  6% { opacity: 1; }
  88% { opacity: 1; }
  100% { top: 78%; opacity: 0; }
}
@keyframes scan-live {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.35; }
}
@keyframes reticle-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
@keyframes qc-step {
  0%, 6% { color: rgba(244, 244, 242, 0.28); }
  10%, 22% {
    color: rgba(125, 211, 168, 0.95);
  }
  26%, 100% { color: rgba(244, 244, 242, 0.28); }
}
.hero-qc-steps li:nth-child(1)::before { animation: qc-dot var(--qc-cycle) infinite 0s; }
.hero-qc-steps li:nth-child(2)::before { animation: qc-dot var(--qc-cycle) infinite 2.4s; }
.hero-qc-steps li:nth-child(3)::before { animation: qc-dot var(--qc-cycle) infinite 4.8s; }
.hero-qc-steps li:nth-child(4)::before { animation: qc-dot var(--qc-cycle) infinite 7.2s; }
@keyframes qc-dot {
  0%, 8% { background: transparent; box-shadow: none; }
  12%, 24% {
    background: rgba(125, 211, 168, 0.95);
    box-shadow: 0 0 8px rgba(125, 211, 168, 0.55);
  }
  28%, 100% { background: transparent; box-shadow: none; }
}
@keyframes stamp-reveal {
  0%, 72% { opacity: 0.35; transform: translateY(4px); }
  78%, 94% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0.35; transform: translateY(4px); }
}
@keyframes stamp-spin {
  to { transform: rotate(360deg); }
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(185deg, rgba(11, 12, 15, 0.72) 0%, rgba(11, 12, 15, 0.66) 38%, rgba(11, 12, 15, 0.93) 80%, var(--ink) 100%),
    radial-gradient(90% 60% at 8% 108%, rgba(43, 69, 255, 0.4), transparent 62%);
}
.hero-veil::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 25%);
  mix-blend-mode: overlay;
}

.hero-sig {
  position: absolute;
  left: 0;
  bottom: -0.26em;
  z-index: 2;
  margin: 0;
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 22vw;
  line-height: 0.78;
  letter-spacing: -0.06em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.075);
  pointer-events: none;
  user-select: none;
  animation: sig-drift 34s linear infinite alternate;
}

.hero-in {
  position: relative;
  z-index: 3;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 4.5rem var(--pad) 2.6rem;
}

.hero .eyebrow {
  color: rgba(244, 244, 242, 0.72);
  padding-bottom: 0.85rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  max-width: 26rem;
}

.hero-h1 {
  margin: 0 0 1rem;
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(2.7rem, 13.2vw, 6.6rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.hero-h1 .ln {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}
.hero-h1 .ln > span {
  display: block;
  color: #fff;
}
.hero-h1 .ln:first-child > span { color: rgba(244, 244, 242, 0.48); }

.hero-lead {
  margin: 0 0 1.6rem;
  max-width: 32ch;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--on-dark-soft);
}

.hero-card { display: none; }

.hero-card-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
}
.hero-card-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.card-scan-grid {
  position: absolute;
  inset: 0;
  opacity: 0.65;
  background-image:
    linear-gradient(rgba(125, 211, 168, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 168, 0.14) 1px, transparent 1px);
  background-size: 24px 24px;
  mix-blend-mode: screen;
}
.card-scan-beam {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  top: 0;
  background: linear-gradient(90deg, transparent, #7dd3a8, #a3b0ff, transparent);
  box-shadow: 0 0 14px rgba(125, 211, 168, 0.7);
  animation: card-scan 3.6s var(--ease-io) infinite;
}
.card-corner {
  position: absolute;
  width: 1rem;
  height: 1rem;
  border-color: rgba(125, 211, 168, 0.8);
  border-style: solid;
}
.card-corner.tl { top: 8%; left: 8%; border-width: 2px 0 0 2px; }
.card-corner.tr { top: 8%; right: 8%; border-width: 2px 2px 0 0; }
.card-corner.bl { bottom: 8%; left: 8%; border-width: 0 0 2px 2px; }
.card-corner.br { bottom: 8%; right: 8%; border-width: 0 2px 2px 0; }
.hero-card-stamp {
  position: absolute;
  bottom: 10%;
  right: 8%;
  padding: 0.35rem 0.55rem;
  border: 2px solid rgba(196, 164, 98, 0.7);
  border-radius: var(--r-sm);
  background: rgba(11, 12, 15, 0.72);
  font-family: ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #e8d4a8;
  text-transform: uppercase;
  animation: card-stamp 3.6s var(--ease-io) infinite;
  opacity: 0;
}
@keyframes card-scan {
  0% { top: 8%; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { top: 88%; opacity: 0; }
}
@keyframes card-stamp {
  0%, 72% { opacity: 0; transform: scale(0.9); }
  78%, 92% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.9); }
}

@keyframes kenburns {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.18) translate3d(-1.5%, -2.5%, 0); }
}
@keyframes sig-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-14%); }
}

/* —— buttons ———————————————————————————————————————————————————————— */

.cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  max-width: 24rem;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: var(--tap);
  padding: 0.9rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--font-b);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none !important;
  cursor: pointer;
  background: var(--signal);
  color: #fff !important;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.25s var(--ease);
}
.btn::after {
  content: "→";
  font-size: 1rem;
  letter-spacing: 0;
  transition: transform 0.35s var(--ease);
}
.btn:hover { background: var(--ink); }
.btn:hover::after { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }

.btn-line {
  background: transparent;
  color: var(--on-dark) !important;
  border-color: rgba(255, 255, 255, 0.28);
}
.btn-line:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-ink {
  background: var(--ink);
  color: #fff !important;
}
.btn-ink:hover { background: #fff; color: var(--ink) !important; }

.btn-quiet {
  background: transparent;
  color: var(--ink) !important;
  border-color: var(--line-2);
}
.btn-quiet:hover {
  background: var(--ink);
  color: #fff !important;
  border-color: var(--ink);
}

.txtlink {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 0.3rem;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.txtlink::after {
  content: "→";
  font-size: 0.95rem;
  letter-spacing: 0;
  transition: transform 0.35s var(--ease);
}
.txtlink:hover { color: var(--signal); border-color: var(--signal); }
.txtlink:hover::after { transform: translateX(4px); }

/* —— marquee ————————————————————————————————————————————————————————— */

.mq {
  background: var(--ink);
  color: var(--on-dark);
  border-block: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  padding: 0.85rem 0;
}
.mq-track {
  display: flex;
  width: max-content;
  animation: mq-run 34s linear infinite;
}
.mq-set {
  display: flex;
  align-items: center;
  flex: none;
}
.mq-set span {
  display: inline-flex;
  align-items: center;
  padding-inline: 1.1rem;
  font-family: var(--font-d);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.mq-set span::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-left: 1.15rem;
  border-radius: 50%;
  background: var(--signal);
}
@keyframes mq-run {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* —— sections ———————————————————————————————————————————————————————— */

.band { padding-block: 3.25rem; }
.band + .band { border-top: 1px solid var(--line); }

.sec-head {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.sec-idx {
  margin: 0;
  font-family: var(--font-d);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--signal);
}
.sec-title {
  margin: 0;
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(1.85rem, 8.2vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.sec-lead {
  margin: 0;
  max-width: 44ch;
  color: var(--muted);
  font-size: 0.96rem;
}
.sec-foot { margin-top: 1.75rem; }

/* —— set cards ——————————————————————————————————————————————————————— */

.sets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.6rem;
}

.set {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1rem;
}

.set-art {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--paper-2);
  aspect-ratio: 1;
  isolation: isolate;
}
.set-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.set-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(11, 12, 15, 0.55) 100%);
}
.set:hover .set-art img { transform: scale(1.045); }

.set-flag {
  position: absolute;
  z-index: 2;
  top: 0.7rem;
  left: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.34rem 0.6rem;
  border-radius: var(--r-sm);
  background: var(--signal);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.set-flag.is-soon {
  background: rgba(11, 12, 15, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.set-num {
  position: absolute;
  z-index: 2;
  right: 0.7rem;
  bottom: 0.55rem;
  margin: 0;
  font-family: var(--font-d);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.set-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.set-kicker {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.set-title {
  margin: 0;
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.set-title a {
  color: inherit;
  text-decoration: none;
}
.set-title a:hover { color: var(--signal); }
.set-blurb {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}
.set-actions {
  display: grid;
  gap: 0.7rem;
  margin-top: auto;
  padding-top: 0.45rem;
}
.set-more {
  justify-self: start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}
.set-more:hover { color: var(--ink); }

/* —— variant picker ————————————————————————————————————————————————— */

.picker {
  display: grid;
  gap: 0.55rem;
}
.picker-meta {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.chip {
  appearance: none;
  font: inherit;
  cursor: pointer;
  min-height: 2.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.2;
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.chip.is-disabled,
.chip:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.on-dark .picker-meta { color: rgba(244, 244, 242, 0.6); }
.on-dark .chip {
  border-color: rgba(255, 255, 255, 0.26);
  color: var(--on-dark);
}
.on-dark .chip:hover { border-color: #fff; }
.on-dark .chip.is-active {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

/* —— steps ——————————————————————————————————————————————————————————— */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: step;
}
.steps li {
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0 0.9rem;
  align-items: start;
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-d);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--signal);
  padding-top: 0.28rem;
}
.steps h3,
.steps p { grid-column: 2; }
.steps h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}
.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* —— closer (full-bleed signal band) ——————————————————————————————— */

.closer {
  position: relative;
  overflow: hidden;
  background: var(--signal);
  color: #fff;
}
.closer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 20%
  );
  pointer-events: none;
}
.closer-in {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.4rem var(--pad) 3.6rem;
}
.closer .eyebrow {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.9rem;
}
.closer h2 {
  margin: 0 0 0.9rem;
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(2.3rem, 12vw, 5.2rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  max-width: 20ch;
}
.closer p {
  margin: 0 0 1.7rem;
  max-width: 38ch;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}
.closer .btn { max-width: 24rem; }

/* —— inner page hero ————————————————————————————————————————————————— */

.phero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-dark);
  isolation: isolate;
}
.phero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 90% at 4% 110%, rgba(43, 69, 255, 0.35), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 25%);
  pointer-events: none;
}
.phero-in {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem var(--pad) 2.8rem;
}
.phero .eyebrow { color: var(--signal-lite); margin-bottom: 0.75rem; }
.phero h1 {
  margin: 0 0 0.8rem;
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(2rem, 9.5vw, 3.9rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  color: #fff;
  max-width: 24ch;
  text-wrap: balance;
}
.phero-lead {
  margin: 0;
  max-width: 46ch;
  color: var(--on-dark-soft);
  font-size: 1rem;
}
.phero .cta-group,
.phero .on-dark { margin-top: 1.7rem; }

.phero-grid { display: grid; gap: 1.6rem; }
.phero-cover {
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.phero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* —— prose ——————————————————————————————————————————————————————————— */

.prose { max-width: 40rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  margin: 2.1rem 0 0.6rem;
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.prose h3 {
  margin: 1.5rem 0 0.4rem;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}
.prose p,
.prose li { color: rgba(11, 12, 15, 0.78); }
.prose ul,
.prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.35rem; }
.prose li::marker { color: var(--signal); }
.note {
  margin-top: 1.4rem;
  padding: 0.95rem 1.05rem;
  border-left: 2px solid var(--signal);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.link-list li { border-top: 1px solid var(--line); }
.link-list li:last-child { border-bottom: 1px solid var(--line); }
.link-list a {
  display: grid;
  gap: 0.2rem;
  padding: 1.25rem 0;
  text-decoration: none;
  color: var(--ink);
}
.link-list strong {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.035em;
  transition: color 0.25s var(--ease);
}
.link-list span {
  color: var(--muted);
  font-size: 0.92rem;
}
.link-list a:hover strong { color: var(--signal); }

/* —— cta block (inline, inner pages) ————————————————————————————————— */

.cta-band {
  margin-top: 2.5rem;
  padding: 1.9rem 1.4rem 2rem;
  border-radius: var(--r);
  background: var(--ink);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 100% at 100% 0%, rgba(43, 69, 255, 0.5), transparent 62%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(1.5rem, 6.5vw, 2.1rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #fff;
}
.cta-band p {
  margin: 0 0 1.3rem;
  max-width: 40ch;
  color: var(--on-dark-soft);
  font-size: 0.96rem;
}
.cta-band .btn { max-width: 22rem; }

/* —— sticky mobile buy bar —————————————————————————————————————————— */

.buybar {
  position: fixed;
  z-index: 70;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.6rem var(--pad) calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(242, 241, 236, 0.92);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.45s var(--ease);
}
.buybar.is-in { transform: translateY(0); }
.buybar .btn { max-width: none; }
body:has(.buybar) .ftr {
  padding-bottom: calc(6rem + env(safe-area-inset-bottom));
}

/* —— footer ————————————————————————————————————————————————————————— */

.ftr {
  background: var(--ink);
  color: var(--on-dark-soft);
  padding: 2.6rem 0 2.4rem;
  font-size: 0.9rem;
}
.ftr-in {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--pad);
  display: grid;
  gap: 1.9rem;
}
.ftr .brand { color: #fff; }
.ftr .brand-mark { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16); }
.ftr-tag {
  margin: 0.85rem 0 0;
  max-width: 30ch;
  color: rgba(244, 244, 242, 0.5);
  font-size: 0.88rem;
}
.ftr-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
}
.ftr-nav a {
  color: rgba(244, 244, 242, 0.62);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.25s var(--ease);
}
.ftr-nav a:hover { color: #fff; }
.ftr-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.3rem;
  color: rgba(244, 244, 242, 0.38);
  font-size: 0.76rem;
  letter-spacing: 0.01em;
}

/* —— reveal motion —————————————————————————————————————————————————— */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity 0.8s var(--ease) calc(var(--i, 0) * 80ms),
    transform 0.9s var(--ease) calc(var(--i, 0) * 80ms);
  will-change: opacity, transform;
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* line-by-line clip reveal for display headlines */
.lines .ln {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}
.lines .ln > span { display: block; }
.js .lines[data-reveal] { opacity: 1; transform: none; }
.js .lines .ln > span {
  transform: translate3d(0, 108%, 0);
  transition: transform 1.05s var(--ease);
}
.js .lines.is-in .ln > span { transform: none; }
.js .lines .ln:nth-child(2) > span { transition-delay: 0.1s; }
.js .lines .ln:nth-child(3) > span { transition-delay: 0.2s; }

.js .set[data-reveal] .set-art {
  clip-path: inset(0 0 14% 0);
  transition: clip-path 1.15s var(--ease) calc(var(--i, 0) * 80ms);
}
.js .set[data-reveal].is-in .set-art { clip-path: inset(0 0 0 0); }

/* —— tablet ————————————————————————————————————————————————————————— */

@media (max-width: 639px) {
  .hero-qc {
    top: 3.2rem;
    width: min(11rem, 40vw);
    height: min(15.5rem, 52vw);
    min-height: 14rem;
  }
  .hero-qc-glass { padding: 0.55rem 0.6rem 0.5rem; }
  .hero-qc-steps li {
    padding: 0.22rem 0 0.22rem 0.9rem;
    font-size: 0.52rem;
  }
  .hero-qc-stamp .stamp-nm { font-size: 0.95rem; }
  .hero-qc-stamp .stamp-ring { width: 1.85rem; height: 1.85rem; }
  .hero-reticle { opacity: 0.65; top: 18%; }
  .hero-scan-readout { font-size: 0.52rem; }
}

@media (min-width: 640px) {
  .sets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.6rem; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.6rem; }
  .steps li:last-child { border-bottom: 0; }
  .cta-group { flex-direction: row; max-width: none; }
  .btn { width: auto; min-width: 13rem; }
  .set-actions .btn,
  .buybar .btn { width: 100%; }
  .phero .picker .btn { justify-self: start; }
}

/* —— desktop ———————————————————————————————————————————————————————— */

@media (min-width: 900px) {
  :root { --pad: 2rem; --hdr: 72px; }

  .hdr-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0.85rem var(--pad);
  }
  .brand-mark { width: 34px; height: 34px; }
  .brand-word { font-size: 1.22rem; }
  .nav { margin-top: 0; gap: 0.4rem; overflow: visible; }
  .nav a { flex: none; min-height: 40px; font-size: 0.68rem; padding: 0 0.75rem; }

  .hero {
    min-height: min(84svh, 47rem);
    align-items: center;
  }
  .hero-in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 3.5rem;
    align-items: center;
    padding: 5rem var(--pad) 5.5rem;
  }
  .hero-copy { max-width: 40rem; }
  .hero-h1 { font-size: clamp(3.4rem, 6.2vw, 6.4rem); }
  .hero-lead { font-size: 1.1rem; max-width: 40ch; }
  .hero-sig { font-size: 15vw; }
  .hero-card {
    display: block;
    margin: 0;
    position: relative;
    transform: rotate(4deg) translate3d(0, calc(var(--py, 0) * -0.55px), 0);
    will-change: transform;
  }
  .hero-card-wrap img {
    width: 100%;
    display: block;
    border-radius: var(--r);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.14);
  }
  .hero-card-wrap::after {
    content: "";
    position: absolute;
    inset: -6% 8% 6% -8%;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--r);
    transform: rotate(-9deg);
    pointer-events: none;
  }
  .hero-reticle { left: 12%; max-width: 22rem; }
  .hero-qc {
    bottom: auto;
    top: 5.5rem;
    right: var(--pad);
    width: 15rem;
    height: 20rem;
    min-height: 20rem;
  }
  .hero-qc-glass { padding: 0.85rem 0.9rem 0.8rem; }
  .hero-qc-track img { max-width: 11rem; }

  .band { padding-block: 5rem; }
  .sec-head {
    grid-template-columns: 8rem minmax(0, 1fr);
    grid-template-areas: "idx title" ". lead";
    column-gap: 1.5rem;
    align-items: baseline;
    margin-bottom: 2.75rem;
  }
  .sec-idx { grid-area: idx; padding-top: 0.6rem; }
  .sec-title { grid-area: title; }
  .sec-lead { grid-area: lead; }

  .sets { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.6rem 1.8rem; }
  .set-title { font-size: 1.5rem; }

  .closer-in {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3rem;
    align-items: end;
    padding: 6rem var(--pad) 6.5rem;
  }
  .closer h2 { font-size: clamp(3rem, 5.4vw, 5.4rem); margin-bottom: 0; }
  .closer-side { padding-bottom: 0.5rem; }
  .closer p { margin-bottom: 1.8rem; font-size: 1.08rem; }

  .phero-in { padding: 4rem var(--pad) 4.4rem; }
  .phero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 3.5rem;
    align-items: center;
  }

  .cta-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem 3rem;
    align-items: center;
    padding: 2.6rem 2.4rem;
  }
  .cta-band p { margin-bottom: 0; }
  .cta-band .btn { width: auto; }

  .buybar { display: none; }
  body:has(.buybar) .ftr { padding-bottom: 2.4rem; }

  .ftr { padding: 4rem 0 2.6rem; }
  .ftr-in {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3rem;
  }
  .ftr-nav {
    grid-template-columns: repeat(2, auto);
    gap: 0.7rem 3rem;
  }
  .ftr-legal { grid-column: 1 / -1; }
}

@media (min-width: 1200px) {
  .hero-in { grid-template-columns: minmax(0, 1fr) 23rem; }
  .set-title { font-size: 1.6rem; }
}

/* —— reduced motion ————————————————————————————————————————————————— */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .set[data-reveal] .set-art { clip-path: none; }
  .js .lines .ln > span { transform: none; }
  .hero-art { transform: none !important; }
  .hero-card { transform: rotate(4deg) !important; }
  .hero-scan-beam,
  .card-scan-beam,
  .hero-qc-stamp .stamp-ring::after,
  .hero-qc-track { animation: none !important; }
  .hero-qc-steps li,
  .hero-qc-stamp,
  .hero-card-stamp { animation: none !important; opacity: 1 !important; transform: none !important; }
  .hero-qc-steps li { color: rgba(244, 244, 242, 0.55); }
  .hero-scan-beam { opacity: 0.6; top: 42%; }
  .hero-qc-track { transform: translate3d(0, -12%, 0); }
  .buybar { transform: translateY(0); }
}
