/* ============================================================
   LITMUS — Interaction layer
   Magnetic navigator · Hero plate animation · Reveal stagger ·
   Hover signatures · Scribe-in headline
   ============================================================ */

/* ---------- Metallic silver — applied to large numerals ---------- */
.metallic {
  background: linear-gradient(
    180deg,
    #f4f1ec 0%,
    #c9c2b6 18%,
    #8e8a82 42%,
    #b8b0a4 58%,
    #d6cfc2 78%,
    #8e8a82 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.4)) drop-shadow(0 -1px 0 rgba(0,0,0,0.08));
}
[data-mode="dark"] .metallic {
  background: linear-gradient(
    180deg,
    #e8e3da 0%,
    #b8b0a4 22%,
    #6e6a64 48%,
    #9c9690 60%,
    #cac4b8 80%,
    #6e6a64 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.18)) drop-shadow(0 -1px 0 rgba(0,0,0,0.4));
}

/* Metallic shimmer — animated horizontal sweep, used for marquee names */
.metallic-shine {
  background: linear-gradient(
    100deg,
    #6e6a64 0%,
    #6e6a64 40%,
    #f4f1ec 48%,
    #ffffff 50%,
    #f4f1ec 52%,
    #6e6a64 60%,
    #6e6a64 100%
  );
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shimmer-sweep 6s ease-in-out infinite;
}
[data-mode="dark"] .metallic-shine {
  background: linear-gradient(
    100deg,
    #8a857d 0%,
    #8a857d 40%,
    #f0ebe1 48%,
    #ffffff 50%,
    #f0ebe1 52%,
    #8a857d 60%,
    #8a857d 100%
  );
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer-sweep 6s ease-in-out infinite;
}
@keyframes shimmer-sweep {
  0%   { background-position: 200% 0; }
  60%  { background-position: -100% 0; }
  100% { background-position: -100% 0; }
}

/* Hover-morph metallic — text becomes silver on hover, with a shine sweep */
.metallic-hover {
  position: relative;
  background: linear-gradient(
    100deg,
    var(--espresso) 0%,
    var(--espresso) 40%,
    var(--espresso) 100%
  );
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  transition: background 0.15s;
}
[data-mode="dark"] .metallic-hover {
  background: linear-gradient(
    100deg,
    var(--text) 0%,
    var(--text) 40%,
    var(--text) 100%
  );
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.metallic-hover-trigger:hover .metallic-hover,
.metallic-hover:hover {
  background: linear-gradient(
    100deg,
    #8e8a82 0%,
    #c9c2b6 35%,
    #ffffff 50%,
    #c9c2b6 65%,
    #8e8a82 100%
  );
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hover-shine 1.2s ease-out;
}
[data-mode="dark"] .metallic-hover-trigger:hover .metallic-hover,
[data-mode="dark"] .metallic-hover:hover {
  background: linear-gradient(
    100deg,
    #8a857d 0%,
    #c4bdb1 35%,
    #ffffff 50%,
    #c4bdb1 65%,
    #8a857d 100%
  );
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* ---------- Hero marquee — selected portfolio names with animated metallic shine ---------- */
.hero-marquee-wrap {
  margin-top: 80px;
  padding: 36px 0 0;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.hero-marquee-label {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  color: var(--copper); text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.hero-marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 50s linear infinite;
}
.hero-marquee-set {
  display: flex; flex-shrink: 0;
  gap: 0;
}
.hero-marquee-set span {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
  letter-spacing: -0.025em;
  padding: 0 36px;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-marquee-track { animation: none; }
}

/* ---------- Pillar company chips — metallic on hover ---------- */
.pillar .companies span {
  position: relative;
  transition: border-color .25s, color .25s, background .35s;
  background-size: 200% 100%;
  background-position: 100% 0;
}
.pillar .companies span:hover {
  border-color: transparent;
  background: linear-gradient(
    100deg,
    #6e6a64 0%,
    #c9c2b6 35%,
    #ffffff 50%,
    #c9c2b6 65%,
    #6e6a64 100%
  );
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: hover-shine 1.2s ease-out;
}
[data-mode="dark"] .pillar .companies span:hover {
  background: linear-gradient(
    100deg,
    #8a857d 0%,
    #c4bdb1 35%,
    #ffffff 50%,
    #c4bdb1 65%,
    #8a857d 100%
  );
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Navigator (replaces old .header) ---------- */
.hdr {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  background: color-mix(in oklab, var(--bg) 84%, transparent);
  border-bottom: 1px solid var(--border);
  transition: padding .35s cubic-bezier(.2,.7,.2,1), background .3s ease, border-color .3s ease;
}
.hdr.on-hero {
  background: color-mix(in oklab, var(--sand) 86%, transparent);
}
[data-mode="dark"] .hdr.on-hero {
  background: color-mix(in oklab, var(--espresso) 86%, transparent);
  border-bottom: 1px solid var(--border-strong);
}
.hdr.condensed {
  background: color-mix(in oklab, var(--bg) 94%, transparent);
  border-bottom: 1px solid var(--border-strong);
}
[data-mode="dark"] .hdr.condensed { background: color-mix(in oklab, var(--bg) 92%, transparent); }

.hdr-inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 22px var(--gutter); max-width: var(--max); margin: 0 auto;
  transition: padding .35s cubic-bezier(.2,.7,.2,1);
}
@media (max-width: 1100px) {
  .hdr-coords { display: none; }
}
@media (max-width: 1000px) {
  .hdr-item { padding: 10px 12px; font-size: 13px; }
  .hdr-pitch { padding: 9px 13px; font-size: 12px; white-space: nowrap; }
}
.hdr.condensed .hdr-inner { padding: 12px var(--gutter); }

.hdr-mark {
  display: inline-flex; align-items: center; gap: 16px;
  cursor: pointer;
  transition: opacity .2s;
}
.hdr-mark:hover { opacity: 0.78; }
.hdr-coords {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  color: var(--muted); text-transform: uppercase;
  padding-left: 16px; border-left: 1px solid var(--border);
  transition: opacity .35s ease, transform .35s ease;
  white-space: nowrap;
}
.hdr.condensed .hdr-coords { opacity: 0; transform: translateX(-6px); pointer-events: none; }

.hdr-nav {
  position: relative; justify-self: center;
  display: flex; align-items: center; gap: 4px;
  /* reserve a slot below for hover hints so they never overlap other nav items */
  padding-bottom: 14px;
  margin-bottom: -14px;
}
}
.hdr-indicator {
  position: absolute; top: 0; bottom: 0; left: 0; height: 100%;
  background: color-mix(in oklab, var(--copper) 10%, transparent);
  border-radius: 8px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), width .35s cubic-bezier(.2,.7,.2,1), opacity .25s ease;
  pointer-events: none;
  z-index: 0;
}
[data-mode="dark"] .hdr-indicator { background: color-mix(in oklab, var(--copper) 16%, transparent); }

.hdr-item {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10px 18px;
  /* Refined nav typeface — Instrument Sans, medium, slightly tightened. */
  font-family: 'Instrument Sans', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: inherit;
  cursor: pointer;
  transition: color .2s;
  height: 44px;
  text-align: center;
}

/* Nav typeface variants — driven by [data-nav-font] on <html>. Default = "modern" (Instrument Sans). */
[data-nav-font="editorial"] .hdr-item {
  font-family: 'Newsreader', 'Charter', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.01em;
}
[data-nav-font="archive"] .hdr-item {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
[data-nav-font="archive"] .hdr-pitch {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
[data-nav-font="archive"] .hdr-coords { font-size: 9px; }
.hdr-item:hover, .hdr-item.active { color: var(--copper); }

.hdr-item-label {
  display: block;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.hdr-item-hint {
  position: absolute; left: 50%; top: 100%;
  transform: translate(-50%, 2px);
  margin-top: 2px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em;
  color: var(--copper);
  opacity: 0;
  white-space: nowrap;
  transition: opacity .25s ease, transform .35s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
  text-transform: uppercase;
}
.hdr-item:hover .hdr-item-label { transform: none; }
.hdr-item:hover .hdr-item-hint { opacity: 1; transform: translate(-50%, 0); }

.hdr-pitch {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  flex-shrink: 0;
}
.hdr-pitch::before {
  content: ""; position: absolute; inset: 0;
  background: var(--copper);
  transform: translateX(-101%);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
  z-index: 0;
}
.hdr-pitch > span { position: relative; z-index: 1; transition: color .25s; }
.hdr-pitch:hover { border-color: var(--copper); color: var(--ivory); }
.hdr-pitch:hover::before { transform: translateX(0); }
.hdr-pitch-arrow { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.hdr-pitch:hover .hdr-pitch-arrow { transform: translateX(3px); }

@media (max-width: 900px) {
  .hdr-inner { grid-template-columns: auto 1fr auto; gap: 12px; }
  .hdr-coords { display: none; }
  .hdr-nav { display: none; }
}

/* ---------- Hero plate (animated field plate) ---------- */
.hero-graphic { position: relative; min-height: 460px; }

.hp {
  position: relative;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(170, 150, 120, 0.28);
  border-radius: 12px;
  padding: 26px 30px 22px;
  font-family: var(--sans);
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity .6s ease-out, transform .6s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
  color: var(--espresso);
}
.hp .hp-head { color: var(--copper); border-bottom-color: rgba(170, 150, 120, 0.28); }
.hp .hp-foot { border-top-color: rgba(170, 150, 120, 0.28); }
.hp .hp-foot > div { border-left-color: rgba(170, 150, 120, 0.28); }
.hp .hp-foot > div:first-child { border-left: none; }
.hp .hp-foot .v { color: var(--espresso) !important; }
.hp .hp-foot .k { color: #8a7c6c; }
.hp .hp-bar-name { color: var(--espresso) !important; }
.hp .hp-code { color: var(--espresso) !important; }
.hp .hp-count .l { color: #8a7c6c; }
.hp.hp-on { opacity: 1; transform: translate3d(0, 0, 0); }

/* corner ticks (field-note signature) */
.hp::before, .hp::after,
.hp .hp-rule::before, .hp .hp-rule::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  border: 1px solid var(--copper); border-radius: 1px;
  opacity: 0; transition: opacity .5s ease .4s, transform .5s cubic-bezier(.2,.7,.2,1) .4s;
  pointer-events: none;
}
.hp::before { top: -1px; left: -1px; border-right: none; border-bottom: none; transform: translate(-3px, -3px); }
.hp::after  { top: -1px; right: -1px; border-left: none; border-bottom: none; transform: translate(3px, -3px); }
.hp .hp-rule { position: absolute; inset: 0; pointer-events: none; }
.hp .hp-rule::before { bottom: -1px; left: -1px; border-right: none; border-top: none; transform: translate(-3px, 3px); }
.hp .hp-rule::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; transform: translate(3px, 3px); }
.hp.hp-on::before, .hp.hp-on::after,
.hp.hp-on .hp-rule::before, .hp.hp-on .hp-rule::after {
  opacity: 1; transform: translate(0, 0);
}

.hp .hp-head {
  display: flex; justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--copper);
}
.hp .hp-head .hp-blink::before {
  content: "● "; color: var(--teal); font-size: 8px; vertical-align: middle;
  animation: hp-blink 1.8s infinite;
}
@keyframes hp-blink { 0%, 60% { opacity: 1; } 65%, 100% { opacity: 0.25; } }

.hp .hp-body { padding: 20px 0 6px; display: flex; flex-direction: column; gap: 18px; }
.hp .hp-row {
  display: grid; grid-template-columns: 56px 1fr 76px;
  align-items: center; gap: 18px;
  opacity: 0; transform: translateX(-8px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(180ms + var(--i, 0) * 100ms);
}
.hp.hp-on .hp-row { opacity: 1; transform: translateX(0); }

/* Hero plate is always on the warm sand hero — keep palette light regardless of body mode */
.hp .hp-code { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--espresso); }

.hp .hp-bar {
  position: relative; min-height: 36px;
  background: rgba(43, 122, 120, 0.06);
  border-left: 2px solid var(--copper);
  display: flex; align-items: center; padding: 8px 12px;
}
.hp .hp-bar-fill {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 0;
  background: linear-gradient(90deg, rgba(43,122,120,0.22), rgba(43,122,120,0.10));
  transition: width .9s cubic-bezier(.2,.7,.2,1);
}
.hp .hp-bar-name {
  position: relative;
  font-family: var(--serif); font-size: 17px;
  color: var(--espresso); letter-spacing: -0.01em;
}
[data-mode="dark"] .hp .hp-bar-name { color: var(--text); }
.hp .hp-bar-tick {
  position: absolute; top: -3px; bottom: -3px;
  width: 1px; background: var(--copper);
  transform: scaleY(0); transform-origin: center;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.hp.hp-on .hp-bar-tick { transform: scaleY(1); }

.hp .hp-count { text-align: right; }
.hp .hp-count .v { font-family: var(--serif); font-size: 26px; font-weight: 400; color: var(--copper); line-height: 1; font-feature-settings: "tnum"; }
.hp .hp-count .l { font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.hp .hp-foot {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  padding-top: 16px; margin-top: 14px;
  border-top: 1px solid var(--border);
}
.hp .hp-foot > div {
  display: flex; flex-direction: column; gap: 4px;
  padding-left: 14px; border-left: 1px solid var(--border);
}
.hp .hp-foot > div:first-child { padding-left: 0; border-left: none; }
.hp .hp-foot .k { font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.hp .hp-foot .v { font-family: var(--serif); font-size: 18px; color: var(--espresso); letter-spacing: -0.01em; font-feature-settings: "tnum"; }
[data-mode="dark"] .hp .hp-foot .v { color: var(--text); }

/* ---------- Scribe-in headline ---------- */
.hero-h1 .hero-word {
  display: inline-block;
  opacity: 0; transform: translateY(0.5em);
  animation: hero-word-in .7s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: var(--w-d, 0ms);
}
@keyframes hero-word-in {
  to { opacity: 1; transform: translateY(0); }
}

.hero-h1 .hero-accent {
  display: inline-block; position: relative;
  font-style: normal; color: var(--copper);
  opacity: 0; transform: translateY(0.5em);
  animation: hero-word-in .7s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: var(--scribe-d, 250ms);
}
.hero-h1 .hero-accent::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: .04em;
  height: 2px; background: var(--teal); opacity: 0.55;
  transform: scaleX(0); transform-origin: left;
  animation: hero-underline 1.1s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: calc(var(--scribe-d, 250ms) + 600ms);
}
@keyframes hero-underline { to { transform: scaleX(1); } }

.hero-sub, .hero-cta, .hero-tags-anim {
  opacity: 0; transform: translateY(8px);
  animation: hero-word-in .6s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-sub { animation-delay: 700ms; }
.hero-cta { animation-delay: 820ms; }

.hero-tags-anim span {
  opacity: 0; transform: translateY(8px);
  animation: hero-word-in .55s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: var(--t-d, 900ms);
}

.eyebrow-fade {
  opacity: 0;
  animation: hero-word-in .6s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: 100ms;
}

/* ---------- Reveal (intersection observer stagger) ---------- */
.rv-item {
  opacity: 0; transform: translateY(14px);
  transition: opacity .65s cubic-bezier(.2,.7,.2,1), transform .65s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--rv-d, 0ms);
  will-change: opacity, transform;
}
.rv-on .rv-item { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .rv-item { opacity: 1; transform: none; transition: none; }
  .hero-h1 .hero-word, .hero-h1 .hero-accent, .hero-sub, .hero-cta, .hero-tags-anim, .hero-tags-anim span, .eyebrow-fade { animation: none; opacity: 1; transform: none; }
  .hp { opacity: 1; transform: none; }
  .hp .hp-row { opacity: 1; transform: none; }
}

/* ---------- Hover signatures (corner-tick + pen underline) ---------- */
/* Generic card corner-ticks for pillars, pf-cards, insights, ledger rows etc. */
.pillar, .pf-card, .insight, .corridor-card {
  position: relative;
}
.pillar::before, .pillar::after,
.pf-card::before, .pf-card::after {
  content: ""; position: absolute; width: 10px; height: 10px;
  border: 1px solid var(--copper);
  opacity: 0; transition: opacity .25s ease, transform .35s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.pillar::before, .pf-card::before {
  top: 8px; left: 8px;
  border-right: none; border-bottom: none;
  transform: translate(-3px, -3px);
}
.pillar::after, .pf-card::after {
  bottom: 8px; right: 8px;
  border-left: none; border-top: none;
  transform: translate(3px, 3px);
}
.pillar:hover::before, .pillar:hover::after,
.pf-card:hover::before, .pf-card:hover::after {
  opacity: 1; transform: translate(0, 0);
}

/* Ledger row warmth on hover */
.ledger-row {
  transition: background .3s ease;
  position: relative;
}
.ledger-row:hover { background: color-mix(in oklab, var(--copper) 5%, transparent); }
.ledger-row .lr-id .lr-code { transition: color .25s ease, padding .25s ease; position: relative; }
.ledger-row:hover .lr-id .lr-code { color: var(--copper); }
.ledger-row .lr-id .lr-code::before {
  content: ""; position: absolute;
  left: -10px; top: 50%; transform: translateY(-50%) scale(0);
  width: 5px; height: 5px; border-radius: 50%; background: var(--copper);
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.ledger-row:hover .lr-id .lr-code::before { transform: translateY(-50%) scale(1); }

/* Network strip cells — pen underline */
.network-strip .logo-cell {
  position: relative;
}
.network-strip .logo-cell::after {
  content: ""; position: absolute; left: 28px; right: 28px; bottom: 18px;
  height: 1px; background: var(--copper);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.network-strip .logo-cell:hover::after { transform: scaleX(1); }

/* Section head links — pen underline */
.section-head a {
  position: relative; padding-bottom: 4px;
  border-bottom: 0 !important;
  transition: color .25s;
}
.section-head a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(1); transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), background .25s;
}
.section-head a:hover { color: var(--copper); }
.section-head a:hover::after { background: var(--copper); transform-origin: right; transform: scaleX(0); animation: pen-redraw .55s cubic-bezier(.2,.7,.2,1) .15s forwards; }
@keyframes pen-redraw { 0% { transform-origin: right; transform: scaleX(0); } 1% { transform-origin: left; } 100% { transform-origin: left; transform: scaleX(1); } }

/* Btn primary — copper sweep instead of plain hover */
.btn.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn.btn-primary::before {
  content: ""; position: absolute; inset: 0;
  background: var(--copper);
  transform: translateX(-101%);
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
  z-index: -1;
}
.btn.btn-primary:hover::before { transform: translateX(0); }
.btn.btn-primary:hover { color: var(--ivory); }
.btn.btn-primary .arrow { display: inline-block; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.btn.btn-primary:hover .arrow { transform: translateX(4px); }

.btn.btn-ghost { transition: border-color .25s, color .25s; }
.btn.btn-ghost:hover { border-color: var(--copper); color: var(--copper); }

/* Stat numbers — odometer-ish entrance handled by JS, here just font feature */
.stat .val { font-feature-settings: "tnum"; }
