/* Hezel — extra styles for elements added after base */

/* Replay stack in feature tile */
.replay-stack {
  position: absolute;
  bottom: -10px;
  right: -20px;
  display: flex;
  gap: -40px;
  pointer-events: none;
}
.replay-stack .replay-card {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.05;
  text-align: center;
  letter-spacing: -0.02em;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transform-origin: center;
}
.replay-stack .replay-card:nth-child(1) { transform: rotate(-10deg) translate(0, 10px); }
.replay-stack .replay-card:nth-child(2) { transform: rotate(-4deg) translate(-12px, 4px); margin-left: -28px; }
.replay-stack .replay-card:nth-child(3) { transform: rotate(2deg); margin-left: -28px; }
.replay-stack .replay-card:nth-child(4) { transform: rotate(7deg) translate(-12px, 4px); margin-left: -28px; }
.replay-stack .replay-card:nth-child(5) { transform: rotate(12deg) translate(0, 10px); margin-left: -28px; }

/* Privacy strip */
.privacy-strip {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Fix airdrop art rings centering */
.airdrop-art .ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

/* Dim hero meta separator on small screens */
@media (max-width: 560px) {
  .hero-meta span + span { margin-left: 12px; display: inline-block; }
  .hero-meta { display: flex; flex-direction: column; gap: 6px; }
  .hero-meta span + span { margin-left: 0; }
}

/* Hero glow should not bleed into overflow */
.hero { min-height: 100vh; display: flex; align-items: center; }
.hero .hero-inner { width: 100%; }

/* Mobile: nav (fixed at top, ~68px tall) uses up the top of the viewport,
   so the hero's 180px desktop top-padding creates a huge dead gap before
   the icon. Tighten the padding and start the content from the top edge
   so the icon sits a normal eyebrow's distance below the nav pill. */
@media (max-width: 720px) {
  .hero {
    padding: 128px 0 60px;
    align-items: flex-start;
  }
}

/* ==================================================================
   Apple-style horizontal highlights scroller
   ================================================================== */
.hx-wrap {
  padding: 120px 0 80px;
  background: var(--bg);
}

.hx-head {
  padding-bottom: 48px;
}

.hx-track-outer {
  position: relative;
  /* Mask the peek edges with a soft fade so cards bleed in smoothly */
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 60px,
    #000 calc(100% - 60px),
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 60px,
    #000 calc(100% - 60px),
    transparent 100%
  );
}

.hx-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  padding: 10px 0 40px;
}
.hx-track::-webkit-scrollbar { display: none; }

/* Match the container's left/right gutter so the FIRST card starts at
   the design's content left edge and the LAST card ends at the right */
.hx-edge-spacer {
  flex: 0 0 max(32px, calc((100vw - 1200px) / 2));
  scroll-snap-align: none;
}

.hx-card {
  flex: 0 0 min(920px, 85vw);
  min-height: 560px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 28px;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hx-card .tile-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
body.labels-sans .hx-card .tile-tag {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 13px;
}
.hx-card h3 {
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--text);
  max-width: 20ch;
  text-wrap: balance;
}
.hx-card p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-dim);
  margin: 0;
  max-width: 38ch;
}

.hx-card-copy {
  padding: 48px 48px 0;
  position: relative;
  z-index: 2;
}
.hx-card-copy-right {
  padding: 48px 48px 48px 0;
}

/* Variant: phone centered, peeking up from the bottom */
.hx-card-phone .hx-phone-center {
  position: relative;
  margin-top: auto;
  display: flex;
  justify-content: center;
  /* Let the phone overflow the bottom so it feels like it peeks up */
  padding-top: 20px;
  transform: translateY(40px);
}
.hx-card-phone .hx-phone-center .device {
  transform: translateY(20px);
}

