/* ============================================================
   TRUMP BANK — the branch, in daylight
   ------------------------------------------------------------
   The page is the marble. The numbers live on black lacquer
   signage with gold letterforms, exactly like the building.
   ============================================================ */

body {
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* ------------------------------------------------------------
   The lobby — sky at the top, warm marble below
   ------------------------------------------------------------ */
.lobby {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    /* the sky from the photo, fading out by the fold */
    linear-gradient(180deg, var(--sky-soft) 0%, var(--sky-wash) 9%, transparent 26%),
    /* warm light falling from the top right */
    radial-gradient(90% 60% at 82% 0%, rgba(249, 221, 140, 0.5), transparent 60%),
    /* marble veining: two whisper-faint diagonal grains */
    repeating-linear-gradient(64deg, var(--vein) 0 1px, transparent 1px 13px),
    repeating-linear-gradient(-64deg, rgba(150, 126, 88, 0.07) 0 1px, transparent 1px 17px),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 60%, var(--paper-3) 100%);
}

.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

main, .rail, .foot, .strip, .why, .tape {
  position: relative;
  z-index: 1;
}

/* ============================================================
   Shared
   ============================================================ */

/* Gold foil. background-clip turns the gradient into metal. */
.foil {
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* The cast bevel from the facade, tuned for a light ground. */
.bevel {
  filter:
    drop-shadow(0 1px 0 rgba(255, 246, 213, 0.85))
    drop-shadow(0 2px 0 rgba(107, 71, 8, 0.75))
    drop-shadow(0 6px 10px rgba(87, 60, 16, 0.35));
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.4em 0.8em;
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  background: var(--paper-hi);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 2px 6px rgba(87, 60, 16, 0.08);
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

.chip--gold { color: var(--gold-700); border-color: var(--rule-strong); }
.chip--live { color: var(--up); }

.lamp {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  animation: pulse 2.4s var(--ease) infinite;
  flex: none;
}
.lamp--idle { background: var(--gold-500); animation-duration: 3.4s; }
.lamp--off { background: var(--ink-faint); animation: none; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Section heading */
.head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-6);
  flex-wrap: wrap;
  margin-bottom: var(--s-8);
  padding-bottom: var(--s-4);
  border-bottom: 2px solid var(--rule);
}

.head__t {
  font-family: var(--font-display);
  font-size: var(--t-d1);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--ink);
}

.head__s {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-700);
  padding-bottom: 0.4em;
}

.band { padding-block: clamp(var(--s-12), 6.5vw, var(--s-20)); }
.band--rule { border-top: 1px solid var(--rule-dim); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.8em 1.5em;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  background: var(--paper-hi);
  font-family: var(--font-mono);
  font-size: var(--t-small);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-800);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(87, 60, 16, 0.12);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
    transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:hover {
  background: #fffaf0;
  border-color: var(--gold-500);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(87, 60, 16, 0.18);
}

.btn--gold {
  background: var(--foil-flat);
  border-color: var(--gold-600);
  color: #211603;
  box-shadow: var(--glow-gold), 0 2px 0 var(--gold-700), 0 6px 16px rgba(169, 116, 20, 0.35);
  text-shadow: 0 1px 0 rgba(255, 246, 213, 0.55);
}

.btn--gold:hover {
  background: linear-gradient(180deg, #fff6d5 0%, #f0bb32 52%, #c9881a 100%);
  box-shadow: 0 0 40px rgba(224, 169, 36, 0.5), 0 2px 0 var(--gold-700), 0 8px 20px rgba(169, 116, 20, 0.4);
}

.btn--ghost {
  background: transparent;
  border-color: var(--ink-soft);
  color: var(--ink);
  box-shadow: none;
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(255, 255, 255, 0.5); }

.btn--sm { padding: 0.55em 1em; font-size: var(--t-micro); }
.btn--lg { padding: 0.95em 1.9em; }

.btn[aria-disabled="true"] {
  pointer-events: none;
  filter: grayscale(0.8) opacity(0.55);
}

/* ============================================================
   Tape — the LED board over the door
   ============================================================ */
.tape {
  height: var(--tape-h);
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--lacq-900);
  border-bottom: 1px solid var(--lacq-line);
}

.tape__track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: tape-scroll 36s linear infinite;
  will-change: transform;
}

.tape:hover .tape__track { animation-play-state: paused; }

