/* ═══════════════════════════════════════════════════════════════
   THE TRANSACTION — adnanshaar portfolio · v2
   aesthetic: a luxury financial document. paper & ink.
   the page is paper (his story) — the machines are dark panels.
   voices: Fraunces (the narrator) · IBM Plex Mono (the machine)
   accent: oxblood — the color of a notary's stamp.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --paper: #f2edde;
  --paper-2: #eae4d1;
  --card: #f9f5e9;
  --ink: #211d13;
  --line: #d8d1bb;
  --line-strong: #b4ab8f;
  --dim: #6b6450;
  --faint: #9a9179;
  --accent: #9e3b25;
  --accent-soft: rgba(158, 59, 37, 0.08);
  --accent-glow: rgba(158, 59, 37, 0.28);
  --machine: #23201a;
  --machine-2: #2b271f;
  --machine-line: #403a2c;
  --machine-text: #ece5d0;
  --machine-dim: #a89f86;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  --col: min(64rem, calc(100vw - 2.5rem));
  --col-text: min(42rem, calc(100vw - 2.5rem));
  --trace-w: 4.5rem;
  --shadow-card: 0 1px 2px rgba(33, 29, 19, 0.06), 0 12px 32px rgba(33, 29, 19, 0.08);
  --shadow-deep: 0 2px 6px rgba(33, 29, 19, 0.18), 0 28px 60px rgba(33, 29, 19, 0.28);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* atmosphere: warm paper with faint vignette ─────────────── */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(255, 252, 240, 0.9), transparent 60%),
    radial-gradient(140% 100% at 50% 120%, rgba(180, 171, 143, 0.22), transparent 55%),
    var(--paper);
}
.grain {
  position: fixed; inset: -50%; z-index: 60; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: multiply;
  animation: grain-shift 1.4s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); } 25% { transform: translate(-1.5%, 1%); }
  50% { transform: translate(1%, -1.5%); } 75% { transform: translate(-1%, -1%); }
  100% { transform: translate(0, 0); }
}

::selection { background: var(--ink); color: var(--paper); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 5px; }

.mono { font-family: var(--mono); }
em { font-style: italic; font-weight: 500; }
b { font-weight: 600; }
a { color: inherit; }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ── boot sequence ───────────────────────────────────────── */
.boot {
  display: none;
  position: fixed; inset: 0; z-index: 100;
  background: var(--machine);
  color: var(--machine-text);
  padding: 2rem;
  cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center;
  transition: opacity 0.7s ease, visibility 0.7s;
}
html.js .boot { display: flex; }
.boot.done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot__lines {
  font-size: 0.78rem; line-height: 2.2; letter-spacing: 0.04em;
  white-space: pre-wrap; min-height: 11rem; width: min(34rem, 90vw);
  color: var(--machine-dim);
}
.boot__lines b { color: var(--machine-text); font-weight: 500; }
.boot__lines .ok { color: #b8a06a; }
.boot__lines::after { content: "▌"; color: var(--machine-text); animation: blink 0.9s steps(1) infinite; }
.boot__skip {
  position: absolute; bottom: 1.6rem; font-size: 0.62rem; letter-spacing: 0.18em;
  color: var(--machine-dim); text-transform: uppercase; opacity: 0.7;
}

/* ── topbar ──────────────────────────────────────────────── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em;
  color: var(--dim);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__status { display: flex; align-items: center; gap: 0.45rem; color: var(--accent); }
.topbar__status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ── trace rail (desktop) ────────────────────────────────── */
.trace {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--trace-w); z-index: 40;
  display: flex; align-items: center; justify-content: center;
}
.trace__line {
  position: absolute; left: 50%; top: 4.5rem; bottom: 2rem; width: 1px;
  background: var(--line-strong); transform: translateX(-50%);
}
.trace__fill {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--accent);
  transform-origin: top; transform: scaleY(0);
}
.trace__stops { list-style: none; position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4.2rem; }
.trace__stops a { display: flex; flex-direction: column; align-items: center; gap: 0.55rem; text-decoration: none; }
.trace__stops i {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--paper);
  transition: all 0.35s ease;
}
.trace__stops span {
  font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.14em;
  color: var(--faint); writing-mode: vertical-rl; text-orientation: mixed;
  transition: color 0.35s ease;
  background: var(--paper); padding: 5px 0;
}
.trace__stops a.is-active i { background: var(--accent); border-color: var(--accent); }
.trace__stops a.is-active span { color: var(--accent); }
.trace__stops a.is-passed i { background: var(--line-strong); border-color: var(--line-strong); }

/* ── mobile progress bar ─────────────────────────────────── */
.progress-mobile { display: none; position: fixed; top: 2.55rem; left: 0; right: 0; height: 2px; z-index: 49; }
.progress-mobile i {
  display: block; height: 100%; width: 100%;
  background: var(--accent);
  transform-origin: left; transform: scaleX(0);
}