/* Variant: split — one side is a phone or art, other is copy */
.hx-card-split {
  flex-direction: row;
  align-items: center;
}
.hx-card-split .hx-card-copy {
  flex: 1;
  padding: 48px;
}
.hx-card-split .hx-phone-left,
.hx-card-split .hx-airdrop-art {
  flex: 0 0 auto;
  width: 360px;
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: stretch;
}
.hx-card-split .hx-airdrop-art {
  position: relative;
}
.hx-card-split .hx-airdrop-art .airdrop-art {
  position: relative;
  width: 280px;
  height: 280px;
}

/* When phone is on the left, copy is on the right */
.hx-card-split:has(.hx-phone-left:first-child) .hx-card-copy {
  text-align: left;
}

/* Replay card — colorful accent */
.hx-card-replay {
  flex-direction: row;
  align-items: center;
  background:
    radial-gradient(ellipse at 90% 50%, oklch(0.3 0.15 20 / 0.4) 0%, transparent 60%),
    rgba(255, 255, 255, 0.04);
}
.hx-card-replay .hx-card-copy {
  flex: 1;
  padding: 48px;
}
.hx-card-replay .hx-replay-stack {
  flex: 0 0 auto;
  width: 380px;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hx-card-replay .hx-replay-stack .replay-card {
  width: 100px;
  height: 100px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  position: absolute;
}
.hx-card-replay .hx-replay-stack .replay-card:nth-child(1) { transform: rotate(-12deg) translate(-120px, 20px); }
.hx-card-replay .hx-replay-stack .replay-card:nth-child(2) { transform: rotate(-6deg) translate(-60px, -10px); }
.hx-card-replay .hx-replay-stack .replay-card:nth-child(3) { transform: rotate(0deg); z-index: 3; }
.hx-card-replay .hx-replay-stack .replay-card:nth-child(4) { transform: rotate(6deg) translate(60px, -10px); }
.hx-card-replay .hx-replay-stack .replay-card:nth-child(5) { transform: rotate(12deg) translate(120px, 20px); }

/* Privacy card — quieter */
.hx-card-privacy {
  background: linear-gradient(135deg, #0e0e0e 0%, #050505 100%);
  justify-content: center;
}
.hx-card-privacy .hx-card-copy {
  padding: 64px 56px;
}
.hx-card-privacy h3 {
  font-size: 40px;
}

/* Nav controls — bottom right */
.hx-controls {
  padding-top: 16px;
}
.hx-controls-inner {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.hx-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.hx-nav:hover { background: rgba(255, 255, 255, 0.14); }
.hx-nav:disabled { opacity: 0.3; cursor: default; }
.hx-nav:disabled:hover { background: rgba(255, 255, 255, 0.08); }

/* Responsive: collapse split cards to stacked at narrow widths */
@media (max-width: 780px) {
  .hx-card { flex-basis: 92vw; min-height: 640px; }
  .hx-card-split,
  .hx-card-replay {
    flex-direction: column;
    align-items: stretch;
  }
  .hx-card-split .hx-phone-left,
  .hx-card-split .hx-airdrop-art,
  .hx-card-replay .hx-replay-stack {
    width: 100%;
    height: 280px;
  }
  .hx-card h3 { font-size: 28px; }
  .hx-card-copy,
  .hx-card-split .hx-card-copy,
  .hx-card-replay .hx-card-copy,
  .hx-card-privacy .hx-card-copy {
    padding: 40px 32px 20px;
  }
}


/* ==================================================================
   Story — sticky-pin scrolling chapters (replaces "How it works")
   ================================================================== */
.story {
  min-height: 368vh;
  position: relative;
  padding: 120px 0 0;
}
.story-intro {
  max-width: 1100px;
  margin: 0 auto 120px;
  padding: 0 40px;
  text-align: left;
}
.story-section-title {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.story-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.story-stage {
  width: 100%;
  max-width: 1200px;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 80px;
  align-items: center;
}
.story-copy {
  position: relative;
  height: 420px;
}
.story-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}
.story-card.active {
  opacity: 1;
  pointer-events: auto;
}
.story-card h3 {
  font-family: var(--font-sans);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0 0 24px;
  color: var(--text);
  max-width: 14ch;
  text-wrap: balance;
}
.story-card p {
  font-size: 20px;
  line-height: 1.45;
  color: var(--text-dim);
  max-width: 52ch;
  letter-spacing: -0.005em;
  margin: 0;
}
.story-card .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 999px;
  color: var(--accent-bright);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
  width: fit-content;
}
body.labels-sans .story-card .chip {
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 13px;
  font-weight: 600;
}
body.accent-grey .story-card .chip {
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}

.story-card .story-card-device-mobile { display: none; }

.story-device {
  position: relative;
  display: flex;
  justify-content: center;
}
.story-device .device {
  width: 320px;
}
/* The 4 screens are all <img> children of .device and inherit its
   existing absolute-inset rules (flat or real bezel). We only tweak
   their opacity here. */
.story-device .device > img:not(.device-frame-img) {
  opacity: 0;
  transition: opacity .55s cubic-bezier(.2,.7,.3,1);
}
.story-device .device > img.active {
  opacity: 1;
}

.story-progress {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  background: rgba(28, 28, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 5;
}
.story-progress-dot {
  position: relative;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
  transition:
    width .55s cubic-bezier(.4,.1,.2,1),
    height .55s cubic-bezier(.4,.1,.2,1),
    background .4s ease;
}
.story-progress-dot:hover { background: rgba(255, 255, 255, 0.45); }
.story-progress-dot.active {
  width: 44px;
  height: 8px;
  background: rgba(255, 255, 255, 0.22);
}
.story-progress-fill {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  clip-path: inset(0 calc((1 - var(--fill, 0)) * 100%) 0 0 round 999px);
  transition: opacity .3s ease;
}

/* ==================================================================
   Use-cases horizontal carousel (replaces bento features)
   ================================================================== */
.carousel-section {
  padding: 140px 0;
  overflow: hidden;
}
@media (max-width: 720px) {
  .carousel-section { padding: 48px 0 80px; }
}
.carousel-head {
  max-width: 1120px;
  margin: 0 auto 56px;
  padding: 0 24px;
}
.carousel-head .section-title .muted { color: var(--text-dim); }

.carousel-track-wrap {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 0 40px;
  padding-left: max(24px, calc((100vw - 1120px) / 2));
  scroll-padding-left: max(24px, calc((100vw - 1120px) / 2));
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.carousel-track-wrap::-webkit-scrollbar { display: none; }
.carousel-track {
  display: flex;
  gap: 24px;
  width: fit-content;
}
.carousel-track::after {
  content: "";
  flex: 0 0 auto;
  width: calc(max(24px, (100vw - 1120px) / 2) - 24px);
}
.use-card {
  width: 440px;
  min-height: 560px;
  scroll-snap-align: start;
  border-radius: 28px;
  padding: 44px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: none;
  background: rgba(120, 120, 128, 0.16);
  color: inherit;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.use-card:hover,
.use-card:focus-visible {
  background: rgba(120, 120, 128, 0.22);
  transform: translateY(-2px);
  outline: none;
}
.use-card-1,
.use-card-2,
.use-card-3,
.use-card-4 {
  background: rgba(120, 120, 128, 0.16);
}
.use-card .uc-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-bright);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-feature-settings: "tnum";
}
.use-card-1 .uc-num { color: oklch(0.78 0.18 240); }  /* blue */
.use-card-2 .uc-num { color: rgba(235, 235, 240, 0.62); } /* grey */
.use-card-3 .uc-num { color: oklch(0.78 0.22 348); }  /* pink */
.use-card-4 .uc-num { color: oklch(0.78 0.18 55); }   /* orange */
body.labels-sans .use-card .uc-num {
  font-family: var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
}
.use-card h3 {
  font-family: var(--font-sans);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 14px;
  max-width: 14ch;
  color: var(--text);
  text-wrap: balance;
}
.use-card p {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.5;
  max-width: 34ch;
  margin: 0 0 auto;
}
.use-card .uc-visual {
  margin-top: 32px;
  height: 220px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-nav {
  max-width: 1120px;
  margin: 24px auto 0;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  display: flex;
  justify-content: center;
  gap: 10px;
}
.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, opacity .2s;
  color: rgba(245, 245, 247, 0.7);
  border: none;
  cursor: pointer;
}
.carousel-btn:hover { background: rgba(255,255,255,0.14); color: rgba(255,255,255,0.95); }
.carousel-btn:disabled { opacity: 0.3; cursor: default; }
.carousel-btn:disabled:hover { background: rgba(255,255,255,0.08); }

/* ---- Use-card decorative visuals ---- */

/* ===== Continuous (squircle) corners ===== */
.pv-icon-pause span,
.fv-row .fv-art,
.rv-card {
  corner-shape: squircle;
  -webkit-corner-shape: squircle;
}
.pv-icon-pause span { border-radius: 18px; }
.fv-row .fv-art { border-radius: 7px; }
.rv-card { border-radius: 28px; }
.use-card-1 { position: relative; overflow: hidden; }
.use-card-1 .uc-visual {
  margin-top: 32px;
  height: 220px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.use-card-1 .airdrop-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.airdrop-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(120, 160, 220, 0.22);
  transform-origin: center;
  animation: airdrop-ring-pulse 2.4s cubic-bezier(.4,.1,.2,1) infinite;
}
.airdrop-ring.r1 { width: 180px; height: 180px; animation-delay: 0s; }
.airdrop-ring.r2 { width: 280px; height: 280px; border-color: rgba(120, 160, 220, 0.16); animation-delay: 0.6s; }
.airdrop-ring.r3 { width: 380px; height: 380px; border-color: rgba(120, 160, 220, 0.11); animation-delay: 1.2s; }
.airdrop-icon {
  position: absolute;
  width: 100px; height: 100px;
  filter: drop-shadow(0 8px 20px rgba(70, 130, 255, 0.6)) drop-shadow(0 0 30px rgba(90, 150, 255, 0.4)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8));
  animation: airdrop-icon-pulse 2.4s cubic-bezier(.4,.1,.2,1) infinite;
}

@keyframes airdrop-ring-pulse {
  0%   { transform: scale(0.55); opacity: 0; }
  15%  { opacity: 1; }
  70%  { opacity: 0.15; }
  100% { transform: scale(1.1); opacity: 0; }
}
@keyframes airdrop-icon-pulse {
  0%, 100% { filter: drop-shadow(0 8px 20px rgba(70, 130, 255, 0.6)) drop-shadow(0 0 30px rgba(90, 150, 255, 0.4)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8)); }
  50%      { filter: drop-shadow(0 8px 24px rgba(70, 130, 255, 0.8)) drop-shadow(0 0 50px rgba(90, 150, 255, 0.65)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8)); }
}
@media (prefers-reduced-motion: reduce) {
  .airdrop-ring, .airdrop-icon { animation: none; }
}

