/* Stonekeep: promo. Direction: horology (Breguet dial, guilloché, blued steel) x
   Bugatti restraint (ink, silver, one electric blue, huge quiet type). */

:root {
  --ink: #04060d;
  --ink-2: #080c1a;
  --dial: #ece7db;
  --dial-2: #ded8c8;
  --on-dial: #0a0e1c;
  --on-dial-soft: #4a4f60;
  --silver: #c9ccd6;
  --silver-soft: #868b9c;
  --blue: #365cff;
  --blue-deep: #0a1d6e;
  --gold: #b89b5e;
  --hair-dark: rgba(201, 204, 214, 0.16);
  --hair-light: rgba(10, 14, 28, 0.18);
  --serif: 'Bodoni Moda', 'Didot', 'Bodoni 72', 'Times New Roman', serif;
  --sans: 'Jost', 'Futura', 'Century Gothic', system-ui, sans-serif;
  --gutter: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--silver);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p,
ol,
ul,
dl,
dd {
  margin: 0;
  padding: 0;
}
ol,
ul {
  list-style: none;
}
em {
  font-style: italic;
}
:focus-visible {
  outline: 1px solid var(--blue);
  outline-offset: 4px;
}
::selection {
  background: var(--blue);
  color: #fff;
}

.label {
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--silver-soft);
}
.body {
  max-width: 44ch;
  font-size: 1.02rem;
}

