/*
  markovich.xyz
  Dark throughout: a deep forest-green ground, slightly lighter record sheets,
  pale green-white ink, and one accent, the mint of a fresh seal. The guilloché
  rosette (the engraved line pattern of banknotes and passports) marks the hero
  and the trust section. No white surfaces anywhere.
  Spectral (light) for the voice, Hanken Grotesk for the working text,
  IBM Plex Mono only for passport numbers, fingerprints and code.
*/

@font-face {
  font-family: "Spectral";
  src: url("/assets/fonts/spectral-latin-300-normal.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("/assets/fonts/spectral-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("/assets/fonts/spectral-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("/assets/fonts/spectral-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("/assets/fonts/spectral-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #061a16;          /* the ground */
  --paper-deep: #0a241e;
  --sheet: #0d2a23;          /* record sheets, cards */
  --sheet-2: #11312a;
  --ink: #e8f1ec;            /* text, 15:1 on the ground */
  --graphite: #a9c2b8;       /* secondary text, 9:1 */
  --pencil: #93ada3;         /* tertiary text, 7:1 */
  --rule: #1b3a32;
  --rule-strong: #2a4d44;
  --stamp: #7fe0b5;          /* green text, links, seals */
  --stamp-ink: #a3f0cf;
  --stamp-wash: #10352b;
  /* The trust section and the footer: a deeper ground. */
  --forest: #031310;
  --forest-2: #0d2a23;
  --forest-rule: #1b3a32;
  --on-forest: #e8f1ec;
  --on-forest-2: #a9c2b8;
  /* The accent: primary buttons, the seal. Dark text on it (about 15:1). */
  --mint: #a3f0cf;
  --mint-2: #c4f7e0;
  --alarm: #ff9a90;          /* reported stolen, altered record: text */
  --alarm-solid: #b3261e;    /* the stolen banner */
  --alarm-wash: #3a1614;

  --serif: "Spectral", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.333rem;
  --t-xl: 1.777rem;

  --r-sm: 4px;
  --r-md: 12px;
  --r-lg: 18px;
  --shadow-sheet: 0 1px 0 rgba(163, 240, 207, 0.06) inset, 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  /* Motion identity: premium (calm, precise, no bounce). One signature curve for entrances,
     one press curve for the stamp, three durations. */
  --ease-sig: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-press: cubic-bezier(0.6, 0, 0.9, 0.4);
  --d-quick: 160ms;
  --d-std: 450ms;
  --d-slow: 900ms;
  /* The loading screen covers the first moments of a page; the hero waits for it. */
  --veil-t: 0.45s;

  --gutter: 16px;
  --max: 1160px;
  color-scheme: dark;
}
@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  scroll-padding-top: 1.5rem;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-md);
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection {
  background: var(--mint);
  color: var(--forest);
}
:focus-visible {
  outline: 2px solid var(--stamp);
  outline-offset: 3px;
  border-radius: 3px;
}
a {
  color: var(--stamp-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--stamp);
}
[hidden] {
  display: none !important;
}
img,
svg {
  max-width: 100%;
}
img {
  display: block;
  height: auto;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
h3 {
  font-weight: 500;
  font-size: var(--t-lg);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
p,
ul,
ol,
dl,
figure {
  margin: 0;
}
p {
  text-wrap: pretty;
}
code,
kbd,
pre,
.mono {
  font-family: var(--mono);
  font-feature-settings: "zero" 1;
}
.tabular {
  font-variant-numeric: tabular-nums;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: var(--gutter);
  top: -60px;
  z-index: 100;
  background: var(--mint);
  color: var(--forest);
  padding: 0.6rem 1rem;
  border-radius: var(--r-md);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 0.75rem;
  color: var(--forest);
}
.i {
  width: 1em;
  height: 1em;
  flex: none;
  vertical-align: -0.12em;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.25rem;
  border-radius: var(--r-md);
  border: 1px solid var(--rule-strong);
  background: var(--sheet);
  color: var(--ink);
  font: 600 var(--t-sm) / 1 var(--sans);
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 120ms var(--ease-sig), border-color 120ms var(--ease-sig), transform 120ms var(--ease-sig);
}
.btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.btn:active {
  transform: translateY(1px);
}
.btn.primary {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--forest);
}
.btn.primary:hover {
  background: var(--mint-2);
  border-color: var(--mint-2);
  color: var(--forest);
}
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: progress;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* ---------------------------------------------------------------- header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
.head-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.015em;
  line-height: 1;
}
.wordmark .mark {
  color: var(--mint);
  flex: none;
}

.wordmark:hover {
  color: var(--ink);
}
.nav-main {
  display: none;
  gap: 1.5rem;
  margin-left: 1rem;
}
.nav-main a,
.link-verify {
  color: var(--ink);
  text-decoration: none;
  font-size: var(--t-sm);
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 1.5px solid transparent;
}
.nav-main a:hover,
.link-verify:hover {
  color: var(--stamp-ink);
}
.nav-main a[aria-current="page"],
.link-verify[aria-current="page"] {
  border-bottom-color: var(--stamp);
  color: var(--ink);
}
.head-actions {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 1.25rem;
}
.head-actions .btn {
  min-height: 42px;
}

.menu {
  margin-left: auto;
}
.menu summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.9rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: var(--t-sm);
  background: var(--sheet);
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu .menu-close,
.menu[open] .menu-open {
  display: none;
}
.menu[open] .menu-close {
  display: inline;
}
.menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 20px 30px -20px rgba(0, 0, 0, 0.6);
  padding: 0.5rem var(--gutter) 1.25rem;
  display: grid;
}
.menu-panel > a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.35rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
}
.menu-panel > a[aria-current="page"] {
  color: var(--stamp-ink);
}
.menu-actions {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.1rem;
}
@media (min-width: 1040px) {
  .nav-main,
  .head-actions {
    display: flex;
  }
  .menu {
    display: none;
  }
}

/* ---------------------------------------------------------------- footer */
.site-foot {
  background: var(--forest);
  color: var(--on-forest);
  padding: 4rem 0 2.5rem;
  margin-top: clamp(4rem, 10vw, 7rem);
  font-size: var(--t-sm);
}
.site-foot .wordmark,
.site-foot .wordmark:hover {
  color: var(--on-forest);
}
.site-foot .wordmark .mark {
  color: var(--mint);
}

.site-foot :focus-visible {
  outline-color: var(--mint);
}
.foot-grid {
  display: grid;
  gap: 2.25rem;
}
@media (min-width: 720px) {
  .foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}
.foot-brand p {
  color: var(--on-forest-2);
  margin-top: 0.9rem;
  max-width: 30ch;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.45;
}
.foot-col {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}
.foot-col h2 {
  font-family: var(--sans);
  font-size: var(--t-sm);
  font-weight: 650;
  letter-spacing: 0;
  margin-bottom: 0.25rem;
}
.foot-col a {
  color: var(--on-forest-2);
  text-decoration: none;
  width: fit-content;
}
.foot-col a:hover {
  color: var(--mint);
  text-decoration: underline;
}
.foot-base {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--forest-rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  color: var(--on-forest-2);
  font-size: var(--t-xs);
}
.foot-base p:last-child {
  margin-left: auto;
  display: flex;
  gap: 1.25rem;
}
.foot-base a {
  color: var(--on-forest-2);
}
@media (max-width: 719px) {
  .foot-base p:last-child {
    margin-left: 0;
  }
}

/* ---------------------------------------------------------------- shared type */
.lede {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  line-height: 1.45;
  color: var(--graphite);
  max-width: 40ch;
}
.prose {
  max-width: 64ch;
  display: grid;
  gap: 1rem;
}
.prose ul:not([class]),
.prose ol:not([class]) {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
}
.prose li::marker {
  color: var(--pencil);
}
.prose h3 {
  margin-top: 0.75rem;
}
.prose strong {
  font-weight: 650;
}
.note {
  font-size: var(--t-sm);
  color: var(--graphite);
}
.soon {
  display: inline-block;
  font: 600 var(--t-xs) / 1.3 var(--sans);
  color: var(--graphite);
  border: 1px dashed var(--rule-strong);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  vertical-align: 0.15em;
  margin-left: 0.35rem;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- status pill and badge (from the app) */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--t-xs);
  font-weight: 600;
  padding: 0.15rem 0.6rem 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  background: var(--sheet);
  white-space: nowrap;
  line-height: 1.5;
}
.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.status.issued {
  color: var(--stamp-ink);
  border-color: color-mix(in srgb, var(--stamp) 35%, var(--paper));
  background: var(--stamp-wash);
}
.status.stolen {
  color: var(--alarm);
  border-color: color-mix(in srgb, var(--alarm) 35%, var(--paper));
  background: var(--alarm-wash);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  font-size: var(--t-xs);
  font-weight: 550;
  background: var(--sheet);
  width: fit-content;
}
.badge.stamp {
  border-color: color-mix(in srgb, var(--stamp) 40%, var(--paper));
  color: var(--stamp-ink);
  background: var(--stamp-wash);
}

