/* =========================================================================
   mono — card site
   Design tokens → base → layout → sections → components → states → responsive
   ========================================================================= */

@property --paper { syntax: "<color>"; inherits: true; initial-value: #f1f0eb; }
@property --ink   { syntax: "<color>"; inherits: true; initial-value: #0e0e0d; }
@property --muted { syntax: "<color>"; inherits: true; initial-value: #5b5953; }
@property --rule  { syntax: "<color>"; inherits: true; initial-value: rgba(14, 14, 13, 0.14); }

:root {
  /* colour — paper & ink, one signal accent */
  --paper: #f1f0eb;
  --ink: #0e0e0d;
  --muted: #5b5953;
  --rule: rgba(14, 14, 13, 0.14);
  --accent: #ff4f12;

  /* space */
  --m: clamp(20px, 3.9vw, 56px);
  --g: clamp(14px, 1.7vw, 24px);
  --print-h: min(60vh, 600px);

  /* type */
  --f-mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --f-sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* motion */
  --e-out: cubic-bezier(0.16, 1, 0.3, 1);
  --e-io: cubic-bezier(0.65, 0, 0.35, 1);
  --e-std: cubic-bezier(0.2, 0, 0, 1);
  --t-theme: 0.75s;

  color-scheme: light;
  transition:
    --paper var(--t-theme) var(--e-io),
    --ink var(--t-theme) var(--e-io),
    --muted var(--t-theme) var(--e-io),
    --rule var(--t-theme) var(--e-io);
}

:root[data-theme="dark"] {
  --paper: #0c0c0b;
  --ink: #edece7;
  --muted: #a3a29c;
  --rule: rgba(237, 236, 231, 0.16);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.5 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection { background: var(--ink); color: var(--paper); }
svg { display: block; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

main, .foot { position: relative; }

.skip {
  position: fixed; z-index: 60; left: var(--m); top: 12px;
  padding: 12px 16px; border-radius: 8px;
  background: var(--ink); color: var(--paper);
  font: 500 14px/1 var(--f-sans);
  transform: translateY(-160%);
  transition: transform 0.3s var(--e-out);
}
.skip:focus { transform: none; }

/* the mono voice: labels, data, captions */
.kicker, .clock, .lang, .index, .print__labels, .print__cap, .meta,
.fp-table, .lab__note, .foot, .ch__act, .toast, kbd, .nav__cta {
  font-family: var(--f-mono);
  font-stretch: 87.5%;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* ---------- display type ---------- */
.display {
  margin: 0;
  font-family: var(--f-mono);
  font-weight: 300;
  font-stretch: 75%;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

/* word masks for reveals (built by MC.splitWords) */
.w {
  display: inline-block; vertical-align: top;
  overflow: hidden; overflow: clip;
  padding: 0.08em 0.03em 0.18em;
  margin: -0.08em -0.03em -0.18em;
}
.wi { display: inline-block; transform: translate3d(0, 118%, 0); }
[data-split].in .wi {
  transform: none;
  transition: transform 1.15s var(--e-out);
  transition-delay: calc(var(--d, 0ms) + var(--i, 0) * 55ms);
}
[data-split].revealed .w { overflow: visible; }
.no-io .wi { transform: none; }
.js [data-split]:not(.is-split) { visibility: hidden; }
.no-io [data-split] { visibility: visible; }
html:not(.js) .lab__panel, html:not(.js) .string, html:not(.js) .string__hint, html:not(.js) .print__cap { display: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px var(--m);
}
.nav::before {
  content: ""; position: absolute; inset: 0 0 -32px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, var(--paper) 45%, transparent);
  opacity: 0; transition: opacity 0.5s var(--e-std);
}
.is-scrolled .nav::before { opacity: 1; }
.nav__name {
  font: 500 15px/1 var(--f-sans); letter-spacing: -0.01em;
  padding: 15px 0; margin: -15px 0;
}
.nav__right { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.clock { margin: 0; display: flex; gap: 6px; color: var(--muted); font-variant-numeric: tabular-nums; }
.clock .colon { animation: blink 2s steps(1, end) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

.lang { position: relative; display: flex; }
.lang button {
  min-width: 40px; padding: 15px 0; margin: -15px 0;
  color: var(--muted); transition: color 0.3s var(--e-std);
}
.lang button:hover, .lang button[aria-pressed="true"] { color: var(--ink); }
.lang__bar {
  position: absolute; left: 0; bottom: -5px; height: 1px; width: var(--w, 0px);
  background: var(--ink);
  transform: translateX(var(--x, 0px));
  transition: transform 0.55s var(--e-out), width 0.55s var(--e-out);
}
.nav__cta { padding: 15px 0; margin: -15px 0; }

/* underline that wipes in */
.u { position: relative; }
.u::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 11px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--e-out);
}
.u:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 1fr auto;
  column-gap: var(--g);
  padding: clamp(96px, 13vh, 128px) var(--m) 24px;
}
.hero__text { grid-column: 1 / span 6; grid-row: 1; align-self: center; padding-bottom: 3vh; }
.hero__title { font-size: clamp(40px, 5vw, 84px); text-wrap: balance; }
.hero__lead {
  margin: clamp(32px, 6vh, 56px) 0 0; max-width: 26em;
  color: var(--muted);
}
.hero__lead b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }

.w-mono { transition: font-weight 0.6s var(--e-out); }
.w-mono:hover { font-weight: 640; }

.kem {
  position: relative;
  font: inherit; letter-spacing: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.05em;
  text-underline-offset: 0.16em;
  text-decoration-color: var(--accent);
  border-radius: 6px;
  transition: text-decoration-color 0.3s var(--e-std), opacity 0.2s;
}
.kem:hover { text-decoration-color: currentColor; }
.kem:active { opacity: 0.6; }
.kem[aria-busy="true"] { cursor: progress; }
.kem::after {
  content: attr(data-tip);
  position: absolute; left: 50%; top: calc(100% + 6px);
  padding: 9px 11px; border-radius: 6px;
  background: var(--ink); color: var(--paper);
  font: 400 14px/1 var(--f-mono); font-stretch: 87.5%; letter-spacing: -0.01em;
  white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translate(-50%, -6px);
  transition: opacity 0.2s var(--e-std), transform 0.45s var(--e-out);
}
.kem:hover::after, .kem:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .kem::after { display: none; } }

/* fingerprint figure */
.print { margin: 0; position: relative; }
.print__slot { position: relative; width: min(100%, calc(var(--print-h) * 0.8)); aspect-ratio: 0.8; }
.print__slot canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
html:not(.js) .print__slot, .no-gl .print__slot {
  background: repeating-radial-gradient(ellipse 42% 52% at 50% 44%, transparent 0 5px, rgba(127, 127, 120, 0.42) 5px 6.4px);
  -webkit-mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 71%);
  mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 71%);
}

.hero__print {
  grid-column: 7 / span 6; grid-row: 1; align-self: center;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  column-gap: var(--g);
}
.hero__print .print__slot { grid-column: 1; grid-row: 1; justify-self: center; }
.print__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.print__lines path {
  fill: none; stroke: var(--ink); stroke-width: 1; opacity: 0.5;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.9s var(--e-out);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.print__lines circle {
  fill: var(--paper); stroke: var(--ink); stroke-width: 1;
  transform-box: fill-box; transform-origin: center; transform: scale(0);
  transition: transform 0.6s var(--e-out);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.print__lines circle.is-core { stroke: var(--accent); stroke-width: 1.5; }
.annot-in .print__lines path { stroke-dashoffset: 0; }
.annot-in .print__lines circle { transform: none; }

.print__labels {
  grid-column: 2; grid-row: 1; min-width: 0;
  list-style: none; margin: 0; padding: 13% 0 17%;
  display: flex; flex-direction: column; justify-content: space-between;
}
.print__labels li { min-width: 0; }
.print__labels .k { display: block; color: var(--muted); }
.print__labels .v {
  display: block; min-height: 1.35em; font-weight: 500; font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.js .print__labels li {
  opacity: 0; transform: translate3d(-8px, 0, 0);
  transition: opacity 0.7s var(--e-out), transform 0.9s var(--e-out);
  transition-delay: calc(var(--i) * 110ms + 300ms);
}
.annot-in .print__labels li, .no-io .print__labels li, html:not(.js) .print__labels li { opacity: 1; transform: none; }

.print__cap {
  grid-column: 1; grid-row: 2; justify-self: center;
  margin-top: 18px; display: flex; align-items: center; gap: 10px;
  color: var(--muted); font-variant-numeric: tabular-nums;
}
.dot {
  flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s var(--e-std) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 79, 18, 0.45); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(255, 79, 18, 0); }
}
.is-busy .dot { animation-duration: 0.8s; }

/* section index */
.index {
  grid-column: 1 / -1; grid-row: 2;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--g);
  margin-top: 32px;
}
.index a {
  position: relative; display: flex; align-items: baseline; gap: 14px;
  padding: 16px 0 10px; border-top: 1px solid var(--rule);
}
.index a::before {
  content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform 0.7s var(--e-out);
}
.index a:hover::before, .index a:focus-visible::before { transform: scaleX(1); }
.index__n, .index__k { color: var(--muted); }
.index__t { flex: 1; font: 500 16px/1.2 var(--f-sans); letter-spacing: -0.01em; }
.index__k { display: inline-flex; align-self: center; }

/* ---------- section scaffolding ---------- */
.kicker {
  position: relative; display: flex; gap: 20px; align-items: baseline;
  padding-bottom: 14px; color: var(--muted);
}
.kicker > :first-child { color: var(--ink); }
.kicker .end { margin-left: auto; }
.kicker::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--rule); transform: scaleX(0); transform-origin: left;
  transition: transform 1.3s var(--e-out) 0.1s;
}
.kicker.in::after, .no-io .kicker::after, html:not(.js) .kicker::after { transform: none; }