/* ---------- cursor ---------- */
.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1px solid #fff;
  border-radius: 50%;
  mix-blend-mode: difference;
  pointer-events: none;
  opacity: 0;
  transition:
    width 0.35s var(--ease),
    height 0.35s var(--ease),
    margin 0.35s var(--ease),
    opacity 0.3s;
}
.cursor.on {
  opacity: 1;
}
.cursor.big {
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
}
@media (hover: none), (pointer: coarse) {
  .cursor {
    display: none;
  }
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px var(--gutter);
  color: #fff;
  transition:
    background 0.4s,
    color 0.4s,
    padding 0.4s var(--ease);
}
.nav.solid {
  padding-top: 14px;
  padding-bottom: 14px;
  /* opaque enough to read without a backdrop blur, which re-blurs the animated hero every frame */
  background: rgba(4, 6, 13, 0.97);
}
.nav.on-light {
  color: var(--on-dial);
}
.nav.on-light.solid {
  background: rgba(236, 231, 219, 0.86);
}
.brand {
  font-size: 0.78rem;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  font-weight: 400;
}
.nav-links {
  display: flex;
  gap: clamp(18px, 3vw, 44px);
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.nav-links a,
.nav-cta {
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after,
.nav-cta::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.nav-links a:hover::after {
  transform: scaleX(1);
}
.nav-cta {
  justify-self: end;
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.nav-cta::after {
  transform: scaleX(0.28);
}
.nav-cta:hover::after {
  transform: scaleX(1);
}
@media (max-width: 760px) {
  .nav {
    grid-template-columns: 1fr auto;
  }
  .nav-links {
    display: none;
  }
  .brand {
    letter-spacing: 0.4em;
  }
}

/* ---------- reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1.1s var(--ease),
    transform 1.1s var(--ease);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  background:
    radial-gradient(60% 60% at 50% 45%, rgba(54, 92, 255, 0.1), transparent 70%), var(--ink);
  overflow: hidden;
  isolation: isolate;
}
#rosette,
#rosette2 {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(125vh, 125vw);
  height: min(125vh, 125vw);
  transform: translate(-50%, -50%);
  z-index: -1;
  will-change: transform;
}
/* the two layers add up like the old single-canvas 'lighter' drawing */
#rosette2 {
  mix-blend-mode: plus-lighter;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(70% 70% at 50% 50%, transparent 38%, var(--ink) 100%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  min-height: 100svh;
  padding: 96px var(--gutter) 44px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 1fr 1fr;
}
.meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.68rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--silver-soft);
}
.meta span:first-child {
  color: var(--silver);
}
.meta-r {
  text-align: right;
  align-items: flex-end;
}
.hero h1 {
  grid-column: 1 / -1;
  align-self: center;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, min(12.2vw, 23vh), 13rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: #f4f2ec;
  font-variation-settings: 'opsz' 96;
  margin: clamp(32px, 8vh, 96px) 0;
}
.hero h1 em {
  background: linear-gradient(100deg, #f4f2ec 0%, #8ea4ff 55%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 0.08em;
}
.line {
  display: block;
  overflow: hidden;
  padding: 0.06em 0 0.12em;
  margin: -0.06em 0 -0.12em;
}
.line > span {
  display: inline-block;
}
.js .line > span {
  transform: translateY(112%);
  transition: transform 1.5s var(--ease);
}
.js .loaded .line > span {
  transform: none;
}
.js .loaded .line:nth-child(2) > span {
  transition-delay: 0.14s;
}
.hero-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-foot p {
  max-width: 38ch;
  font-size: 1rem;
  color: var(--silver);
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  font-size: 0.76rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-weight: 400;
  color: #fff;
}
.cta-line {
  position: relative;
  display: block;
  width: 84px;
  height: 1px;
  background: var(--silver);
  transition:
    width 0.7s var(--ease),
    background 0.7s;
}
.cta-line::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  transform-origin: 70% 30%;
}
.cta:hover .cta-line {
  width: 150px;
  background: var(--blue);
}
.scroll {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 56px;
  background: var(--hair-dark);
  overflow: hidden;
}
.scroll i {
  position: absolute;
  inset: 0;
  background: var(--silver);
  animation: drip 2.6s var(--ease) infinite;
}
@keyframes drip {
  0% {
    transform: translateY(-100%);
  }
  60%,
  100% {
    transform: translateY(100%);
  }
}
@media (max-width: 760px) {
  .hero-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .scroll {
    display: none;
  }
}

/* ---------- funkcje ---------- */
.comp {
  background: var(--ink);
  color: var(--silver);
  padding: clamp(96px, 16vh, 200px) var(--gutter) clamp(64px, 10vh, 140px);
}
.comp .label {
  color: var(--silver-soft);
}
.comp-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, min(6.8vw, 12vh), 7.4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-top: 28px;
  color: #f4f2ec;
  font-variation-settings: 'opsz' 96;
}
.comp-head h2 em {
  background: linear-gradient(100deg, #f4f2ec, #8ea4ff 60%, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 0.08em;
}
.comp-list {
  margin-top: clamp(48px, 8vh, 110px);
  border-bottom: 1px solid var(--hair-dark);
}
.comp-list li {
  position: relative;
  display: grid;
  grid-template-columns: 5rem minmax(0, 1.1fr) minmax(0, 1.4fr) 6.5rem;
  align-items: baseline;
  gap: 0 clamp(16px, 3vw, 48px);
  padding: clamp(26px, 4.2vh, 44px) 0;
  border-top: 1px solid var(--hair-dark);
  transition:
    background 0.6s var(--ease),
    padding 0.6s var(--ease);
}
.comp-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: -1px;
  height: 1px;
  width: 0;
  background: #8ea4ff;
  transition: width 0.8s var(--ease);
}
.comp-list li:hover {
  background: rgba(142, 164, 255, 0.06);
  padding-left: 24px;
  padding-right: 24px;
}
.comp-list li:hover::before {
  width: 100%;
}
.js .comp-list li.reveal {
  transition:
    background 0.6s var(--ease),
    padding 0.6s var(--ease),
    opacity 1.1s var(--ease),
    transform 1.1s var(--ease);
}
.comp-list .rn {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: #8ea4ff;
}
.comp-list h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #f4f2ec;
}
.comp-list p {
  font-size: 0.98rem;
  color: var(--silver-soft);
  transition: color 0.6s var(--ease);
}
.comp-list li:hover p {
  color: var(--silver);
}
.comp-list .art {
  justify-self: end;
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver-soft);
  white-space: nowrap;
}
@media (max-width: 860px) {
  .comp-list li {
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 10px 12px;
  }
  .comp-list li p,
  .comp-list li .art {
    grid-column: 2;
    justify-self: start;
  }
  .comp-list li:hover {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* ---------- manifest ---------- */
.manifest {
  background: var(--ink);
  padding: clamp(120px, 24vh, 300px) var(--gutter);
}
.manifest-text {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, min(9vw, 17vh), 10rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #f4f2ec;
  font-variation-settings: 'opsz' 96;
}
.manifest-text span {
  display: block;
}
.js .manifest-text span {
  opacity: 0.16;
  transition: opacity 0.8s var(--ease);
}
.js .manifest-text span.lit {
  opacity: 1;
}
.manifest-text em {
  background: linear-gradient(100deg, #f4f2ec, #8ea4ff 60%, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 0.08em;
}
.manifest-sub {
  margin-top: clamp(40px, 8vh, 96px);
  max-width: 40ch;
  font-size: 0.74rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 2;
  color: var(--silver-soft);
}

/* ---------- demo ---------- */
.demo {
  background:
    radial-gradient(70% 50% at 82% 0%, rgba(54, 92, 255, 0.13), transparent 65%), var(--ink);
  padding: clamp(96px, 14vh, 180px) var(--gutter);
  color: var(--silver);
}
.demo-in {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 7vw, 128px);
  align-items: start;
}
.demo h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, min(6vw, 11vh), 6.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-top: 28px;
  color: #f4f2ec;
  font-variation-settings: 'opsz' 96;
}
.demo h2 em {
  background: linear-gradient(100deg, #f4f2ec, #8ea4ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 0.08em;
}
.demo .label {
  color: #8ea4ff;
}

/* card */
.card-stage {
  margin-top: clamp(24px, 5vh, 72px);
  perspective: 1400px;
  max-width: min(540px, 100%, 64vh);
}
.card {
  --px: 0;
  --py: 0;
  position: relative;
  aspect-ratio: 1.586;
  transition: transform 0.25s var(--ease);
  will-change: transform;
  cursor: pointer;
  filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.55));
}
.card-flip {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 1s var(--ease);
}
.card.flipped .card-flip {
  transform: rotateY(180deg);
}
.face {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: clamp(16px, 2.8vw, 30px);
  border: 1px solid rgba(201, 204, 214, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 -30px 60px rgba(0, 0, 0, 0.35);
}
.front {
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: linear-gradient(140deg, #0e1848 0%, #060a1f 46%, #0b1238 100%);
}
.face-back {
  transform: rotateY(180deg);
  background: linear-gradient(200deg, #0b1238 0%, #060a1f 60%, #0c1540 100%);
  padding-top: 22.5%;
}
.front canvas {
  position: absolute;
  width: 150%;
  aspect-ratio: 1;
  left: -22%;
  top: -62%;
  opacity: 0.95;
  animation: artSpin 140s linear infinite;
  pointer-events: none;
}
@keyframes artSpin {
  to {
    transform: rotate(360deg);
  }
}
.card-iris,
.card-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.card-iris {
  background: conic-gradient(
    from 210deg at var(--ix, 70%) var(--iy, 30%),
    rgba(255, 0, 128, 0),
    rgba(142, 164, 255, 0.34),
    rgba(127, 208, 192, 0.26),
    rgba(232, 181, 91, 0.24),
    rgba(197, 139, 255, 0.3),
    rgba(255, 0, 128, 0)
  );
  mix-blend-mode: color-dodge;
  opacity: var(--io, 0);
  transition: opacity 0.5s;
}
.card-sheen {
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(160, 178, 255, 0.24) 45%,
    rgba(255, 255, 255, 0.34) 50%,
    transparent 62%
  );
  background-size: 250% 100%;
  background-position: var(--sx, 120%) 0;
  mix-blend-mode: screen;
}
@media (hover: none) {
  .card-sheen {
    animation: sheenIdle 7s ease-in-out infinite;
  }
}
@keyframes sheenIdle {
  0%,
  35% {
    background-position: 120% 0;
  }
  70%,
  100% {
    background-position: -30% 0;
  }
}
.front > *:not(canvas):not(.card-iris):not(.card-sheen) {
  position: relative;
}
.c-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.62rem;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 400;
  transform: translate(calc(var(--px) * 4px), calc(var(--py) * 4px));
}
.c-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.c-top .serial {
  letter-spacing: 0.3em;
  color: #8ea4ff;
  font-variant-numeric: tabular-nums;
}
.c-chiprow {
  position: absolute !important;
  right: clamp(16px, 2.8vw, 30px);
  top: 26%;
  display: grid;
  justify-items: end;
  gap: 10px;
  transform: translate(calc(var(--px) * 9px), calc(var(--py) * 9px));
}
.c-chip {
  width: clamp(34px, 6vw, 48px);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}
.c-nfc {
  width: 20px;
  color: rgba(244, 242, 236, 0.7);
}
.c-mid {
  align-self: center;
  padding-right: clamp(46px, 9vw, 72px);
  transform: translate(calc(var(--px) * 6px), calc(var(--py) * 6px));
}
.c-label {
  font-size: 0.54rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--silver-soft);
  margin-bottom: 4px;
}
.c-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3.6vw, 2.7rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #f4f2ec;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35),
    0 -1px 0 rgba(0, 0, 0, 0.6);
  overflow-wrap: anywhere;
}
.c-company {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--silver);
  letter-spacing: 0.05em;
}
.c-bot {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: end;
  font-size: 0.8rem;
  color: #fff;
  transform: translate(calc(var(--px) * 5px), calc(var(--py) * 5px));
}
.c-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.c-tags span {
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 7px;
  border: 1px solid rgba(142, 164, 255, 0.55);
  border-radius: 99px;
  color: #cfd8ff;
  white-space: nowrap;
}
.c-tags span.ph {
  border-color: rgba(201, 204, 214, 0.25);
  color: var(--silver-soft);
}
.card .is-ph {
  opacity: 0.4;
}
.c-mono {
  width: clamp(28px, 5vw, 38px);
  opacity: 0.85;
  transform: translate(calc(var(--px) * 12px), calc(var(--py) * 12px));
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.28)) drop-shadow(0 -1px 0 rgba(0, 0, 0, 0.7));
}
.c-mono svg {
  display: block;
  width: 100%;
}
.stamp {
  position: absolute !important;
  right: 22px;
  top: 50%;
  transform: translateY(-50%) rotate(-12deg) scale(1.6);
  padding: 8px 18px;
  border: 1.5px solid #8ea4ff;
  background: rgba(6, 10, 31, 0.7);
  color: #8ea4ff;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0;
  transition:
    opacity 0.6s,
    transform 0.8s var(--ease);
}
.card.done .stamp {
  opacity: 1;
  transform: translateY(-50%) rotate(-12deg) scale(1);
}
.card.done .front {
  border-color: rgba(142, 164, 255, 0.7);
}
/* back */
.b-stripe {
  position: absolute;
  left: 0;
  right: 0;
  top: 15%;
  height: 17%;
  background: #02030a;
  border-top: 1px solid rgba(201, 204, 214, 0.25);
  border-bottom: 1px solid rgba(201, 204, 214, 0.25);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.b-stripe span {
  white-space: nowrap;
  font-size: 0.5rem;
  letter-spacing: 0.5em;
  color: rgba(142, 164, 255, 0.5);
}
.b-steps {
  display: grid;
  gap: clamp(3px, 0.7vw, 8px);
  margin-top: 8px;
}
.b-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(0.66rem, 1.5vw, 0.84rem);
  color: #fff;
}
.b-steps b {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  border: 1px solid #8ea4ff;
  color: #8ea4ff;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 0.72rem;
}
.b-sign {
  position: absolute;
  left: clamp(16px, 2.8vw, 30px);
  right: clamp(16px, 2.8vw, 30px);
  bottom: clamp(12px, 2vw, 20px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}
.sig {
  display: grid;
  align-items: center;
  padding: 0 12px;
  min-height: 30px;
  border-radius: 4px;
  background:
    repeating-linear-gradient(135deg, rgba(10, 14, 28, 0.07) 0 3px, transparent 3px 7px), #ece7db;
  color: #1a2250;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(0.78rem, 1.8vw, 0.98rem);
  transform: rotate(-1deg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cvv {
  appearance: none;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0;
  min-width: 52px;
  padding: 2px 10px;
  border: 1px solid #ece7db;
  border-radius: 4px;
  background: #ece7db;
  color: #0a0e1c;
  font: inherit;
  cursor: pointer;
  position: relative;
  animation: cvvBreath 1.8s 0.9s ease-in-out infinite;
}
.cvv::before,
.cvv::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 6px;
  border: 1.5px solid #8ea4ff;
  opacity: 0;
  pointer-events: none;
  animation: cvvRing 1.8s 0.9s ease-out infinite;
}
.cvv::after {
  animation-delay: 1.8s;
}
.cvv.open::before,
.cvv.open::after {
  display: none;
}
.cvv-hint {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  transform: translateX(-50%);
  font-size: 0.5rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #8ea4ff;
  white-space: nowrap;
  opacity: 0;
  animation: hintIn 0.8s 2.2s var(--ease) forwards;
  pointer-events: none;
}
.cvv.open .cvv-hint {
  display: none;
}
/* transform only: an animated box-shadow would repaint every frame; the glow comes from the cvvRing pulse */
@keyframes cvvBreath {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.09);
  }
}
@keyframes cvvRing {
  0% {
    opacity: 0.85;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.7, 2.1);
  }
}
@keyframes hintIn {
  to {
    opacity: 0.9;
  }
}
.cvv small {
  font-size: 0.4rem;
  letter-spacing: 0.3em;
  color: #4a4f60;
}
.cvv b {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
}
.cvv.open {
  animation: none;
  background: #8ea4ff;
  border-color: #8ea4ff;
  box-shadow: 0 0 22px rgba(142, 164, 255, 0.7);
}
@keyframes cvvHint {
  0%,
  78%,
  100% {
    box-shadow: 0 0 0 0 rgba(142, 164, 255, 0);
  }
  88% {
    box-shadow: 0 0 0 7px rgba(142, 164, 255, 0.35);
  }
}
.egg {
  margin-top: 16px;
  max-width: 46ch;
  font-size: 0.86rem;
  line-height: 1.6;
  color: #cfd8ff;
  animation: rise 0.7s var(--ease) both;
}
.egg[hidden] {
  display: none;
}
.egg b {
  color: #fff;
  font-weight: 400;
}
.egg-tick {
  position: fixed;
  z-index: 300;
  width: 2px;
  height: 14px;
  border-radius: 1px;
  background: #8ea4ff;
  pointer-events: none;
  animation: eggFall 1.4s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
@keyframes eggFall {
  from {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg);
  }
  to {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) rotate(var(--r));
  }
}
@media (prefers-reduced-motion: reduce) {
  .cvv,
  .cvv::before,
  .cvv::after,
  .egg-tick {
    animation: none;
  }
}
.flip-btn {
  appearance: none;
  background: none;
  border: 0;
  margin-top: 22px;
  padding: 4px 0;
  color: #8ea4ff;
  font: inherit;
  font-size: 0.66rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
}
@media (max-width: 860px) {
  .c-chiprow {
    top: 20%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .front canvas,
  .card-sheen {
    animation: none;
  }
}

/* payment terminal */
.card-stage {
  position: relative;
}
.card {
  transition:
    translate 0.9s var(--ease),
    scale 0.9s var(--ease),
    rotate 0.9s var(--ease),
    transform 0.25s var(--ease);
}
.card {
  z-index: 1;
}
/* the card lies ON the terminal, over the white reader cap, in the same tilt as the device */
.card.tap {
  z-index: 6;
  translate: 0 31%;
  scale: 0.7;
  transform: rotateX(18deg) rotateY(27deg) rotateZ(-3deg) !important;
  transition:
    translate 0.9s var(--ease),
    scale 0.9s var(--ease),
    transform 0.9s var(--ease);
}
.pos {
  width: min(236px, 68%);
  margin: 0 auto;
  padding-bottom: 8px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(30px);
  transition:
    max-height 1s var(--ease),
    opacity 0.8s var(--ease),
    transform 1s var(--ease),
    margin 1s var(--ease);
}
.paying .pos {
  max-height: 980px;
  opacity: 1;
  transform: none;
  margin-top: -14px;
}
.pos-dev {
  position: relative;
  z-index: 2;
  padding: 12px 14px 22px;
  border-radius: 34px 34px 46px 46px / 30px 30px 58px 58px;
  background:
    linear-gradient(
      100deg,
      rgba(255, 255, 255, 0.07) 0%,
      transparent 18%,
      transparent 82%,
      rgba(255, 255, 255, 0.05) 100%
    ),
    linear-gradient(170deg, #262e55 0%, #0d1228 40%, #181f40 100%);
  border: 1px solid rgba(201, 204, 214, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 0 0 4px rgba(4, 6, 13, 0.55),
    inset 0 -16px 30px rgba(0, 0, 0, 0.55),
    0 34px 50px -24px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(4, 6, 13, 0.7);
}
.pos.ok .pos-dev {
  animation: buzz 0.45s linear;
}
@keyframes buzz {
  0%,
  100% {
    transform: none;
  }
  15% {
    transform: translateX(-2px);
  }
  30% {
    transform: translateX(2px);
  }
  45% {
    transform: translateX(-2px);
  }
  60% {
    transform: translateX(1.5px);
  }
  75% {
    transform: translateX(-1px);
  }
}
.pos-leds {
  display: flex;
  gap: 8px;
}
.pos-leds i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1a2244;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  transition:
    background 0.25s,
    box-shadow 0.25s;
}
.pos-leds i.on {
  background: #7fd0c0;
  box-shadow:
    0 0 10px #7fd0c0,
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}
.pos-screen {
  position: relative;
  height: 168px;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(90% 80% at 50% 0%, #0b1e45, #060f24);
  border: 2px solid #02030a;
  box-shadow:
    inset 0 0 0 1px rgba(142, 164, 255, 0.35),
    inset 0 0 40px rgba(54, 92, 255, 0.18);
  transition:
    background 0.5s,
    border-color 0.5s;
}
.pos-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.09), transparent 38%);
}
.pos.ok .pos-screen {
  background: radial-gradient(90% 80% at 50% 0%, #0a3a31, #06241e);
  border-color: rgba(127, 208, 192, 0.65);
}
.scr {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 5px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s;
}
.pos:not(.reading):not(.ok) .scr-ready,
.pos.reading .scr-read,
.pos.ok .scr-ok {
  opacity: 1;
}
.scr-title {
  font-size: 0.5rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #8ea4ff;
}
.scr-amt {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1;
  color: #fff;
}
.scr-amt small {
  font-size: 0.9rem;
  color: var(--silver-soft);
  margin-left: 4px;
}
.scr-sub {
  font-size: 0.6rem;
  color: var(--silver-soft);
}
.scr-hint {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #cfd8ff;
}
.scr-pulse {
  position: relative;
  width: 26px;
  height: 26px;
  margin: 4px 0 2px;
  display: grid;
  place-items: center;
  color: #cfd8ff;
}
.scr-pulse svg {
  width: 18px;
}
.scr-pulse i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid #8ea4ff;
  opacity: 0;
  animation: wave 1.8s ease-out infinite;
}
.scr-pulse i + i {
  animation-delay: 0.6s;
}
@keyframes wave {
  0% {
    opacity: 0.9;
    transform: scale(0.6);
  }
  100% {
    opacity: 0;
    transform: scale(2.6);
  }
}
.scr-ring {
  width: 72px;
  height: 72px;
  transform: rotate(-90deg);
}
.scr-ring circle {
  fill: none;
  stroke-width: 4;
}
.scr-ring .bg {
  stroke: rgba(142, 164, 255, 0.2);
}
.scr-ring .fg {
  stroke: #8ea4ff;
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: 264;
}
.pos.reading .scr-ring .fg {
  animation: ringFill 1.25s linear forwards;
}
@keyframes ringFill {
  to {
    stroke-dashoffset: 0;
  }
}
.scr-check {
  width: 54px;
  height: 54px;
}
.scr-check circle,
.scr-check path {
  fill: none;
  stroke: #7fd0c0;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.scr-check circle {
  stroke-dasharray: 152;
  stroke-dashoffset: 152;
}
.scr-check path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}
.pos.ok .scr-check circle {
  animation: draw 0.6s var(--ease) forwards;
}
.pos.ok .scr-check path {
  animation: draw 0.4s 0.4s var(--ease) forwards;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
.scr-ok-t {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.3rem;
  color: #d6f5ec;
}
.pos-fkeys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 2px 9px;
}
.pos-fkeys i {
  display: grid;
  place-items: center;
  height: 19px;
  border-radius: 6px;
  font-style: normal;
  font-size: 0.6rem;
  color: rgba(4, 6, 13, 0.75);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 0 rgba(0, 0, 0, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.6);
}
.pos-fkeys .r {
  background: linear-gradient(180deg, #d4546a, #a8344b);
}
.pos-fkeys .y {
  background: linear-gradient(180deg, #e6c562, #bc9a3a);
}
.pos-fkeys .g {
  background: linear-gradient(180deg, #55bf98, #2f8a69);
}
.pos-keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 0 2px;
}
.pos-keys i {
  display: grid;
  place-items: center;
  height: 22px;
  border-radius: 7px;
  font-style: normal;
  font-size: 0.62rem;
  color: rgba(244, 242, 236, 0.7);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -2px 0 rgba(0, 0, 0, 0.35),
    0 1px 2px rgba(0, 0, 0, 0.6);
}
/* desk terminal, seen a little from the side: real thickness from stacked slices */
.pos {
  width: min(250px, 70%);
  position: relative;
  z-index: 2;
}
.pos-dev {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}
.pos-scene {
  perspective: 1000px;
  padding: 6px 6px 0 18px;
}
.pos-slab {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(18deg) rotateY(27deg) rotateZ(-3deg);
  transform-origin: 50% 35%;
  transition: transform 1.2s var(--ease);
}
.pos-slab .sl,
.pos-slab .cs {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  border-radius: 24px 24px 38px 38px / 24px 24px 50px 50px;
  background: hsl(228 24% calc(17% - var(--n) * 0.7%));
  transform: translateZ(calc(var(--n) * -1.4px));
}
.pos-slab .cs {
  bottom: auto;
  height: 74px;
  border-radius: 24px 24px 10px 10px;
  background: hsl(230 14% calc(78% - var(--n) * 3%));
  transform: translateZ(calc(var(--n) * 0.8px));
}
.pos-front {
  position: relative;
  transform-style: preserve-3d;
  padding: 0 0 16px;
  border-radius: 24px 24px 38px 38px / 24px 24px 50px 50px;
  background:
    linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 30%,
      transparent 70%,
      rgba(255, 255, 255, 0.05) 100%
    ),
    linear-gradient(170deg, #20232f 0%, #090a10 45%, #14161f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 -14px 28px rgba(0, 0, 0, 0.6);
}
.pos-front > *:not(.pos-cap) {
  transform: translateZ(0.6px);
}
.pos-cap {
  position: relative;
  height: 74px;
  border-radius: 24px 24px 10px 10px;
  background: linear-gradient(180deg, #f7f8fc 0%, #dfe2ec 60%, #c4c9d8 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -3px 6px rgba(0, 0, 0, 0.18),
    0 3px 8px rgba(0, 0, 0, 0.5);
  transform: translateZ(9px);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.pos-cap .pos-leds {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
}
.pos-cap .pos-leds i {
  background: #aeb5c8;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}
.pos-cap .pos-leds i.on {
  background: #3fbf94;
  box-shadow: 0 0 9px #3fbf94;
}
.cap-nfc {
  width: 26px;
  margin-top: 8px;
  color: #3a4056;
}
.cap-logo {
  position: absolute;
  bottom: 9px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.44rem;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: #7a8096;
}
.pos-front .pos-screen {
  margin: 0 14px;
  height: 126px;
}
.pos-soft {
  display: flex;
  justify-content: space-around;
  margin: 9px 34px 11px;
}
.pos-soft i {
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #3a3f55, #1b1e2c);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 1px 1px rgba(0, 0, 0, 0.6);
}
.pos-front .pos-keys {
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 7px;
  margin: 0 16px;
}
.pos-front .pos-keys i {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: baseline;
  gap: 3px;
  height: 25px;
  border-radius: 7px;
  font-style: normal;
  color: #e9ebf3;
  background: linear-gradient(180deg, #2b2f3f 0%, #12141d 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 0 rgba(0, 0, 0, 0.55),
    0 2px 2px rgba(0, 0, 0, 0.7);
}
.pos-front .pos-keys b {
  font-weight: 400;
  font-size: 0.74rem;
}
.pos-front .pos-keys small {
  font-size: 0.34rem;
  letter-spacing: 0.1em;
  color: #9aa1b8;
}
.pos-front .pos-keys i.pr {
  display: grid;
  place-items: center;
}
.pos-front .pos-keys i.pr svg {
  width: 12px;
  color: #cfd3e0;
}
.pos-front .pos-fkeys {
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 8px 16px 0;
}
.pos-front .pos-fkeys i {
  height: 24px;
  border-radius: 7px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -3px 0 rgba(0, 0, 0, 0.3),
    0 2px 2px rgba(0, 0, 0, 0.7);
}
.pos-front .pos-fkeys .r {
  background: linear-gradient(180deg, #ee5a45, #b8321f);
}
.pos-front .pos-fkeys .y {
  background: linear-gradient(180deg, #f6d548, #c9a413);
}
.pos-front .pos-fkeys .g {
  background: linear-gradient(180deg, #4ed17a, #1f9a4c);
}
@media (prefers-reduced-motion: reduce) {
  .pos-slab {
    transition: none;
  }
}

.pos {
  transition:
    max-height 1s var(--ease),
    opacity 0.8s var(--ease),
    transform 1s var(--ease),
    margin 1s var(--ease),
    padding-bottom 0.9s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .pos.ok .pos-dev {
    animation: none;
  }
}

/* story: where the data goes after a card payment */
.demo-lede {
  margin-top: 26px;
  max-width: 44ch;
  font-size: 1rem;
  color: var(--silver);
}
.form.sent .progress,
.form.sent .steps,
.form.sent .step-nav {
  display: none;
}
.form.sent .form-msg {
  margin-top: 6px;
  font-size: 0.74rem;
  color: var(--silver-soft);
}
.trail {
  display: grid;
  gap: 14px;
}
.trail[hidden] {
  display: none;
}
.trail .label {
  color: #8ea4ff;
}
.trail-note {
  font-size: 0.76rem;
  color: var(--silver-soft);
}
.trail-list {
  border-top: 1px solid var(--hair-dark);
}
.trail-list li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair-dark);
  opacity: 0;
  transform: translateX(18px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.trail-list li.in {
  opacity: 1;
  transform: none;
}
.t-ic {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(142, 164, 255, 0.4);
  border-radius: 50%;
  color: #8ea4ff;
  transition:
    color 0.5s,
    border-color 0.5s,
    background 0.5s;
}
.t-ic svg {
  width: 18px;
}
.trail-list b {
  display: block;
  color: #fff;
  font-weight: 400;
  font-size: 0.98rem;
}
.trail-list small {
  display: block;
  color: var(--silver-soft);
  font-size: 0.76rem;
  overflow-wrap: anywhere;
  transition:
    opacity 0.5s,
    text-decoration-color 0.5s;
}
.t-st {
  font-style: normal;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid rgba(142, 164, 255, 0.5);
  border-radius: 99px;
  color: #8ea4ff;
  white-space: nowrap;
  transition:
    color 0.4s,
    border-color 0.4s,
    background 0.4s;
}
.trail-list li.wiping .t-st {
  color: #e8b55b;
  border-color: rgba(232, 181, 91, 0.6);
  animation: blink 0.5s ease-in-out infinite alternate;
}
.trail-list li.wiping small {
  text-decoration: line-through;
  opacity: 0.4;
}
.trail-list li.wiping .t-ic {
  color: #e8b55b;
  border-color: rgba(232, 181, 91, 0.6);
}
.trail-list li.gone .t-st {
  color: #7fd0c0;
  border-color: rgba(127, 208, 192, 0.6);
  background: rgba(127, 208, 192, 0.1);
}
.trail-list li.gone .t-ic {
  color: #7fd0c0;
  border-color: rgba(127, 208, 192, 0.55);
}
.trail-list li.gone small {
  opacity: 0.35;
}
.trail-list li.kept .t-st {
  color: var(--silver);
  border-color: rgba(201, 204, 214, 0.5);
}
.trail-list li.kept .t-ic {
  color: var(--silver);
  border-color: rgba(201, 204, 214, 0.45);
}
@keyframes blink {
  to {
    opacity: 0.55;
  }
}
.trail-btn {
  appearance: none;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 26px;
  border: 1px solid #8ea4ff;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.76rem;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  cursor: pointer;
  animation: nudge 2.4s var(--ease) infinite;
}
.trail-btn[hidden] {
  display: none;
}
.trail-btn i {
  width: 48px;
  height: 1px;
  background: currentColor;
  position: relative;
}
.trail-btn i::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  transform-origin: 70% 30%;
}
.trail-btn:hover {
  background: #8ea4ff;
  color: #04060d;
}
@keyframes nudge {
  0%,
  70%,
  100% {
    box-shadow: 0 0 0 0 rgba(142, 164, 255, 0);
  }
  85% {
    box-shadow: 0 0 0 10px rgba(142, 164, 255, 0.14);
  }
}
.trail-res {
  padding: 16px 18px;
  border: 1px solid rgba(127, 208, 192, 0.45);
  background: rgba(127, 208, 192, 0.06);
  animation: rise 0.8s var(--ease) both;
}
.trail-res[hidden] {
  display: none;
}
.trail-res b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  color: #d6f5ec;
  margin-bottom: 6px;
}
.trail-res p {
  font-size: 0.9rem;
  color: var(--silver);
}
.trail-res .small {
  margin-top: 10px;
  font-size: 0.74rem;
  color: var(--silver-soft);
}
.card.wiped .stamp {
  border-color: #7fd0c0;
  color: #7fd0c0;
}
@media (prefers-reduced-motion: reduce) {
  .trail-btn,
  .trail-list li.wiping .t-st {
    animation: none;
  }
}

/* theatre: the payment scene fills the screen so the card and every step stay visible */
.narr,
.theater-x {
  display: none;
}
body.theater-on {
  overflow: hidden;
}
.card-stage.theater {
  position: fixed;
  inset: 0;
  z-index: 200;
  max-width: none;
  margin: 0;
  padding: 0 clamp(20px, 5vw, 80px);
  background: rgba(4, 6, 13, 0.97);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  gap: clamp(24px, 5vw, 80px);
  overflow: hidden;
  animation: theaterIn 0.6s var(--ease) both;
}
@keyframes theaterIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.card-stage.theater .scene {
  width: min(540px, 100%);
  margin: 0 auto;
  align-self: start;
  padding-top: 20px;
  transform-origin: 50% 0;
  transform: scale(var(--fit, 1));
  transition: transform 0.8s var(--ease);
}
.card-stage.theater .flip-btn {
  display: none;
}
.card-stage.theater .narr {
  display: block;
  align-self: center;
}
.card-stage.theater .theater-x {
  display: grid;
  place-items: center;
  position: absolute;
  top: 18px;
  right: clamp(18px, 3vw, 40px);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--hair-dark);
  background: rgba(255, 255, 255, 0.04);
  color: var(--silver);
  font: inherit;
  cursor: pointer;
  z-index: 5;
}
.card-stage.theater .narr {
  z-index: 10;
}
.narr .label {
  color: #8ea4ff;
  margin-bottom: 18px;
}
.narr ol {
  display: grid;
  gap: 4px;
}
.narr li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair-dark);
  opacity: 0.3;
  transition: opacity 0.6s var(--ease);
}
.narr li.on {
  opacity: 1;
}
.narr li.done {
  opacity: 0.6;
}
.narr li b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(142, 164, 255, 0.5);
  color: #8ea4ff;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 0.9rem;
  transition:
    background 0.4s,
    color 0.4s;
}
.narr li.on b {
  background: #8ea4ff;
  color: #04060d;
}
.narr li.done b {
  background: rgba(127, 208, 192, 0.16);
  border-color: rgba(127, 208, 192, 0.6);
  color: #7fd0c0;
}
.narr strong {
  display: block;
  color: #fff;
  font-weight: 400;
  font-size: 1.05rem;
}
.narr small {
  display: block;
  margin-top: 2px;
  color: var(--silver-soft);
  font-size: 0.8rem;
}
.theater-cta {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 26px;
  padding: 18px 22px;
  border: 1px solid #8ea4ff;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  cursor: pointer;
  animation: nudge 2.4s var(--ease) infinite;
}
.theater-cta[hidden] {
  display: none;
}
.theater-cta i {
  width: 40px;
  height: 1px;
  background: currentColor;
  position: relative;
}
.theater-cta i::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  transform-origin: 70% 30%;
}
.theater-cta:hover {
  background: #8ea4ff;
  color: #04060d;
}
@media (max-width: 900px) {
  .card-stage.theater {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 16px;
  }
  .card-stage.theater .scene {
    padding-top: 64px;
  }
  .card-stage.theater .narr {
    position: absolute;
    left: 16px;
    right: 64px;
    top: 14px;
  }
  .narr .label,
  .narr small,
  .narr li:not(.on) {
    display: none;
  }
  .narr li {
    padding: 0;
    border: 0;
    grid-template-columns: 28px minmax(0, 1fr);
  }
  .narr strong {
    font-size: 0.92rem;
  }
  .theater-cta {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: max(18px, env(safe-area-inset-bottom, 0px));
    width: auto;
    margin: 0;
    background: #060a1f;
  }
}

/* breach: live incident view */
.inc {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(10px, 2vh, 18px);
  height: 100%;
}
.inc-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(229, 51, 79, 0.55);
  background: rgba(229, 51, 79, 0.1);
  border-radius: 8px;
  font-size: 0.82rem;
  color: #ffd7dd;
}
.inc-alert i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff4d6a;
  box-shadow: 0 0 0 0 rgba(255, 77, 106, 0.6);
}
.inc-alert b {
  font-weight: 500;
  letter-spacing: 0.06em;
  flex: 1;
}
.inc-alert span {
  color: #ff9aaa;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.win.live .act.on .inc-alert {
  animation: alertIn 0.9s var(--ease) both;
}
.win.live .act.on .inc-alert i {
  animation: alertPulse 1.2s ease-out infinite;
}
@keyframes alertIn {
  0% {
    opacity: 0;
    background: rgba(229, 51, 79, 0.45);
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
  }
}
@keyframes alertPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 77, 106, 0.7);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(255, 77, 106, 0);
  }
}
.inc-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(16px, 2.6vw, 36px);
  align-items: center;
  min-height: 0;
}
.dialbox {
  position: relative;
  width: min(34vh, 250px);
  aspect-ratio: 1;
}
.dialbox svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.dialbox #incTicks line {
  stroke: #8ea4ff;
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0;
}
.dialbox #incTicks line.hr {
  stroke-width: 2.6;
}
.dialbox #incTicks line.cur {
  stroke: #ff4d6a;
}
.win.live .act.on #incTicks line {
  animation: tickIn 0.4s both;
  animation-delay: calc(var(--i) * 14ms);
}
.win.live .act.on #incTicks line.cur {
  animation:
    tickIn 0.4s both,
    curBlink 1s 1.2s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * 14ms), 1.2s;
}
@keyframes tickIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.9;
  }
}
@keyframes curBlink {
  to {
    opacity: 0.25;
  }
}
.inc-sec {
  opacity: 0;
}
.win.live .act.on .inc-sec {
  opacity: 1;
  animation: secTick 60s steps(60) infinite;
}
.inc-sec path {
  stroke: #ff4d6a;
  stroke-width: 1.2;
  stroke-linecap: round;
}
.inc-sec circle {
  fill: #ff4d6a;
}
@keyframes secTick {
  to {
    transform: rotate(360deg);
  }
}
.dial-c {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 2px;
}
.dial-c b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 4.4vh, 2.5rem);
  color: #fff;
  font-variant-numeric: lining-nums tabular-nums;
}
.dial-c small {
  font-size: 0.5rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--silver-soft);
}
.feed {
  display: grid;
  gap: 2px;
  align-content: center;
}
.feed li {
  display: grid;
  grid-template-columns: 3.1rem auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--hair-dark);
  opacity: 0;
}
.win.live .act.on .feed li {
  animation: slideIn 0.6s var(--ease) both;
  animation-delay: var(--d);
}
.feed time {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 0.7rem;
  color: var(--silver-soft);
}
.feed p {
  font-size: 0.84rem;
  color: #fff;
}
.feed em {
  font-style: normal;
  color: var(--silver-soft);
  font-size: 0.74rem;
}
.feed code {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 0.78em;
  color: #cfd8ff;
}
.tg {
  font-size: 0.54rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid rgba(142, 164, 255, 0.5);
  border-radius: 99px;
  color: #8ea4ff;
  white-space: nowrap;
}
.tg.red {
  color: #ff8a9a;
  border-color: rgba(255, 77, 106, 0.6);
}
.tg.grn {
  color: #7fd0c0;
  border-color: rgba(127, 208, 192, 0.6);
}
.tg.amb {
  color: #e8b55b;
  border-color: rgba(232, 181, 91, 0.6);
}
.inc-foot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver-soft);
}
.inc-prog {
  height: 3px;
  border-radius: 2px;
  background: var(--hair-dark);
  overflow: hidden;
}
.inc-prog i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #8ea4ff, #7fd0c0);
}
.win.live .act.on .inc-prog i {
  animation: progFill 4.2s 0.5s var(--ease) both;
}
@keyframes progFill {
  to {
    width: 75%;
  }
}