/* ---------------------------------------------------------------- the seal */
.seal {
  display: block;
  color: var(--stamp);
  transform: rotate(-8deg);
}
.seal.broken {
  color: var(--alarm);
}
.seal-ring {
  font: 600 9.2px var(--sans);
  letter-spacing: 0.06em;
}

/* ---------------------------------------------------------------- home: hero */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 3rem;
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  align-items: center;
}
.hero-copy {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}
.hero h1 {
  font-size: clamp(2.9rem, 8.4vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 11ch;
}
.hero .lede {
  max-width: 30ch;
}
.hero .actions {
  margin-top: 0.5rem;
}
.hero-proof {
  display: grid;
  gap: 0.35rem;
  font-size: var(--t-sm);
  color: var(--graphite);
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
  margin-top: 0.75rem;
  max-width: 34rem;
}
.hero-proof li {
  list-style: none;
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}
.hero-proof li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--stamp);
  transform: translateY(-2px);
}
.hero-proof ul {
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
    gap: 4rem;
  }
}

/* ---------------------------------------------------------------- the passport card */
.pcard-figure {
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  width: 100%;
  max-width: 470px;
  justify-self: center;
}
.pcard-figure figcaption {
  font-size: var(--t-xs);
  color: var(--graphite);
  text-align: center;
}
.pcard {
  position: relative;
  width: 100%;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sheet);
  display: grid;
  overflow: hidden;
}
.pc-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--rule);
  font-size: var(--t-xs);
}
.pc-kind {
  color: var(--graphite);
  font-weight: 550;
}
.pc-number {
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-left: auto;
}
.pc-plate {
  background: var(--paper-deep);
  padding: 1.75rem 1.5rem;
  display: grid;
  place-items: center;
}
.pc-plate img {
  width: auto;
  max-height: 250px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 18px 34px -18px rgba(0, 0, 0, 0.5);
}
.pc-record {
  padding: 1.15rem 1.1rem 0.25rem;
  display: grid;
  gap: 0.2rem;
  position: relative;
}
.pc-artist,
.pc-title {
  padding-right: 6.75rem;
}
.pc-artist {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.05rem;
}
.pc-artist span {
  font-family: var(--sans);
  font-size: var(--t-xs);
  color: var(--graphite);
  font-weight: 400;
  margin-left: 0.25rem;
}
.pc-title {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--graphite);
}
.pc-title i {
  color: var(--ink);
}
.pc-facts {
  display: grid;
  grid-template-columns: 5.25rem 1fr;
  gap: 0.3rem 0.75rem;
  font-size: var(--t-xs);
  margin: 0.85rem 0 0.9rem;
  line-height: 1.45;
}
.pc-facts dt {
  color: var(--graphite);
}
.pc-facts dd {
  margin: 0;
  display: flex;
  gap: 0.35rem;
  align-items: baseline;
}
.pc-facts .i {
  color: var(--graphite);
  align-self: center;
}
.pc-seal {
  position: absolute;
  right: 0.9rem;
  top: -46px;
  width: 112px;
  height: 112px;
  z-index: 1;
  border-radius: 50%;
  background: color-mix(in srgb, var(--sheet) 86%, transparent);
}
.pc-seal .seal {
  width: 100%;
  height: 100%;
}
.pc-history {
  list-style: none;
  padding: 0.35rem 1.1rem 0.9rem;
  margin-top: 0.6rem;
  border-top: 1px solid var(--rule);
  font-size: var(--t-xs);
}
.pc-history li {
  display: grid;
  grid-template-columns: 5.6rem 1fr auto;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.38rem 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.pc-history li:last-child {
  border-bottom: 0;
}
.pc-history time {
  color: var(--graphite);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 420px) {
  .pc-artist,
  .pc-title {
    padding-right: 5.5rem;
  }
  .pc-seal {
    width: 94px;
    height: 94px;
    top: -40px;
    right: 0.6rem;
  }
  .pc-plate img {
    max-height: 210px;
  }
}

/* The seal is pressed onto the record once, on arrival. Visible from the first frame. */
@media (prefers-reduced-motion: no-preference) {
  .seal-press {
    animation: seal-press 900ms var(--ease-out) 250ms both;
  }
  @keyframes seal-press {
    0% {
      transform: scale(1.22) rotate(-17deg);
      opacity: 0.35;
      filter: blur(1.5px);
    }
    55% {
      opacity: 1;
      filter: blur(0);
    }
    100% {
      transform: scale(1) rotate(-8deg);
      opacity: 1;
    }
  }
}

/* ---------------------------------------------------------------- sections */
.band {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  border-top: 1px solid var(--rule);
}
.band-head {
  display: grid;
  gap: 0.9rem;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
  max-width: 44rem;
}
.band-head h2,
.seal-explain h2,
.sec h2 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
}
.band-head p {
  color: var(--graphite);
  font-size: 1.1rem;
  max-width: 54ch;
}

/* Steps: a real sequence, drawn as a chain of entries. */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: step;
}
.steps li {
  position: relative;
  display: grid;
  align-content: start;
  grid-template-columns: 2.75rem 1fr;
  gap: 0 1.1rem;
  padding-bottom: 2rem;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  grid-row: span 2;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1.5px solid var(--stamp);
  color: var(--stamp-ink);
  background: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  position: relative;
  z-index: 1;
}
.steps li::after {
  content: "";
  position: absolute;
  left: calc(1.375rem - 0.75px);
  top: 2.75rem;
  bottom: 0;
  width: 1.5px;
  background: color-mix(in srgb, var(--stamp) 35%, var(--paper));
}
.steps li:last-child::after {
  display: none;
}
.steps li:last-child {
  padding-bottom: 0;
}
.steps h3 {
  padding-top: 0.45rem;
}
.steps p {
  color: var(--graphite);
  font-size: var(--t-sm);
  margin-top: 0.4rem;
  max-width: 36ch;
}
@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  .steps li {
    grid-template-columns: 1fr;
    padding-bottom: 0;
  }
  .steps li::before {
    grid-row: auto;
    margin-bottom: 1.1rem;
  }
  .steps li::after {
    left: 3.25rem;
    right: -1.5rem;
    top: calc(1.375rem - 0.75px);
    bottom: auto;
    width: auto;
    height: 1.5px;
  }
  .steps h3 {
    padding-top: 0;
  }
}

/* A forest-green section: the trust sections (the seal, the chain). */
.band.dark {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(55% 70% at 78% 50%, rgba(163, 240, 207, 0.07), transparent 70%), var(--forest);
  color: var(--on-forest);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.band.dark + .band {
  border-top: 0;
}
.band.dark a {
  color: var(--mint);
}
.band.dark a:hover {
  color: var(--on-forest);
}
.band.dark :focus-visible {
  outline-color: var(--mint);
}
.band.dark .prose p,
.band.dark .band-head p {
  color: var(--on-forest-2);
}
.band.dark .specimen {
  background: var(--forest-2);
  border-color: var(--forest-rule);
}
.band.dark .specimen p {
  color: var(--on-forest-2);
}
.band.dark .seal {
  color: var(--mint);
}
.band.dark .seal.broken,
.band.dark .specimen.broken strong {
  color: #ff9a90;
}
.band.dark .btn:not(.primary) {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--forest-rule);
  color: var(--on-forest);
}
.band.dark .btn:not(.primary):hover {
  border-color: var(--on-forest-2);
}