/* two identical copies → seamless loop */
@keyframes tape-scroll {
  to { transform: translateX(-50%); }
}

.tape__item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  padding: 0 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.tape__k {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-600);
}

.tape__v { color: var(--gold-200); font-variant-numeric: tabular-nums; }
.tape__v.up { color: var(--up-bright); }
.tape__v.down { color: #ff6b6b; }

.tape__star {
  align-self: center;
  color: var(--gold-500);
  font-size: 0.6rem;
  opacity: 0.8;
}

/* ============================================================
   Rail
   ============================================================ */
.rail {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--rule);
  background: rgba(242, 233, 214, 0.88);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 6px 24px rgba(87, 60, 16, 0.1);
}

.rail__in {
  height: var(--rail);
  display: flex;
  align-items: center;
  gap: var(--s-6);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex: none;
}

/* THE logo — the image itself, framed in gold */
.brand__logo {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--r-sm);
  border: 2px solid var(--gold-500);
  box-shadow: 0 0 14px rgba(224, 169, 36, 0.45), 0 2px 6px rgba(87, 60, 16, 0.3);
}

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.05;
  color: var(--ink);
}

.brand__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-700);
}

.rail__nav {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-left: auto;
  flex: none;
}

.navlink {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.navlink:hover { color: var(--gold-700); }

.iconlink {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--paper-hi);
  color: var(--ink-soft);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.iconlink:hover { color: var(--gold-700); border-color: var(--gold-500); }
.iconlink svg { width: 15px; height: 15px; }
.iconlink[aria-disabled="true"] { pointer-events: none; opacity: 0.35; }

@media (max-width: 900px) {
  .navlink { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero { padding-block: clamp(var(--s-5), 2vw, var(--s-8)) var(--s-6); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(var(--s-8), 4vw, var(--s-16));
  align-items: center;
}

@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .storefront { order: -1; max-width: 460px; margin-inline: auto; }
}

.h1 {
  font-family: var(--font-display);
  font-size: var(--t-h1);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
  margin: var(--s-4) 0 var(--s-4);
  text-wrap: balance;
}

.h1__gold { display: block; }

.lede {
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: var(--s-6);
}

.lede b { color: var(--gold-800); font-weight: 700; }

.hero__cta {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-5);
}

/* the CA pill — one big copy target */
.ca {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  width: 100%;
  max-width: 560px;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--paper-hi);
  box-shadow: 0 2px 8px rgba(87, 60, 16, 0.1);
  text-align: left;
  transition: border-color 0.2s var(--ease);
}
.ca:hover { border-color: var(--gold-500); }

.ca__k {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-700);
  flex: none;
}

.ca__v {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}

.ca--pending .ca__v { color: var(--ink-faint); font-style: italic; }

.ca__copy {
  flex: none;
  padding: 0.3em 0.75em;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.ca.done .ca__copy { color: var(--up); border-color: var(--up); }

/* --- the logo, hung in a gold frame ------------------------ */
.storefront {
  position: relative;
  width: 100%;
  max-width: 430px;
  justify-self: end;
  padding: 10px;
  border-radius: var(--r-md);
  background: linear-gradient(150deg, var(--gold-300), var(--gold-700) 30%, var(--gold-200) 50%, var(--gold-800) 74%, var(--gold-400));
  box-shadow: var(--shadow), 0 0 60px rgba(224, 169, 36, 0.3);
  overflow: hidden;
}

@media (max-width: 1000px) { .storefront { justify-self: center; } }

.storefront img {
  width: 100%;
  border-radius: calc(var(--r-md) - 5px);
  position: relative;
  z-index: 1;
}

/* light sweeping across the glass every few seconds */
.storefront__shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.32) 50%, transparent 58%);
  background-size: 260% 100%;
  animation: shine 5.5s var(--ease) infinite;
}

@keyframes shine {
  0% { background-position: 120% 0; }
  55%, 100% { background-position: -140% 0; }
}

/* ============================================================
   The rate board — black signage, gold numerals
   ============================================================ */