/* the invoice stays: a real-looking 0,00 zł invoice for the demo */
.invoice {
  display: grid;
  gap: 16px;
  animation: rise 0.8s var(--ease) both;
}
.invoice[hidden] {
  display: none;
}
.inv-paper {
  --ink-i: #0a0e1c;
  --mute-i: #5a5f70;
  --rule-i: rgba(10, 14, 28, 0.14);
  position: relative;
  padding: 22px 22px 18px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, 0.55), transparent 60%), #f1ede4;
  color: var(--ink-i);
  border-radius: 3px;
  font-size: 0.74rem;
  line-height: 1.4;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 24px 40px -22px rgba(0, 0, 0, 0.85),
    0 2px 6px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
/* brand band along the top edge */
.inv-paper::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: repeating-linear-gradient(90deg, #365cff 0 14px, #8ea4ff 14px 16px);
}
.inv-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--rule-i);
}
.inv-head b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.01em;
}
.inv-no {
  display: block;
  margin-top: 6px;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 0.66rem;
  color: var(--mute-i);
}
.inv-dates {
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px 10px;
  margin: 0;
  font-size: 0.66rem;
  text-align: right;
}
.inv-dates dt {
  color: var(--mute-i);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.58rem;
  align-self: center;
}
.inv-dates dd {
  margin: 0;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}