/* The seal, explained: two specimens. */
.seal-explain {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.seal-explain .prose {
  max-width: 52ch;
}
.specimens {
  display: grid;
  gap: 1rem;
}
.specimen {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.25rem;
  align-items: center;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 1.1rem 1.25rem;
}
.specimen .seal {
  width: 96px;
  height: 96px;
}
.specimen strong {
  display: block;
  font-size: var(--t-md);
  font-weight: 650;
}
.specimen p {
  font-size: var(--t-sm);
  color: var(--graphite);
}
.specimen.broken strong {
  color: var(--alarm);
}
@media (min-width: 900px) {
  .seal-explain {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* Who it's for: a register, not a grid of cards. */
.register {
  border-top: 1px solid var(--ink);
}
.register > div {
  display: grid;
  gap: 0.35rem 2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--rule);
}
.register dt {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.2;
}
.register dd {
  margin: 0;
  color: var(--graphite);
  max-width: 54ch;
}
.register dd a {
  white-space: nowrap;
}
@media (min-width: 760px) {
  .register > div {
    grid-template-columns: 15rem 1fr;
    align-items: baseline;
  }
}

.not-proof {
  display: grid;
  gap: 1rem;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.not-proof h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
}
.not-proof p {
  max-width: 62ch;
  color: var(--graphite);
}
@media (min-width: 900px) {
  .not-proof {
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
    align-items: start;
  }
}

.not-proof + .closing {
  margin-top: clamp(3.5rem, 8vw, 6rem);
}
.closing {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
  padding-top: clamp(3.5rem, 8vw, 6rem);
  border-top: 1px solid var(--rule);
}
.closing h2 {
  font-size: clamp(2.2rem, 5.6vw, 3.8rem);
  letter-spacing: -0.03em;
  max-width: 18ch;
}
.closing p {
  color: var(--graphite);
  max-width: 52ch;
}

/* ---------------------------------------------------------------- inner pages */
.page-head {
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
  display: grid;
  gap: 1.25rem;
}
.page-head h1 {
  font-size: clamp(2.4rem, 6.2vw, 4.2rem);
  line-height: 1.03;
  letter-spacing: -0.028em;
  max-width: 16ch;
}
.page-head .lede {
  max-width: 44ch;
}
.page-head .actions {
  margin-top: 0.5rem;
}

/* A section of an inner page: the heading in the margin, like a field label on a record sheet. */
.sec {
  display: grid;
  gap: 1.25rem;
  padding: clamp(2.25rem, 5vw, 3.5rem) 0;
  border-top: 1px solid var(--rule);
}
.sec > header {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}
.sec > header p {
  color: var(--graphite);
  font-size: var(--t-sm);
  max-width: 34ch;
}
@media (min-width: 900px) {
  .sec {
    grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
    gap: 4rem;
  }
  .sec h2 {
    font-size: 2rem;
  }
  .sec > header {
    position: sticky;
    top: 1.5rem;
  }
}

.points {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 64ch;
}
.points li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  gap: 0.3rem;
}
.points li:first-child {
  padding-top: 0;
}
.points li:last-child {
  border-bottom: 0;
}
.points strong {
  font-weight: 650;
}
.points p {
  color: var(--graphite);
}

ol.numbered {
  list-style: none;
  padding: 0;
  counter-reset: n;
  display: grid;
  gap: 1.1rem;
  max-width: 64ch;
}
ol.numbered > li {
  counter-increment: n;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
}
ol.numbered > li::before {
  content: counter(n);
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--stamp-ink);
  line-height: 1.5;
  font-weight: 500;
}
ol.numbered p {
  color: var(--graphite);
}

.callout {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.4rem;
  display: grid;
  gap: 0.5rem;
  max-width: 64ch;
}
.callout.alarm {
  background: var(--alarm-wash);
  border-color: color-mix(in srgb, var(--alarm) 25%, var(--paper));
}
.callout.alarm strong {
  color: var(--alarm);
}

/* Stolen banner specimen */
.stolen-specimen {
  background: var(--alarm-solid);
  color: #fff;
  border-radius: var(--r-md);
  padding: 0.9rem 1.1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  max-width: 34rem;
}
.stolen-specimen strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
}
.stolen-specimen p {
  font-size: var(--t-xs);
  opacity: 0.95;
}
.stolen-specimen .i {
  width: 22px;
  height: 22px;
  margin-top: 3px;
}

/* ---------------------------------------------------------------- trust: the chain */
.chain {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 40rem;
}
.chain li {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 0.95rem 1.1rem;
  display: grid;
  gap: 0.15rem 1rem;
  grid-template-columns: 1fr auto;
  position: relative;
}
.chain li + li {
  margin-top: 2.25rem;
}
.chain li + li::before {
  content: "";
  position: absolute;
  left: 2rem;
  top: calc(-2.25rem - 1px);
  height: 2.25rem;
  border-left: 1.5px dashed var(--stamp);
}
.chain li + li::after {
  content: "includes the fingerprint above";
  position: absolute;
  left: 2.6rem;
  top: -1.75rem;
  font-size: var(--t-xs);
  color: var(--stamp-ink);
}
.chain .c-what {
  font-weight: 650;
  font-size: var(--t-sm);
}
.chain .c-date {
  font-size: var(--t-xs);
  color: var(--graphite);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.chain .c-hash {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--graphite);
  overflow-wrap: anywhere;
  margin-top: 0.35rem;
}
.chain .c-hash b {
  font-weight: 500;
  color: var(--ink);
}
.chain .c-prev {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--pencil);
  overflow-wrap: anywhere;
}
.chain li.altered {
  border-color: color-mix(in srgb, var(--alarm) 40%, var(--paper));
  background: var(--alarm-wash);
}
.chain li.altered .c-what,
.chain li.altered .c-hash b {
  color: var(--alarm);
}

.limits {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 64ch;
  border-top: 1px solid var(--ink);
}
.limits li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.75rem;
}
.limits li::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-top: 0.4rem;
  background: linear-gradient(45deg, transparent 44%, var(--graphite) 44%, var(--graphite) 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, var(--graphite) 44%, var(--graphite) 56%, transparent 56%);
}
.limits strong {
  font-weight: 650;
}
.limits p {
  color: var(--graphite);
}

/* ---------------------------------------------------------------- developers */
.code {
  background: var(--forest);
  color: var(--on-forest);
  border-radius: var(--r-md);
  padding: 1rem 1.1rem;
  font-size: 0.8125rem;
  line-height: 1.65;
  overflow-x: auto;
  max-width: 100%;
  margin: 0;
  tab-size: 2;
}
.code .c {
  color: var(--on-forest-2);
}
.code .s {
  color: var(--mint);
}
.code::selection,
.code *::selection {
  background: var(--mint);
  color: var(--forest);
}
.code-block {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}
.code-block figcaption {
  font-size: var(--t-xs);
  color: var(--graphite);
}
.dev-grid {
  max-width: 64ch;
  display: grid;
  gap: 2rem;
  min-width: 0;
}
code.inline {
  font-size: 0.875em;
  background: var(--paper-deep);
  border-radius: var(--r-sm);
  padding: 0.05rem 0.35rem;
  overflow-wrap: anywhere;
}

.fact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-sm);
  max-width: 64ch;
}
.fact-table th,
.fact-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.85rem 0.75rem 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}
.fact-table thead th {
  font-weight: 650;
  border-bottom-color: var(--ink);
}
.fact-table td:last-child,
.fact-table th:last-child {
  padding-right: 0;
}
.fact-table td {
  color: var(--graphite);
}
.fact-table td:first-child,
.fact-table th[scope="row"] {
  color: var(--ink);
  font-weight: 600;
}