/* Pause visual */
.pause-visual {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
}
.pv-icon {
  position: relative;
  width: 140px; height: 140px;
  display: flex; align-items: center; justify-content: center;
}
.pv-icon-play {
  position: absolute;
  width: 100%; height: 100%;
  filter: drop-shadow(0 16px 40px rgba(0,0,0,0.5));
  opacity: 1;
  transform: scale(1);
  transition: opacity .45s ease, transform .55s cubic-bezier(.5,0,.3,1);
}
.pv-icon-pause {
  position: absolute;
  display: flex;
  gap: 18px;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity .45s ease .25s, transform .55s cubic-bezier(.5,0,.3,1) .25s;
}
.pv-icon-pause span {
  display: block;
  width: 36px; height: 120px;
  border-radius: 16px;
  background: linear-gradient(180deg, #e8e8ea 0%, #b4b4b8 50%, #7a7a7e 100%);
  box-shadow:
    0 16px 40px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -1px 0 rgba(0,0,0,0.2);
}
.use-card-2.uc-in-view .pv-icon-play {
  opacity: 0;
  transform: scale(0.7);
  transition-delay: 0s, 0s;
}
.use-card-2.uc-in-view .pv-icon-pause {
  opacity: 1;
  transform: scale(1);
}
.pv-label {
  position: relative;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  min-width: 110px;
  text-align: center;
  height: 1.1em;
}
.pv-label-from,
.pv-label-to {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .4s ease, transform .5s cubic-bezier(.5,0,.3,1);
}
.pv-label-from {
  opacity: 1;
  transform: translateY(0);
}
.pv-label-to {
  opacity: 0;
  transform: translateY(8px);
}
.use-card-2.uc-in-view .pv-label-from {
  opacity: 0;
  transform: translateY(-8px);
}
.use-card-2.uc-in-view .pv-label-to {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .15s, .15s;
}
body.labels-sans .pv-label {
  font-family: var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
}

/* Fresh — curated playlist, culled tracks fade away */
.fresh-visual {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}

/* Playlist on use-card-3 spans the full card behind the text, masked at the top */
.use-card-3 .uc-visual { position: static; }
.use-card-3 .fresh-visual.fresh-playlist {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 32px 36px;
  pointer-events: none;
}
/* Overlay that darkens the top of the playlist behind the text — fades out
   in sync with the row-collapse animation. */
.use-card-3 .fresh-visual.fresh-playlist::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    var(--card-surface) 0%,
    var(--card-surface) 45%,
    rgba(31, 31, 33, 0.5) 60%,
    rgba(31, 31, 33, 0.15) 75%,
    transparent 88%
  );
  opacity: 1;
  /* Default (losing focus / initial): no delay */
  transition: opacity .5s ease;
  pointer-events: none;
}
/* Fading out (gaining focus): delay so it syncs with row collapse */
.use-card-3.uc-in-view .fresh-visual.fresh-playlist::before {
  opacity: 0;
  transition: opacity .9s ease 1.2s;
}
.use-card-3 {
  --card-surface: rgb(31, 31, 33);
}
.use-card-3.uc-in-view .fresh-visual.fresh-playlist::before {
  opacity: 0;
}
.use-card-3 > .uc-num,
.use-card-3 > h3,
.use-card-3 > p { position: relative; z-index: 1; }
/* Toggle between the two visuals */
body.fresh-playlist .fresh-playlist { display: flex; }
body.fresh-playlist .fresh-grid { display: none; }
body.fresh-grid .fresh-playlist { display: none; }
body.fresh-grid .fresh-grid { display: flex; }