.inv-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.inv-parties small {
  display: block;
  margin-bottom: 3px;
}
.inv-parties small,
.inv-tab th {
  color: var(--mute-i);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.56rem;
  font-weight: 500;
}
.inv-parties b {
  display: block;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.inv-parties span {
  display: block;
  color: var(--mute-i);
  overflow-wrap: anywhere;
}
.inv-tab {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}
.inv-tab th {
  padding: 0 0 6px;
  text-align: left;
  border-bottom: 1px solid var(--ink-i);
}
.inv-tab td {
  padding: 7px 0;
  border-bottom: 1px solid var(--rule-i);
  vertical-align: top;
}
.inv-tab th:nth-child(n + 2),
.inv-tab td:nth-child(n + 2) {
  text-align: right;
  white-space: nowrap;
  padding-left: 10px;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}
.inv-tab td b {
  display: block;
  font-weight: 600;
}
.inv-tab td small {
  display: block;
  color: var(--mute-i);
  font-size: 0.66rem;
}
.inv-sum {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.inv-sum dl {
  display: grid;
  grid-template-columns: auto auto;
  gap: 3px 18px;
  margin: 0 0 0 auto;
  text-align: right;
}
.inv-sum dt {
  color: var(--mute-i);
}
.inv-sum dd {
  margin: 0;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}
.inv-sum .tot {
  padding-top: 6px;
  border-top: 1px solid var(--ink-i);
  color: var(--ink-i);
  font-weight: 700;
  font-size: 0.9rem;
}
.inv-paid {
  padding: 3px 9px;
  border: 1.5px solid #1c8a69;
  border-radius: 2px;
  color: #1c8a69;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  transform: rotate(-4deg);
}
.inv-words {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--rule-i);
  color: var(--mute-i);
  font-size: 0.66rem;
}
.inv-stamp {
  position: absolute;
  left: 36%;
  top: 52%;
  padding: 5px 14px;
  border: 2px solid #1c8a69;
  color: #1c8a69;
  font-size: 0.8rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-weight: 600;
  background: rgba(236, 231, 219, 0.7);
  opacity: 0;
  transform: rotate(-9deg) scale(2.2);
}
.invoice.kept .inv-stamp {
  animation: stampDown 0.6s cubic-bezier(0.2, 1.6, 0.4, 1) forwards;
}
@keyframes stampDown {
  0% {
    opacity: 0;
    transform: rotate(-9deg) scale(2.2);
  }
  60% {
    opacity: 1;
    transform: rotate(-9deg) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: rotate(-9deg) scale(1);
  }
}
.invoice.kept .inv-paper {
  animation: invBump 0.5s 0.45s var(--ease);
}
@keyframes invBump {
  40% {
    transform: translateY(3px);
  }
}
.inv-note {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  opacity: 0.45;
  transition: opacity 0.7s var(--ease);
  color: var(--silver);
}
.invoice.kept .inv-note {
  opacity: 1;
}
.inv-note svg {
  width: 26px;
  color: #7fd0c0;
}
.inv-note b {
  display: block;
  color: #fff;
  font-weight: 400;
  font-size: 0.98rem;
}
.inv-note small {
  display: block;
  margin-top: 3px;
  font-size: 0.76rem;
  color: var(--silver-soft);
}
@media (max-width: 860px) {
  .inc-body {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
  }
  .dialbox {
    width: min(30vh, 150px);
  }
  .feed li:nth-child(3),
  .feed li:nth-child(2) {
    display: none;
  }
  .feed li {
    padding: 6px 0;
  }
  .inc-foot {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .inc-prog {
    display: none;
  }
  .inv-paper {
    padding: 20px 16px 16px;
  }
  .inv-head {
    flex-direction: column;
    gap: 10px;
  }
  .inv-dates {
    text-align: left;
  }
}
@media (prefers-reduced-motion: reduce) {
  .win.live .act.on .inc-alert i,
  .win.live .act.on .inc-sec {
    animation: none;
  }
}

.cmd-wrap {
  margin-top: 40px;
}
.cmd-note {
  margin: 0 0 10px;
  font-size: 0.74rem;
  color: var(--silver-soft);
}
.cmd-note a {
  color: #8ea4ff;
}
.cmd {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--hair-dark);
  border-bottom: 1px solid var(--hair-dark);
  font-size: 0.82rem;
  max-width: 100%;
}
.cmd code {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  letter-spacing: 0.02em;
  color: #fff;
  overflow-wrap: anywhere;
}
.copy {
  appearance: none;
  background: none;
  border: 0;
  color: #8ea4ff;
  font: inherit;
  font-size: 0.66rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 0;
  border-bottom: 1px solid currentColor;
}

/* wizard */
.form {
  display: grid;
  gap: 28px;
  min-height: 520px;
  grid-template-rows: auto 1fr auto auto;
}
.progress {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: #fff;
  flex-wrap: wrap;
}
.progress .of {
  color: var(--silver-soft);
  font-size: 1rem;
}
.bars {
  display: flex;
  gap: 8px;
  flex: 1 0 100%;
  margin-top: 12px;
}
.bars i {
  flex: 1;
  height: 1px;
  background: var(--hair-dark);
  position: relative;
}
.bars i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #8ea4ff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease);
}
.bars i.on::after {
  transform: scaleX(1);
}
.steps {
  position: relative;
  min-width: 0;
}
.step {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
  display: none;
  gap: 28px;
  align-content: start;
}
.step.on {
  display: grid;
  animation: stepIn 0.8s var(--ease) both;
}
@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.step legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 28px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #f4f2ec;
  font-variation-settings: 'opsz' 96;
}
.step legend + * {
  clear: both;
}
.hint {
  font-size: 0.82rem;
  color: var(--silver-soft);
}
.field {
  display: grid;
  gap: 4px;
}
.field label {
  font-size: 0.66rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--silver-soft);
}
.field label small {
  letter-spacing: 0.1em;
  text-transform: none;
  font-size: 0.74rem;
  opacity: 0.8;
}
.field input,
.field textarea {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(201, 204, 214, 0.3);
  border-radius: 0;
  padding: 8px 0 10px;
  color: #fff;
  font: inherit;
  font-size: 1.5rem;
  font-weight: 300;
  resize: none;
  transition: border-color 0.4s;
  width: 100%;
}
.field textarea {
  font-size: 1.1rem;
  field-sizing: content;
  min-height: 2.2em;
}
.field input:focus,
.field textarea:focus {
  outline: 0;
  border-color: #8ea4ff;
}
.field input[aria-invalid='true'] {
  border-color: #ff6b81;
}

.opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.opt {
  appearance: none;
  display: grid;
  gap: 2px;
  text-align: left;
  padding: 22px 22px;
  border: 1px solid rgba(201, 204, 214, 0.3);
  background: transparent;
  color: var(--silver);
  font: inherit;
  cursor: pointer;
  transition:
    background 0.5s var(--ease),
    color 0.5s var(--ease),
    border-color 0.5s var(--ease),
    transform 0.5s var(--ease);
}
.opt b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -0.03em;
}
.opt span {
  font-size: 0.66rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.opt:hover {
  border-color: #8ea4ff;
  transform: translateY(-3px);
}
.opt.on {
  background: var(--dial);
  color: var(--ink);
  border-color: var(--dial);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chipx {
  cursor: pointer;
}
.chipx input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chipx span {
  display: inline-block;
  padding: 11px 18px;
  border: 1px solid rgba(201, 204, 214, 0.3);
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--silver);
  transition:
    background 0.4s var(--ease),
    color 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.chipx:hover span {
  border-color: #8ea4ff;
}
.chipx input:checked + span {
  background: #8ea4ff;
  border-color: #8ea4ff;
  color: var(--ink);
}
.chipx input:focus-visible + span {
  outline: 1px solid #fff;
  outline-offset: 3px;
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--silver-soft);
  cursor: pointer;
}
.consent input {
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  border: 1px solid var(--silver-soft);
  display: grid;
  place-content: center;
  cursor: pointer;
}
.consent input:checked {
  border-color: #8ea4ff;
  background: #8ea4ff;
}
.consent input:checked::after {
  content: '';
  width: 8px;
  height: 4px;
  border-left: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: translateY(-1px) rotate(-45deg);
}

.submit,
.next {
  appearance: none;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px;
  border: 1px solid rgba(201, 204, 214, 0.5);
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.76rem;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  font-weight: 400;
  cursor: pointer;
  transition:
    color 0.6s var(--ease),
    border-color 0.6s var(--ease);
}
.submit {
  width: 100%;
  margin-top: 8px;
}
.submit::before,
.next::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--dial);
  transform: translateY(101%);
  transition: transform 0.7s var(--ease);
  z-index: 0;
}
.submit > *,
.next > * {
  position: relative;
  z-index: 1;
}
.submit i,
.next i {
  width: 56px;
  height: 1px;
  background: currentColor;
  position: relative;
  margin-left: 28px;
  transition: width 0.7s var(--ease);
}
.submit i::after,
.next i::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  transform-origin: 70% 30%;
}
.submit:hover:not(:disabled),
.next:hover {
  color: var(--ink);
  border-color: var(--dial);
}
.submit:hover:not(:disabled)::before,
.next:hover::before {
  transform: none;
}
.submit:hover:not(:disabled) i,
.next:hover i {
  width: 96px;
}
.submit:disabled {
  opacity: 0.5;
  cursor: progress;
}
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.step-nav .next {
  margin-left: auto;
}
.step-nav.last .next {
  display: none;
}
.back {
  appearance: none;
  background: none;
  border: 0;
  color: var(--silver-soft);
  font: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 0;
  border-bottom: 1px solid currentColor;
}
.form-msg {
  min-height: 1.4em;
  font-size: 0.9rem;
  color: #8ea4ff;
}
.form-msg.err {
  color: #ff8a9a;
}
@media (max-width: 860px) {
  .demo-in {
    grid-template-columns: 1fr;
  }
  .form {
    min-height: 0;
  }
  .opt {
    padding: 16px;
  }
  .opt b {
    font-size: 1.8rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .step.on {
    animation: none;
  }
}

/* ---------- stakes ---------- */
.stakes {
  background: var(--ink);
  padding: clamp(72px, 12vh, 150px) var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 72px);
  border-top: 1px solid var(--hair-dark);
}
.stake b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.4rem, min(9vw, 17vh), 9.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: #f4f2ec;
  font-variation-settings: 'opsz' 96;
}
.stake small {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 2rem);
  letter-spacing: 0;
  color: #8ea4ff;
  margin-left: 0.4em;
}
.stake p {
  margin-top: 20px;
  max-width: 30ch;
  color: var(--silver);
}
.stake i {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-size: 0.64rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--silver-soft);
}
@media (max-width: 860px) {
  .stakes {
    grid-template-columns: 1fr;
  }
  .stake b {
    font-size: clamp(3.6rem, 18vw, 5.4rem);
  }
}