/* ---------------------------------------------------------------- pricing */
.price-sheet {
  border-top: 1px solid var(--ink);
}
.price-row {
  display: grid;
  gap: 0.75rem 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
}
.price-row h2 {
  font-size: 1.6rem;
}
.price-row .who {
  font-size: var(--t-sm);
  color: var(--graphite);
  margin-top: 0.35rem;
}
.price-row ul {
  padding-left: 1.1rem;
  display: grid;
  gap: 0.3rem;
  color: var(--graphite);
  font-size: var(--t-sm);
}
.price-row .price {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.25;
}
.price-row .price small {
  display: block;
  font-family: var(--sans);
  font-size: var(--t-xs);
  color: var(--graphite);
  margin-top: 0.35rem;
  line-height: 1.5;
}
.price-row .price .btn {
  margin-top: 0.9rem;
}
@media (min-width: 900px) {
  .price-row {
    grid-template-columns: 17rem 1fr 16rem;
  }
}
.tiers {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}
.tiers div {
  padding-left: 0.9rem;
  border-left: 1px solid var(--rule-strong);
}
.tiers strong {
  display: block;
  font-weight: 650;
  color: var(--ink);
  font-size: var(--t-sm);
}
.tiers p {
  font-size: var(--t-sm);
  color: var(--graphite);
}

.faq {
  display: grid;
  max-width: 64ch;
}
.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq details:first-child {
  border-top: 1px solid var(--rule);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 2rem 1rem 0;
  font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.25rem;
  top: 1.35rem;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--graphite);
  border-bottom: 1.5px solid var(--graphite);
  transform: rotate(45deg);
  transition: transform 200ms var(--ease-out);
}
.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-3px, -3px);
}
.faq details p {
  padding: 0 0 1.1rem;
  color: var(--graphite);
}

/* ---------------------------------------------------------------- forms */
.sheet {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sheet);
  padding: clamp(1.25rem, 4vw, 2rem);
}
.form {
  display: grid;
  gap: 1.1rem;
}
.form-grid {
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 640px) {
  .form-grid.two {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  display: grid;
  gap: 0.35rem;
}
.field > span {
  font-size: var(--t-sm);
  font-weight: 600;
}
.field .opt {
  font-weight: 400;
  color: var(--graphite);
}
.field .hint {
  font-size: var(--t-xs);
  color: var(--graphite);
}
input,
select,
textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--sheet);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-md);
  padding: 0.7rem 0.8rem;
  min-height: 48px;
  width: 100%;
  caret-color: var(--stamp);
  transition: border-color 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--graphite) 50%), linear-gradient(135deg, var(--graphite) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--stamp);
  box-shadow: 0 0 0 3px var(--stamp-wash);
}
input::placeholder,
textarea::placeholder {
  color: var(--pencil);
}
input[aria-invalid="true"] {
  border-color: var(--alarm);
}
.trap {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  font-size: var(--t-sm);
  min-height: 1.5em;
}
.form-status:empty {
  display: none;
}
.form-status.error {
  color: var(--alarm);
}
.form-done {
  display: grid;
  gap: 0.75rem;
}
.form-done h3 {
  font-size: 1.6rem;
}
.form-done p {
  color: var(--graphite);
}
.form-small {
  font-size: var(--t-xs);
  color: var(--graphite);
}

/* A short history, as on the passport */
.mini-ledger {
  list-style: none;
  padding: 0.25rem 1.1rem;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  font-size: var(--t-xs);
  max-width: 34rem;
}
.mini-ledger li {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
}
.mini-ledger li:last-child {
  border-bottom: 0;
}
.mini-ledger time {
  color: var(--graphite);
  font-variant-numeric: tabular-nums;
}

/* Verify */
.verify-box {
  display: grid;
  gap: 1rem;
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.lookup {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 560px) {
  .lookup {
    grid-template-columns: 1fr auto;
  }
}
.lookup input {
  font-family: var(--mono);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-height: 56px;
}
.lookup input::placeholder {
  text-transform: none;
  letter-spacing: 0.04em;
}
.lookup .btn {
  min-height: 56px;
}
.label-specimen {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 0.85rem 1rem;
  width: fit-content;
  max-width: 100%;
}
.label-specimen .qr {
  width: 64px;
  height: 64px;
  flex: none;
}
.label-specimen p {
  font-size: var(--t-xs);
  color: var(--graphite);
  line-height: 1.4;
}
.label-specimen .mono {
  display: block;
  font-size: 0.9375rem;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.03em;
}
.two-lists {
  display: grid;
  gap: 2rem;
}
@media (min-width: 720px) {
  .two-lists {
    grid-template-columns: 1fr 1fr;
  }
}
.two-lists h3 {
  margin-bottom: 0.6rem;
}
.ticks {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  color: var(--graphite);
}
.ticks li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.5rem;
}
.ticks .i {
  margin-top: 0.3rem;
  color: var(--stamp);
}
.ticks.closed .i {
  color: var(--graphite);
}

/* Contact layout */
.contact-grid {
  display: grid;
  gap: 2.5rem;
  max-width: 46rem;
}
.contact-facts {
  display: grid;
  gap: 1.25rem 2rem;
  font-size: var(--t-sm);
}
@media (min-width: 640px) {
  .contact-facts {
    grid-template-columns: 1fr 1fr;
  }
}
.contact-facts dt {
  font-weight: 650;
}
.contact-facts dd {
  margin: 0.15rem 0 0;
  color: var(--graphite);
}

/* Legal drafts */
.draft-flag {
  background: var(--alarm-wash);
  border: 1px dashed var(--alarm);
  color: var(--alarm);
  border-radius: var(--r-md);
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: var(--t-sm);
  max-width: 64ch;
}
.legal {
  max-width: 68ch;
  display: grid;
  gap: 1rem;
  padding-bottom: 2rem;
}
.legal h2 {
  font-size: 1.6rem;
  margin-top: 1.75rem;
}
.legal ul {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.4rem;
}
.legal .meta {
  color: var(--graphite);
  font-size: var(--t-sm);
}
mark.fill {
  background: var(--stamp-wash);
  color: var(--stamp-ink);
  padding: 0 0.2rem;
  border-radius: 3px;
}