/* ---------- 01 mono ---------- */
.mono { position: relative; padding: clamp(112px, 18vh, 200px) var(--m) clamp(88px, 13vh, 150px); }
.mono__word {
  display: flex; margin: clamp(24px, 4vh, 48px) 0 0 -0.045em;
  font-family: var(--f-mono); font-weight: 180;
  font-size: var(--wm-size, 30vw);
  line-height: 0.8; letter-spacing: -0.065em;
  white-space: nowrap; user-select: none; -webkit-user-select: none;
}
.mono__word > span[aria-hidden] {
  display: block; font-stretch: 75%; opacity: 0;
  transition: font-stretch 1.9s var(--e-out), opacity 1.1s var(--e-out);
  transition-delay: calc(var(--i) * 90ms);
}
.mono__word.in > span[aria-hidden], .no-io .mono__word > span[aria-hidden], html:not(.js) .mono__word > span[aria-hidden] { font-stretch: 100%; opacity: 1; }

.string { position: relative; height: 112px; margin-top: 4px; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.string svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.string path { fill: none; stroke-linecap: round; }
.string .s { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; }
.string .b { stroke: var(--ink); stroke-width: 1; opacity: 0; transition: opacity 0.6s var(--e-std) 1.6s; }
.string .fan path {
  stroke: var(--muted); stroke-width: 1; opacity: 0.55;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.3s var(--e-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.string .node {
  fill: var(--paper); stroke: var(--ink); stroke-width: 1.25;
  transform-box: fill-box; transform-origin: center; transform: scale(0);
  transition: transform 0.7s var(--e-out) 0.75s;
}
.string.in .s { stroke-dashoffset: 0; transition: stroke-dashoffset 1.5s var(--e-out) 0.8s; }
.string.in .fan path, .no-io .string .fan path, .no-io .string .s, html:not(.js) .string .fan path, html:not(.js) .string .s { stroke-dashoffset: 0; }
.string.in .b, .no-io .string .b, html:not(.js) .string .b { opacity: 1; }
.string.in .node, .no-io .string .node, html:not(.js) .string .node { transform: none; }
.string.is-drawn .s { stroke-dasharray: none; transition: none; }
.string .node.is-hit { animation: hit 0.6s var(--e-out); }
@keyframes hit { 30% { transform: scale(1.6); } }

.string__hint {
  display: flex; justify-content: flex-end; align-items: center; gap: 20px;
  margin-top: 2px; color: var(--muted);
  font-family: var(--f-mono); font-stretch: 87.5%; font-size: 14px; letter-spacing: -0.01em;
}
.hint--touch { display: none; }
@media (hover: none) { .hint--fine { display: none; } .hint--touch { display: inline; } }
.sound {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 2px; color: var(--muted);
  transition: color 0.3s var(--e-std);
}
.sound:hover, .sound[aria-pressed="true"] { color: var(--ink); }
.sound__ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; }
.sound__ico .w1, .sound__ico .w2 { opacity: 0; transition: opacity 0.3s var(--e-std); }
.sound__ico .x { transition: opacity 0.2s var(--e-std); }
.sound[aria-pressed="true"] .x { opacity: 0; }
.sound[aria-pressed="true"] .w1 { opacity: 1; }
.sound[aria-pressed="true"] .w2 { opacity: 1; transition-delay: 0.08s; }
.sound__on { display: none; }
.sound[aria-pressed="true"] .sound__on { display: inline; }
.sound[aria-pressed="true"] .sound__off { display: none; }

.mono__body {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--g); row-gap: 32px; align-items: end;
  margin-top: clamp(24px, 4vh, 48px);
}
.mono__lead {
  grid-column: 1 / span 6; margin: 0; max-width: 20em;
  font-size: clamp(22px, 2.2vw, 32px); line-height: 1.25; letter-spacing: -0.02em;
  text-wrap: balance;
}
.meta { grid-column: 8 / span 2; margin: 0; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; }
.mono__cta { grid-column: 10 / span 3; justify-self: end; }

/* ---------- 02 lab ---------- */
.lab { position: relative; padding: clamp(112px, 18vh, 200px) var(--m) clamp(88px, 13vh, 150px); }
.lab__head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--g); row-gap: 24px; align-items: end;
  margin-top: clamp(28px, 5vh, 56px);
}
.lab__title { grid-column: 1 / span 7; font-size: clamp(36px, 4.6vw, 76px); }
.lab__lead { grid-column: 9 / span 4; margin: 0; color: var(--muted); }
.lab__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--g); row-gap: 40px; align-items: start;
  margin-top: clamp(56px, 9vh, 104px);
}
.lab__print { grid-column: 1 / span 4; display: grid; justify-items: center; }
.lab__print .print__slot { width: min(100%, calc(var(--print-h) * 0.74)); }
.lab__print .print__cap { grid-column: auto; grid-row: auto; }
.lab__panel { grid-column: 6 / span 7; min-width: 0; }
.lab__controls { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.lab__note { margin: 18px 0 0; max-width: 48ch; color: var(--muted); }
.lab__foot { margin-top: clamp(48px, 8vh, 88px); }

.fp-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.fp-table .c1 { width: 25%; }
.fp-table .c2, .fp-table .c3 { width: 37.5%; }
.fp-table th, .fp-table td {
  text-align: left; padding: 11px 16px 11px 0;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fp-table thead th { font-weight: 400; color: var(--muted); padding-top: 0; }
.fp-table tbody th { font-weight: 400; color: var(--muted); }
.fp-table td { font-weight: 400; }
.fp-table td.is-empty { color: var(--muted); }
.fp-table .total th, .fp-table .total td { color: var(--ink); font-weight: 600; border-bottom: 0; }
.fp-table td.flash { animation: flash 1.2s var(--e-std); }
@keyframes flash { 0%, 35% { color: var(--accent); } }
.th-no { color: var(--ink); }

/* ---------- 03 contact ---------- */
[hidden] { display: none !important; }
.channels li:has(> [hidden]), .lab__foot:has(> [hidden]) { display: none; }
.contact { position: relative; padding: clamp(112px, 18vh, 200px) var(--m) clamp(64px, 10vh, 112px); }
.contact__title { font-size: clamp(36px, 4.6vw, 76px); margin-top: clamp(28px, 5vh, 56px); max-width: 15em; }
.channels { list-style: none; padding: 0; margin: clamp(48px, 8vh, 88px) 0 0; border-top: 1px solid var(--rule); }
.ch {
  position: relative; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(20px, 3.2vh, 32px) 0; border-bottom: 1px solid var(--rule);
  text-align: left;
}
.ch::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform 0.8s var(--e-out);
}
.ch:hover::after, .ch:focus-visible::after { transform: none; }
.ch:focus-visible { outline-offset: -2px; }
.ch__name {
  font: 400 clamp(30px, 4.2vw, 64px)/1 var(--f-sans); letter-spacing: -0.035em;
  transition: transform 0.8s var(--e-out);
}
.ch:hover .ch__name { transform: translateX(clamp(8px, 1.2vw, 20px)); }
.ch__act { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); transition: color 0.3s; }
.ch:hover .ch__act { color: var(--ink); }

