/* ==========================================================================
   Jimmy Fat Masterson — Hero v2
   Brand: navy #0B3068 · orange #F7862A · cream #FDF6EE
   Progressive enhancement: @property, color-mix(), container queries,
   scroll-driven animations, backdrop-filter, text-wrap: balance.
   ========================================================================== */

@property --jfm-accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #3b6cf6;
}
@property --jfm-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@property --jfm-progress {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

.jfm-hero {
  /* light tokens */
  --h-bg: #fdf6ee;
  --h-bg-2: #f8ecdd;
  --h-ink: #0b1f3f;
  --h-ink-2: #4a5873;
  --h-ink-3: #5f6a80;
  --h-navy: #0b3068;
  --h-orange: #f7862a;
  --h-orange-deep: #d9480f;
  --h-accent-text-1: #e2690f;
  --h-accent-text-2: #c23d0a;
  --h-card: rgba(255, 255, 255, 0.66);
  --h-card-solid: #ffffff;
  --h-line: rgba(11, 48, 104, 0.1);
  --h-line-strong: rgba(11, 48, 104, 0.18);
  --h-shadow: 0 1px 1px rgba(11, 31, 63, 0.04), 0 8px 24px -6px rgba(11, 31, 63, 0.14), 0 30px 60px -20px rgba(11, 31, 63, 0.22);
  --h-btn-bg: #0b1f3f;
  --h-btn-ink: #fdf6ee;
  --h-grid: rgba(11, 48, 104, 0.07);
  --h-aurora-1: #ffb36b;
  --h-aurora-2: #ff8a3d;
  --h-aurora-3: #7fa6ff;
  --h-grain: 0.05;
  --h-next-bg: var(--bg-secondary, #f5f5f7);

  --jfm-accent: #3b6cf6;
  --px: 0;
  --py: 0;
  --mx: 50%;
  --my: 40%;

  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--h-bg);
  color: var(--h-ink);
  padding-block: clamp(2.5rem, 5vw, 4.75rem) 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.4s ease, --jfm-accent 1.1s ease;
}

[data-theme="dark"] .jfm-hero {
  --h-bg: #060e1f;
  --h-bg-2: #0a1730;
  --h-ink: #f6f1ea;
  --h-ink-2: #aeb8cc;
  --h-ink-3: #7d88a0;
  --h-accent-text-1: #ffb067;
  --h-accent-text-2: #ff7a2e;
  --h-card: rgba(16, 28, 54, 0.58);
  --h-card-solid: #101c36;
  --h-line: rgba(255, 255, 255, 0.08);
  --h-line-strong: rgba(255, 255, 255, 0.16);
  --h-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 12px 30px -8px rgba(0, 0, 0, 0.55), 0 40px 80px -24px rgba(0, 0, 0, 0.7);
  --h-btn-bg: #fdf6ee;
  --h-btn-ink: #0b1f3f;
  --h-grid: rgba(255, 255, 255, 0.05);
  --h-aurora-1: #ff8a3d;
  --h-aurora-2: #d9480f;
  --h-aurora-3: #2f5bd8;
  --h-grain: 0.07;
}

.jfm-hero *,
.jfm-hero *::before,
.jfm-hero *::after { box-sizing: border-box; }

.jfm-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Background layers ---------- */
.jfm-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.jfm-hero__aurora { position: absolute; inset: -20% -10% 0; filter: blur(70px) saturate(120%); opacity: 0.75; }
[data-theme="dark"] .jfm-hero__aurora { opacity: 0.55; }
.jfm-hero__aurora span {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: normal;
  will-change: transform;
}
.jfm-hero__aurora span:nth-child(1) {
  width: 46vmax; height: 46vmax; right: -8vmax; top: -6vmax;
  background: radial-gradient(circle at 40% 40%, var(--h-aurora-1), transparent 62%);
  animation: jfm-drift-a 22s ease-in-out infinite alternate;
}
.jfm-hero__aurora span:nth-child(2) {
  width: 38vmax; height: 38vmax; left: -12vmax; top: 10%;
  background: radial-gradient(circle at 60% 50%, var(--h-aurora-3), transparent 64%);
  opacity: 0.55;
  animation: jfm-drift-b 26s ease-in-out infinite alternate;
}
.jfm-hero__aurora span:nth-child(3) {
  width: 34vmax; height: 34vmax; left: 38%; bottom: -18vmax;
  background: radial-gradient(circle, var(--h-aurora-2), transparent 62%);
  opacity: 0.45;
  animation: jfm-drift-c 30s ease-in-out infinite alternate;
}
@keyframes jfm-drift-a { to { transform: translate3d(-6vmax, 5vmax, 0) scale(1.08); } }
@keyframes jfm-drift-b { to { transform: translate3d(7vmax, -3vmax, 0) scale(0.92); } }
@keyframes jfm-drift-c { to { transform: translate3d(-8vmax, -4vmax, 0) scale(1.12); } }

.jfm-hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--h-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--h-grid) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 20%, transparent 75%);
}

