/* ============================================================
   TRUMPFOLIO · Minimalist Edition
   Full-bleed looping video + CRT filter behind clean content.
   Hairlines, lots of negative space, restrained color.
   ============================================================ */

:root {
  /* canvas */
  --bg-deep: #03040a;

  /* ink */
  --ink:   #f6f2e7;
  --ink-2: #c9c8c0;
  --ink-3: #8a8a87;
  --ink-4: #54544f;

  /* hairlines & glass */
  --glass:        rgba(8, 10, 18, 0.50);
  --hairline:     rgba(255, 255, 255, 0.08);
  --hairline-2:   rgba(255, 255, 255, 0.14);
  --hairline-3:   rgba(255, 255, 255, 0.22);

  /* accents */
  --red:    #e34050;
  --red-2:  #ff5d6d;
  --gold-hi: #fff1c5;   /* highlight, top of bright gradients */
  --gold:    #d4a44a;
  --gold-2:  #f2cf80;
  --gold-3:  #b4862f;
  --gold-glow: rgba(212, 164, 74, 0.45);

  /* the canonical bright gold gradient — used by the Buy button,
     the hero italic line, and the TRUMPFOLIO brand mark so they
     all read as the same colour family.
     IMPORTANT: stays in the bright zone end-to-end — no dark dropoff —
     so it renders the same on big text (hero) and small text (brand). */
  --grad-gold: linear-gradient(
    180deg,
    #fff1c5  0%,
    #f7d990 40%,
    #f2cf80 75%,
    #e0b663 100%
  );

  /* type */
  --f-sans: 'Inter Tight', 'Inter', system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, sans-serif;
  --f-display: 'Fraunces', 'Inter Tight', Georgia, serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;

  /* sizes */
  --s-hero:  clamp(2.4rem, 4.6vw, 4.6rem);
  --s-h2:    clamp(1.6rem, 2.6vw, 2.4rem);
  --s-body:  clamp(0.85rem, 0.9vw, 1rem);
  --s-small: clamp(0.74rem, 0.78vw, 0.86rem);
  --s-tiny:  clamp(0.62rem, 0.66vw, 0.74rem);

  /* metrics */
  --radius:    16px;
  --radius-sm: 10px;
  --gap:       clamp(14px, 1.4vw, 24px);

  /* CRT strength · 0 off · 1 baseline · 1.3 heavy VHS */
  --crt-strength: 1;
}

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

html, body { height: 100%; width: 100%; overflow: hidden; }

body {
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--s-body);
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv01', 'cv11';
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: transparent; border: 0; cursor: pointer; }
strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   BACKGROUND VIDEO STACK
   ============================================================ */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  filter:
    saturate(0.92)
    contrast(1.06)
    brightness(0.72)
    blur(0.7px)
    hue-rotate(-3deg);
  transform: scale(1.05);
  animation: crtFlicker 7s steps(40, end) infinite;
  will-change: opacity, filter;
}

@keyframes crtFlicker {
  0%, 4%, 7%, 39%, 41%, 73%, 76%, 100% { opacity: 1; }
  5%   { opacity: 0.92; }
  40%  { opacity: 0.96; }
  74%  { opacity: 0.90; }
  21%  { transform: translateX(0)      scale(1.05); }
  22%  { transform: translateX(-1.5px) scale(1.05); }
  23%  { transform: translateX(0.8px)  scale(1.05); }
  24%  { transform: translateX(0)      scale(1.05); }
}

.bg-scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      120% 80% at 50% 50%,
      transparent 0%,
      rgba(0, 0, 0, 0.40) 60%,
      rgba(0, 0, 0, 0.78) 100%
    ),
    linear-gradient(
      180deg,
      rgba(3, 4, 10, 0.55) 0%,
      rgba(3, 4, 10, 0.25) 22%,
      rgba(3, 4, 10, 0.25) 60%,
      rgba(3, 4, 10, 0.80) 100%
    );
}