.marquee {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(var(--s-5), 3vw, var(--s-10));
  align-items: center;
  padding: clamp(var(--s-5), 2.2vw, var(--s-8)) clamp(var(--s-5), 3vw, var(--s-10));
  border: 1px solid var(--gold-600);
  border-radius: var(--r-md);
  background:
    radial-gradient(70% 130% at 30% 0%, rgba(224, 169, 36, 0.12), transparent 70%),
    linear-gradient(180deg, var(--lacq-800), var(--lacq-950));
  box-shadow: var(--shadow-lacq), inset 0 1px 0 rgba(255, 246, 213, 0.12);
}

@media (max-width: 860px) {
  .marquee { grid-template-columns: 1fr; gap: var(--s-6); }
}

.marquee__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-bottom: var(--s-3);
  margin-bottom: var(--s-3);
  border-bottom: 1px solid rgba(245, 197, 66, 0.18);
}

.marquee__k {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-600);
}

.marquee__state {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--up-bright);
}

.clock {
  font-family: var(--font-mono);
  font-size: var(--t-clock);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
  line-height: 1;
  text-align: center;
  filter: drop-shadow(0 2px 0 rgba(107, 71, 8, 0.85)) drop-shadow(0 0 30px rgba(245, 197, 66, 0.35));
}

.clock.due { animation: settle 1.1s var(--ease) infinite; }

@keyframes settle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.clock--word { font-size: clamp(1.5rem, 3.4vw, 2.5rem); letter-spacing: 0.14em; }

.clock__legend {
  display: flex;
  justify-content: center;
  gap: clamp(1.8rem, 7vw, 3.6rem);
  margin-top: var(--s-2);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(249, 221, 140, 0.5);
}

.marquee__minis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(245, 197, 66, 0.16);
  border: 1px solid rgba(245, 197, 66, 0.16);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.mini { padding: var(--s-4); background: var(--lacq-900); }

.mini__k {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 0.4em;
}

.mini__v {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 1.9vw, 1.42rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--gold-200);
  line-height: 1.1;
}

.mini__s {
  display: block;
  font-size: 0.7rem;
  color: rgba(242, 240, 236, 0.45);
  margin-top: 0.2em;
}

/* ============================================================
   Tiles — signage panels on the marble
   ============================================================ */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-5);
}

@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .tiles { grid-template-columns: 1fr; } }

.tile {
  position: relative;
  padding: clamp(var(--s-5), 1.9vw, var(--s-6));
  border: 1px solid var(--lacq-700);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--lacq-800), var(--lacq-950));
  box-shadow: var(--shadow-lacq), inset 0 1px 0 rgba(255, 246, 213, 0.1);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 60px rgba(23, 19, 13, 0.42), inset 0 1px 0 rgba(255, 246, 213, 0.12);
}

/* every panel gets the gold cap rail, like the signage */
.tile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--foil-flat);
  opacity: 0.55;
}
.tile--lead::before { opacity: 1; }

.tile__k {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 0.6em;
}

.tile__v {
  font-family: var(--font-mono);
  font-size: var(--t-stat);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--gold-200);
  word-break: break-word;
}

.tile--lead .tile__v {
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(245, 197, 66, 0.3));
}

.tile__s { font-size: 0.75rem; color: rgba(242, 240, 236, 0.42); margin-top: 0.55em; }

/* a number that just changed */
.flash { animation: flash 1.4s var(--ease); }

@keyframes flash {
  0% { color: #fff; text-shadow: 0 0 24px rgba(245, 197, 66, 0.9); }
  100% { color: inherit; text-shadow: none; }
}

/* ============================================================
   WHY — the headline band
   ============================================================ */
.why {
  margin-top: clamp(var(--s-10), 5vw, var(--s-16));
  border-block: 1px solid var(--lacq-line);
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(224, 169, 36, 0.1), transparent 70%),
    linear-gradient(180deg, var(--lacq-850), var(--lacq-950));
  color: #f2f0ec;
}

.why__in { padding-block: clamp(var(--s-8), 4vw, var(--s-12)); }

.creed {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(var(--s-4), 3.5vw, var(--s-10));
  flex-wrap: wrap;
  padding-bottom: clamp(var(--s-6), 3vw, var(--s-8));
  margin-bottom: clamp(var(--s-6), 3vw, var(--s-8));
  border-bottom: 1px solid rgba(245, 197, 66, 0.18);
}

.creed__w {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.6vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  filter: drop-shadow(0 2px 0 rgba(107, 71, 8, 0.8));
}

.creed__s { width: clamp(10px, 1.3vw, 16px); height: clamp(10px, 1.3vw, 16px); flex: none; }