/* ── skip hatch ──────────────────────────────────────────── */
.skip-hatch {
  position: fixed; right: 1.25rem; bottom: 1.1rem; z-index: 45;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.05em;
  color: var(--faint); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.4rem 0.85rem;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: blur(8px);
  transition: color 0.3s, border-color 0.3s;
}
.skip-hatch:hover { color: var(--accent); border-color: var(--accent); }
.skip-hatch { transition: opacity 0.4s ease, color 0.3s, border-color 0.3s; }
.skip-hatch.is-hidden { opacity: 0; pointer-events: none; }

/* ── stages: shared ──────────────────────────────────────── */
main { display: block; }
.stage {
  position: relative;
  padding: 9rem 1.25rem;
  margin-inline: auto;
  width: var(--col);
  scroll-margin-top: 2.5rem;
}
@media (min-width: 1100px) { .stage { padding-left: calc(var(--trace-w)); } }
.stage__head {
  position: relative;
  display: grid; gap: 0.5rem;
  border-top: 1px solid var(--ink);
  padding-top: 1.1rem; margin-bottom: 4rem;
}
.stage__label { font-size: 0.78rem; letter-spacing: 0.24em; color: var(--accent); text-transform: uppercase; font-weight: 500; }
.stage__title { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 480; letter-spacing: -0.015em; line-height: 1.02; }
.stage__status { font-size: 0.72rem; color: var(--accent); }
.stage__intro { font-size: clamp(1.25rem, 2.4vw, 1.7rem); max-width: var(--col-text); margin-bottom: 3.5rem; }

/* ── STAGE 1 · hero ──────────────────────────────────────── */
.stage--initiated { padding-top: 0; }
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  gap: 1.4rem; padding-top: 3rem;
}
.hero__eyebrow { font-size: 0.72rem; letter-spacing: 0.16em; color: var(--accent); text-transform: uppercase; }
.hero__eyebrow::before { content: "● "; animation: pulse 2.2s infinite; }
.hero__name {
  font-size: clamp(3.2rem, 10.5vw, 8rem);
  font-weight: 500; letter-spacing: -0.028em; line-height: 0.98;
  font-variation-settings: "opsz" 144;
}
.hero__role { font-size: clamp(1.15rem, 2.5vw, 1.6rem); color: var(--dim); max-width: 44ch; line-height: 1.45; }
.hero__role em, .hero__role b { color: var(--ink); }
.hero__metrics { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; font-size: 0.72rem; letter-spacing: 0.04em; color: var(--dim); }
.hero__metrics li { border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.42rem 0.9rem; background: var(--card); }
.hero__metrics b { color: var(--accent); font-weight: 500; }
.hero__ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.4rem; }

/* load-in choreography (plays after boot) */
.anim-load { opacity: 0; transform: translateY(18px); animation: load-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; animation-delay: calc(0.12s + var(--i) * 0.11s); }
@keyframes load-in { to { opacity: 1; transform: none; } }
html.js body:not(.booted) .anim-load { animation-play-state: paused; }

/* ── hook scene ──────────────────────────────────────────── */
.hook { max-width: min(48rem, calc(100vw - 2.5rem)); padding: 18vh 0 24vh; display: grid; gap: 24vh; }
.hook__line { font-size: clamp(1.5rem, 3.1vw, 2.3rem); line-height: 1.45; }
.hook__line em { color: var(--accent); }
.hook__kicker {
  display: flex; align-items: center; gap: 1.4rem; width: 100%;
  font-size: clamp(0.95rem, 1.5vw, 1.3rem);
  letter-spacing: 0.3em; color: var(--accent); text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.hook__kicker::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.4;
}
.hook__payoff { font-size: clamp(1.9rem, 4.4vw, 3.1rem); line-height: 1.2; font-weight: 470; }
.hook__payoff em { color: var(--accent); }

/* pinned couplet */
.couplet {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; gap: 3rem;
  padding-bottom: 8svh; /* optical center — the topbar eats the top edge */
}
.couplet__line {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.06; font-weight: 500; letter-spacing: -0.02em;
}
.couplet__line em { font-weight: 560; }
.couplet__line--b em { color: var(--accent); }

/* ── dioramas: the machines ──────────────────────────────── */
.dio { display: grid; gap: 0.8rem; max-width: 34rem; }
.dio__caption { font-size: 0.66rem; letter-spacing: 0.08em; color: var(--faint); }

@keyframes blink { 50% { opacity: 0; } }