.jfm-hero__spot {
  position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx) var(--my), color-mix(in oklab, var(--h-orange) 16%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.jfm-hero.is-pointer .jfm-hero__spot { opacity: 1; }

.jfm-hero__grain {
  position: absolute; inset: 0;
  opacity: var(--h-grain);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* fade into the next section */
.jfm-hero__bg::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 140px;
  background: linear-gradient(to bottom, transparent, var(--h-next-bg));
}

/* ---------- Layout ---------- */
.jfm-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

/* ---------- Copy ---------- */
.jfm-hero__copy { position: relative; z-index: 2; max-width: 680px; }

.jfm-eyebrow {
  --jfm-angle: 0deg;
  position: relative;
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.35rem 0.9rem 0.35rem 0.35rem;
  border-radius: 999px;
  background: var(--h-card);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
          backdrop-filter: blur(12px) saturate(140%);
  color: var(--h-ink);
  font-size: 0.875rem; font-weight: 500; letter-spacing: -0.005em;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(11, 31, 63, 0.06);
  isolation: isolate;
}
.jfm-eyebrow::before {
  content: "";
  position: absolute; inset: 0; padding: 1px; border-radius: inherit;
  background: conic-gradient(from var(--jfm-angle), var(--h-line-strong) 0deg, var(--h-orange) 60deg, var(--h-line-strong) 120deg, var(--h-line-strong) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: jfm-spin 6s linear infinite;
  z-index: -1;
}
@keyframes jfm-spin { to { --jfm-angle: 360deg; } }
.jfm-eyebrow img { width: 26px; height: 26px; border-radius: 50%; display: block; box-shadow: 0 0 0 2px var(--h-card-solid); }
.jfm-eyebrow__tag { font-weight: 650; }
.jfm-eyebrow__sep { width: 3px; height: 3px; border-radius: 50%; background: var(--h-ink-3); }
.jfm-eyebrow__muted { color: var(--h-ink-2); }
.jfm-eyebrow svg { width: 14px; height: 14px; color: var(--h-ink-3); transition: transform 0.25s ease, color 0.25s ease; }
.jfm-eyebrow:hover svg { transform: translateX(3px); color: var(--h-orange); }
.jfm-eyebrow:focus-visible { outline: 2px solid var(--h-orange); outline-offset: 3px; }

.jfm-hero__title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.6rem, 1rem + 4.1vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
  color: var(--h-ink);
  text-wrap: balance;
}
.jfm-hero__title .jfm-line { display: block; white-space: nowrap; overflow: clip; padding-bottom: 0.26em; margin-bottom: -0.26em; }
.jfm-hero__title .jfm-line > span { display: inline-block; }
.jfm-hero__title em {
  font-family: "Instrument Serif", "New York", ui-serif, Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: 1.12em;
  line-height: 0.9;
  display: inline-block;
  padding: 0 0.06em 0.2em 0.04em;
  margin: 0 0 -0.2em -0.04em;
  background: linear-gradient(100deg, var(--h-accent-text-1) 10%, var(--h-accent-text-2) 90%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.jfm-useful { position: relative; display: inline-block; white-space: nowrap; }
.jfm-useful svg {
  position: absolute; left: -2%; right: -2%; bottom: -0.12em;
  width: 104%; height: 0.32em;
  overflow: visible;
  color: var(--h-orange);
}
.jfm-useful path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: jfm-draw 1s cubic-bezier(0.65, 0, 0.35, 1) 1.1s forwards;
}
@keyframes jfm-draw { to { stroke-dashoffset: 0; } }

.jfm-hero__lede {
  margin: 0 0 2rem;
  max-width: 34rem;
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  line-height: 1.6;
  color: var(--h-ink-2);
  text-wrap: pretty;
}
.jfm-hero__lede strong { color: var(--h-ink); font-weight: 600; }

.jfm-hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.25rem; }

.jfm-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.55rem;
  height: 3.25rem; padding: 0 1.5rem;
  border-radius: 999px;
  font-size: 1rem; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.jfm-btn svg { width: 18px; height: 18px; transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.jfm-btn:hover svg { transform: translateX(4px); }
.jfm-btn:active { transform: scale(0.97); }
.jfm-btn:focus-visible { outline: 2px solid var(--h-orange); outline-offset: 3px; }

.jfm-btn--primary {
  background: var(--h-btn-bg);
  color: var(--h-btn-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 10px 24px -8px color-mix(in oklab, var(--h-btn-bg) 60%, transparent), 0 2px 4px rgba(11, 31, 63, 0.12);
}
.jfm-btn--primary::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}
[data-theme="dark"] .jfm-btn--primary::after { background: linear-gradient(110deg, transparent 30%, rgba(247, 134, 42, 0.35) 50%, transparent 70%); }
.jfm-btn--primary:hover { transform: translateY(-2px); }
.jfm-btn--primary:hover::after { transform: translateX(120%); }
.jfm-btn__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--h-orange);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--h-orange) 60%, transparent);
  animation: jfm-pulse 2.4s ease-out infinite;
}
@keyframes jfm-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--h-orange) 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 9px transparent; }
}