/* ---------- footer ---------- */
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  margin: 0 var(--m); padding: 24px 0 32px;
  border-top: 1px solid var(--rule); color: var(--muted);
}

/* ---------- components ---------- */
/* link with arrow */
.link {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px; font: 500 16px/1 var(--f-sans); letter-spacing: -0.01em;
}
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px;
  background: currentColor; transform-origin: left;
}
.link:hover::after { animation: wipe 0.9s var(--e-io); }
@keyframes wipe {
  0% { transform: scaleX(1); transform-origin: right; }
  50% { transform: scaleX(0); transform-origin: right; }
  50.1% { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}

/* icons: the arrow leaves, a fresh one arrives */
.ico { position: relative; flex: none; width: 16px; height: 16px; overflow: hidden; }
.ico svg {
  position: absolute; inset: 0; width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: square;
  transition: transform 0.6s var(--e-out);
}
.ico svg + svg { transform: translate(-110%, 110%); }
a:hover .ico svg:first-child, button:hover .ico svg:first-child { transform: translate(110%, -110%); }
a:hover .ico svg + svg, button:hover .ico svg + svg { transform: none; }
.ico--down svg + svg { transform: translateY(-110%); }
a:hover .ico--down svg:first-child { transform: translateY(110%); }
a:hover .ico--down svg + svg { transform: none; }
/* copy → check */
.ico--copy svg + svg { transform: scale(0.4); opacity: 0; }
button:hover .ico--copy svg:first-child { transform: none; }
button:hover .ico--copy svg + svg { transform: scale(0.4); }
.ch.is-done .ico--copy svg:first-child, .ch.is-done:hover .ico--copy svg:first-child { transform: scale(0.4); opacity: 0; }
.ch.is-done .ico--copy svg + svg, .ch.is-done:hover .ico--copy svg + svg { transform: none; opacity: 1; }
.ico--copy svg { transition: transform 0.5s var(--e-out), opacity 0.3s; }

/* buttons */
.btn {
  --press: 1;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 0 20px; border-radius: 8px;
  font: 500 15px/1 var(--f-sans); letter-spacing: -0.01em;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) scale(var(--press));
  transition: transform 0.4s var(--e-out), background-color 0.3s, color 0.3s, border-color 0.3s, opacity 0.3s;
}
.btn:active:not(:disabled) { --press: 0.97; }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--ghost { border: 1px solid var(--rule); }
.btn--ghost:hover:not(:disabled) { border-color: var(--ink); }
.btn:disabled { opacity: 0.38; cursor: not-allowed; }
.btn[aria-busy="true"] { cursor: progress; }
.btn__fill {
  position: absolute; inset: 0; z-index: -1; background: var(--accent);
  transform: scaleX(var(--p, 0)); transform-origin: left;
}
.btn[aria-busy="true"] { color: #0c0c0b; }
.btn.fill-out .btn__fill { transform-origin: right; }
kbd {
  padding: 3px 6px; border-radius: 4px; line-height: 1;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
}
@media (hover: none) { kbd { display: none; } }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 8px;
  background: var(--ink); color: var(--paper);
  opacity: 0; transform: translate3d(-50%, 16px, 0) scale(0.96);
  transition: opacity 0.3s var(--e-std), transform 0.6s var(--e-out);
  pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate3d(-50%, 0, 0) scale(1); }