.bg-grain {
  position: fixed;
  inset: -50%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1   0 0 0 0 1   0 0 0 0 1   0 0 0 0.7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  animation: grainShift 8s steps(8) infinite;
}

@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-8%, 4%); }
  40%  { transform: translate(6%, -6%); }
  60%  { transform: translate(-4%, -8%); }
  80%  { transform: translate(8%, 2%); }
  100% { transform: translate(0, 0); }
}

.bg-fallback {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.6s ease;
  background:
    radial-gradient(1200px 700px at 20% 20%,  rgba(227, 64, 80, 0.18), transparent 60%),
    radial-gradient(900px 700px  at 100% 100%, rgba(91, 128, 255, 0.16), transparent 60%),
    radial-gradient(1100px 800px at 50% 50%,  rgba(212, 164, 74, 0.12), transparent 65%),
    linear-gradient(180deg, #060814 0%, #0a0d20 50%, #050816 100%);
}

body[data-video='ok'] .bg-fallback { opacity: 0; }

/* ============================================================
   CRT / OLD-TV FILTER STACK
   ============================================================ */
.crt-vignette {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 95% 95% at 50% 50%,
      transparent 55%,
      rgba(0, 0, 0, 0.35) 85%,
      rgba(0, 0, 0, 0.65) 100%
    );
  mix-blend-mode: multiply;
  opacity: calc(0.85 * var(--crt-strength));
}

.crt-scanlines {
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.28) 0px,
    rgba(0, 0, 0, 0.28) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: multiply;
  opacity: calc(0.50 * var(--crt-strength));
}

.crt-scanlines::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 70, 70, 0.06) 0px,
    rgba(70, 255, 70, 0.06) 1px,
    rgba(70, 90, 255, 0.06) 2px,
    transparent 3px
  );
  mix-blend-mode: screen;
}

.crt-tracking {
  position: fixed;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 46%,
    rgba(255, 255, 255, 0.05) 48%,
    rgba(255, 255, 255, 0.10) 50%,
    rgba(255, 255, 255, 0.05) 52%,
    transparent 54%,
    transparent 100%
  );
  background-size: 100% 320%;
  background-repeat: no-repeat;
  mix-blend-mode: screen;
  opacity: calc(0.55 * var(--crt-strength));
  animation: crtRoll 14s linear infinite;
}

@keyframes crtRoll {
  from { background-position: 0% -25%; }
  to   { background-position: 0% 125%; }
}

/* ============================================================
   STAGE
   ============================================================ */
.stage {
  position: relative;
  z-index: 3;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  padding: clamp(14px, 1.6vw, 28px) clamp(18px, 2.2vw, 40px);
  display: grid;
  gap: clamp(14px, 1.6vw, 26px);
  grid-template-rows: auto minmax(0, 1fr);
}

.stage__body {
  grid-row: 2;
  grid-column: 1;
  min-height: 0;
}

body[data-view='dashboard'] .view--mechanics { display: none; }
body[data-view='mechanics'] .view--dashboard { display: none; }

/* ============================================================
   TOP NAV — minimal, no pill, no glass
   Three floating clusters that read cleanly over the video.
   ============================================================ */
.topnav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(14px, 1.6vw, 26px);
  padding: clamp(2px, 0.4vw, 8px) clamp(2px, 0.4vw, 8px);
}

.topnav__links { justify-self: center; }
.topnav__right { justify-self: end; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  filter: drop-shadow(0 2px 16px rgba(0, 0, 0, 0.55));
}

.brand__coin {
  width:  clamp(34px, 2.4vw, 40px);
  height: clamp(34px, 2.4vw, 40px);
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.3) inset,
    0 4px 10px rgba(0, 0, 0, 0.5);
}