/* ---------- film: how it works ---------- */
.film {
  background: var(--ink);
  border-top: 1px solid var(--hair-dark);
}
.film-track {
  height: 440vh;
  position: relative;
}
.film-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 88px);
  align-items: center;
  padding: 72px var(--gutter) 32px;
  background:
    radial-gradient(50% 60% at 78% 50%, rgba(54, 92, 255, 0.14), transparent 70%), var(--ink);
}
.film-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 22px 0 30px;
}
.film-tabs button {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 6px 0;
  color: var(--silver-soft);
  font: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 0.4s,
    border-color 0.4s;
}
.film-tabs button.on {
  color: #fff;
  border-color: #8ea4ff;
}
.film-copy {
  position: relative;
  min-height: clamp(14.5rem, 38vh, 21rem);
}
.film-copy article {
  position: absolute;
  inset: 0 0 auto 0;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.film-copy article.on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.film-copy h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, min(4.6vw, 8vh), 4.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #f4f2ec;
  margin-bottom: 20px;
  font-variation-settings: 'opsz' 96;
}
.film-copy p {
  max-width: 40ch;
  color: var(--silver);
}
.film-copy ul {
  margin-top: 22px;
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--silver-soft);
}
.film-copy li::before {
  content: '—';
  color: #8ea4ff;
  margin-right: 10px;
}
.win {
  display: flex;
  flex-direction: column;
  height: min(68vh, 580px);
  background: #070b1a;
  border: 1px solid rgba(201, 204, 214, 0.18);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 60px 120px -40px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(4, 6, 13, 0.6);
}
.win-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--hair-dark);
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver-soft);
}
.win-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(201, 204, 214, 0.25);
}
.win-bar span {
  margin-left: 12px;
}
.win-body {
  position: relative;
  flex: 1;
  min-height: 0;
}
.act {
  position: absolute;
  inset: 0;
  padding: clamp(16px, 2.2vw, 30px);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
  pointer-events: none;
  overflow: hidden;
}
.act.on {
  opacity: 1;
  transform: none;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* act 0: scan */
.scan {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(16px, 2.4vw, 32px);
  height: 100%;
}
.code {
  position: relative;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: clamp(0.58rem, 1vw, 0.78rem);
  line-height: 1.8;
  color: #6f7898;
  overflow: hidden;
}
.code .ln {
  display: block;
  white-space: pre;
  padding: 0 8px;
  border-left: 2px solid transparent;
}
.code .hit {
  color: #e6ebff;
}
.win.live .act.on .code .hit {
  animation: hit 0.6s both;
  animation-delay: var(--d);
}
@keyframes hit {
  from {
    background: transparent;
    border-color: transparent;
  }
  to {
    background: rgba(54, 92, 255, 0.2);
    border-color: #8ea4ff;
  }
}
.scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  z-index: 1;
  opacity: 0;
  background: linear-gradient(90deg, transparent, #8ea4ff, transparent);
  box-shadow: 0 0 18px #8ea4ff;
}
.win.live .act.on .scanline {
  animation: sweep 3s ease-in-out both;
}
@keyframes sweep {
  0% {
    top: 0;
    opacity: 1;
  }
  92% {
    top: 100%;
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}
.found .cap {
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--silver-soft);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hair-dark);
}
.found .cap b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: 0;
  color: #fff;
}
.found li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hair-dark);
  font-size: 0.85rem;
  opacity: 0;
}
.win.live .act.on .found li {
  animation: slideIn 0.6s var(--ease) both;
  animation-delay: var(--d);
}
.found code {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  color: #e6ebff;
  font-size: 0.82em;
}
.chip {
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 9px;
  border: 1px solid;
  border-radius: 99px;
  white-space: nowrap;
}
.chip.c1 {
  color: #8ea4ff;
  border-color: rgba(142, 164, 255, 0.5);
}
.chip.c2 {
  color: #d9dcea;
  border-color: rgba(217, 220, 234, 0.45);
}
.chip.c3 {
  color: #7fd0c0;
  border-color: rgba(127, 208, 192, 0.5);
}
.chip.c4 {
  color: #e8b55b;
  border-color: rgba(232, 181, 91, 0.55);
}
/* act 1: request */
.req-card {
  display: grid;
  gap: 4px;
  padding: 14px 18px;
  border: 1px solid var(--hair-dark);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}
.mono {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #8ea4ff;
}
.req-card b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  color: #f4f2ec;
}
.req-card small,
.req-steps small {
  display: block;
  color: var(--silver-soft);
  font-size: 0.76rem;
}
.req-steps {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}
.req-steps > li {
  position: relative;
  padding: 2px 0 2px 22px;
  border-left: 1px solid var(--hair-dark);
  opacity: 0;
}
.win.live .act.on .req-steps > li {
  animation: rise 0.7s var(--ease) both;
  animation-delay: var(--d);
}
.req-steps > li::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #070b1a;
  border: 1px solid var(--silver-soft);
}
.win.live .act.on .req-steps > li::before {
  animation: dotOn 0.5s both;
  animation-delay: calc(var(--d) + 0.6s);
}
@keyframes dotOn {
  to {
    background: #8ea4ff;
    border-color: #8ea4ff;
  }
}
.req-steps > li > b {
  color: #fff;
  font-weight: 400;
  font-size: 0.92rem;
}
.sys {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
  margin: 8px 0 6px;
  font-size: 0.78rem;
}
.sys li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--hair-dark);
  color: var(--silver);
}
.sys em {
  font-style: normal;
  color: var(--silver-soft);
}
.fake-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 14px;
  border: 1px solid #8ea4ff;
  color: #8ea4ff;
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.win.live .act.on .fake-btn {
  animation: press 0.5s both;
  animation-delay: calc(var(--d, 1.6s) + 1s);
}
.req-steps li:nth-child(2) .fake-btn {
  animation-delay: 2.6s;
}
@keyframes press {
  to {
    background: #8ea4ff;
    color: #04060d;
  }
}
/* act 2: breach */

@keyframes ringIn {
  from {
    stroke-dashoffset: 553;
  }
  to {
    stroke-dashoffset: 8;
  }
}
/* act 3: documents */
.docs {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(16px, 2.4vw, 32px);
  height: 100%;
}
@media (max-width: 860px) {
  .film-track {
    height: 420vh;
  }
  .film-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-content: start;
    gap: 14px;
    padding-top: 64px;
    padding-bottom: 18px;
  }
  .film-text .label {
    display: none;
  }
  .film-tabs {
    margin: 4px 0 12px;
  }
  .film-copy {
    min-height: 9.2rem;
  }
  .film-copy h2 {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
    margin-bottom: 10px;
  }
  .film-copy p {
    font-size: 0.9rem;
  }
  .film-copy ul {
    display: none;
  }
  .win {
    height: min(56vh, 470px);
  }
  .act {
    padding: 14px;
  }
  .req-card {
    padding: 10px 14px;
  }
  .req-steps {
    margin-top: 12px;
    gap: 8px;
  }
  .sys {
    grid-template-columns: 1fr 1fr;
    font-size: 0.7rem;
  }
  .fake-btn {
    margin-top: 4px;
    padding: 6px 12px;
  }
  .win-bar {
    padding: 10px 14px;
  }
  .scan {
    grid-template-columns: 1fr;
  }
  .code {
    display: none;
  }
  .docs {
    grid-template-columns: 1fr;
  }
}