/* 404 */
.lost {
  padding: clamp(3rem, 10vw, 7rem) 0 2rem;
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}
.lost .seal {
  width: 120px;
  height: 120px;
  margin-bottom: 0.5rem;
}
.lost h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  letter-spacing: -0.025em;
}
.lost p {
  color: var(--graphite);
  max-width: 48ch;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
@media print {
  .site-head,
  .site-foot,
  .menu {
    display: none;
  }
  :root {
    --paper: #fff;
    --sheet: #fff;
    --ink: #111;
    --graphite: #444;
    --rule: #ccc;
  }
  body {
    background: #fff;
  }
}

/* ================================================================ guilloché and motion
   One orchestrated moment on arrival (the passport writes its history, entry by entry,
   each fingerprint settles, then the seal is pressed), the rosette drawing itself, and
   two reveals on scroll (the chain of steps, the seal specimens). Nothing moves for
   people who ask for reduced motion: they see the finished state. */

/* The rosette: the engraved line pattern of banknotes and passports. */
.rosette {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  overflow: visible;
}
.rosette use {
  fill: none;
  stroke: var(--mint);
  stroke-width: 0.6;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.rosette-hero {
  width: min(980px, 140vw);
  aspect-ratio: 1;
  right: -24%;
  top: 50%;
  translate: 0 -50%;
  opacity: 0.2;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
}
.rosette-band {
  width: min(860px, 130vw);
  aspect-ratio: 1;
  right: -8%;
  top: 50%;
  translate: 0 -50%;
  opacity: 0.13;
}
@media (max-width: 959px) {
  .rosette-hero {
    right: -60%;
    top: 62%;
    opacity: 0.16;
  }
}

/* The fingerprint on each history entry. */
.pc-hash {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--pencil);
}

/* Primary buttons answer the pointer with a soft mint glow. */
.btn.primary {
  transition: background 120ms var(--ease-sig), box-shadow var(--d-quick) var(--ease-sig), transform 120ms var(--ease-sig);
}
.btn.primary:hover {
  box-shadow: 0 0 0 4px rgba(163, 240, 207, 0.14), 0 12px 32px -12px rgba(163, 240, 207, 0.55);
}

@media (prefers-reduced-motion: no-preference) {
  /* The rosettes draw themselves, then turn very slowly. */
  .rosette use {
    animation: g-draw 4.2s cubic-bezier(0.55, 0, 0.2, 1) both;
  }
  .rosette-band use {
    animation-delay: 0.3s;
  }
  .rosette {
    animation: g-turn 240s linear infinite;
  }
  @keyframes g-draw {
    from {
      stroke-dashoffset: 1;
    }
    to {
      stroke-dashoffset: 0;
    }
  }
  @keyframes g-turn {
    to {
      rotate: 360deg;
    }
  }

  /* The passport arrives, then writes its history one entry at a time. */
  .pcard[data-pcard] {
    animation: card-in var(--d-slow) var(--ease-sig) calc(var(--veil-t) + 0.2s) both, card-impact 0.3s var(--ease-sig) calc(var(--veil-t) + 1.72s);
  }
  .pcard[data-pcard] .pc-history li {
    animation: entry-in var(--d-std) var(--ease-sig) both;
  }
  .pcard[data-pcard] .pc-history li:nth-child(1) { animation-delay: calc(var(--veil-t) + 0.65s); }
  .pcard[data-pcard] .pc-history li:nth-child(2) { animation-delay: calc(var(--veil-t) + 0.73s); }
  .pcard[data-pcard] .pc-history li:nth-child(3) { animation-delay: calc(var(--veil-t) + 0.81s); }
  .pcard[data-pcard] .pc-history li:nth-child(4) { animation-delay: calc(var(--veil-t) + 0.89s); }
  .pcard[data-pcard] .pc-history li:nth-child(5) { animation-delay: calc(var(--veil-t) + 0.97s); }
  .pcard[data-pcard] .pc-history li:nth-child(6) { animation-delay: calc(var(--veil-t) + 1.05s); }
  .pcard[data-pcard] .pc-hash {
    animation: hash-settle 0.6s var(--ease-sig) both;
    animation-delay: inherit;
  }
  /* Then the seal is pressed, and a ring spreads from it. */
  .pcard[data-pcard] .seal-press {
    animation: seal-stamp 0.42s var(--ease-press) calc(var(--veil-t) + 1.3s) both;
  }
  .pcard[data-pcard] .pc-seal::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid var(--mint);
    opacity: 0;
    animation: seal-ring var(--d-slow) var(--ease-sig) calc(var(--veil-t) + 1.72s) both;
  }
  @keyframes card-in {
    from {
      opacity: 0;
      transform: translateY(28px) scale(0.98);
    }
  }
  @keyframes entry-in {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
  }
  /* Follow-through: the card dips under the stamp, then recovers. */
  @keyframes card-impact {
    35% {
      transform: translateY(2px) scale(0.996);
    }
  }
  @keyframes hash-settle {
    0% {
      color: var(--mint);
      text-shadow: 0 0 12px rgba(163, 240, 207, 0.8);
    }
    100% {
      color: var(--pencil);
      text-shadow: none;
    }
  }
  /* A rigid stamp: it accelerates into contact (ease-in) and stops dead. No bounce. */
  @keyframes seal-stamp {
    0% {
      opacity: 0;
      transform: scale(1.5) rotate(-26deg);
      filter: blur(2px);
    }
    40% {
      opacity: 0.9;
      filter: blur(0.5px);
    }
    100% {
      opacity: 1;
      transform: scale(1) rotate(-8deg);
      filter: none;
    }
  }
  @keyframes seal-ring {
    0% {
      opacity: 0.9;
      transform: scale(0.9);
    }
    100% {
      opacity: 0;
      transform: scale(1.9);
    }
  }
}

/* Reveals on scroll. Only when scripts run (site.js marks them "is-in"), so the content
   is never hidden from someone without JavaScript. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  /* The chain of steps: each link is drawn, then its number is sealed in mint. */
  .steps[data-reveal] li::after {
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.7s var(--ease-out);
  }
  .steps[data-reveal] li::before {
    transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out), border-color 0.4s var(--ease-out), box-shadow 0.6s var(--ease-out);
  }
  .steps[data-reveal] h3,
  .steps[data-reveal] p {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  }
  .steps[data-reveal].is-in li::after {
    transform: none;
  }
  .steps[data-reveal].is-in li::before {
    background: var(--mint);
    border-color: var(--mint);
    color: var(--forest);
    box-shadow: 0 0 0 6px rgba(163, 240, 207, 0.12);
  }
  .steps[data-reveal].is-in h3,
  .steps[data-reveal].is-in p {
    opacity: 1;
    transform: none;
  }
  .steps[data-reveal] li:nth-child(2)::before,
  .steps[data-reveal] li:nth-child(2) h3,
  .steps[data-reveal] li:nth-child(2) p,
  .steps[data-reveal] li:nth-child(1)::after { transition-delay: 0.12s; }
  .steps[data-reveal] li:nth-child(3)::before,
  .steps[data-reveal] li:nth-child(3) h3,
  .steps[data-reveal] li:nth-child(3) p,
  .steps[data-reveal] li:nth-child(2)::after { transition-delay: 0.24s; }
  .steps[data-reveal] li:nth-child(4)::before,
  .steps[data-reveal] li:nth-child(4) h3,
  .steps[data-reveal] li:nth-child(4) p,
  .steps[data-reveal] li:nth-child(3)::after { transition-delay: 0.36s; }

  /* The seal specimens are stamped when the section comes into view. */
  .specimens[data-reveal] .seal {
    opacity: 0;
  }
  .specimens[data-reveal].is-in .seal {
    animation: seal-stamp 0.42s var(--ease-press) 0.2s both;
  }
  .specimens[data-reveal].is-in .specimen.broken .seal {
    animation-delay: 0.6s;
  }
}
@media (min-width: 900px) and (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .steps[data-reveal] li::after {
    transform: scaleX(0);
    transform-origin: left;
  }
}

/* ---------------------------------------------------------------- the chain mark (the record, the API) */
.chain .ch-node {
  fill: none;
  stroke: var(--mint);
  stroke-width: 2;
}
.chain .ch-link {
  stroke: var(--mint);
  stroke-width: 2.4;
  stroke-linecap: round;
}
.chain .ch-node:last-of-type {
  fill: var(--mint);
}
.dev-mark {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--graphite);
  font-size: var(--t-sm);
  font-weight: 500;
}
.dev-mark .chain {
  width: 46px;
  height: 46px;
  flex: none;
}
@media (prefers-reduced-motion: no-preference) {
  /* On the API pages the chain is drawn once, entry by entry; the last entry is sealed with a glow. */
  .chain-draw > * {
    animation: chain-in 0.45s var(--ease-out) both;
  }
  .chain-draw > :nth-child(1) { animation-delay: 0.15s; }
  .chain-draw > :nth-child(2) { animation-delay: 0.20s; }
  .chain-draw > :nth-child(3) { animation-delay: 0.25s; }
  .chain-draw > :nth-child(4) { animation-delay: 0.30s; }
  .chain-draw > :nth-child(5) { animation-delay: 0.35s; }
  .chain-draw > :nth-child(6) { animation-delay: 0.40s; }
  .chain-draw > :nth-child(7) { animation-delay: 0.45s; }
  .chain-draw > :nth-child(8) { animation-delay: 0.50s; }
  .chain-draw > :nth-child(9) { animation-delay: 0.55s; }
  .chain-draw > :last-child {
    animation: chain-in 0.45s var(--ease-sig) both, chain-seal var(--d-slow) var(--ease-sig) 0.65s;
  }
  /* While loading, the chain keeps being linked and sealed. */
  .chain-loop > * {
    animation: chain-pulse 1.6s ease-in-out infinite;
  }
  .chain-loop > :nth-child(1) { animation-delay: 0.00s; }
  .chain-loop > :nth-child(2) { animation-delay: 0.12s; }
  .chain-loop > :nth-child(3) { animation-delay: 0.24s; }
  .chain-loop > :nth-child(4) { animation-delay: 0.36s; }
  .chain-loop > :nth-child(5) { animation-delay: 0.48s; }
  .chain-loop > :nth-child(6) { animation-delay: 0.60s; }
  .chain-loop > :nth-child(7) { animation-delay: 0.72s; }
  .chain-loop > :nth-child(8) { animation-delay: 0.84s; }
  .chain-loop > :nth-child(9) { animation-delay: 0.96s; }
  @keyframes chain-in {
    from {
      opacity: 0;
    }
  }
  @keyframes chain-seal {
    0% {
      filter: drop-shadow(0 0 0 rgba(163, 240, 207, 0));
    }
    40% {
      filter: drop-shadow(0 0 6px rgba(163, 240, 207, 0.9));
    }
    100% {
      filter: drop-shadow(0 0 0 rgba(163, 240, 207, 0));
    }
  }
  @keyframes chain-pulse {
    0%,
    100% {
      opacity: 0.18;
    }
    25%,
    65% {
      opacity: 1;
    }
  }
}