.brand__name {
  font-weight: 800;
  letter-spacing: -0.012em;
  font-size: clamp(1.1rem, 1.25vw, 1.35rem);
  text-transform: uppercase;
  font-family: var(--f-sans);
  line-height: 1;

  /* full gold gradient — matches the Buy button and the hero italic line */
  background: var(--grad-gold);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 8px rgba(0, 0, 0, 0.55));
}

.brand__name-f {
  /* inherit the same gradient so the whole word reads as one colour family */
  color: inherit;
}

.topnav__links {
  display: flex;
  gap: clamp(4px, 0.6vw, 12px);
}

.link {
  position: relative;
  font-size: var(--s-small);
  color: var(--ink-3);
  padding: 6px 4px;
  font-weight: 500;
  letter-spacing: 0;
  transition: color 0.15s;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}

.link:hover { color: var(--ink); }

.link--active { color: var(--ink); }
.link--active::after {
  content: '';
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 0;
  height: 1px;
  background: var(--gold-2);
  box-shadow: 0 0 8px var(--gold-glow);
}

.topnav__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.birthday {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(212, 164, 74, 0.28);
  background: rgba(20, 14, 6, 0.40);
  backdrop-filter: blur(8px);
  font-size: var(--s-tiny);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-weight: 600;
  white-space: nowrap;
}

.birthday__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: pulse 1.8s ease-in-out infinite;
}

.birthday__sep {
  width: 1px;
  height: 10px;
  background: rgba(255, 255, 255, 0.20);
}

.birthday__date {
  color: var(--ink);
  font-family: var(--f-mono);
  font-weight: 600;
  letter-spacing: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.8); }
}

/* ============================================================
   DASHBOARD VIEW — hero (left) + holdings panel (right)
   ============================================================ */
.view--dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(440px, 0.95fr);
  align-items: stretch;
  gap: clamp(24px, 3vw, 56px);
}

/* ----- hero ----- */
.hero {
  min-width: 0;
  padding: clamp(8px, 1vw, 24px) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both 0.05s;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--s-tiny);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-weight: 600;
  width: max-content;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}

.eyebrow__star {
  font-size: 0.95em;
  color: var(--gold);
  filter: drop-shadow(0 0 6px var(--gold-glow));
}

.hero__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--s-hero);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-top: clamp(18px, 2vw, 28px);
  font-variation-settings: "SOFT" 80;
  text-shadow:
    0 2px 36px rgba(0, 0, 0, 0.65),
    0 1px 0  rgba(0, 0, 0, 0.45);
}

.hero__line { display: block; }
.hero__line--gold {
  /* same gradient as the Buy button and the brand mark */
  background: var(--grad-gold);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  font-style: italic;
  letter-spacing: -0.028em;
  /* kill the inherited hard 1px text-shadow from .hero__title —
     against the bright gold it reads as a black underline */
  text-shadow: none;
  /* replace it with a soft drop-shadow that follows the glyph alpha
     (so it doesn't draw a hard line under descenders like the "p" tail)
     plus a gentle gold glow to lift the type off the dim video */
  filter:
    drop-shadow(0 2px 24px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 18px rgba(242, 207, 128, 0.28));
}

.hero__copy {
  max-width: 48ch;
  color: var(--ink-2);
  font-size: clamp(0.95rem, 1.02vw, 1.12rem);
  line-height: 1.6;
  margin-top: clamp(20px, 2vw, 30px);
  font-weight: 400;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6);
}

.hero__cta {
  display: flex;
  gap: 12px;
  margin-top: clamp(26px, 2.4vw, 38px);
  flex-wrap: wrap;
}

.mono-tag {
  font-family: var(--f-mono);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--s-small);
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--hairline-2);
  color: var(--ink);
  transition: transform 0.15s ease, background 0.15s, border-color 0.15s,
    box-shadow 0.2s, filter 0.15s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--hairline-3);
}