.fv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 200px;
}
.fv-tile {
  aspect-ratio: 1;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  opacity: 0.3;
}
.fv-tile.kept {
  opacity: 1;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-deep));
  box-shadow: 0 4px 18px var(--accent-glow);
}
.fv-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 256px;
}
.fv-list > .fv-row + .fv-row { margin-top: 8px; }
.fv-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  position: relative;
  transition:
    opacity .5s ease,
    transform .55s cubic-bezier(.5,.05,.4,.95),
    max-height .55s cubic-bezier(.5,.05,.4,.95),
    margin .55s cubic-bezier(.5,.05,.4,.95),
    padding .55s cubic-bezier(.5,.05,.4,.95),
    filter .5s ease;
  max-height: 60px;
}

/* When the card enters focus, the "removed" rows collapse out of the list */
.use-card-3.uc-in-view .fv-row.removed {
  opacity: 0;
  transform: translateX(-24px);
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  filter: blur(2px);
  pointer-events: none;
  transition-delay: .35s, .35s, .85s, .85s, .85s, .35s;
}
.fv-row .fv-art {
  width: 28px; height: 28px;
  border-radius: 5px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.1);
}
.fv-row .fv-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 80%;
}
.fv-row .fv-line {
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
}
.fv-row .fv-line.short { width: 60%; background: rgba(255,255,255,0.12); }
.fv-row.removed {
  opacity: 0.32;
}
.fv-row.kept .fv-art.art-1 {
  background:
    radial-gradient(120% 100% at 15% 15%, #ffb3d6 0%, transparent 55%),
    radial-gradient(120% 100% at 85% 85%, #6b1f55 0%, transparent 60%),
    linear-gradient(135deg, #ff7ab6, #b23a5a);
}
.fv-row.kept .fv-art.art-2 {
  background:
    radial-gradient(120% 100% at 15% 15%, #b6e0ff 0%, transparent 55%),
    radial-gradient(120% 100% at 85% 85%, #1a2f9c 0%, transparent 60%),
    linear-gradient(135deg, #6ec3ff, #2b5cff);
}
.fv-row.kept .fv-art.art-3 {
  background:
    radial-gradient(120% 100% at 15% 15%, #fff0b3 0%, transparent 55%),
    radial-gradient(120% 100% at 85% 85%, #b2451f 0%, transparent 60%),
    linear-gradient(135deg, #ffd36b, #ff9256);
}
.fv-row.kept .fv-art.art-4 {
  background:
    radial-gradient(120% 100% at 15% 15%, #d4ffd9 0%, transparent 55%),
    radial-gradient(120% 100% at 85% 85%, #1c5a2c 0%, transparent 60%),
    linear-gradient(135deg, #5be09b, #1f8a4a);
}
.fv-row.kept .fv-art.art-5 {
  background:
    radial-gradient(120% 100% at 15% 15%, #e8d4ff 0%, transparent 55%),
    radial-gradient(120% 100% at 85% 85%, #3a1170 0%, transparent 60%),
    linear-gradient(135deg, #b18bff, #6b2ed1);
}
.fv-row.kept .fv-line { background: rgba(255,255,255,0.75); }
.fv-row.kept .fv-line.short { background: rgba(255,255,255,0.38); }

/* Replay — stacked year cards */
.replay-visual {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.rv-stack {
  position: relative;
  width: 160px; height: 160px;
}
.rv-card {
  position: absolute; inset: 0;
  border-radius: 20px;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 16px;
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.92);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.12);
  /* Start collapsed in a tight stack — fan out when the card comes into focus */
  transform: translate(0, 0) rotate(0deg);
  transition: transform .8s cubic-bezier(.2,.7,.3,1), opacity .5s ease;
}
.rv-card.y2022 { opacity: 0.6; }
.rv-card.y2023 { opacity: 0.85; }
.rv-card.y2024 { opacity: 1; }
.rv-card.y2022 {
  background:
    radial-gradient(120% 100% at 20% 10%, #ff7ab6 0%, transparent 55%),
    radial-gradient(120% 100% at 90% 80%, #6b5bff 0%, transparent 60%),
    linear-gradient(135deg, #3b1f4a, #1a0f24);
}
.rv-card.y2023 {
  background:
    radial-gradient(120% 100% at 20% 10%, #9fe4ff 0%, transparent 55%),
    radial-gradient(120% 100% at 90% 85%, #4a7bff 0%, transparent 60%),
    linear-gradient(135deg, #2b5ea8, #0e2a66);
}
.rv-card.y2024 {
  background:
    radial-gradient(120% 100% at 20% 10%, #8fff9e 0%, transparent 55%),
    radial-gradient(120% 100% at 90% 85%, #2fa86b 0%, transparent 60%),
    linear-gradient(135deg, #2d5c3a, #0f2a1a);
}
.rv-card.y2025 {
  background:
    radial-gradient(120% 100% at 20% 10%, #ffd36b 0%, transparent 55%),
    radial-gradient(120% 100% at 90% 85%, #ff5a8a 0%, transparent 60%),
    linear-gradient(135deg, #ff9256, #b23a5a);
}

/* Fan out when this card is in view */
.use-card-4.uc-in-view .rv-card.y2022 { transform: translate(-44px, -28px) rotate(-14deg); transition-delay: .35s; }
.use-card-4.uc-in-view .rv-card.y2023 { transform: translate(-22px, -14px) rotate(-7deg); transition-delay: .25s; }
.use-card-4.uc-in-view .rv-card.y2024 { transform: translate(0, 0) rotate(0deg); transition-delay: .15s; }
.use-card-4.uc-in-view .rv-card.y2025 { transform: translate(22px, 14px) rotate(7deg); transition-delay: .05s; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .story { min-height: 0; padding: 80px 0 0; }
  .story-intro { margin-bottom: 56px; padding: 0 24px; }
  .story-pin {
    position: relative;
    top: auto;
    height: auto;
    overflow: visible;
    padding: 0 0 40px;
  }
  .story-stage { grid-template-columns: 1fr; gap: 80px; padding: 0 24px; }
  .story-copy {
    position: static;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 64px;
  }
  .story-card {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .story-device { display: none; }
  .story-progress { display: none; }
  .story-card .story-card-device-mobile {
    display: flex;
    justify-content: center;
    margin-top: 28px;
  }
  .story-card .story-card-device-mobile .device {
    width: 240px;
  }
  .use-card { width: 320px; min-height: 480px; padding: 32px; }
  .use-card h3 { font-size: 28px; }
  .carousel-track-wrap { padding: 10px 0 40px; padding-left: 24px; }
  .carousel-nav { padding: 0 24px; }
}


/* ==================================================================
   Capsule-style eyebrows + chips (matches .ultra-badge)
   Applied to: HOW IT WORKS, WHAT IT DOES, REVIEWS, FAQ eyebrows,
   plus the Back up / Browse / Restore / Export story chips.
   ================================================================== */
.eyebrow.eyebrow-capsule,
.story-card .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: color-mix(in srgb, var(--accent) 14%, rgba(120, 120, 128, 0.12));
  border: none;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-bright);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 24px;
  width: fit-content;
}
body.labels-sans .eyebrow.eyebrow-capsule,
body.labels-sans .story-card .chip {
  font-family: var(--font-sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
}
body.accent-grey .eyebrow.eyebrow-capsule,
body.accent-grey .story-card .chip {
  color: var(--text);
  background: rgba(120, 120, 128, 0.16);
}


/* ==================================================================
   Story progress orientation variants (tweak: progressOrientation)
   default body.progress-horizontal keeps bottom-centered pill
   body.progress-vertical flips to a vertical pill at the left of text
   ================================================================== */
body.progress-vertical .story-progress {
  position: absolute;
  bottom: auto;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  padding: 22px 12px;
  gap: 14px;
}
body.progress-vertical .story-progress-dot {
  width: 8px;
  height: 8px;
}
body.progress-vertical .story-progress-dot.active {
  width: 8px;
  height: 44px;
}
body.progress-vertical .story-progress-fill {
  clip-path: inset(0 0 calc((1 - var(--fill, 0)) * 100%) 0 round 999px);
}
/* Push chapter copy right so the vertical pill has breathing room */
body.progress-vertical .story-stage {
  padding-left: 120px;
}
@media (max-width: 960px) {
  body.progress-vertical .story-progress { display: none; }
  body.progress-vertical .story-stage { padding-left: 24px; }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1.2s cubic-bezier(.2,.7,.3,1) .1s,
                transform 1.2s cubic-bezier(.2,.7,.3,1) .1s;
    will-change: opacity, transform;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}