/* the street: orders riding from the ninja store to people's doors */
.dio--wide { max-width: none; width: 100%; }
.street {
  position: relative;
  display: flex; align-items: stretch; gap: 1.4rem;
  border: 1px solid var(--line-strong); border-radius: 14px;
  background:
    radial-gradient(circle at 1px 1px, var(--line) 1.2px, transparent 1.8px) 0 0 / 24px 24px,
    var(--card);
  box-shadow: var(--shadow-card);
  padding: 1.4rem 1.5rem 1.6rem;
  min-height: 12rem;
  overflow: hidden;
}
.street__count {
  position: absolute; bottom: 0.65rem; right: 0.95rem; z-index: 2;
  font-size: 0.56rem; letter-spacing: 0.1em; color: var(--faint);
}
.street__count b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.street__store {
  flex: none; align-self: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  width: 5.4rem;
}
.street__store img { width: 2.6rem; height: 2.6rem; border-radius: 11px; box-shadow: var(--shadow-card); }
.street__store span { font-size: 0.54rem; letter-spacing: 0.14em; color: var(--dim); text-transform: uppercase; }
.street__road { flex: 1; position: relative; min-width: 0; }
.street__road .lane {
  position: absolute; left: 0; right: 0; height: 0;
  border-top: 2px dashed var(--line-strong); opacity: 0.55;
}
.street__rider {
  position: absolute; left: -8%;
  transform: translateY(-58%);
  font-size: 1.25rem; z-index: 1;
  filter: drop-shadow(0 3px 5px rgba(33, 29, 19, 0.28));
}
.street__rider i { display: inline-block; transform: scaleX(-1); font-style: normal; }
.street__homes { flex: none; position: relative; width: 2.2rem; }
.street__home {
  position: absolute; right: 0; transform: translateY(-50%);
  font-size: 1.35rem; line-height: 1;
  transition: transform 0.3s cubic-bezier(0.34, 1.5, 0.4, 1);
}
.street__home.bounce { transform: translateY(-50%) scale(1.3); }
.street__pop {
  position: absolute; right: calc(100% + 0.45rem); top: 50%;
  transform: translateY(-50%);
  white-space: nowrap; font-size: 0.52rem; letter-spacing: 0.08em;
  color: var(--accent); background: var(--card);
  border: 1px solid var(--accent); border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

/* the money-moving scene: card → travelling amount → merchant account */
.pay {
  border: 1px solid var(--machine-line); border-radius: 10px;
  background: var(--machine); padding: 1.3rem 1.3rem 1rem;
  box-shadow: var(--shadow-deep);
  display: grid; gap: 0.95rem;
}
.pay__row { display: flex; align-items: center; gap: 1rem; }
.pay__card {
  flex: none; width: 5.8rem; height: 3.6rem;
  border-radius: 9px;
  background: linear-gradient(135deg, #342e21, #262218 65%);
  border: 1px solid #4a4230;
  padding: 0.5rem 0.55rem;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.pay__chip {
  width: 17px; height: 13px; border-radius: 3px;
  background: linear-gradient(160deg, #e8c887, #b8963c);
  display: block;
}
.pay__num { font-size: 0.56rem; letter-spacing: 0.14em; color: var(--machine-dim); }
.pay__flow { flex: 1; position: relative; height: 2px; background: var(--machine-line); border-radius: 2px; }
.pay__coin {
  position: absolute; left: 0; top: 50%; transform: translate(-8%, -50%);
  background: #e8c887; color: #23201a;
  font-size: 0.56rem; font-weight: 600; letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem; border-radius: 999px;
  white-space: nowrap; opacity: 0;
  box-shadow: 0 0 16px rgba(232, 200, 135, 0.45);
}
.pay__bank { flex: none; text-align: right; display: grid; gap: 0.2rem; transition: transform 0.3s ease; }
.pay__bank-label { font-size: 0.52rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--machine-dim); }
.pay__bank b { font-size: 0.8rem; font-weight: 500; color: var(--machine-text); transition: color 0.3s ease; }
.pay__bank.flash { transform: scale(1.04); }
.pay__bank.flash b { color: #e8c887; }
.pay__status {
  font-size: 0.62rem; letter-spacing: 0.05em; color: var(--machine-dim);
  border-top: 1px dashed var(--machine-line); padding-top: 0.7rem;
  min-height: 1.9rem;
}
.pay__status .ok { color: #e8c887; }

/* loyalty card — paper artifact */
.loyal {
  position: relative;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--card);
  padding: 1.3rem 1.4rem 2.9rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.loyal__head { display: flex; justify-content: space-between; font-size: 0.62rem; letter-spacing: 0.12em; color: var(--faint); text-transform: uppercase; margin-bottom: 1.1rem; }
.loyal__count { color: var(--accent); }
.loyal__stamps { display: flex; gap: 0.55rem; flex-wrap: wrap; }
.loyal__stamps i {
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  border: 1px dashed var(--line-strong); display: grid; place-items: center;
  transition: all 0.25s ease;
}
.loyal__stamps i.hit { border-style: solid; border-color: var(--accent); background: var(--accent-soft); }
.loyal__stamps i.hit::after { content: "✓"; color: var(--accent); font-family: var(--mono); font-size: 0.85rem; }
/* the ink stamp, slammed onto the card */
.loyal__free {
  position: absolute; right: 0.9rem; bottom: 0.7rem;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em;
  color: var(--accent);
  border: 2.5px solid var(--accent);
  outline: 1px solid var(--accent);
  outline-offset: 2.5px;
  border-radius: 5px;
  padding: 0.42rem 0.75rem;
  mix-blend-mode: multiply;
  opacity: 0;
  transform: rotate(-8deg) scale(2.2);
  text-shadow: 0 0 0.4px var(--accent);
}
.loyal__free.on { animation: ink-stamp 0.4s cubic-bezier(0.36, 1.6, 0.4, 1) forwards; }
@keyframes ink-stamp {
  0% { transform: rotate(-8deg) scale(2.2); opacity: 0; }
  55% { transform: rotate(-8deg) scale(0.92); opacity: 1; }
  75% { transform: rotate(-8deg) scale(1.04); opacity: 0.92; }
  100% { transform: rotate(-8deg) scale(1); opacity: 0.95; }
}

/* ads scene: the ad itself + the campaign panel with a live lead feed */
.adsx {
  border: 1px solid var(--machine-line); border-radius: 10px;
  background: var(--machine); padding: 1rem;
  box-shadow: var(--shadow-deep);
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1rem; color: var(--machine-dim);
}
.adsx__preview {
  border-radius: 10px; overflow: hidden;
  background: #17140f; border: 1px solid var(--machine-line);
  display: flex; flex-direction: column;
}
.adsx__phead {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 0.6rem 0.45rem;
}
.adsx__avatar {
  width: 1.15rem; height: 1.15rem; border-radius: 50%; flex: none;
  background: conic-gradient(from 210deg, #e8c887, #a05a35, #5c3a2a, #e8c887);
  border: 1.5px solid #e8c887;
}
.adsx__pwho { display: grid; line-height: 1.25; min-width: 0; }
.adsx__pwho b { font-size: 0.54rem; color: var(--machine-text); font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adsx__pwho span { font-size: 0.46rem; letter-spacing: 0.1em; color: var(--machine-dim); }
.adsx__art {
  flex: 1; min-height: 5.4rem; position: relative;
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(232, 200, 135, 0.3), transparent 55%),
    radial-gradient(90% 80% at 85% 100%, rgba(224, 103, 63, 0.35), transparent 60%),
    linear-gradient(150deg, #5c3a2a, #8a4a2e 55%, #a05a35);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.18rem;
  text-align: center; padding: 0.7rem;
}
.adsx__art--img {
  background: url("../assets/ad-matcha.jpg") center / cover no-repeat;
  aspect-ratio: 1 / 1; /* matches the 1080×1080 creative — no cropping */
  min-height: 0; flex: none;
}
.adsx__cta {
  margin: 0.5rem 0.55rem 0.35rem; text-align: center;
  background: #e8c887; color: #23201a;
  font-size: 0.56rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 7px; padding: 0.42rem 0.5rem;
}
.adsx__eng {
  display: flex; gap: 0.9rem; align-items: center;
  padding: 0.15rem 0.65rem 0.5rem;
  font-size: 0.5rem; letter-spacing: 0.06em; color: var(--machine-dim);
}
.adsx__eng b { color: var(--machine-text); font-weight: 500; font-variant-numeric: tabular-nums; }
.adsx__panel { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
.adsx__row { display: flex; align-items: center; gap: 0.7rem; font-size: 0.62rem; letter-spacing: 0.1em; }
.adsx__switch {
  width: 2.1rem; height: 1.1rem; border-radius: 999px; flex: none;
  border: 1px solid var(--machine-line); position: relative; display: inline-block;
  transition: all 0.3s ease; margin-left: auto;
}
.adsx__switch i {
  position: absolute; top: 2px; left: 2px; width: 0.8rem; height: 0.8rem;
  border-radius: 50%; background: var(--machine-dim); display: block;
  transition: all 0.35s cubic-bezier(0.34, 1.4, 0.4, 1);
}
.adsx__switch.on { border-color: #c2a35e; background: rgba(194, 163, 94, 0.12); }
.adsx__switch.on i { left: calc(100% - 0.8rem - 2px); background: #e8c887; }
.adsx__live { font-size: 0.56rem; letter-spacing: 0.16em; text-transform: uppercase; transition: color 0.3s; }
.adsx__live.on { color: #e8c887; animation: pulse 1.6s infinite; }
.adsx__stats { display: flex; gap: 1.3rem; font-size: 0.56rem; letter-spacing: 0.06em; }
.adsx__stats div { display: grid; gap: 0.1rem; }
.adsx__stats b { color: var(--machine-text); font-weight: 500; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.adsx__leads {
  display: flex; flex-direction: column; gap: 0.4rem;
  height: 8rem; flex: none;
  justify-content: flex-start; overflow: hidden;
}
.adsx__leads .lead {
  display: flex; align-items: baseline; gap: 0.5rem;
  border: 1px solid var(--machine-line); border-radius: 7px;
  background: rgba(23, 21, 15, 0.75);
  padding: 0.4rem 0.6rem; font-size: 0.54rem; line-height: 1.4;
  opacity: 0; transform: translateY(-6px);
}
.adsx__leads .lead.on { opacity: 1; transform: none; transition: all 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.adsx__leads .lead b { color: #e8c887; font-weight: 500; white-space: nowrap; }
.adsx__leads .lead span { color: var(--machine-dim); }

/* phone — machine, real phone proportions */
.phone {
  width: min(11.5rem, 100%); aspect-ratio: 9 / 18;
  border: 1px solid var(--machine-line); border-radius: 26px;
  background: linear-gradient(170deg, var(--machine-2), var(--machine));
  padding: 0.7rem 0.65rem 0.9rem; position: relative;
  box-shadow: var(--shadow-deep);
  display: flex; flex-direction: column;
  outline: 3px solid #17140f; outline-offset: -6px;
}
.phone__notch { width: 4.6rem; height: 0.9rem; border-radius: 999px; background: #171512; margin: 0.15rem auto 0.5rem; border: 1px solid var(--machine-line); flex: none; }
.phone__time { text-align: center; font-size: 1.35rem; color: var(--machine-text); letter-spacing: 0.08em; margin-bottom: 0.7rem; flex: none; }
.phone__notifs { display: flex; flex-direction: column; gap: 0.4rem; flex: 1; overflow: hidden; min-height: 0; }
.phone__homebar {
  flex: none; width: 3.4rem; height: 3px; border-radius: 999px;
  background: var(--machine-dim); opacity: 0.55;
  margin: 0.55rem auto 0;
}
.phone__notifs .pn {
  border: 1px solid var(--machine-line); border-radius: 9px; background: rgba(23, 21, 18, 0.75);
  padding: 0.55rem 0.7rem; font-size: 0.6rem; line-height: 1.5; color: var(--machine-dim);
  opacity: 0; transform: translateY(-8px) scale(0.97);
}
.phone__notifs .pn.on { opacity: 1; transform: none; transition: all 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.phone__notifs .pn b { color: #e8c887; font-weight: 500; display: block; margin-bottom: 0.15rem; font-size: 0.54rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* ── logo chips ──────────────────────────────────────────── */
.hook__group { display: grid; gap: 1.3rem; justify-items: start; width: 100%; }
.chip-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.logo-chip {
  display: inline-flex; align-items: center; gap: 0.55rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--card);
  padding: 0.4rem 0.95rem 0.4rem 0.45rem;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em;
  color: var(--dim); text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.logo-chip img { width: 22px; height: 22px; border-radius: 6px; display: block; }
.logo-chip b { color: var(--accent); font-weight: 500; }
.logo-chip:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-1.5px); }
.logo-chip--sm { margin-top: 0.85rem; padding: 0.28rem 0.75rem 0.28rem 0.35rem; font-size: 0.6rem; }
.logo-chip--sm img { width: 18px; height: 18px; border-radius: 5px; }

/* ── STAGE 2 · KYC ───────────────────────────────────────── */
.kyc-list { list-style: none; display: grid; gap: 1.1rem; max-width: var(--col-text); }
.kyc-item {
  border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--card);
  padding: 1.2rem 1.4rem 1.35rem;
  box-shadow: var(--shadow-card);
}
.kyc-item__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  font-size: 0.68rem; letter-spacing: 0.1em; color: var(--faint);
  text-transform: uppercase; margin-bottom: 0.7rem;
}
.kyc-item p { font-size: 1.05rem; line-height: 1.6; color: var(--dim); }
.kyc-item p b, .kyc-item p em { color: var(--ink); }
.stamp {
  color: var(--accent); border: 1.5px solid var(--accent);
  border-radius: 3px; padding: 0.15rem 0.5rem;
  font-size: 0.62rem; letter-spacing: 0.1em; white-space: nowrap;
  transform: rotate(-6deg) scale(1.7); opacity: 0;
}
.is-verified .stamp { animation: stamp-hit 0.45s cubic-bezier(0.34, 1.4, 0.4, 1) forwards; }
@keyframes stamp-hit {
  0% { transform: rotate(-6deg) scale(1.7); opacity: 0; }
  60% { transform: rotate(-6deg) scale(0.94); opacity: 1; }
  100% { transform: rotate(-6deg) scale(1); opacity: 1; }
}
.fraud-card {
  margin-top: 2.6rem; max-width: var(--col-text);
  border: 1.5px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 8px; padding: 1.4rem 1.6rem;
  transform: rotate(-0.5deg);
  display: grid; gap: 0.85rem;
  box-shadow: var(--shadow-card);
}
.fraud-card__head { color: var(--accent); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; }
.fraud-card p:not(.mono) { font-size: 1.15rem; line-height: 1.6; }
.fraud-card__action { font-size: 0.74rem; color: var(--dim); }
.fraud-card__action b { color: var(--accent); }
.fraud-card__action a {
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: color 0.25s, border-color 0.25s;
}
.fraud-card__action a:hover { color: var(--ink); border-color: var(--ink); }

/* ── STAGE 3 · conveyor ──────────────────────────────────── */
.stage--processing { padding-top: 0; padding-bottom: 0; width: 100%; max-width: none; }
.processing-pin {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  gap: 2.5rem; padding: 5rem 0 3rem;
  overflow: hidden;
}
/* while pinned, the whole section must fit one viewport — on desktop the
   card goes TWO-COLUMN (text left, machine right) so it stays short */
@media (min-width: 1100px) {
  .processing-pin { gap: 1.6rem; padding: 4.2rem 0 2rem; }
  .processing-pin .stage__head { margin-bottom: 0; }
  .processing-pin .stage__title { font-size: clamp(2.2rem, 3.6vw, 3.2rem); }
  .conveyor .event {
    width: min(64rem, 84vw);
    padding: 1.9rem 2.4rem 2.2rem;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    column-gap: 2.8rem;
    row-gap: 1.05rem;
    align-items: center;
  }
  .conveyor .event__head { grid-column: 1 / -1; }
  .conveyor .event .dio { grid-column: 2; grid-row: 2 / span 4; align-self: center; max-width: none; }
  .conveyor .event__name,
  .conveyor .event__line,
  .conveyor .event__reveal-big,
  .conveyor .event__metric { grid-column: 1; }
  .conveyor .event__name { font-size: clamp(1.8rem, 2.7vw, 2.4rem); }
  .conveyor .event__line { font-size: clamp(1.1rem, 1.9vw, 1.45rem); max-width: none; }
  .conveyor .event__reveal-big { font-size: clamp(1.6rem, 3vw, 2.2rem); }
  .conveyor .event__metric b, .conveyor .event__metric-word { font-size: clamp(1.9rem, 3.2vw, 2.5rem); }
  .conveyor .event__metric span { max-width: 34ch; line-height: 1.55; }
  .conveyor .phone { width: min(11rem, 100%); margin-inline: auto; }
  .conveyor .adsx__art { min-height: 4.6rem; }
}
@media (min-width: 1100px) and (max-height: 780px) {
  .processing-pin { padding: 3.6rem 0 1.6rem; gap: 1.1rem; }
  .processing-pin .stage__title { font-size: 2rem; }
  .conveyor .event { padding: 1.4rem 2rem 1.7rem; row-gap: 0.8rem; }
  .conveyor .dio { gap: 0.5rem; }
  .conveyor .phone { width: 9.5rem; }
  .conveyor .phone__time { font-size: 1.1rem; margin-bottom: 0.4rem; }
}
.processing-pin .stage__head {
  width: var(--col); margin-inline: auto; margin-bottom: 0;
  padding-inline: 1.25rem;
}
@media (min-width: 1100px) { .processing-pin .stage__head { padding-left: calc(var(--trace-w) + 1.25rem); } }
.belt-hint { color: var(--faint); font-size: 0.66rem; }
.conveyor { position: relative; }
.conveyor__track {
  display: flex; gap: 5vw; width: max-content;
  padding: 0 12vw 2.2rem calc(var(--trace-w) + 4vw);
  will-change: transform;
}
.conveyor__belt {
  position: absolute; left: 0; right: 0; bottom: 0; height: 12px;
  border-top: 1px solid var(--line-strong);
  background: repeating-linear-gradient(90deg, transparent 0 26px, var(--line) 26px 30px);
  background-size: 30px 100%;
}
.conveyor__belt.rolling { animation: belt-roll 0.9s linear infinite; }
@keyframes belt-roll { to { background-position: -30px 0; } }

.event {
  width: min(52rem, 78vw); flex: 0 0 auto;
  border: 1px solid var(--line-strong); border-radius: 14px;
  background: var(--card);
  padding: 2.2rem 2.4rem 2.5rem;
  box-shadow: var(--shadow-card);
  display: grid; gap: 1.3rem;
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.5s ease;
}
.event.is-dim { opacity: 0.4; transform: scale(0.975); }
.event.is-live { opacity: 1; transform: scale(1); box-shadow: var(--shadow-deep); }
.event__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.event__pill {
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 0.22rem 0.7rem; font-size: 0.62rem; letter-spacing: 0.12em;
  color: var(--faint); transition: all 0.4s ease; white-space: nowrap;
}
.event__pill.is-processing { color: #8a6a1f; border-color: #b8963c; animation: pulse 1.1s infinite; }
.event__pill.is-completed { color: var(--accent); border-color: var(--accent); animation: none; }
.event__name { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 500; letter-spacing: -0.01em; }
.event__line { font-size: clamp(1.3rem, 2.6vw, 1.75rem); line-height: 1.4; color: var(--dim); max-width: 32ch; }
.event__line em { color: var(--ink); }
.event__reveal-big { font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.15; }
.event__reveal-big em { color: var(--accent); }
.event__metric { display: flex; align-items: baseline; gap: 1.1rem; flex-wrap: wrap; border-left: 2px solid var(--accent); padding-left: 1.2rem; margin-top: 0.2rem; }
.event__metric b, .event__metric-word {
  font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 540; color: var(--accent); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.event__metric span { font-size: 0.72rem; color: var(--dim); max-width: 34ch; line-height: 1.7; }

/* ── toasts ──────────────────────────────────────────────── */
.toast-layer {
  position: fixed; top: 3.4rem; right: 1rem; z-index: 55;
  display: flex; flex-direction: column; gap: 0.6rem;
  width: min(21rem, calc(100vw - 2rem));
  pointer-events: none;
}
.toast {
  font-family: var(--mono);
  background: var(--machine);
  border: 1px solid var(--machine-line); border-left: 3px solid var(--accent);
  border-radius: 8px;
  box-shadow: var(--shadow-deep);
  padding: 0.75rem 0.95rem;
  opacity: 0;
}
.toast__tag { display: block; font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: #e8c887; margin-bottom: 0.3rem; }
.toast__text { font-size: 0.74rem; line-height: 1.55; color: var(--machine-text); }

/* ── STAGE 4 · settlement ────────────────────────────────── */
.ledger { max-width: var(--col-text); display: grid; }
.ledger__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px dashed var(--line-strong);
}
.ledger__row dt { font-size: 0.72rem; letter-spacing: 0.06em; color: var(--dim); text-transform: lowercase; }
.ledger__row dd b, .ledger__word {
  font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 540; color: var(--ink); line-height: 1;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.ledger__row:nth-child(1) dd b { color: var(--accent); }
.ledger__sub { font-size: 0.72rem; color: var(--faint); }
.settle-close { max-width: var(--col-text); padding-top: 5rem; display: grid; gap: 2.4rem; }
.settle-close p { font-size: clamp(1.3rem, 2.6vw, 1.8rem); line-height: 1.5; color: var(--dim); }
.settle-close__big { font-size: clamp(1.9rem, 4.2vw, 3rem) !important; line-height: 1.25 !important; color: var(--ink) !important; }
.settle-close__big em { color: var(--accent); }

/* ── STAGE 5 · receipt ───────────────────────────────────── */
.stage--receipt { padding-bottom: 4rem; }
.receipt-wrap {
  display: flex; flex-direction: column; align-items: center;
  padding: 2rem 0 3.5rem;
}
.printer { width: min(29rem, 100%); position: relative; z-index: 2; }
.printer__body {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--machine);
  border: 1px solid var(--machine-line);
  border-radius: 12px 12px 0 0;
  color: var(--machine-dim);
  font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.85rem 1.2rem;
  box-shadow: var(--shadow-deep);
}
.printer__led { width: 7px; height: 7px; border-radius: 50%; background: #6b6450; transition: background 0.3s; }
.printer__led.printing { background: #e0673f; animation: pulse 0.5s infinite; }
.printer__led.done { background: #9fb26a; }
.printer__slot {
  height: 10px; background: #171512;
  border: 1px solid var(--machine-line); border-top: none;
  border-radius: 0 0 6px 6px;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.6);
}
.receipt-feed { width: min(25rem, 92%); overflow: hidden; padding: 0 0.4rem 1.2rem; margin-top: -2px; }
.receipt {
  position: relative;
  background: #fdfaf0; color: var(--ink);
  font-family: var(--mono); font-size: 0.76rem; line-height: 1.75;
  padding: 2.2rem 1.7rem 2.4rem;
  transform: translateY(-101%);
  filter: drop-shadow(0 18px 30px rgba(33, 29, 19, 0.28)) drop-shadow(0 3px 8px rgba(33, 29, 19, 0.14));
}
.receipt::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 9px;
  background-image:
    linear-gradient(-45deg, #fdfaf0 4.5px, transparent 0),
    linear-gradient(45deg, #fdfaf0 4.5px, transparent 0);
  background-size: 13px 9px;
  background-position: left bottom;
  background-repeat: repeat-x;
}
.receipt__row { white-space: pre-wrap; }
.receipt__center { text-align: center; }
.receipt__muted { color: var(--faint); }
.receipt__name { font-size: 1.05rem; font-weight: 600; letter-spacing: 0.18em; }
.receipt__open { margin-top: 0.4rem; font-weight: 600; letter-spacing: 0.06em; color: var(--accent); }
.receipt__barcode { font-size: 1.3rem; letter-spacing: 0.08em; margin-top: 0.9rem; }
.cursor { animation: blink 1s steps(1) infinite; }

.contact { display: grid; justify-items: center; gap: 1rem; padding-bottom: 4rem; }
.contact__row { display: flex; gap: 0.7rem; flex-wrap: wrap; justify-content: center; }

/* buttons */
.btn {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; border-radius: 999px; padding: 0.75rem 1.5rem;
  transition: all 0.25s ease; display: inline-flex; align-items: center; gap: 0.4rem;
}
.btn--ghost { border: 1px solid var(--line-strong); color: var(--dim); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); color: var(--paper); background: var(--ink); }
.btn--solid { background: var(--accent); color: var(--paper); border: 1px solid var(--accent); font-weight: 500; }
.btn--solid:hover { background: var(--ink); border-color: var(--ink); transform: translateY(-1px); }

.footer {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid var(--line-strong); padding-top: 1.4rem;
  font-size: 0.64rem; letter-spacing: 0.08em; color: var(--faint);
}
.footer a { color: var(--dim); text-decoration: none; }
.footer a:hover { color: var(--accent); }

/* ── scroll reveal base states (JS-gated) ────────────────── */
html.js .reveal,
html.js [data-verify] { opacity: 0; transform: translateY(28px); }
html.js .ledger__row { opacity: 0; }

/* ── reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal, html.js [data-verify], html.js .ledger__row { opacity: 1; transform: none; }
  .stamp { opacity: 1; transform: rotate(-6deg); }
  .anim-load { opacity: 1; transform: none; }
  .receipt { transform: none; }
  .boot { display: none !important; }
  html { scroll-behavior: auto; }
}

/* ── responsive ──────────────────────────────────────────── */
@media (max-width: 1099px) {
  .trace { display: none; }
  /* single clean gutter — no double inset */
  .stage { width: 100%; margin: 0; padding-left: 2rem; padding-right: 2rem; }
  .progress-mobile { display: block; }
  /* conveyor falls back to a vertical stack */
  .stage--processing { padding-left: 0; padding-right: 0; }
  .processing-pin { min-height: 0; display: block; padding: 6.5rem 0; }
  .processing-pin .stage__head { width: 100%; padding-inline: 2rem; margin-bottom: 3rem; }
  .conveyor__track { display: grid; width: auto; gap: 2.2rem; padding: 0 2rem; }
  .event { width: 100%; }
  .event.is-dim { opacity: 1; transform: none; }
  .conveyor__belt, .belt-hint { display: none; }
}
@media (max-width: 640px) {
  .stage { padding: 5.5rem 1.15rem; }
  .processing-pin { padding: 5.5rem 0; }
  .processing-pin .stage__head { padding-inline: 1.15rem; }
  .conveyor__track { padding: 0 1.15rem; gap: 1.8rem; }
  .hook { gap: 18vh; padding: 10vh 0 16vh; }
  .hook__line { font-size: 1.35rem; }
  .hook__payoff { font-size: 1.8rem; }
  .couplet { gap: 2.2rem; }
  .couplet__line { font-size: clamp(2rem, 9.5vw, 2.7rem); }
  .event--meta .dio { justify-items: center; }
  .event--meta .phone { width: 10rem; margin-inline: auto; }
  .event--meta .dio__caption { text-align: center; }
  .hero { gap: 1.15rem; }
  .hero__name { font-size: clamp(3rem, 14vw, 4.2rem); }
  .hero__role { font-size: 1.08rem; }
  .stage__title { font-size: 2.4rem; }
  .stage__intro { font-size: 1.15rem; margin-bottom: 2.5rem; }
  .topbar { padding: 0.6rem 1rem; }
  .topbar__clock { display: none; }
  .toast-layer { top: 3.1rem; right: 0.6rem; width: min(15.5rem, 76vw); gap: 0.45rem; }
  .toast { padding: 0.5rem 0.65rem; border-radius: 7px; border-left-width: 2px; }
  .toast__tag { font-size: 0.5rem; margin-bottom: 0.2rem; }
  .toast__text { font-size: 0.64rem; line-height: 1.45; }
  .skip-hatch { bottom: 0.8rem; right: 0.8rem; }
  .kyc-item { padding: 1.05rem 1.15rem 1.2rem; }
  .kyc-item p { font-size: 0.95rem; }
  .fraud-card { padding: 1.15rem 1.25rem; }
  .fraud-card p:not(.mono) { font-size: 1.02rem; }
  .event { padding: 1.5rem 1.25rem 1.8rem; }
  .event__name { font-size: 1.75rem; }
  .event__line { font-size: 1.15rem; }
  .event__reveal-big { font-size: 1.65rem; }
  .event__metric { gap: 0.8rem; padding-left: 0.9rem; }
  .event__metric b, .event__metric-word { font-size: 1.9rem; }
  .pay__card { width: 4.6rem; height: 3rem; }
  .pay__bank b { font-size: 0.7rem; }
  .adsx { grid-template-columns: 1fr; }
  .adsx__art { min-height: 4.2rem; }
  .street { min-height: 9.5rem; padding: 1rem; gap: 0.9rem; }
  .street__store { width: 3.8rem; }
  .street__store img { width: 2rem; height: 2rem; }
  .street__home { font-size: 1.1rem; }
  .street__rider { font-size: 1.05rem; }
  .ledger__row { gap: 1rem; padding: 1.05rem 0; }
  .ledger__row dd b, .ledger__word { font-size: 1.55rem; }
  .settle-close { padding-top: 3.5rem; gap: 1.8rem; }
  .settle-close p { font-size: 1.15rem; }
  .settle-close__big { font-size: 1.55rem !important; }
  .receipt-feed { width: 100%; }
  .receipt { font-size: 0.7rem; padding: 1.8rem 1.15rem 2rem; }
  .printer { width: 100%; }
  .contact .btn { padding: 0.7rem 1.15rem; font-size: 0.64rem; }
  .footer { justify-content: center; text-align: center; }
}