.btn--primary {
  /* same gradient family as the brand + hero italic line */
  background: var(--grad-gold);
  color: #14110a;
  border-color: transparent;
  box-shadow:
    0 12px 32px rgba(212, 164, 74, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.30);
}
.btn--primary:hover {
  filter: brightness(1.06);
  box-shadow:
    0 16px 40px rgba(212, 164, 74, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}
.btn--primary svg { width: 17px; height: 17px; }

/* ============================================================
   HOLDINGS PANEL (right column)
   Minimal: subtle backdrop, hairlines, no chunky cards.
   ============================================================ */
.holdings {
  background: var(--glass);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  padding: clamp(20px, 1.6vw, 30px) clamp(22px, 1.8vw, 34px);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both 0.18s;
}

.holdings__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: clamp(14px, 1.2vw, 18px);
  border-bottom: 1px solid var(--hairline);
  flex-shrink: 0;
}

.h-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--s-tiny);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 600;
}

.status__cycle {
  color: var(--gold-2);
  font-family: var(--f-mono);
  margin-left: 2px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px rgba(227, 64, 80, 0.7);
  animation: pulse 1.6s ease-in-out infinite;
}

.h-chip {
  font-size: var(--s-tiny);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-weight: 600;
  padding: 3px 10px;
  border: 1px solid rgba(212, 164, 74, 0.24);
  border-radius: 999px;
  white-space: nowrap;
}

/* ----- live stats — typography only, no cards ----- */
.h-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1vw, 18px);
  padding: clamp(14px, 1.2vw, 18px) 0;
  border-bottom: 1px solid var(--hairline);
  flex-shrink: 0;
}

.h-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.h-stat__k {
  font-size: var(--s-tiny);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.h-stat__v {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.25vw, 1.35rem);
  color: var(--ink);
  letter-spacing: -0.022em;
  font-variant-numeric: tabular-nums;
}

.h-stat__v em {
  font-style: normal;
  margin-left: 5px;
  font-size: 0.6em;
  color: var(--ink-3);
  font-weight: 500;
  letter-spacing: 0.12em;
}

/* ----- countdown — just two columns separated by hairline ----- */
.h-countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(14px, 1.2vw, 18px) 0;
  border-bottom: 1px solid var(--hairline);
  flex-shrink: 0;
}

.h-countdown__k {
  font-size: var(--s-tiny);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-weight: 600;
}

.h-countdown__sub {
  font-size: var(--s-tiny);
  color: var(--ink-3);
  margin-top: 3px;
  letter-spacing: 0.04em;
}

.h-countdown__v {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: clamp(1.4rem, 1.8vw, 2rem);
  color: var(--ink);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

/* ----- section heading above the ledger ----- */
.h-section {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: clamp(14px, 1.2vw, 18px);
  padding-bottom: clamp(8px, 0.8vw, 12px);
  flex-shrink: 0;
}

.h-section__k {
  font-size: var(--s-tiny);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 600;
}

.h-section__sub {
  font-size: var(--s-tiny);
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* ============================================================
   LEDGER TABLE
   ============================================================ */
.ledger {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.ledger__head,
.ledger__row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1.4fr) minmax(0, 0.85fr) minmax(0, 0.95fr) minmax(0, 0.55fr);
  align-items: center;
  gap: 10px;
  padding: clamp(6px, 0.55vw, 9px) clamp(2px, 0.3vw, 6px);
}

.ledger__head {
  font-size: var(--s-tiny);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: clamp(8px, 0.8vw, 12px);
  flex-shrink: 0;
}

.ledger__row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: var(--s-small);
  color: var(--ink);
  transition: background 0.12s;
}

.ledger__row:hover { background: rgba(255, 255, 255, 0.025); }
.ledger__row:last-child { border-bottom: 0; }

.ledger__rank {
  font-family: var(--f-mono);
  color: var(--ink-3);
  font-size: var(--s-tiny);
  letter-spacing: 0.04em;
}