.jfm-btn--ghost {
  color: var(--h-ink);
  background: var(--h-card);
  border: 1px solid var(--h-line-strong);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
.jfm-btn--ghost:hover { transform: translateY(-2px); border-color: color-mix(in oklab, var(--h-orange) 55%, var(--h-line-strong)); }

/* proof row */
.jfm-proof { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.jfm-avatars { display: flex; list-style: none; margin: 0; padding: 0; }
.jfm-avatars li { margin-left: -10px; transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.jfm-avatars li:first-child { margin-left: 0; }
.jfm-avatars img, .jfm-avatars__more {
  display: block; width: 40px; height: 40px;
  border-radius: 11px;
  box-shadow: 0 0 0 2.5px var(--h-bg), 0 4px 10px -2px rgba(11, 31, 63, 0.25);
}
.jfm-avatars__more {
  display: grid; place-items: center;
  background: var(--h-card-solid); color: var(--h-ink);
  font-size: 0.8rem; font-weight: 700;
}
.jfm-proof:hover .jfm-avatars li { transform: translateX(calc(var(--i) * 4px)); }
.jfm-proof__text { margin: 0; font-size: 0.9rem; line-height: 1.45; color: var(--h-ink-2); }
.jfm-proof__text strong { display: block; color: var(--h-ink); font-size: 0.95rem; font-weight: 650; }

/* ---------- Stage ---------- */
.jfm-stage {
  position: relative;
  z-index: 1;
  container-type: inline-size;
  display: grid;
  justify-items: center;
  padding-block: 1rem 0;
}
.jfm-stage__glow {
  position: absolute;
  left: 50%; top: 46%;
  width: 160cqi; aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--jfm-accent) 62%, transparent) 0%, color-mix(in oklab, var(--jfm-accent) 32%, transparent) 30%, color-mix(in oklab, var(--jfm-accent) 10%, transparent) 50%, transparent 68%);
  filter: blur(30px);
  opacity: 0.85;
  transition: --jfm-accent 1.1s ease;
  pointer-events: none;
}
.jfm-stage__ring {
  position: absolute; left: 50%; top: 46%;
  width: 88cqi; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%;
  border: 1px dashed color-mix(in oklab, var(--jfm-accent) 35%, var(--h-line-strong));
  opacity: 0.9;
  animation: jfm-rotate 80s linear infinite;
  pointer-events: none;
}
.jfm-stage__ring::before {
  content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%;
  top: 14%; left: 14%;
  background: var(--jfm-accent);
  box-shadow: 0 0 16px 2px var(--jfm-accent);
  transition: background-color 1s ease;
}
@keyframes jfm-rotate { to { rotate: 360deg; } }