.toast__dot { width: 7px; height: 7px; border-radius: 50%; background: #46a171; }
.toast.is-err .toast__dot { background: var(--accent); }

/* ---------- intro & scroll reveals ---------- */
.js .nav { opacity: 0; transition: opacity 0.9s var(--e-std) 0.1s; }
.js .hero__lead, .js .index a, .js .print__cap {
  opacity: 0; transform: translate3d(0, 14px, 0);
  transition: opacity 1s var(--e-out), transform 1.2s var(--e-out);
}
.js.is-ready .nav { opacity: 1; }
.js.is-ready .hero__lead { opacity: 1; transform: none; transition-delay: 0.55s; }
.js.is-ready .index a { opacity: 1; transform: none; transition-delay: calc(0.8s + var(--i) * 90ms); }
.js.is-ready .print__cap { opacity: 1; transform: none; transition-delay: 1.5s; }

.js [data-reveal] {
  opacity: 0; transform: translate3d(0, 20px, 0);
  transition: opacity 1s var(--e-out), transform 1.2s var(--e-out);
  transition-delay: var(--rd, 0ms);
}
.js [data-reveal].in, .no-io [data-reveal] { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-rows: auto auto auto; padding-top: 120px; }
  .hero__text { grid-column: 1 / -1; padding-bottom: 0; }
  .hero__title { font-size: clamp(40px, 7.6vw, 80px); max-width: 12.5em; }
  .hero__print { grid-column: 1 / -1; grid-row: 2; margin-top: 64px; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .index { grid-row: 3; margin-top: 56px; }
  .lab__title { grid-column: 1 / -1; }
  .lab__lead { grid-column: 1 / span 8; }
  .lab__print, .lab__panel { grid-column: 1 / -1; }
  .mono__lead { grid-column: 1 / -1; }
  .meta { grid-column: 1 / span 6; }
  .mono__cta { grid-column: 7 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { padding-top: 14px; padding-bottom: 14px; }
  .nav .clock { display: none; }
  .hero { padding-top: 104px; }
  .hero__title { font-size: clamp(34px, 10.6vw, 60px); }
  .hero__print { display: block; margin-top: 48px; }
  .hero__print .print__slot { margin: 0 auto; width: min(76vw, 340px); }
  .print__lines { display: none; }
  .print__labels {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px;
    padding: 0; margin-top: 32px;
  }
  .print__cap { justify-content: center; }
  .index { grid-template-columns: 1fr; margin-top: 48px; }
  .mono__body > * { grid-column: 1 / -1 !important; justify-self: start !important; }
  .string { height: 96px; }
  .lab__lead { grid-column: 1 / -1; }
  .lab__print .print__slot { width: min(70vw, 320px); }
  /* stacked rows: label on top, "yours | profile" side by side */
  .fp-table, .fp-table thead, .fp-table tbody { display: block; }
  .fp-table colgroup { display: none; }
  .fp-table tr {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px;
    padding: 10px 0; border-bottom: 1px solid var(--rule);
  }
  .fp-table thead tr { padding-top: 0; }
  .fp-table .total { border-bottom: 0; }
  .fp-table th, .fp-table td { padding: 0; border: 0; font-size: 13px; }
  .fp-table tbody th { grid-column: 1 / -1; margin-bottom: 3px; font-size: 12px; }
  .fp-table .th-param {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
  .lab__controls .btn { flex: 1 1 auto; }
  .ch { flex-direction: column; align-items: flex-start; gap: 12px; }
  .foot { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important; animation-iteration-count: 1 !important;
    transition-duration: 1ms !important; transition-delay: 0ms !important;
  }
  .wi { transform: none !important; }
}