.why__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(var(--s-6), 4vw, var(--s-12));
  align-items: center;
}

@media (max-width: 860px) { .why__grid { grid-template-columns: 1fr; } }

.why__chip {
  display: inline-block;
  padding: 0.4em 0.9em;
  border: 1px solid rgba(245, 197, 66, 0.4);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: var(--s-4);
}

.why__t {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.04;
  text-wrap: balance;
}

.why__news {
  position: relative;
  padding: var(--s-5);
  border: 1px solid rgba(245, 197, 66, 0.3);
  border-left: 3px solid var(--gold-400);
  border-radius: var(--r-sm);
  background: rgba(224, 169, 36, 0.07);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.5;
  color: #f6f3ec;
  margin-bottom: var(--s-4);
}

.why__news b { color: var(--gold-200); }

.why__flash {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 0.55em;
}

.why__d { font-size: 0.95rem; color: rgba(242, 240, 236, 0.6); max-width: 56ch; }
.why__d b { color: var(--gold-200); font-weight: 600; }

/* ============================================================
   Strip
   ============================================================ */
.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 1px;
  background: var(--rule-dim);
  border-bottom: 1px solid var(--rule-dim);
}

.strip__cell {
  padding: var(--s-5) var(--s-4);
  background: var(--paper-hi);
  text-align: center;
}

.strip__k {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.5em;
}

.strip__v {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--gold-800);
  line-height: 1;
}

/* ============================================================
   Steps — marble counters
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4);
}

@media (max-width: 940px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.step {
  position: relative;
  padding: var(--s-6);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--paper-hi);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.step::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--foil-flat);
}

.step:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.step__n {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: var(--s-4);
  border-radius: 50%;
  background: var(--foil-flat);
  border: 1px solid var(--gold-600);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: #211603;
  box-shadow: 0 2px 6px rgba(169, 116, 20, 0.4);
}

.step__t {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.35em;
}

.step__d { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.55; }
.step__d b { color: var(--gold-800); font-weight: 700; }

/* ============================================================
   Ledger — the bank statement
   ============================================================ */
.plate {
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--paper-hi);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.scroll {
  overflow-x: auto;
  max-height: 460px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--paper-3) transparent;
}

.scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.scroll::-webkit-scrollbar-thumb { background: var(--paper-3); border-radius: var(--r-pill); }
.scroll::-webkit-scrollbar-track { background: transparent; }

.tbl {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  min-width: 720px;
}

.tbl thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: var(--s-3) var(--s-4);
  background: var(--lacq-900);
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-300);
  text-align: left;
  white-space: nowrap;
}

.tbl td {
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--rule-dim);
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  white-space: nowrap;
}

.tbl tbody tr:nth-child(even) td { background: rgba(224, 169, 36, 0.045); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: rgba(224, 169, 36, 0.1); }

.tbl .r { text-align: right; }
.tbl .gold { color: var(--up); font-weight: 800; }
.tbl .dim { color: var(--ink-faint); }

.tbl a {
  color: var(--gold-700);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  font-weight: 700;
}
.tbl a:hover { color: var(--gold-800); border-color: var(--gold-600); }

.empty {
  display: grid;
  place-items: center;
  gap: var(--s-2);
  padding: clamp(var(--s-10), 6vw, var(--s-16)) var(--s-6);
  text-align: center;
}

.empty__t {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-700);
}

.empty__d { font-size: 0.87rem; color: var(--ink-faint); max-width: 44ch; }

/* ============================================================
   Desk
   ============================================================ */
.desk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-6);
}

@media (max-width: 900px) { .desk { grid-template-columns: 1fr; } }

.card {
  padding: clamp(var(--s-5), 2.2vw, var(--s-8));
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--paper-hi);
  box-shadow: var(--shadow-sm);
}

.card__t {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--s-2);
}

.card__d { font-size: 0.85rem; color: var(--ink-faint); margin-bottom: var(--s-5); }

.field { display: flex; gap: var(--s-2); flex-wrap: wrap; }

.input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.8em 0.95em;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: #fff;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.input::placeholder { color: var(--ink-faint); }
.input:focus {
  border-color: var(--gold-500);
  outline: none;
  box-shadow: 0 0 0 3px rgba(224, 169, 36, 0.18);
}

.note {
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule-dim);
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--ink-faint);
}