.ledger__co {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ledger__num {
  text-align: right;
  font-family: var(--f-mono);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.gold { color: var(--gold-2); }
.muted { color: var(--ink-3); }
.mono {
  font-family: var(--f-mono);
  color: var(--ink-2);
  letter-spacing: 0.01em;
  font-size: var(--s-tiny);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3);
}

.dot--nvda { background: #76b900; }
.dot--tsla { background: #e31937; }
.dot--aapl { background: #d6d6d6; }
.dot--spy  { background: #c8102e; }
.dot--brkb { background: #003087; }
.dot--hood { background: #00c805; }
.dot--googl { background: #4285f4; }
.dot--coin { background: #0052ff; }
.dot--msft { background: #00a4ef; }
.dot--pltr { background: #1a73e8; }
.dot--avgo { background: #cc092f; }
.dot--intc { background: #0071c5; }
.dot--gs   { background: #7399c6; }
.dot--mrvl { background: #00b3a4; }
.dot--v    { background: #1a1f71; }
.dot--ma   { background: #ff5f00; }

.sub {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.7em;
  color: var(--gold-2);
  font-weight: 500;
  vertical-align: super;
  line-height: 1;
}

/* ============================================================
   MECHANICS VIEW — single big glass card (kept similar)
   ============================================================ */
.view--mechanics {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mech-card {
  width: 100%;
  max-width: 1180px;
  padding: clamp(28px, 3vw, 56px);
  background: var(--glass);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both 0.05s;
}

.mech-card__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--s-h2);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-top: clamp(12px, 1.2vw, 18px);
  margin-bottom: clamp(22px, 2.2vw, 36px);
  max-width: 28ch;
  font-variation-settings: "SOFT" 80;
}

.mech-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.4vw, 22px);
}

.step {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: clamp(18px, 1.5vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.step:hover {
  border-color: var(--hairline-2);
  background: rgba(255, 255, 255, 0.035);
  transform: translateY(-2px);
}

.step::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.step__n {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: var(--s-tiny);
  letter-spacing: 0.1em;
  color: var(--gold-2);
}

.step__t {
  font-weight: 700;
  font-size: clamp(1rem, 1.15vw, 1.22rem);
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-top: 4px;
}

.step__c {
  font-size: var(--s-small);
  color: var(--ink-2);
  line-height: 1.55;
}

.mech-back {
  display: inline-block;
  margin-top: clamp(22px, 2vw, 34px);
  font-size: var(--s-small);
  color: var(--ink-3);
  letter-spacing: 0.05em;
  transition: color 0.15s;
}
.mech-back:hover { color: var(--ink); }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .live-dot,
  .birthday__dot,
  .bg-grain,
  .bg-video,
  .crt-tracking {
    animation: none !important;
  }
  .hero, .holdings, .mech-card { animation: none !important; }
  .bg-video { display: none; }
  :root { --crt-strength: 0.5; }
}

/* ============================================================
   Responsive fallbacks
   ============================================================ */
@media (max-width: 1180px) {
  html, body { overflow: auto; }
  .stage {
    height: auto;
    min-height: 100dvh;
    grid-template-rows: auto auto;
  }
  .view--dashboard {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .mech-steps { grid-template-columns: repeat(2, 1fr); }
  .topnav {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }
  .topnav__links  { justify-self: start; }
  .topnav__right  { justify-self: start; }
  .h-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-height: 800px) and (min-width: 1181px) {
  :root {
    --s-hero: clamp(2rem, 3.6vw, 3.6rem);
    --gap: clamp(10px, 1vw, 16px);
  }
}

@media (max-width: 520px) {
  .ledger__head,
  .ledger__row {
    grid-template-columns: 24px minmax(0, 1.4fr) minmax(0, 0.6fr) minmax(0, 0.6fr);
  }
  .ledger__head > div:nth-child(4),
  .ledger__row  > div:nth-child(4) { display: none; }
}