/* ---------- tourbillon (signature) ---------- */
.tb {
  background: var(--ink);
}
.tb-track {
  height: 240vh;
  position: relative;
}
.tb-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(55% 55% at 50% 46%, rgba(54, 92, 255, 0.15), transparent 70%), var(--ink);
}
.tb-word {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -52%);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(10rem, 38vw, 40rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 204, 214, 0.09);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.tb-wrap {
  --w: min(78vh, 92vw);
  --u: calc(var(--w) / 200);
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 1;
  width: var(--w);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(var(--s, 0.8));
  will-change: transform;
}
.tb-tilt {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.tb-plane {
  position: absolute;
  inset: 0;
  transform: translateZ(calc(var(--z, 0) * var(--u)));
  will-change: transform;
}
.tb-plane > svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.tb-sub {
  position: absolute;
  overflow: visible;
  will-change: transform;
}
canvas.tb-plane {
  inset: 3%;
  width: 94%;
  height: 94%;
  border-radius: 50%;
  opacity: 0.9;
}
.tb-glint {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
}
.tb-glint i {
  position: absolute;
  inset: -60%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2), transparent 30%);
  will-change: transform;
}
.tb-cap {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 5vh, 52px);
  transform: translateX(-50%);
  width: min(34rem, 100% - 2 * var(--gutter));
  text-align: center;
  z-index: 3;
  color: var(--silver);
}
.tb-cap .label {
  margin-bottom: 10px;
}
@media (max-width: 860px) {
  .tb-wrap {
    --w: min(100vw, 52vh);
  }
  .tb-word {
    font-size: 70vw;
  }
}