/* phone */
.jfm-phone-wrap {
  position: relative;
  width: clamp(230px, 52cqi, 318px);
  animation: jfm-bob 7s ease-in-out infinite;
  perspective: 1400px;
}
@keyframes jfm-bob { 50% { translate: 0 -10px; } }
.jfm-phone-wrap::after {
  content: "";
  position: absolute; left: 12%; right: 12%; bottom: -7%;
  height: 7%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(11, 31, 63, 0.35), transparent);
  filter: blur(6px);
  animation: jfm-shadow 7s ease-in-out infinite;
  z-index: -1;
}
[data-theme="dark"] .jfm-stage__glow { opacity: 1; }
[data-theme="dark"] .jfm-phone-wrap::after { background: radial-gradient(closest-side, rgba(0, 0, 0, 0.7), transparent); }
@keyframes jfm-shadow { 50% { transform: scale(0.88); opacity: 0.7; translate: 0 10px; } }

.jfm-phone {
  --rx: 0deg; --ry: 0deg;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(calc(4deg + var(--rx))) rotateY(calc(-10deg + var(--ry))) rotateZ(1.5deg);
  transition: transform 0.2s ease-out;
  border-radius: 17.5% / 8.2%;
  padding: 3.8%;
  background:
    linear-gradient(145deg, #4a4e57 0%, #1b1d22 18%, #0c0d10 50%, #26282e 82%, #50545d 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.12),
    inset 0 0 0 4px #0a0b0d,
    0 2px 2px rgba(0, 0, 0, 0.1),
    30px 40px 80px -30px rgba(11, 31, 63, 0.55),
    60px 80px 140px -40px color-mix(in oklab, var(--jfm-accent) 45%, transparent);
}
[data-theme="dark"] .jfm-phone {
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.16),
    inset 0 0 0 4px #0a0b0d,
    30px 40px 80px -30px rgba(0, 0, 0, 0.8),
    60px 80px 140px -40px color-mix(in oklab, var(--jfm-accent) 55%, transparent);
}
/* side buttons */
.jfm-phone::before, .jfm-phone::after {
  content: ""; position: absolute; width: 3px; border-radius: 2px;
  background: linear-gradient(90deg, #15161a, #3a3d44);
}
.jfm-phone::before { left: -3px; top: 20%; height: 7%; box-shadow: 0 calc(var(--h, 1) * 3.2em) 0 #2a2c31; }
.jfm-phone::after { right: -3px; top: 26%; height: 11%; background: linear-gradient(270deg, #15161a, #3a3d44); }

.jfm-phone__screen {
  position: relative;
  aspect-ratio: 660 / 1428;
  border-radius: 14% / 6.5%;
  overflow: hidden;
  background: #000;
  transform: translateZ(0);
  /* Keep crossfading screenshots inside the rounded screen. overflow + border-radius alone
     does not clip composited (scaled/blurred) children inside a 3D-transformed parent. */
  isolation: isolate;
  clip-path: inset(0 round 14% / 6.5%);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
          mask-image: radial-gradient(white, black);
}
.jfm-phone__screen img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  border-radius: inherit;
  opacity: 0;
  scale: 1.06;
  filter: blur(6px) saturate(1.1);
  transition: opacity 0.75s cubic-bezier(0.2, 0.8, 0.2, 1), scale 1.1s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.75s ease;
}
.jfm-phone__screen img.is-active { opacity: 1; scale: 1; filter: none; }
.jfm-phone__island {
  position: absolute; top: 2.6%; left: 50%; translate: -50% 0;
  width: 31%; height: 3.6%;
  border-radius: 999px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  z-index: 2;
}
.jfm-phone__island::after {
  content: ""; position: absolute; right: 14%; top: 50%; translate: 0 -50%;
  width: 18%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #2a3450, #07090f 60%);
}
.jfm-phone__glare {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 22%, transparent 38%, transparent 70%, rgba(255, 255, 255, 0.05) 100%);
  mix-blend-mode: screen;
}

/* floating cards */
.jfm-card {
  position: absolute;
  z-index: 4;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 0.95rem 0.7rem 0.7rem;
  border-radius: 18px;
  background: var(--h-card);
  border: 1px solid var(--h-line);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
          backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--h-shadow);
  color: var(--h-ink);
  text-decoration: none;
  translate: calc(var(--px) * var(--depth, 14px)) calc(var(--py) * var(--depth, 14px));
  transition: translate 0.25s ease-out, border-color 0.3s ease, background-color 0.3s ease;
}
.jfm-card__body { transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.35s ease; }
.jfm-card.is-swapping .jfm-card__body { opacity: 0; transform: translateY(6px); filter: blur(4px); }

.jfm-card--app { left: -2%; bottom: 17%; --depth: 22px; min-width: 214px; }
.jfm-card--app:hover { border-color: color-mix(in oklab, var(--jfm-accent) 60%, var(--h-line)); }
.jfm-card--app:focus-visible { outline: 2px solid var(--h-orange); outline-offset: 3px; }
.jfm-card--app .jfm-card__body { display: flex; align-items: center; gap: 0.75rem; }
.jfm-card__icon { width: 46px; height: 46px; border-radius: 12px; box-shadow: 0 4px 12px -3px rgba(0, 0, 0, 0.3); flex-shrink: 0; }
.jfm-card__name { display: block; font-size: 0.95rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.jfm-card__meta { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.15rem; font-size: 0.78rem; color: var(--h-ink-2); }
.jfm-card__cta { color: color-mix(in oklab, var(--jfm-accent) 75%, var(--h-ink)); font-weight: 600; transition: color 1s ease; }
.jfm-card--app svg { width: 14px; height: 14px; margin-left: 0.25rem; color: var(--h-ink-3); transition: transform 0.25s ease; }
.jfm-card--app:hover svg { transform: translateX(3px); }

.jfm-card--stat { right: 0%; top: 13%; --depth: -18px; flex-direction: column; align-items: flex-start; gap: 0.1rem; padding: 0.8rem 1.05rem; }
.jfm-card--stat .jfm-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; }
.jfm-card__label { display: flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--h-ink-3); }
.jfm-card__label i { width: 7px; height: 7px; border-radius: 50%; background: var(--jfm-accent); box-shadow: 0 0 10px var(--jfm-accent); transition: background-color 1s ease; }
.jfm-card__value { font-size: 1.35rem; font-weight: 750; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.jfm-card__sub { font-size: 0.78rem; color: var(--h-ink-2); }

/* decorative floating icons */
.jfm-floater {
  position: absolute; z-index: 0;
  border-radius: 22%;
  box-shadow: 0 16px 30px -12px rgba(11, 31, 63, 0.45);
  translate: calc(var(--px) * var(--depth)) calc(var(--py) * var(--depth));
  transition: translate 0.3s ease-out;
}
.jfm-floater img { display: block; width: 100%; height: 100%; border-radius: inherit; animation: jfm-float 9s ease-in-out infinite; }
.jfm-floater--1 { width: 64px; height: 64px; left: 4%; top: 6%; --depth: -26px; rotate: -12deg; }
.jfm-floater--2 { width: 52px; height: 52px; right: 6%; bottom: 8%; --depth: 30px; rotate: 10deg; }
.jfm-floater--3 { width: 40px; height: 40px; right: 20%; top: -2%; --depth: -14px; rotate: 8deg; opacity: 0.9; filter: blur(0.5px); }
.jfm-floater--2 img { animation-delay: -3s; animation-duration: 11s; }
.jfm-floater--3 img { animation-delay: -6s; animation-duration: 8s; }
@keyframes jfm-float { 50% { transform: translateY(-12px) rotate(3deg); } }

/* controls */
.jfm-controls {
  position: relative; z-index: 5;
  display: flex; align-items: center; gap: 0.75rem;
  margin-top: 2rem;
  padding: 0.45rem 0.5rem 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--h-card);
  border: 1px solid var(--h-line);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
}
.jfm-dots { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.jfm-dot {
  position: relative;
  width: 22px; height: 22px; padding: 0;
  border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.jfm-dot::before {
  content: ""; width: 100%; height: 4px; border-radius: 4px;
  background: var(--h-line-strong);
  transition: background-color 0.3s ease;
}
.jfm-dot::after {
  content: ""; position: absolute; left: 0; top: 50%; translate: 0 -50%;
  height: 4px; border-radius: 4px;
  width: calc(var(--jfm-progress) * 100%);
  background: var(--h-ink);
}
.jfm-dot[aria-current="true"] { width: 40px; }
.jfm-dot.is-done::after { --jfm-progress: 1; }
.jfm-dot[aria-current="true"]::after { animation: jfm-fill var(--jfm-dur, 5s) linear forwards; }
.jfm-stage.is-paused .jfm-dot[aria-current="true"]::after { animation-play-state: paused; }
.jfm-stage.is-static .jfm-dot[aria-current="true"]::after { animation: none; --jfm-progress: 1; }
@keyframes jfm-fill { from { --jfm-progress: 0; } to { --jfm-progress: 1; } }
.jfm-dot { transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.jfm-dot:hover::before { background: var(--h-ink-3); }
.jfm-dot:focus-visible { outline: 2px solid var(--h-orange); outline-offset: 2px; border-radius: 6px; }

.jfm-toggle {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--h-line-strong);
  background: var(--h-card-solid);
  color: var(--h-ink);
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.jfm-toggle:hover { transform: scale(1.06); border-color: var(--h-orange); }
.jfm-toggle:focus-visible { outline: 2px solid var(--h-orange); outline-offset: 2px; }
.jfm-toggle svg { width: 14px; height: 14px; }
.jfm-toggle .i-play { display: none; }
.jfm-stage.is-paused .jfm-toggle .i-play,
.jfm-stage.is-static .jfm-toggle .i-play { display: block; }
.jfm-stage.is-paused .jfm-toggle .i-pause,
.jfm-stage.is-static .jfm-toggle .i-pause { display: none; }

/* ---------- Marquee ---------- */
.jfm-marquee {
  position: relative; z-index: 2;
  margin-top: clamp(1.75rem, 3.5vw, 3rem);
  padding-block: 0.5rem 3rem;
  display: grid; gap: 1rem;
}
.jfm-marquee__label {
  text-align: center;
  font-size: 0.75rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--h-ink-3);
}
.jfm-marquee__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.jfm-marquee__track { display: flex; width: max-content; animation: jfm-marquee 48s linear infinite; }
.jfm-marquee__viewport:hover .jfm-marquee__track,
.jfm-marquee__viewport:focus-within .jfm-marquee__track { animation-play-state: paused; }
.jfm-marquee ul { display: flex; gap: 0.75rem; list-style: none; margin: 0; padding: 0 0.375rem; }
.jfm-marquee a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 1rem 0.45rem 0.45rem;
  border-radius: 999px;
  background: var(--h-card);
  border: 1px solid var(--h-line);
  color: var(--h-ink);
  font-size: 0.92rem; font-weight: 600; letter-spacing: -0.01em;
  white-space: nowrap; text-decoration: none;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.jfm-marquee a:hover { border-color: color-mix(in oklab, var(--h-orange) 55%, var(--h-line)); transform: translateY(-2px); }
.jfm-marquee a:focus-visible { outline: 2px solid var(--h-orange); outline-offset: 2px; }
.jfm-marquee img { width: 30px; height: 30px; border-radius: 8px; }
.jfm-marquee small { font-weight: 500; color: var(--h-ink-3); font-size: 0.8rem; }
@keyframes jfm-marquee { to { transform: translateX(-50%); } }

/* ---------- Entrance choreography ---------- */
@keyframes jfm-rise { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } }
@keyframes jfm-line { from { transform: translateY(105%); } }
@keyframes jfm-stage-in { from { opacity: 0; transform: translateY(30px) scale(0.96); filter: blur(10px); } }
.jfm-eyebrow { animation: jfm-rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.05s both; }
.jfm-hero__title .jfm-line > span { animation: jfm-line 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.jfm-hero__title .jfm-line:nth-child(1) > span { animation-delay: 0.15s; }
.jfm-hero__title .jfm-line:nth-child(2) > span { animation-delay: 0.28s; }
.jfm-hero__lede { animation: jfm-rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.45s both; }
.jfm-hero__ctas { animation: jfm-rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.58s both; }
.jfm-proof { animation: jfm-rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.7s both; }
.jfm-stage { animation: jfm-stage-in 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both; }
.jfm-card--app { animation: jfm-rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.95s both; }
.jfm-card--stat { animation: jfm-rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 1.1s both; }
.jfm-marquee { animation: jfm-rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.9s both; }

/* ---------- Scroll-driven exit (progressive) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .jfm-hero__inner {
      animation: jfm-exit linear both;
      animation-timeline: view();
      animation-range: exit 10% exit 100%;
    }
    @keyframes jfm-exit {
      to { opacity: 0.2; transform: translateY(-40px) scale(0.98); }
    }
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .jfm-hero__inner { grid-template-columns: 1fr; min-height: 0; text-align: left; }
  .jfm-hero__copy { max-width: 640px; }
  .jfm-hero__title { font-size: clamp(2.6rem, 0.9rem + 6.4vw, 4.6rem); }
  .jfm-stage { max-width: 520px; width: 100%; margin-inline: auto; }
}
@media (max-width: 560px) {
  .jfm-hero { padding-top: 2.25rem; }
  .jfm-hero__title .jfm-line { white-space: normal; }
  .jfm-hero__title { margin-top: 0; }
  .jfm-eyebrow { font-size: 0.8rem; }
  .jfm-eyebrow__muted { display: none; }
  .jfm-eyebrow__sep { display: none; }
  .jfm-btn { height: 3.05rem; padding: 0 1.25rem; font-size: 0.95rem; flex: 1 1 auto; justify-content: center; }
  .jfm-card--app { left: -1%; bottom: 13%; min-width: 0; padding: 0.55rem 0.75rem 0.55rem 0.55rem; }
  .jfm-card__icon { width: 38px; height: 38px; border-radius: 10px; }
  .jfm-card--stat { right: -1%; top: 9%; padding: 0.6rem 0.8rem; }
  .jfm-card__value { font-size: 1.1rem; }
  .jfm-floater--1 { width: 48px; height: 48px; }
  .jfm-floater--2 { width: 40px; height: 40px; }
  .jfm-floater--3 { display: none; }
}

/* ---------- Motion & contrast preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .jfm-hero *, .jfm-hero *::before, .jfm-hero *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
  }
  .jfm-marquee__viewport { overflow-x: auto; }
  .jfm-phone { transform: rotateY(-8deg) rotateX(3deg); }
}
@media (prefers-contrast: more) {
  .jfm-hero { --h-line: rgba(11, 31, 63, 0.35); --h-card: var(--h-card-solid); }
  .jfm-hero__grain, .jfm-hero__grid { display: none; }
}
@media print {
  .jfm-hero__bg, .jfm-stage, .jfm-marquee { display: none; }
}