.note b { color: var(--gold-800); }

/* the result slip */
.slip { margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--rule-dim); }

.slip__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 0.5em 0;
  border-bottom: 1px dotted var(--rule);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.slip__k {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.slip__v {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
}

.slip__v.good { color: var(--up); }
.slip__v.bad { color: var(--down); }

.meter {
  height: 7px;
  margin-top: var(--s-4);
  border-radius: var(--r-pill);
  background: var(--paper-2);
  border: 1px solid var(--rule-dim);
  overflow: hidden;
}

.meter__f {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
  transition: width 0.8s var(--ease);
}

.meter__f.full { background: linear-gradient(90deg, var(--up), #35c47a); }

/* the ink stamp */
.stamp {
  display: inline-block;
  margin-top: var(--s-5);
  padding: 0.4em 1em;
  border: 3px double currentColor;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transform: rotate(-2.4deg);
  opacity: 0.92;
}

.stamp.good { color: var(--up); }
.stamp.bad { color: var(--down); }

/* holders board */
.holders {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--rule-dim);
  border: 1px solid var(--rule-dim);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.holder {
  display: grid;
  grid-template-columns: 2.2rem 1fr auto;
  align-items: center;
  gap: var(--s-3);
  padding: 0.6rem var(--s-4);
  background: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.holder:nth-child(even) { background: var(--paper-hi); }

.holder__n { font-size: 0.66rem; font-weight: 800; color: var(--gold-600); }

.holder__a {
  color: var(--ink-soft);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
}
.holder__a:hover { color: var(--gold-700); }

.holder__v { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--ink); }

/* ============================================================
   Machine log — the one dark terminal in the branch
   ============================================================ */
.log {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  max-height: 260px;
  overflow-y: auto;
  border-radius: var(--r-sm);
  border: 1px solid var(--lacq-700);
  background: var(--lacq-900);
  scrollbar-width: thin;
  scrollbar-color: var(--lacq-700) transparent;
}

.log__row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: var(--s-3);
  padding: 0.45rem var(--s-4);
  border-bottom: 1px solid rgba(245, 197, 66, 0.08);
  align-items: baseline;
}

.log__row:last-child { border-bottom: 0; }

.log__t { color: rgba(242, 240, 236, 0.35); font-size: 0.66rem; }

.log__lvl {
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.log__lvl.info { color: var(--up-bright); }
.log__lvl.warn { color: var(--gold-300); }
.log__lvl.error { color: #ff6b6b; }

.log__m { color: rgba(242, 240, 236, 0.72); overflow-wrap: anywhere; }

.log .empty__d { color: rgba(242, 240, 236, 0.45); }
.log .empty__t { color: var(--gold-300); }

/* ============================================================
   Footer — back to the signage
   ============================================================ */
.foot {
  border-top: 1px solid var(--lacq-line);
  padding-block: var(--s-12) var(--s-8);
  background: linear-gradient(180deg, var(--lacq-850), var(--lacq-950));
  color: #f2f0ec;
}

.foot .brand__name { color: #f2f0ec; }
.foot .brand__sub { color: var(--gold-500); }

.foot__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(2, minmax(0, 1fr));
  gap: var(--s-8);
  padding-bottom: var(--s-8);
  border-bottom: 1px solid rgba(245, 197, 66, 0.16);
}

@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr; gap: var(--s-6); } }

.foot h4 {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: var(--s-3);
}

.foot__col a {
  display: block;
  padding: 0.28rem 0;
  font-size: 0.85rem;
  color: rgba(242, 240, 236, 0.65);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.foot__col a:hover { color: var(--gold-300); }
.foot__col a[aria-disabled="true"] { pointer-events: none; opacity: 0.4; }

.foot__blurb {
  font-size: 0.85rem;
  color: rgba(242, 240, 236, 0.45);
  max-width: 40ch;
  margin-top: var(--s-4);
}

.fine {
  padding-top: var(--s-6);
  font-size: 0.74rem;
  line-height: 1.65;
  color: rgba(242, 240, 236, 0.4);
  max-width: 100ch;
}

.fine p + p { margin-top: 0.7em; }
.fine b { color: rgba(242, 240, 236, 0.65); }

/* ============================================================
   Reveal
   ============================================================ */
.rev {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.rev.in { opacity: 1; transform: none; }