/* svg parts */
.tb-line {
  fill: none;
  stroke: var(--silver);
  stroke-width: 0.5;
  stroke-linecap: round;
}
.tb-line.bold {
  stroke-width: 1.4;
}
.tb-line.thin {
  stroke: var(--silver-soft);
  stroke-width: 0.3;
}
.tb-line.steel {
  stroke: url(#tbSteelG);
  stroke-width: 1.7;
}
.tb-fill {
  fill: rgba(4, 6, 13, 0.62);
}
.tb-arms path {
  fill: none;
  stroke: var(--silver);
  stroke-width: 1.3;
  stroke-linecap: round;
}
.tb-bridge {
  fill: rgba(8, 12, 26, 0.55);
  stroke: var(--silver);
  stroke-width: 0.5;
  stroke-linejoin: round;
}
.tb-bridge.top {
  fill: rgba(10, 16, 40, 0.82);
  stroke: url(#tbSteelG);
  stroke-width: 1.1;
}
.tb-steel {
  fill: var(--blue);
  stroke: #cfd8ff;
  stroke-width: 0.4;
}
.tb-jewel {
  fill: #0a1030;
  stroke: #8ea4ff;
  stroke-width: 0.8;
}
.tb-tooth {
  fill: none;
  stroke: #cfd8ff;
  stroke-width: 0.6;
  stroke-linejoin: round;
}

/* ---------- footer ---------- */
.foot {
  background: var(--ink);
  padding: 36px var(--gutter) max(36px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--hair-dark);
  display: flex;
  gap: 24px 48px;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
}
.foot-brand {
  font-size: 0.74rem;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 400;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.foot-links a {
  color: var(--silver-soft);
  text-decoration: none;
  transition: color 0.3s;
}
.foot-links a:hover,
.foot-links a:focus-visible {
  color: #fff;
}
.foot-links #footMail {
  text-transform: none;
  letter-spacing: 0.04em;
}
.foot p {
  max-width: 62ch;
  font-size: 0.74rem;
  color: var(--silver-soft);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal,
  .js .line > span {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .scroll i {
    animation: none;
  }
}

/* short or very wide windows: keep every scene inside the viewport */
@media (max-height: 760px) and (min-width: 861px) {
  .nav {
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .hero-grid {
    padding-top: 72px;
    padding-bottom: 28px;
  }
  .hero h1 {
    margin: 2vh 0;
  }
  .hero-foot p {
    font-size: 0.92rem;
  }
  .film-stage {
    padding-top: 56px;
    padding-bottom: 16px;
  }
  .film-copy ul {
    display: none;
  }
  .win {
    height: min(72vh, 520px);
  }
  .comp-list li {
    padding: 18px 0;
  }
  .demo {
    padding-top: 84px;
    padding-bottom: 72px;
  }
  .demo h2 {
    margin-top: 14px;
  }
  .demo-lede {
    margin-top: 14px;
    font-size: 0.9rem;
  }
  .form {
    min-height: 0;
    gap: 18px;
  }
  .step legend {
    margin-bottom: 14px;
    font-size: clamp(1.6rem, 5vh, 2.4rem);
  }
  .field input {
    font-size: 1.2rem;
  }
}
@media (min-width: 2200px) {
  html {
    font-size: 118%;
  }
}
@media (max-width: 1100px) and (min-width: 861px) {
  .film-stage {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
  .comp-list li {
    grid-template-columns: 3.4rem minmax(0, 1fr) minmax(0, 1.3fr) 5rem;
  }
  .demo-in {
    gap: 40px;
  }
}

@media (max-width: 860px) {
  .face-back {
    padding-top: 19%;
  }
  .b-stripe {
    top: 8%;
    height: 14%;
  }
  .b-steps {
    gap: 2px;
    margin-top: 4px;
  }
  .b-steps li {
    font-size: 0.64rem;
    gap: 9px;
  }
  .b-steps b {
    width: 15px;
    height: 15px;
    font-size: 0.62rem;
  }
  .face-back .c-label {
    margin-bottom: 0;
  }
  .sig {
    min-height: 26px;
    font-size: 0.74rem;
  }
  .cvv {
    padding: 1px 8px;
  }
}

/* the sample sheet reads like an official form: frame, guilloche band, numbered header, signature line, microtext */

/* richer sample document: numbered clauses that appear one by one, watermark, QR, sheen */

@keyframes sheenPass {
  to {
    transform: translateX(120%);
  }
}

/* documents scene: list of documents becomes a pill row, the sheet gets the full width */
@media (min-width: 861px) {
  .docs {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
  }
}

/* six sheets, generated like the backend pack */

@keyframes paperIn {
  from {
    opacity: 0;
    transform: translateY(10px) rotate(-0.4deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes tickOn {
  to {
    background: #12206b;
    color: #e6e9fb;
  }
}

.win .act.on {
  pointer-events: auto;
}

/* ---------- electronic version -> real paper ---------- */
@property --rp {
  syntax: '<percentage>';
  inherits: true;
  initial-value: 0%;
}
/* the electronic sheet: clean, flat, like the app */

/* the real sheet: paper fibres, soft fold marks, frame, curl */

/* handwriting: blue ink written from left to right */

@keyframes write {
  to {
    clip-path: inset(-30% 0 -30% 0);
  }
}
@keyframes sign {
  to {
    stroke-dashoffset: 0;
  }
}
/* stamps */

@keyframes thud {
  0% {
    opacity: 0;
    transform: rotate(var(--r)) scale(1.8);
  }
  55% {
    opacity: 0.95;
    transform: rotate(var(--r)) scale(0.93);
  }
  100% {
    opacity: 0.85;
    transform: rotate(var(--r)) scale(1);
  }
}
/* the printer: slot above the sheet, a head running down the print edge */

@keyframes modeOff {
  to {
    color: var(--silver-soft);
  }
}
@keyframes modeOn {
  to {
    color: #fff;
  }
}
@keyframes printRun {
  from {
    --rp: 0%;
  }
  to {
    --rp: 100%;
  }
}
@keyframes printShake {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(0.7px);
  }
}
@keyframes headLife {
  0% {
    opacity: 1;
  }
  99.9%,
  100% {
    opacity: 0;
  }
}
@keyframes ledLife {
  0% {
    background: #8ea4ff;
    box-shadow: 0 0 8px #8ea4ff;
  }
  99.9%,
  100% {
    background: #1c3a2f;
    box-shadow: none;
  }
}

/* tuning: larger handwriting, flat ink stamps, stamps in the empty bottom area */

/* ---------- magic transition: electronic page -> parchment-like paper ---------- */

/* golden ring of ink at the edge of the wave */

@keyframes ringLife {
  0% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes printRun {
  from {
    --rp: 0%;
  }
  to {
    --rp: 135%;
  }
}
/* the sheet settles onto a table: slight perspective, warm edges, soft shadow */

@keyframes lay {
  to {
    transform: perspective(1500px) rotateX(6deg) rotateZ(-0.9deg) translateY(4px);
  }
}
/* ink arrives glowing and dries */

@keyframes inkDry {
  from {
    text-shadow:
      0 0 9px rgba(255, 210, 120, 0.95),
      0 0 2px #fff;
  }
  to {
    text-shadow: 0 0 0.6px rgba(23, 52, 154, 0.55);
  }
}
/* lighter text rendering: no per-element shadows or blend modes on the sheet */

/* ---------- generator: questionnaire -> parchment ---------- */
@property --u {
  syntax: '<percentage>';
  inherits: true;
  initial-value: 0%;
}
@keyframes unroll {
  from {
    --u: 0%;
  }
  to {
    --u: 100%;
  }
}
@keyframes gthud {
  0% {
    opacity: 0;
    transform: rotate(var(--r)) scale(2);
  }
  55% {
    opacity: 1;
    transform: rotate(var(--r)) scale(0.92);
  }
  100% {
    opacity: 0.92;
    transform: rotate(var(--r)) scale(1);
  }
}
@keyframes gsign {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes gfade {
  to {
    opacity: 1;
  }
}
/* a warm light sweep passes over the parchment once it is open */

@keyframes gsweep {
  to {
    transform: translateX(120%);
  }
}

/* stamps get their own band at the bottom of the parchment */

/* ---------- official continuous form: perforated paper, tractor holes, ruled boxes ---------- */

/* tractor-feed strips with punched holes and a perforation line */

/* ---------- abstract metric scene ---------- */

@keyframes gFill {
  to {
    stroke-dashoffset: 75.7;
  }
}
@keyframes barGrow {
  to {
    width: calc(var(--v) * 1%);
  }
}
@keyframes mDraw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes mFade {
  to {
    opacity: 1;
  }
}

/* ---------- space scene (launch telemetry) ---------- */
.sx {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(12px, 2vw, 28px);
  padding: clamp(14px, 2.4vh, 22px) clamp(16px, 2.4vw, 28px) clamp(30px, 5vh, 40px);
  background: radial-gradient(90% 70% at 70% 0%, #0a1233 0%, #04060f 70%);
}
@keyframes goPop {
  0% {
    transform: scale(1.7);
    opacity: 0;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}
@keyframes orbPulse {
  0% {
    r: 6;
    opacity: 1;
  }
  100% {
    r: 30;
    opacity: 0;
  }
}
@keyframes flame {
  to {
    transform: scaleY(0.62);
  }
}
@keyframes evFlash {
  0% {
    opacity: 0;
    transform: scale(1.25);
    letter-spacing: 0.6em;
  }
  18% {
    opacity: 1;
    transform: none;
    letter-spacing: 0.22em;
  }
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes horizon {
  to {
    transform: translateY(14%) scale(1.04);
  }
}
@keyframes starDrift {
  to {
    transform: translateY(5%);
  }
}
/* a short shake at liftoff */

@keyframes rumble {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(1.5px, -1px);
  }
  50% {
    transform: translate(-1.5px, 1px);
  }
  75% {
    transform: translate(1px, 1px);
  }
}
@media (max-width: 860px) {
  .sx {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 4px;
    padding: 12px 12px 26px;
  }
}

/* ---------- space scene v2 (canvas) ---------- */
.sx {
  display: block;
  padding: 0;
  background: #02030a;
}
.sx-cv {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
@keyframes liveDot {
  to {
    opacity: 0.25;
  }
}

/* ---------- one mission-control language for the whole "Jak to działa" section ---------- */
.film-tabs button {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  letter-spacing: 0.14em;
}
.film-tabs button b {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-right: 6px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-weight: 400;
  font-size: 0.56rem;
  letter-spacing: 0;
}
.film-tabs button.on {
  color: #8ea4ff;
  border-color: #8ea4ff;
}
.film-copy .ph {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #8ea4ff;
  margin-bottom: 10px;
  max-width: none;
}
.film-copy .nx {
  margin-top: 18px;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-soft);
}
.film-copy .nx::before {
  content: '→ ';
  color: #8ea4ff;
}
.film-copy {
  min-height: clamp(16.5rem, 42vh, 23rem);
}
/* the console: same night sky and thin HUD lines in every phase */
.win {
  border-radius: 12px;
  border: 1px solid rgba(142, 164, 255, 0.28);
  background:
    radial-gradient(1px 1px at 9% 18%, rgba(220, 230, 255, 0.7), transparent 60%),
    radial-gradient(1px 1px at 23% 64%, rgba(220, 230, 255, 0.5), transparent 60%),
    radial-gradient(1.4px 1.4px at 38% 30%, rgba(220, 230, 255, 0.6), transparent 60%),
    radial-gradient(1px 1px at 52% 82%, rgba(220, 230, 255, 0.45), transparent 60%),
    radial-gradient(1px 1px at 66% 14%, rgba(220, 230, 255, 0.65), transparent 60%),
    radial-gradient(1.4px 1.4px at 78% 52%, rgba(220, 230, 255, 0.55), transparent 60%),
    radial-gradient(1px 1px at 91% 76%, rgba(220, 230, 255, 0.6), transparent 60%),
    radial-gradient(1px 1px at 84% 26%, rgba(220, 230, 255, 0.4), transparent 60%),
    radial-gradient(90% 70% at 70% 0%, #0a1233 0%, #04060f 72%);
  box-shadow:
    0 60px 120px -40px rgba(0, 0, 0, 0.9),
    0 0 40px -12px rgba(54, 92, 255, 0.35);
}
.win-bar.mc {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(142, 164, 255, 0.2);
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  background: rgba(2, 3, 10, 0.45);
}
.win-bar.mc i {
  display: none;
}
.mc-brand {
  margin: 0;
  font-size: 0.54rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--silver);
  white-space: nowrap;
}
.mc-phases {
  display: flex;
  gap: 6px;
  margin: 0 auto;
}
.mc-phases li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid rgba(201, 204, 214, 0.18);
  border-radius: 99px;
  font-size: 0.5rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver-soft);
  white-space: nowrap;
  transition:
    color 0.4s,
    border-color 0.4s,
    background 0.4s;
}
.mc-phases li b {
  font-weight: 500;
}
.mc-phases li.done {
  color: var(--silver);
  border-color: rgba(142, 164, 255, 0.35);
}
.mc-phases li.done b::before {
  content: '✓ ';
  color: #8ea4ff;
}
.mc-phases li.on {
  color: #8ea4ff;
  border-color: #8ea4ff;
  background: rgba(142, 164, 255, 0.08);
  box-shadow: 0 0 14px -4px rgba(142, 164, 255, 0.7);
}
.mc-live {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.5rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #fff;
}
.mc-live i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff3b4d;
  box-shadow: 0 0 8px #ff3b4d;
  animation: liveDot 1.1s ease-in-out infinite alternate;
}
/* phase 1: scan */
.code {
  padding: 10px 0 10px 12px;
  border-left: 1px solid rgba(142, 164, 255, 0.5);
  background: linear-gradient(90deg, rgba(142, 164, 255, 0.05), transparent 60%);
}
.scanline {
  background: linear-gradient(90deg, transparent, #8ea4ff, transparent);
  box-shadow: 0 0 18px #8ea4ff;
}
.win.live .act.on .code .hit {
  animation-name: hitMint;
}
@keyframes hitMint {
  from {
    background: transparent;
    border-color: transparent;
  }
  to {
    background: rgba(142, 164, 255, 0.14);
    border-color: #8ea4ff;
  }
}
.found .cap {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  color: #8ea4ff;
}
.found .cap b {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-weight: 500;
}
.chip,
.chip.c1,
.chip.c2,
.chip.c3,
.chip.c4 {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  border-radius: 2px;
  color: var(--silver);
  border-color: rgba(142, 164, 255, 0.4);
}
.chip.c4 {
  color: #ffb347;
  border-color: rgba(255, 179, 71, 0.6);
}
/* phase 2: operation */
.req-card {
  background: transparent;
  border: 0;
  border-left: 2px solid #8ea4ff;
  border-radius: 0;
  padding: 2px 0 2px 14px;
}
.req-card .mono {
  color: #8ea4ff;
  letter-spacing: 0.2em;
}
.req-card b {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.act.on .req-steps > li::before,
.win.live .act.on .req-steps > li::before {
  animation-name: dotMint;
}
@keyframes dotMint {
  to {
    background: #8ea4ff;
    border-color: #8ea4ff;
    box-shadow: 0 0 10px #8ea4ff;
  }
}
.req-steps > li > b {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sys li {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 0.68rem;
}
.fake-btn {
  border-color: #8ea4ff;
  color: #8ea4ff;
  border-radius: 2px;
}
@keyframes press {
  to {
    background: #8ea4ff;
    color: #04060f;
  }
}
/* phase 3: alarm */
.inc-alert b,
.inc-foot {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}
.feed p {
  font-size: 0.8rem;
}
.tg {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  border-radius: 2px;
}
@media (max-width: 860px) {
  .mc-brand,
  .mc-live {
    display: none;
  }
  .win-bar.mc {
    padding: 8px 10px;
  }
  .mc-phases {
    margin: 0;
    gap: 4px;
    width: 100%;
    justify-content: space-between;
  }
  .mc-phases li {
    padding: 3px 8px;
    gap: 4px;
  }
  .mc-phases li:not(.on) span {
    display: none;
  }
  .film-tabs button {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }
  .film-tabs button b {
    display: none;
  }
  .film-copy {
    min-height: 11rem;
  }
}
.film-copy .nx {
  max-width: none;
  white-space: nowrap;
}
@media (max-width: 860px) {
  .feed li:nth-child(1) {
    display: none;
  }
  .inc {
    gap: 6px;
  }
  .dialbox {
    width: min(26vh, 132px);
  }
}

/* ---------- section palette = the rest of the site (ink, silver, electric blue) ---------- */
.chip.c4 {
  color: var(--silver);
  border-color: rgba(201, 204, 214, 0.45);
}
.inc-alert {
  border-color: rgba(142, 164, 255, 0.5);
  background: rgba(54, 92, 255, 0.1);
  color: #e6ebff;
}
.inc-alert i {
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
}
.inc-alert span {
  color: #8ea4ff;
}
@keyframes alertPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(142, 164, 255, 0.7);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(142, 164, 255, 0);
  }
}
.inc-sec path {
  stroke: #fff;
}
.inc-sec circle {
  fill: #fff;
}
.dialbox #incTicks line.cur {
  stroke: #fff;
}
.tg.red,
.tg.grn,
.tg.amb {
  color: #cfd8ff;
  border-color: rgba(142, 164, 255, 0.55);
}
.tg.red {
  color: #fff;
  border-color: #fff;
}
.mc-live i {
  background: #fff;
  box-shadow: 0 0 8px #8ea4ff;
}
/* orbit scene: a broadcast-style lower third instead of giant titles */

@keyframes lowerThird {
  0% {
    opacity: 0;
    transform: translateX(-18px);
  }
  10% {
    opacity: 1;
    transform: none;
  }
  82% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* ---------- orbit HUD that speaks about the product ---------- */

/* ---------- phase 4: the tesseract scene (areas legend instead of mission telemetry) ---------- */
.sx-areas {
  position: absolute;
  left: clamp(14px, 2vw, 24px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
  width: min(38%, 220px);
}
.sx-areas li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(142, 164, 255, 0.14);
  color: rgba(207, 216, 255, 0.4);
  transition:
    color 0.5s,
    border-color 0.5s;
}
.sx-areas b {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  font-weight: 400;
  color: inherit;
}
.sx-areas span {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.sx-areas li.go {
  color: #e6ebff;
  border-color: rgba(142, 164, 255, 0.55);
}
.sx-areas li.go b {
  color: #8ea4ff;
}
.sx.orbit .sx-areas li.go b {
  color: #3fe0a2;
}
@media (max-width: 600px) {
  .sx-areas {
    top: 14px;
    transform: none;
    width: auto;
    right: 14px;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 10px;
  }
  .sx-areas span {
    font-size: 0.68rem;
  }
}