/* ================================================================ the futuristic layer
   A living field of engraved lines (canvas, site.js) behind the hero and page titles,
   headlines rising in word by word, the passport card tilting in 3D under the pointer,
   and a scroll-driven scene: the label is scanned, every fingerprint is recomputed,
   the seal is pressed. Reduced motion: everything is shown finished and still. */

/* ---------- the living field */
.hero-zone {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
/* canvas.field only: the form labels are also .field (see "forms" above). */
canvas.field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 45%, #000 35%, transparent 85%);
  mask-image: radial-gradient(120% 90% at 70% 45%, #000 35%, transparent 85%);
}
.page-head {
  position: relative;
  isolation: isolate;
}
.field-small {
  position: absolute;
  z-index: -1;
  top: -140px;
  bottom: -60px;
  left: 50%;
  width: 100vw;
  translate: -50% 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(90% 80% at 75% 40%, #000 20%, transparent 80%);
  mask-image: radial-gradient(90% 80% at 75% 40%, #000 20%, transparent 80%);
}
.hero {
  min-height: min(880px, calc(100svh - 68px));
}
.hero h1 {
  font-size: clamp(3.1rem, 9.2vw, 7rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
}

/* ---------- headlines rise in, word by word */
.split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.split .w > span {
  display: inline-block;
}
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .split .w > span {
    transform: translateY(108%);
    transition: transform var(--d-slow) var(--ease-sig);
    transition-delay: calc(min(var(--i, 0), 8) * 45ms);
  }
  .split.is-in .w > span {
    transform: none;
  }
}

/* ---------- the passport card tilts and catches the light */
.pcard-figure {
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform var(--d-std) var(--ease-sig);
  will-change: transform;
}
.pcard::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(520px circle at var(--gx, 50%) var(--gy, 0%), rgba(163, 240, 207, 0.12), transparent 45%);
  opacity: var(--glare, 0);
  transition: opacity 0.5s var(--ease-out);
}
.pcard {
  border-color: color-mix(in srgb, var(--mint) 18%, var(--rule));
}

/* ---------- the scan scene (scroll-driven) */
.scene {
  position: relative;
  height: 250vh;
  background: var(--forest);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.scene-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: center;
}
.rosette-scene {
  width: min(1000px, 150vw);
  aspect-ratio: 1;
  right: -18%;
  top: 50%;
  translate: 0 -50%;
  opacity: 0.12;
}
.scene-grid {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}
.scene-copy h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  max-width: 15ch;
  margin-bottom: 1.75rem;
}
.scene-steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.1rem;
  max-width: 34rem;
}
.scene-steps li {
  padding-left: 1.1rem;
  border-left: 2px solid var(--rule-strong);
  opacity: 0.55;
  transition: opacity var(--d-std) var(--ease-sig), border-color var(--d-std) var(--ease-sig), transform var(--d-std) var(--ease-sig);
}
.scene-steps li.is-active {
  opacity: 1;
  border-left-color: var(--mint);
  transform: translateX(4px);
}
.scene-steps strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.scene-steps p {
  color: var(--graphite);
  font-size: var(--t-sm);
  margin-top: 0.25rem;
}
.scene-progress {
  height: 2px;
  background: var(--rule);
  margin-top: 1.75rem;
  max-width: 34rem;
  border-radius: 2px;
  overflow: hidden;
}
.scene-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--mint);
  transform-origin: left;
  transform: scaleX(var(--p, 1));
}
.scene-visual {
  display: grid;
  gap: 0.9rem;
  width: 100%;
  max-width: 470px;
  justify-self: center;
}
.scan-label {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--sheet);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-lg);
  padding: 0.9rem;
}
.scan-qr-box {
  position: relative;
  width: 84px;
  height: 84px;
  flex: none;
  padding: 8px;
  border-radius: 10px;
  background: var(--paper);
  overflow: hidden;
}
.scan-qr {
  width: 100%;
  height: 100%;
  display: block;
}
.scan-beam {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 26%;
  background: linear-gradient(to bottom, transparent, rgba(163, 240, 207, 0.55) 85%, var(--mint));
  opacity: 0;
}
.scan-meta {
  display: grid;
  gap: 0.15rem;
  font-size: var(--t-sm);
}
.scan-meta .mono {
  font-size: 1rem;
  letter-spacing: 0.04em;
}
.scan-state {
  font-size: var(--t-xs);
  color: var(--stamp);
}
.scan-chain {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  font-size: var(--t-xs);
  position: relative;
  overflow: hidden;
}
.scan-chain li {
  display: grid;
  grid-template-columns: 1.6rem 1fr auto 1rem;
  gap: 0.6rem;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--rule);
  transition: background 0.4s var(--ease-out);
}
.scan-chain li:last-child {
  border-bottom: 0;
}
.sc-n {
  font-family: var(--mono);
  color: var(--pencil);
}
.sc-hash {
  font-family: var(--mono);
  color: var(--pencil);
  letter-spacing: 0.04em;
}
.sc-ok {
  width: 1rem;
  height: 1rem;
  color: var(--mint);
  opacity: 1;
}
.scan-seal {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.6rem 0.4rem;
}
.scan-seal .seal {
  width: 84px;
  height: 84px;
  color: var(--mint);
}
.scan-seal strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
}
.scan-seal span {
  color: var(--graphite);
  font-size: var(--t-sm);
}
@media (min-width: 960px) {
  .scene-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
    gap: 4rem;
  }
}
@media (max-width: 959px) {
  .scene-sticky {
    align-items: start;
    padding-top: 1.5rem;
  }
  .scene-copy h2 {
    font-size: 1.7rem;
    margin-bottom: 0.9rem;
  }
  .scene-steps li:not(.is-active) {
    display: none;
  }
  .scene-visual {
    order: -1;
  }
  .scan-chain li {
    padding: 0.4rem 0.75rem;
  }
  .scan-seal .seal {
    width: 64px;
    height: 64px;
  }
}

/* The scene's states, driven by scroll (site.js sets data-stage and marks rows). */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .scene[data-stage] .sc-ok {
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.2s var(--ease-sig), transform 0.25s var(--ease-sig);
  }
  .scene[data-stage] .scan-chain li.is-checking {
    background: color-mix(in srgb, var(--mint) 9%, var(--sheet));
  }
  .scene[data-stage] .scan-chain li.is-checking .sc-hash {
    color: var(--mint);
    text-shadow: 0 0 10px rgba(163, 240, 207, 0.7);
  }
  .scene[data-stage] .scan-chain li.is-done .sc-ok {
    opacity: 1;
    transform: none;
  }
  .scene[data-stage] .scan-chain li.is-done .sc-hash {
    color: var(--graphite);
  }
  .scene[data-stage="0"] .scan-beam {
    opacity: 1;
    animation: scan-sweep 1.5s ease-in-out infinite;
  }
  .scene[data-stage="0"] .scan-state::after {
    content: "…";
  }
  .scene[data-stage] .scan-seal {
    opacity: 0.3;
    transition: opacity 0.4s var(--ease-out);
  }
  .scene[data-stage="2"] .scan-seal {
    opacity: 1;
  }
  .scene[data-stage="2"] .scan-seal .seal {
    animation: seal-stamp 0.42s var(--ease-press) both, seal-glow var(--d-slow) var(--ease-sig) 0.42s;
  }
  @keyframes seal-glow {
    40% {
      filter: drop-shadow(0 0 14px rgba(163, 240, 207, 0.65));
    }
  }
  @keyframes scan-sweep {
    0% {
      transform: translateY(-110%);
    }
    100% {
      transform: translateY(400%);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .scene {
    height: auto;
  }
  .scene-sticky {
    position: relative;
    height: auto;
    padding: 5rem 0;
  }
  .scene-steps li {
    opacity: 1;
    display: block !important;
  }
}

/* ---------- future markets */
.beyond-grid {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.beyond-grid li {
  position: relative;
  background: var(--paper);
  padding: 1.6rem 1.5rem 1.75rem;
  display: grid;
  gap: 0.5rem;
  align-content: start;
  transition: background 0.4s var(--ease-out);
}
.beyond-grid li:hover {
  background: var(--paper-deep);
}
.b-type {
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--stamp);
}
.beyond-grid h3 {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
}
.beyond-grid p {
  color: var(--graphite);
  font-size: var(--t-sm);
}
.beyond-grid .soon {
  margin: 0.4rem 0 0;
  justify-self: start;
}
@media (min-width: 760px) {
  .beyond-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .beyond-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  /* The cards stay in place (no empty block); their contents rise in, one card after another. */
  .beyond-grid[data-reveal] li > * {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity var(--d-std) var(--ease-sig), transform var(--d-std) var(--ease-sig);
  }
  .beyond-grid[data-reveal].is-in li > * {
    opacity: 1;
    transform: none;
  }
  .beyond-grid[data-reveal] li:nth-child(2) > * { transition-delay: 0.1s; }
  .beyond-grid[data-reveal] li:nth-child(3) > * { transition-delay: 0.2s; }
  .beyond-grid[data-reveal] li:nth-child(4) > * { transition-delay: 0.3s; }
}

@media (scripting: none) {
  .scene-steps li {
    opacity: 1;
  }
}

/* ================================================================ the logo, always in motion
   A soft light travels through the holes of the perforated M, in the order a pen writes
   it, like data moving along the chain. Calm and continuous; still for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .mark rect {
    animation: hole-flow 3.6s ease-in-out infinite;
  }
  .mark rect:nth-child(1) { animation-delay: 0.00s; }
  .mark rect:nth-child(2) { animation-delay: 0.06s; }
  .mark rect:nth-child(3) { animation-delay: 0.12s; }
  .mark rect:nth-child(4) { animation-delay: 0.18s; }
  .mark rect:nth-child(5) { animation-delay: 0.24s; }
  .mark rect:nth-child(6) { animation-delay: 0.30s; }
  .mark rect:nth-child(7) { animation-delay: 0.36s; }
  .mark rect:nth-child(8) { animation-delay: 0.42s; }
  .mark rect:nth-child(9) { animation-delay: 0.48s; }
  .mark rect:nth-child(10) { animation-delay: 0.54s; }
  .mark rect:nth-child(11) { animation-delay: 0.60s; }
  .mark rect:nth-child(12) { animation-delay: 0.66s; }
  .mark rect:nth-child(13) { animation-delay: 0.72s; }
  .mark rect:nth-child(14) { animation-delay: 0.78s; }
  .mark rect:nth-child(15) { animation-delay: 0.84s; }
  .mark rect:nth-child(16) { animation-delay: 0.90s; }
  .mark rect:nth-child(17) { animation-delay: 0.96s; }
  .mark rect:nth-child(18) { animation-delay: 1.02s; }
  .mark rect:nth-child(19) { animation-delay: 1.08s; }
  @keyframes hole-flow {
    0%,
    24%,
    100% {
      opacity: 0.78;
    }
    9% {
      opacity: 1;
      fill: var(--mint-2);
    }
  }
}

/* ================================================================ the loading screen between pages
   The wordmark with the engraved ring as its "o": three rings turning against each other.
   On arrival it covers the page for a moment, then fades (pure CSS, so it never sticks).
   When leaving a page, site.js fades it in before the next page loads. */
.veil {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--paper);
  pointer-events: none;
  opacity: 0;
}
.veil-word {
  display: inline-flex;
  align-items: center;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1;
}
.veil-o {
  width: 0.62em;
  height: 0.62em;
  margin: 0.14em 0.02em 0 0.04em;
  overflow: visible;
}
.veil-o path {
  fill: none;
  stroke: var(--mint);
  stroke-width: 1.7;
}
.veil-o .vr2 {
  opacity: 0.6;
}
.veil-o .vr3 {
  opacity: 0.35;
}
@media (prefers-reduced-motion: no-preference) {
  .veil {
    animation: veil-out 0.38s var(--ease-sig) 0.3s both;
  }
  .veil.is-leaving {
    animation: veil-in 0.26s var(--ease-sig) both;
    pointer-events: auto;
  }
  .veil-o .vr {
    transform-box: view-box;
    transform-origin: 32px 32px;
  }
  .veil-o .vr1 {
    animation: o-spin 5s linear infinite;
  }
  .veil-o .vr2 {
    animation: o-spin 8s linear infinite reverse;
  }
  .veil-o .vr3 {
    animation: o-spin 13s linear infinite;
  }
  .veil-o path {
    stroke-dasharray: 1;
    animation: o-draw 0.7s var(--ease-sig) both;
  }
  .veil.is-leaving .veil-word {
    animation: veil-word-in var(--d-std) var(--ease-sig) both;
  }
  @keyframes veil-out {
    from {
      opacity: 1;
    }
    to {
      opacity: 0;
    }
  }
  @keyframes veil-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  @keyframes o-spin {
    to {
      rotate: 360deg;
    }
  }
  @keyframes o-draw {
    from {
      stroke-dashoffset: 1;
    }
    to {
      stroke-dashoffset: 0;
    }
  }
  @keyframes veil-word-in {
    from {
      transform: translateY(10px);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .veil {
    display: none;
  }
}
@media print {
  .veil {
    display: none;
  }
}

/* ================================================================ green tiles: the mosaic
   Solid rounded tiles in the logo's greens, from deep forest to mint, like a mosaic.
   The mosaic wall under the hero carries the perforated M in bright tiles (canvas,
   site.js); the steps and the entries being checked are tiles too. */
:root {
  --tile-0: #0f2e26;
  --tile-1: #163d32;
  --tile-2: #1f5040;
  --tile-3: #2d6a55;
  --tile-4: #4a9174;
  --tile-5: #7fd2ad;
  --tile-6: #a3f0cf;
}

/* The mosaic wall (and the thinner strip on inner pages). */
.mosaic {
  position: relative;
  width: 100%;
}
.mosaic canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.mosaic-wall {
  height: clamp(220px, 34vw, 400px);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.mosaic-strip {
  height: 118px;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  -webkit-mask-image: linear-gradient(to right, #000 40%, transparent);
  mask-image: linear-gradient(to right, #000 40%, transparent);
}

/* The steps: each one a tile, a shade brighter than the one before. */
.tile {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: var(--tile-3);
}
.steps li::before {
  content: none;
}
.steps .tile {
  grid-row: span 2;
  z-index: 1;
  margin: 0 auto;
}
.steps li:nth-child(1) .tile { background: var(--tile-3); }
.steps li:nth-child(2) .tile { background: var(--tile-4); }
.steps li:nth-child(3) .tile { background: var(--tile-5); }
.steps li:nth-child(4) .tile { background: var(--tile-6); }
@media (min-width: 900px) {
  .steps .tile {
    grid-row: auto;
    margin: 0 0 1.1rem;
  }
}

/* The scan scene: one small tile per entry. */
.tile-xs {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--tile-1);
}
.scene .scan-chain li.is-done .tile-xs,
.scene:not([data-stage]) .tile-xs {
  background: var(--tile-6);
}
.scene .scan-chain li.is-checking .tile-xs {
  background: var(--tile-4);
}

@media (prefers-reduced-motion: no-preference) {
  /* Each step's tile breathes slightly, out of step with the others. */
  .steps .tile {
    animation: tile-breathe 4.2s ease-in-out infinite;
  }
  .steps li:nth-child(2) .tile { animation-delay: -1s; }
  .steps li:nth-child(3) .tile { animation-delay: -2s; }
  .steps li:nth-child(4) .tile { animation-delay: -3s; }
  .scene .scan-chain li.is-checking .tile-xs {
    animation: tile-check 0.5s ease-in-out infinite alternate;
  }
  .scene .scan-chain li.is-done .tile-xs {
    animation: tile-lock var(--d-std) var(--ease-sig) both;
  }
  @keyframes tile-breathe {
    0%,
    100% {
      filter: brightness(1);
    }
    50% {
      filter: brightness(1.18);
    }
  }
  @keyframes tile-check {
    from {
      background: var(--tile-2);
    }
    to {
      background: var(--tile-5);
    }
  }
  @keyframes tile-lock {
    from {
      transform: scale(1.4);
      background: var(--tile-6);
      box-shadow: 0 0 10px rgba(163, 240, 207, 0.8);
    }
  }
}
/* Before the chain is reached, its tiles are dark; they light up tile by tile. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .steps[data-reveal] .tile {
    transition: background var(--d-std) var(--ease-sig), box-shadow var(--d-slow) var(--ease-sig);
  }
  .steps[data-reveal]:not(.is-in) li .tile {
    background: var(--tile-1);
  }
  .steps[data-reveal].is-in .tile {
    box-shadow: 0 0 18px rgba(163, 240, 207, 0.14);
  }
  .steps[data-reveal] li:nth-child(2) .tile { transition-delay: 0.12s; }
  .steps[data-reveal] li:nth-child(3) .tile { transition-delay: 0.24s; }
  .steps[data-reveal] li:nth-child(4) .tile { transition-delay: 0.36s; }
}

/* The logo lockup: the perforated M is the M of the word ("M" + "arkovich"), sitting on
   the baseline at cap height, not a separate symbol next to the name. */
.wordmark {
  align-items: baseline;
  gap: 0.07em;
  font-weight: 500;
}
.wordmark .mark {
  width: 0.74em;
  height: 0.74em;
}

/* ================================================================ vision page */
.vision-head h1 {
  font-size: clamp(2.8rem, 7.6vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  max-width: 13ch;
}
.vision-head .lede {
  max-width: 46ch;
}
.mosaic-horizon {
  height: clamp(200px, 26vw, 320px);
  margin: clamp(1rem, 3vw, 2rem) 0 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.vision-note {
  max-width: 62ch;
  color: var(--graphite);
  font-size: var(--t-sm);
  border-left: 2px solid var(--mint);
  padding-left: 1rem;
  margin: clamp(1.5rem, 4vw, 2.5rem) 0 1rem;
}

.institution-grid .b-type {
  color: var(--mint);
}

/* Inside an inner page's narrow column, four cards sit two by two. */
@media (min-width: 1100px) {
  .sec .beyond-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- the globe (vision page): the world in tiles, turned by a swipe */
.globe {
  position: relative;
  margin: clamp(0.5rem, 2vw, 1.5rem) auto 0;
  width: 100%;
  max-width: 1200px;
  height: clamp(340px, 66vw, 660px);
}
.globe canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  cursor: grab;
}
.globe canvas.is-dragging {
  cursor: grabbing;
}
.globe-label {
  position: absolute;
  left: var(--gutter);
  bottom: 1rem;
  display: grid;
  gap: 0.2rem;
  pointer-events: none;
  max-width: 30ch;
}
.g-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.g-sub {
  color: var(--graphite);
  font-size: var(--t-sm);
}
.globe-credit {
  position: absolute;
  right: var(--gutter);
  bottom: 1rem;
  font-size: 0.6875rem;
  color: var(--pencil);
}


/* ---------- vision: five silhouettes in tiles (artwork, watch, person, AI agent, institution)
   Each assembles from flying tiles when it scrolls into view; a light then travels through
   it diagonally, and the bright tiles (the agent's eyes, the watch hands) glow. */
.sil-section {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3rem);
  border-top: 1px solid var(--rule);
}
.deck-head {
  display: grid;
  gap: 0.8rem;
  max-width: 44rem;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}
.deck-head h2 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
}
.deck-head p {
  color: var(--graphite);
}
.sil-grid {
  list-style: none;
  padding: 0;
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 760px) {
  .sil-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1100px) {
  .sil-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
.sil-card {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}
.sil {
  display: block;
  width: 100%;
  max-width: 190px;
  aspect-ratio: 26 / 30;
  margin-bottom: 0.75rem;
  touch-action: pan-y;
}
.sil-card h3 {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
}
.sil-card p {
  color: var(--graphite);
  font-size: var(--t-sm);
}
.h-when {
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--pencil);
}
.h-when.is-now {
  color: var(--mint);
}

/* The loading screen spells [M]ark○vich: the tiled M fills tile by tile like a loading bar
   while the engraved o turns. */
.veil-word .veil-m {
  width: 0.72em;
  height: 0.72em;
  margin: 0.06em 0.05em 0 0;
  color: var(--mint);
}
@media (prefers-reduced-motion: no-preference) {
  .veil .veil-m rect {
    animation: m-charge 1.1s var(--ease-sig) infinite;
  }
  .veil .veil-m rect:nth-child(1) { animation-delay: 0.000s; }
  .veil .veil-m rect:nth-child(2) { animation-delay: 0.045s; }
  .veil .veil-m rect:nth-child(3) { animation-delay: 0.090s; }
  .veil .veil-m rect:nth-child(4) { animation-delay: 0.135s; }
  .veil .veil-m rect:nth-child(5) { animation-delay: 0.180s; }
  .veil .veil-m rect:nth-child(6) { animation-delay: 0.225s; }
  .veil .veil-m rect:nth-child(7) { animation-delay: 0.270s; }
  .veil .veil-m rect:nth-child(8) { animation-delay: 0.315s; }
  .veil .veil-m rect:nth-child(9) { animation-delay: 0.360s; }
  .veil .veil-m rect:nth-child(10) { animation-delay: 0.405s; }
  .veil .veil-m rect:nth-child(11) { animation-delay: 0.450s; }
  .veil .veil-m rect:nth-child(12) { animation-delay: 0.495s; }
  .veil .veil-m rect:nth-child(13) { animation-delay: 0.540s; }
  @keyframes m-charge {
    0% {
      opacity: 0.12;
    }
    22% {
      opacity: 1;
      fill: var(--mint-2);
    }
    80% {
      opacity: 1;
    }
    100% {
      opacity: 0.12;
    }
  }
}

/* ---------- vision: the padlock statement */
.padlock {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1.1rem;
  padding: clamp(4rem, 10vw, 7rem) 0;
  border-top: 1px solid var(--rule);
}
.padlock-mark .mark {
  width: 64px;
  height: 64px;
  color: var(--mint);
}
.padlock h2 {
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  letter-spacing: -0.035em;
  max-width: 16ch;
}
.padlock p:last-child {
  color: var(--graphite);
  max-width: 54ch;
  font-size: 1.1rem;
}
@media (min-width: 1100px) {
  .sec .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ================================================================ what we're building
   Four columns, one per stage. Each stage has its own tile, from bright mint (working)
   to an empty outline (later): the same tile language as the mosaic. */
.build-board {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 1rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 680px) {
  .build-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
  .build-board { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.build-col > ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.build-col-head {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.7rem;
  align-items: center;
  padding-bottom: 0.9rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--rule-strong);
}
.build-col-head h2 {
  font-size: 1.45rem;
  margin: 0;
}
.build-col-head p {
  grid-column: 1 / -1;
  margin-top: 0.35rem;
  font-size: var(--t-xs);
  color: var(--pencil);
}
.build-tile {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: block;
}
.is-working .build-tile { background: var(--tile-6); box-shadow: 0 0 18px rgba(163, 240, 207, 0.45); }
.is-building .build-tile { background: var(--tile-4); }
.is-next .build-tile { background: var(--tile-2); }
.is-later .build-tile { background: transparent; border: 1.5px solid var(--tile-3); }
.build-card {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 1rem 1.05rem 1.05rem;
}
.is-working .build-card { border-color: #2a5a4a; }
.is-later .build-card { background: transparent; border-style: dashed; }
.build-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}
.build-card p {
  margin-top: 0.35rem;
  font-size: var(--t-sm);
  color: var(--graphite);
}
.build-card a {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: var(--t-xs);
  color: var(--stamp);
}
.build-log {
  list-style: none;
  padding: 0;
  max-width: 44rem;
}
.build-log li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule);
}
.build-log time {
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--pencil);
  padding-top: 0.2rem;
}
.build-log p {
  font-size: var(--t-sm);
  color: var(--graphite);
  margin-top: 0.15rem;
}
@media (max-width: 520px) {
  .build-log li { grid-template-columns: 1fr; gap: 0.2rem; }
}
@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  .build-col { animation: build-rise var(--d-slow) var(--ease-sig) both; }
  .build-col:nth-child(2) { animation-delay: 80ms; }
  .build-col:nth-child(3) { animation-delay: 160ms; }
  .build-col:nth-child(4) { animation-delay: 240ms; }
  @keyframes build-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
}
