/* ============================================================
   Hover Preview — FranchiseShift / Cortex grain frame + scene
   Shared by Vital Wires presentation + proposal.
   ============================================================ */

.hp-hot {
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.hp-hot:focus-visible {
  outline: 2px solid var(--gold, #C9A86A);
  outline-offset: 2px;
}
.stage-list li.hp-hot:hover,
.stage-list li.hp-hot:focus-visible {
  color: var(--ink);
  background: var(--gold-soft, rgba(201, 168, 106, 0.1));
  border-radius: 8px;
  margin-left: -8px;
  margin-right: -8px;
  padding-left: 34px;
  padding-right: 8px;
}
.stage-list li.hp-hot:hover::before,
.stage-list li.hp-hot:focus-visible::before {
  left: 10px;
}
.found .blk.hp-hot {
  cursor: pointer;
}
.found .blk.hp-hot:hover {
  opacity: 1 !important;
  transform: scale(1) !important;
  color: var(--ink) !important;
  border-color: var(--gold) !important;
  animation: none !important;
}
.launchviz .sat.hp-hot,
.loopviz .node.hp-hot,
.funnel .band.hp-hot {
  cursor: pointer;
}
.launchviz .sat.hp-hot:hover,
.loopviz .node.hp-hot:hover {
  border-color: var(--gold);
  color: var(--ink);
}
.funnel .band.hp-hot:hover {
  filter: brightness(1.08);
}

/* Floating card */
.hp-preview {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.55rem;
  width: 240px;
  background: var(--bg, var(--bg-secondary, #ffffff));
  color: var(--ink, var(--text-primary, #1d1d1f));
  border: 1px solid var(--line-2, var(--border-strong, rgba(0, 0, 0, 0.12)));
  border-radius: 16px;
  box-shadow:
    0 20px 48px rgba(10, 10, 10, 0.18),
    0 2px 8px rgba(10, 10, 10, 0.08);
  opacity: 0;
  transform: translateY(4px) scale(0.98);
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.hp-preview__title {
  margin: 0 0 0.2rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, var(--text-primary, #1d1d1f));
  letter-spacing: -0.01em;
}
.hp-preview__blurb {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted, var(--text-secondary, #6e6e73));
  font-weight: 400;
}
.hp-preview.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.hp-preview[data-side="left"].is-entering,
.hp-preview[data-side="left"]:not(.is-visible) {
  transform: translateX(6px) scale(0.98);
}
.hp-preview[data-side="right"].is-entering,
.hp-preview[data-side="right"]:not(.is-visible) {
  transform: translateX(-6px) scale(0.98);
}
.hp-preview.is-visible {
  transform: none;
}

.hp-preview__frame {
  position: relative;
  height: 11.5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.hp-preview--video .hp-preview__frame,
.hp-preview__frame--video {
  height: 13rem;
  background: #0a0a0c;
}
.hp-preview--wide.hp-preview--video .hp-preview__frame {
  height: 14rem;
}

/* Archived grain + illustration — hidden while video plays */
.hp-archive {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}
.hp-preview--fallback .hp-archive {
  opacity: 1;
}
.hp-scene--video {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0c;
}
.hp-scene--video .hp-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hp-preview--fallback .hp-scene--video {
  display: none;
}

.hp-preview__meta {
  padding: 0.1rem 0.35rem 0.25rem;
}

/* Grain field */
.hp-grain {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hp-grain__wash { position: absolute; inset: 0; }

.hp-grain[data-palette="ember"] .hp-grain__wash {
  background:
    radial-gradient(ellipse 90% 70% at 12% 18%, #1e1b4b 0%, transparent 55%),
    radial-gradient(ellipse 80% 75% at 88% 28%, #b91c1c 0%, transparent 52%),
    radial-gradient(ellipse 95% 80% at 28% 92%, #ea580c 0%, #c2410c 35%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 72% 78%, #7f1d1d 0%, transparent 55%),
    linear-gradient(155deg, #0f0a1a 0%, #1a0f24 40%, #2a1218 100%);
}
.hp-grain[data-palette="dusk"] .hp-grain__wash {
  background:
    radial-gradient(ellipse 85% 70% at 18% 22%, #0c4a6e 0%, transparent 55%),
    radial-gradient(ellipse 75% 70% at 92% 32%, #9f1239 0%, transparent 50%),
    radial-gradient(ellipse 95% 80% at 22% 88%, #c2410c 0%, #9a3412 40%, transparent 62%),
    radial-gradient(ellipse 65% 55% at 68% 72%, #4c1d95 0%, transparent 55%),
    linear-gradient(155deg, #0a1628 0%, #1a1028 45%, #1c0f18 100%);
}
.hp-grain[data-palette="midnight"] .hp-grain__wash {
  background:
    radial-gradient(ellipse 85% 70% at 14% 20%, #312e81 0%, transparent 55%),
    radial-gradient(ellipse 80% 75% at 90% 26%, #831843 0%, transparent 52%),
    radial-gradient(ellipse 90% 75% at 30% 90%, #b45309 0%, #92400e 38%, transparent 60%),
    radial-gradient(ellipse 70% 55% at 74% 70%, #1e3a5f 0%, transparent 55%),
    linear-gradient(155deg, #0b0a14 0%, #16102a 42%, #1a1018 100%);
}
.hp-grain[data-palette="seas"] .hp-grain__wash {
  background:
    radial-gradient(ellipse 85% 70% at 10% 20%, #0e7490 0%, transparent 55%),
    radial-gradient(ellipse 75% 70% at 88% 24%, #1d4ed8 0%, transparent 50%),
    radial-gradient(ellipse 90% 75% at 30% 90%, #0f766e 0%, #115e59 40%, transparent 62%),
    radial-gradient(ellipse 65% 55% at 70% 70%, #312e81 0%, transparent 55%),
    linear-gradient(155deg, #061018 0%, #0c1a28 45%, #0a1218 100%);
}
.hp-grain[data-palette="orchard"] .hp-grain__wash {
  background:
    radial-gradient(ellipse 85% 70% at 14% 18%, #3f6212 0%, transparent 55%),
    radial-gradient(ellipse 75% 70% at 90% 30%, #b45309 0%, transparent 50%),
    radial-gradient(ellipse 90% 75% at 24% 88%, #65a30d 0%, #4d7c0f 40%, transparent 62%),
    radial-gradient(ellipse 65% 55% at 72% 72%, #854d0e 0%, transparent 55%),
    linear-gradient(155deg, #0c1208 0%, #1a180c 45%, #141008 100%);
}
.hp-grain[data-palette="slate"] .hp-grain__wash {
  background:
    radial-gradient(ellipse 85% 70% at 16% 20%, #475569 0%, transparent 55%),
    radial-gradient(ellipse 75% 70% at 88% 28%, #64748b 0%, transparent 50%),
    radial-gradient(ellipse 90% 75% at 28% 90%, #334155 0%, #1e293b 40%, transparent 62%),
    radial-gradient(ellipse 65% 55% at 70% 70%, #0f172a 0%, transparent 55%),
    linear-gradient(155deg, #0a0c10 0%, #12161e 45%, #0e1014 100%);
}

.hp-grain__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.5;
  animation: hp-grain-drift 16s ease-in-out infinite;
  will-change: transform;
}
.hp-grain__blob--a {
  width: 54%; height: 44%; top: -8%; right: -5%;
  background: #dc2626;
}
.hp-grain[data-palette="seas"] .hp-grain__blob--a { background: #0891b2; }
.hp-grain[data-palette="orchard"] .hp-grain__blob--a { background: #65a30d; }
.hp-grain[data-palette="slate"] .hp-grain__blob--a { background: #64748b; }
.hp-grain[data-palette="dusk"] .hp-grain__blob--a { background: #be123c; }
.hp-grain[data-palette="midnight"] .hp-grain__blob--a { background: #9f1239; }

.hp-grain__blob--b {
  width: 50%; height: 48%; bottom: -12%; left: -8%;
  background: #f97316;
  animation-delay: -5s;
  opacity: 0.48;
}
.hp-grain[data-palette="seas"] .hp-grain__blob--b { background: #2563eb; }
.hp-grain[data-palette="orchard"] .hp-grain__blob--b { background: #d97706; }
.hp-grain[data-palette="slate"] .hp-grain__blob--b { background: #94a3b8; }

.hp-grain__blob--c {
  width: 40%; height: 36%; top: 35%; left: 30%;
  background: #4c1d95;
  animation-delay: -9s;
  opacity: 0.35;
}
.hp-grain[data-palette="seas"] .hp-grain__blob--c { background: #0f766e; }
.hp-grain[data-palette="orchard"] .hp-grain__blob--c { background: #854d0e; }
.hp-grain[data-palette="slate"] .hp-grain__blob--c { background: #1e293b; }

.hp-grain__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: soft-light;
  opacity: 0.85;
}
.hp-grain__noise {
  position: absolute;
  inset: -20%;
  width: 140%;
  height: 140%;
  mix-blend-mode: overlay;
  pointer-events: none;
  opacity: 0.62;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.35' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 110px 110px;
  animation: hp-grain-shift 8s steps(10) infinite;
}
.hp-grain__noise::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.55;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n2)'/%3E%3C/svg%3E");
  background-size: 70px 70px;
}
.hp-grain__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, transparent 30%),
    linear-gradient(0deg, rgba(10, 10, 10, 0.35) 0%, transparent 45%);
}

@keyframes hp-grain-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-2.5%, 2%) scale(1.04); }
}
@keyframes hp-grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1.5%, 1%); }
  50% { transform: translate(1%, -1.2%); }
  75% { transform: translate(-0.8%, -0.6%); }
  100% { transform: translate(0, 0); }
}

/* Scenes — light chrome on dark grain */
.hp-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.hp-ui {
  position: relative;
  width: 78%;
  height: 78%;
}

/* Positioning — message cards stacking */
.hp-ui--story {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}
.hp-ui--story .hp-card {
  height: 28%;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  animation: hp-rise 2.8s ease-in-out infinite;
  animation-delay: calc(var(--i, 1) * 0.18s);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
}
.hp-ui--story .hp-card i {
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}
.hp-ui--story .hp-card b {
  flex: 1; height: 6px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.45);
}
.hp-ui--story .hp-card:nth-child(1) { width: 100%; }
.hp-ui--story .hp-card:nth-child(2) { width: 92%; align-self: center; }
.hp-ui--story .hp-card:nth-child(3) { width: 84%; align-self: center; }

/* Identity — swatches + mark */
.hp-ui--identity {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 12px;
  align-items: center;
}
.hp-ui--identity .hp-mark {
  width: 56px; height: 56px; margin: 0 auto;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12);
  animation: hp-pulse 2.4s ease-in-out infinite;
  position: relative;
}
.hp-ui--identity .hp-mark::after {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f97316, #be123c);
}
.hp-ui--identity .hp-swatches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.hp-ui--identity .hp-swatch {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  animation: hp-rise 2.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.15s);
}
.hp-ui--identity .hp-swatch:nth-child(1) { background: #f8fafc; }
.hp-ui--identity .hp-swatch:nth-child(2) { background: #1d1d1f; }
.hp-ui--identity .hp-swatch:nth-child(3) { background: #0071e3; }
.hp-ui--identity .hp-swatch:nth-child(4) { background: #c9a86a; }

/* Website — browser */
.hp-ui--browser {
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  flex-direction: column;
}
.hp-ui--browser .hp-chrome {
  display: flex; gap: 5px; align-items: center;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.25);
}
.hp-ui--browser .hp-chrome span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}
.hp-ui--browser .hp-chrome span:nth-child(1) { background: #f87171; }
.hp-ui--browser .hp-chrome span:nth-child(2) { background: #fbbf24; }
.hp-ui--browser .hp-chrome span:nth-child(3) { background: #34d399; }
.hp-ui--browser .hp-page {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hp-ui--browser .hp-hero {
  height: 38%;
  border-radius: 6px;
  background: linear-gradient(120deg, rgba(255,255,255,0.55), rgba(255,255,255,0.12));
  animation: hp-shimmer 3s ease-in-out infinite;
}
.hp-ui--browser .hp-line {
  height: 6px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.35);
  width: 70%;
}
.hp-ui--browser .hp-line:nth-child(3) { width: 52%; }

/* Film — widescreen + play + sprocket strips */
.hp-ui--film {
  display: grid;
  place-items: center;
}
.hp-ui--film .hp-film-strip {
  position: absolute;
  top: 8%;
  bottom: 8%;
  width: 11%;
  border-radius: 4px;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.55) 0 7px,
      transparent 7px 14px
    ),
    rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  animation: hp-strip 2.8s linear infinite;
}
.hp-ui--film .hp-film-strip--l { left: 2%; }
.hp-ui--film .hp-film-strip--r { right: 2%; animation-direction: reverse; }
.hp-ui--film .hp-screen {
  position: relative;
  width: 68%;
  height: 62%;
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.hp-ui--film .hp-screen__glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 45%, rgba(255, 200, 120, 0.45), transparent 55%);
  animation: hp-shimmer 2.6s ease-in-out infinite;
}
.hp-ui--film .hp-play {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  animation: hp-ring 2.4s ease-out infinite;
  display: grid;
  place-items: center;
}
.hp-ui--film .hp-play i {
  display: block;
  width: 0;
  height: 0;
  margin-left: 3px;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #1a1028;
}
.hp-ui--film .hp-scrub {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 12%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
  z-index: 1;
}
.hp-ui--film .hp-scrub b {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.9);
  animation: hp-scrub 3.2s ease-in-out infinite;
}

/* Email — open campaign message + recipients + send */
.hp-ui--email {
  display: grid;
  place-items: center;
}
.hp-ui--email .hp-mail {
  position: relative;
  width: 82%;
  height: 86%;
}
.hp-ui--email .hp-mail__flap {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 0;
  height: 22%;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  clip-path: polygon(0 100%, 50% 8%, 100% 100%);
  transform-origin: 50% 100%;
  animation: hp-flap 3s ease-in-out infinite;
  z-index: 2;
}
.hp-ui--email .hp-mail__body {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 16%;
  bottom: 4%;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  padding: 12px 11px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  z-index: 1;
}
.hp-ui--email .hp-mail__from {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hp-ui--email .hp-mail__avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fda4af, #fb923c);
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}
.hp-ui--email .hp-mail__meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hp-ui--email .hp-mail__meta i {
  display: block;
  height: 3.5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.55);
}
.hp-ui--email .hp-mail__meta i:last-child {
  width: 48%;
  background: rgba(255, 255, 255, 0.3);
}
.hp-ui--email .hp-mail__subject {
  height: 7px;
  width: 78%;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.75);
  animation: hp-shimmer 2.6s ease-in-out infinite;
}
.hp-ui--email .hp-mail__preview {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-height: 0;
  justify-content: flex-start;
  padding-top: 2px;
}
.hp-ui--email .hp-mail__preview i {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.32);
}
.hp-ui--email .hp-mail__preview i:last-child { width: 62%; }
.hp-ui--email .hp-mail__to {
  display: flex;
  gap: 5px;
  margin-top: auto;
}
.hp-ui--email .hp-mail__to span {
  flex: 1;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  animation: hp-to-pop 2.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.22s);
  position: relative;
  overflow: hidden;
}
.hp-ui--email .hp-mail__to span::after {
  content: '';
  position: absolute;
  inset: 3px 22% 3px 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.45);
}
.hp-ui--email .hp-mail__plane {
  position: absolute;
  right: 2%;
  bottom: 18%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 14px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
  z-index: 3;
  animation: hp-plane 2.8s ease-in-out infinite;
}
.hp-ui--email .hp-mail__plane::before {
  content: '';
  position: absolute;
  left: -14px;
  top: -2px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 8px 10px;
  border-color: transparent transparent rgba(255, 255, 255, 0.7) transparent;
  transform: rotate(-12deg);
}

/* Posts — Instagram stories + grid */
.hp-ui--posts {
  display: grid;
  place-items: center;
}
.hp-ui--posts .hp-ig {
  width: 86%;
  height: 90%;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  padding: 10px 9px 9px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.hp-ui--posts .hp-ig__stories {
  display: flex;
  gap: 7px;
  justify-content: flex-start;
  padding: 0 2px;
}
.hp-ui--posts .hp-ig__ring {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
  position: relative;
  animation: hp-rise 2.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.12s);
}
.hp-ui--posts .hp-ig__ring.is-on {
  background: linear-gradient(135deg, #feda75, #d62976 55%, #962fbf);
  box-shadow: none;
  padding: 2px;
}
.hp-ui--posts .hp-ig__ring.is-on::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: rgba(20, 20, 24, 0.85);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.15);
}
.hp-ui--posts .hp-ig__grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 4px;
}
.hp-ui--posts .hp-ig__tile {
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.16);
  position: relative;
  overflow: hidden;
  animation: hp-rise 2.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.1s);
}
.hp-ui--posts .hp-ig__tile:nth-child(1) {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.55), rgba(255, 200, 150, 0.25));
}
.hp-ui--posts .hp-ig__tile:nth-child(2) {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.2), rgba(120, 180, 255, 0.28));
}
.hp-ui--posts .hp-ig__tile:nth-child(3) {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(180, 255, 160, 0.22));
}
.hp-ui--posts .hp-ig__tile:nth-child(4) {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 140, 180, 0.22));
}
.hp-ui--posts .hp-ig__tile:nth-child(5) {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.2), rgba(255, 220, 120, 0.25));
}
.hp-ui--posts .hp-ig__tile:nth-child(6) {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(160, 140, 255, 0.25));
}
.hp-ui--posts .hp-ig__tile.is-hot b {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  background: #fff;
  transform: rotate(-45deg);
  border-radius: 2px 2px 0 2px;
  animation: hp-heart 2.4s ease-in-out infinite;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.hp-ui--posts .hp-ig__tile.is-hot b::before,
.hp-ui--posts .hp-ig__tile.is-hot b::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
}
.hp-ui--posts .hp-ig__tile.is-hot b::before { left: -6px; top: 0; }
.hp-ui--posts .hp-ig__tile.is-hot b::after { left: 0; top: -6px; }

/* Produce — artboard + pen creating work */
.hp-ui--produce {
  display: grid;
  place-items: center;
}
.hp-ui--produce .hp-board {
  position: relative;
  width: 88%;
  height: 86%;
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.hp-ui--produce .hp-board__tools {
  width: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 6px;
}
.hp-ui--produce .hp-board__tools span {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.hp-ui--produce .hp-board__tools span.is-on {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
  animation: hp-pulse 2.4s ease-in-out infinite;
}
.hp-ui--produce .hp-board__canvas {
  flex: 1;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.hp-ui--produce .hp-board__block {
  height: 34%;
  border-radius: 8px;
  background: linear-gradient(135deg, #94a3b8, #64748b);
  opacity: 0.85;
  animation: hp-board-in 2.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.15s);
}
.hp-ui--produce .hp-board__line {
  height: 6px;
  width: 82%;
  border-radius: 3px;
  background: rgba(15, 23, 42, 0.22);
  animation: hp-board-in 2.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.15s);
}
.hp-ui--produce .hp-board__line--short { width: 52%; }
.hp-ui--produce .hp-board__stroke {
  position: absolute;
  left: 14%;
  top: 58%;
  height: 3px;
  width: 0;
  border-radius: 2px;
  background: #0f172a;
  animation: hp-draw 2.8s ease-in-out infinite;
  transform-origin: left center;
}
.hp-ui--produce .hp-board__pen {
  position: absolute;
  right: 10%;
  bottom: 18%;
  width: 10px;
  height: 36px;
  z-index: 2;
  transform: rotate(28deg);
  animation: hp-pen 2.8s ease-in-out infinite;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}
.hp-ui--produce .hp-board__pen i {
  display: block;
  width: 10px;
  height: 24px;
  border-radius: 2px 2px 1px 1px;
  background: linear-gradient(180deg, #fbbf24, #f59e0b 70%, #b45309);
}
.hp-ui--produce .hp-board__pen b {
  display: block;
  width: 0;
  height: 0;
  margin: -1px auto 0;
  border-style: solid;
  border-width: 10px 5px 0 5px;
  border-color: #1e293b transparent transparent transparent;
}

/* Review — asset + brand checklist + eye */
.hp-ui--review {
  display: grid;
  place-items: center;
}
.hp-ui--review .hp-rev {
  position: relative;
  width: 90%;
  height: 88%;
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.hp-ui--review .hp-rev__doc {
  flex: 1.15;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: relative;
  overflow: hidden;
}
.hp-ui--review .hp-rev__hero {
  height: 38%;
  border-radius: 7px;
  background: linear-gradient(135deg, #64748b, #334155);
  animation: hp-shimmer 2.8s ease-in-out infinite;
}
.hp-ui--review .hp-rev__line {
  height: 5px;
  width: 78%;
  border-radius: 3px;
  background: rgba(15, 23, 42, 0.2);
}
.hp-ui--review .hp-rev__line--short { width: 48%; }
.hp-ui--review .hp-rev__swatches {
  display: flex;
  gap: 5px;
  margin-top: auto;
}
.hp-ui--review .hp-rev__swatches i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(15, 23, 42, 0.12);
}
.hp-ui--review .hp-rev__swatches i:nth-child(1) { background: #0f172a; }
.hp-ui--review .hp-rev__swatches i:nth-child(2) { background: #0071e3; }
.hp-ui--review .hp-rev__swatches i:nth-child(3) { background: #c9a86a; }
.hp-ui--review .hp-rev__checks {
  width: 34%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}
.hp-ui--review .hp-rev__checks span {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 18px;
  padding: 0 6px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  animation: hp-rise 2.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.18s);
}
.hp-ui--review .hp-rev__checks span b {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
  position: relative;
}
.hp-ui--review .hp-rev__checks span.is-on b {
  background: #34d399;
  border-color: #6ee7b7;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.25);
}
.hp-ui--review .hp-rev__checks span.is-on b::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.5px;
  width: 3px;
  height: 5px;
  border: solid #064e3b;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.hp-ui--review .hp-rev__checks span i {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
}
.hp-ui--review .hp-rev__eye {
  position: absolute;
  right: 30%;
  bottom: 12%;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: grid;
  place-items: center;
  z-index: 2;
  animation: hp-eye-bob 2.8s ease-in-out infinite;
}
.hp-ui--review .hp-rev__eye span {
  width: 18px;
  height: 12px;
  border-radius: 50%;
  background: #0f172a;
  position: relative;
  overflow: hidden;
}
.hp-ui--review .hp-rev__eye span::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: inset -1px -1px 0 1px #0f172a;
  animation: hp-pupil 2.8s ease-in-out infinite;
}
.hp-ui--review .hp-rev__eye span::after {
  content: '';
  position: absolute;
  inset: -2px;
  border: 2px solid #0f172a;
  border-radius: 50%;
  clip-path: ellipse(55% 40% at 50% 50%);
}

/* LinkedIn — feed post card (not a generic browser) */
.hp-ui--linkedin {
  display: grid;
  place-items: center;
}
.hp-ui--linkedin .hp-li-card {
  width: 86%;
  height: 88%;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  padding: 10px 11px 9px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: hp-rise 2.8s ease-in-out infinite;
}
.hp-ui--linkedin .hp-li-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hp-ui--linkedin .hp-li-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #93c5fd, #2563eb);
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}
.hp-ui--linkedin .hp-li-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.hp-ui--linkedin .hp-li-meta i {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.55);
}
.hp-ui--linkedin .hp-li-meta i:last-child {
  width: 55%;
  background: rgba(255, 255, 255, 0.32);
}
.hp-ui--linkedin .hp-li-badge {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: #0a66c2;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: -0.04em;
  display: grid;
  place-items: center;
  font-family: var(--sans, system-ui, sans-serif);
  box-shadow: 0 2px 8px rgba(10, 102, 194, 0.45);
  animation: hp-pulse 2.4s ease-in-out infinite;
}
.hp-ui--linkedin .hp-li-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hp-ui--linkedin .hp-li-copy i {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
}
.hp-ui--linkedin .hp-li-copy i:last-child { width: 72%; }
.hp-ui--linkedin .hp-li-media {
  flex: 1;
  min-height: 0;
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hp-ui--linkedin .hp-li-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.18) 50%, transparent 60%);
  animation: hp-li-shine 3s ease-in-out infinite;
}
.hp-ui--linkedin .hp-li-play {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.hp-ui--linkedin .hp-li-play b {
  display: block;
  width: 0;
  height: 0;
  margin-left: 2px;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #0a66c2;
}
.hp-ui--linkedin .hp-li-react {
  display: flex;
  gap: 6px;
  align-items: center;
}
.hp-ui--linkedin .hp-li-react span {
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.28);
  flex: 1;
  animation: hp-rise 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i, 1) * 0.12s);
}
.hp-ui--linkedin .hp-li-react span:nth-child(1) { --i: 1; flex: 0.9; }
.hp-ui--linkedin .hp-li-react span:nth-child(2) { --i: 2; flex: 1.1; }
.hp-ui--linkedin .hp-li-react span:nth-child(3) { --i: 3; flex: 0.75; }

/* Proof — case cards */
.hp-ui--proof {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}
.hp-ui--proof .hp-case {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: hp-rise 2.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.2s);
}
.hp-ui--proof .hp-case .hp-seal {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  display: grid; place-items: center;
  color: #166534; font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.hp-ui--proof .hp-case .hp-lines { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.hp-ui--proof .hp-case .hp-lines i {
  display: block; height: 5px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.4);
}
.hp-ui--proof .hp-case .hp-lines i:last-child { width: 55%; }

/* Collateral — fanned decks */
.hp-ui--decks {
  display: grid;
  place-items: center;
}
.hp-ui--decks .hp-sheet {
  position: absolute;
  width: 58%; height: 72%;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  transform-origin: 50% 100%;
  animation: hp-fan 3.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.08s);
}
.hp-ui--decks .hp-sheet:nth-child(1) { transform: rotate(-12deg) translateX(-14px); }
.hp-ui--decks .hp-sheet:nth-child(2) { transform: rotate(0deg); z-index: 2; }
.hp-ui--decks .hp-sheet:nth-child(3) { transform: rotate(12deg) translateX(14px); }
.hp-ui--decks .hp-sheet::before,
.hp-ui--decks .hp-sheet::after {
  content: '';
  position: absolute;
  left: 12%; right: 12%;
  height: 5px;
  border-radius: 2px;
  background: rgba(15, 15, 20, 0.18);
}
.hp-ui--decks .hp-sheet::before { top: 18%; }
.hp-ui--decks .hp-sheet::after { top: 30%; width: 50%; right: auto; }

/* Brand system — layers crown */
.hp-ui--layers {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  justify-content: center;
  align-items: center;
}
.hp-ui--layers .hp-layer {
  width: calc(55% + var(--i) * 8%);
  height: 18%;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  animation: hp-stack 3s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.18s);
}
.hp-ui--layers .hp-layer.is-crown {
  background: rgba(201, 168, 106, 0.55);
  border-color: rgba(255, 230, 180, 0.7);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

/* Generic: announce / megaphone pulse */
.hp-ui--burst {
  display: grid;
  place-items: center;
}
.hp-ui--burst .hp-core {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35);
  animation: hp-ring 2.4s ease-out infinite;
  z-index: 2;
}
.hp-ui--burst .hp-orbit {
  position: absolute;
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  animation: hp-orbit 3.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.35s);
}
.hp-ui--burst .hp-orbit:nth-child(2) { top: 12%; left: 18%; }
.hp-ui--burst .hp-orbit:nth-child(3) { top: 14%; right: 16%; }
.hp-ui--burst .hp-orbit:nth-child(4) { bottom: 18%; left: 22%; }
.hp-ui--burst .hp-orbit:nth-child(5) { bottom: 16%; right: 20%; }

/* Announce — megaphone center + channel satellites */
.hp-ui--announce {
  display: grid;
  place-items: center;
}
.hp-ui--announce .hp-horn {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  animation: hp-ring 2.6s ease-out infinite;
  display: grid;
  place-items: center;
}
.hp-ui--announce .hp-horn__bell {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 14px;
  margin-top: -7px;
  background: #1a1028;
  border-radius: 3px 0 0 3px;
  clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 82%);
}
.hp-ui--announce .hp-horn__mouth {
  position: absolute;
  left: 30px;
  top: 50%;
  width: 12px;
  height: 22px;
  margin-top: -11px;
  border: 2.5px solid #1a1028;
  border-left: none;
  border-radius: 0 50% 50% 0;
}
.hp-ui--announce .hp-horn__bell::after {
  content: '';
  position: absolute;
  left: -5px;
  top: 50%;
  width: 5px;
  height: 8px;
  margin-top: -4px;
  background: #1a1028;
  border-radius: 2px;
}
.hp-ui--announce .hp-horn__wave {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border: 2px solid rgba(26, 16, 40, 0.45);
  border-left: none;
  border-radius: 0 50% 50% 0;
  opacity: 0;
  animation: hp-horn-wave 1.8s ease-out infinite;
}
.hp-ui--announce .hp-horn__wave--1 { right: 6px; }
.hp-ui--announce .hp-horn__wave--2 {
  right: 1px;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  animation-delay: 0.35s;
}
.hp-ui--announce .hp-chan {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: grid;
  place-items: center;
  animation: hp-orbit 3.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.28s);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}
.hp-ui--announce .hp-chan:nth-child(2) { top: 10%; left: 16%; }
.hp-ui--announce .hp-chan:nth-child(3) { top: 12%; right: 14%; }
.hp-ui--announce .hp-chan:nth-child(4) { bottom: 14%; left: 18%; }
.hp-ui--announce .hp-chan:nth-child(5) { bottom: 12%; right: 16%; }
.hp-ui--announce .hp-chan[data-chan="li"] {
  background: #0a66c2;
  border-color: rgba(255, 255, 255, 0.45);
}
.hp-ui--announce .hp-chan[data-chan="li"] b {
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-family: var(--sans, system-ui, sans-serif);
  line-height: 1;
}
.hp-ui--announce .hp-chan[data-chan="mail"] i {
  display: block;
  width: 13px;
  height: 9px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  position: relative;
}
.hp-ui--announce .hp-chan[data-chan="mail"] i::before {
  content: '';
  position: absolute;
  left: 1px;
  right: 1px;
  top: 1px;
  height: 5px;
  border-top: 1.5px solid rgba(255, 255, 255, 0.9);
  transform: perspective(6px) rotateX(20deg);
}
.hp-ui--announce .hp-chan[data-chan="film"] i {
  display: block;
  width: 14px;
  height: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  position: relative;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.85) 0 2px, transparent 2px 4px) 0 0 / 4px 100% repeat-x,
    linear-gradient(90deg, rgba(255,255,255,0.85) 0 2px, transparent 2px 4px) 0 100% / 4px 100% repeat-x;
  background-origin: border-box;
}
.hp-ui--announce .hp-chan[data-chan="film"] i::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  margin: -3px 0 0 -1px;
  border-style: solid;
  border-width: 3px 0 3px 5px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.95);
}
.hp-ui--announce .hp-chan[data-chan="post"] i {
  display: block;
  width: 12px;
  height: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 3px 3px 3px 1px;
  position: relative;
}
.hp-ui--announce .hp-chan[data-chan="post"] i::after {
  content: '';
  position: absolute;
  left: 2px;
  bottom: -4px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 4px 4px 0 0;
  border-color: rgba(255, 255, 255, 0.9) transparent transparent transparent;
}

/* Loop / review */
.hp-ui--loop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.hp-ui--loop .hp-step {
  flex: 1;
  height: 70%;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  animation: hp-rise 2.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.2s);
}
.hp-ui--loop .hp-step.is-on {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15);
}
.hp-ui--loop .hp-step span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}
.hp-ui--loop .hp-step.is-on span { background: #0f172a; }

/* Funnel / sell */
.hp-ui--funnel {
  display: flex;
  flex-direction: column;
  gap: 7px;
  justify-content: center;
  align-items: center;
}
.hp-ui--funnel .hp-band {
  height: 18%;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  animation: hp-rise 2.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.15s);
}
.hp-ui--funnel .hp-band:nth-child(1) { width: 100%; }
.hp-ui--funnel .hp-band:nth-child(2) { width: 82%; }
.hp-ui--funnel .hp-band:nth-child(3) { width: 64%; }
.hp-ui--funnel .hp-band:nth-child(4) { width: 48%; background: rgba(255, 255, 255, 0.75); }

/* Gap · referral cap */
.hp-ui--referral {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 6px 10px;
}
.hp-ref-people { display: flex; gap: 10px; align-items: flex-end; }
.hp-ref-p {
  width: 22px; height: 36px; border-radius: 10px 10px 5px 5px;
  background: rgba(255,255,255,0.22); border: 1px solid rgba(255,255,255,0.35);
  position: relative;
  animation: hp-rise 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.12s);
}
.hp-ref-p::before {
  content: ''; position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  width: 14px; height: 14px; border-radius: 50%;
  background: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.4);
}
.hp-ref-p:nth-child(2) { height: 44px; }
.hp-ref-pipe {
  width: 14px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.28);
  overflow: hidden; position: relative;
}
.hp-ref-flow {
  position: absolute; left: 2px; right: 2px; height: 12px; border-radius: 6px;
  background: rgba(255,255,255,0.75);
  animation: hp-ref-drip 1.8s ease-in-out infinite;
}
.hp-ref-cap {
  margin-top: 2px; text-align: center; color: rgba(255,255,255,0.92);
  font: 700 10px/1.25 Inter, system-ui, sans-serif; letter-spacing: .02em;
}
.hp-ref-cap i {
  display: block; font-style: normal; font-weight: 500; font-size: 9px;
  color: rgba(255,200,160,0.85); margin-top: 2px;
}
@keyframes hp-ref-drip {
  0% { top: -14px; opacity: 0; }
  25% { opacity: 1; }
  100% { top: 38px; opacity: 0.2; }
}

/* Gap · surface undersells substance */
.hp-ui--undersell {
  position: relative; display: flex; align-items: center; justify-content: center;
}
.hp-us-substance {
  position: absolute; inset: 18% 8% 12% 8%; border-radius: 12px;
  background: linear-gradient(145deg, rgba(251,191,36,0.55), rgba(244,63,94,0.45));
  border: 1px solid rgba(255,255,255,0.35);
  display: flex; flex-direction: column; gap: 7px; padding: 14px 12px;
  transform: rotate(-4deg) scale(1.02);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}
.hp-us-substance span {
  height: 8px; border-radius: 4px; background: rgba(255,255,255,0.55);
  animation: hp-rise 2.6s ease-in-out infinite;
}
.hp-us-substance span:nth-child(1) { width: 70%; height: 18px; background: rgba(255,255,255,0.7); }
.hp-us-substance span:nth-child(2) { width: 88%; animation-delay: .1s; }
.hp-us-substance span:nth-child(3) { width: 52%; animation-delay: .2s; }
.hp-us-surface {
  position: relative; z-index: 2; width: 78%; border-radius: 10px;
  background: rgba(15,15,20,0.78); border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(2px); box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transform: translate(10px, 8px);
}
.hp-us-chrome {
  display: flex; gap: 4px; padding: 7px 8px; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.hp-us-chrome i {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.28);
}
.hp-us-page { padding: 10px 10px 12px; }
.hp-us-page b {
  display: block; height: 22px; width: 48%; border-radius: 4px;
  background: rgba(255,255,255,0.18); margin-bottom: 8px;
}
.hp-us-page em {
  display: block; height: 5px; width: 90%; border-radius: 3px;
  background: rgba(255,255,255,0.12); margin-bottom: 5px; font-style: normal;
}
.hp-us-page em.s { width: 55%; }
.hp-us-tag {
  position: absolute; z-index: 3; right: 10px; bottom: 10px;
  font: 700 9px Inter, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,0.85); background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 999px; padding: 3px 8px;
}

/* Gap · proof stuck in memory */
.hp-ui--memory {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 4px;
}
.hp-mem-head {
  width: 52px; height: 62px; border-radius: 50% 50% 46% 46%;
  background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.35);
  position: relative; flex: 0 0 auto;
}
.hp-mem-head::after {
  content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 16px; border-radius: 0 0 18px 18px;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.25); border-top: none;
}
.hp-mem-glow {
  position: absolute; inset: 18% 20% 30%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.55), transparent 70%);
  animation: hp-rise 2.2s ease-in-out infinite;
}
.hp-mem-cards { display: flex; flex-direction: column; gap: 6px; flex: 1; max-width: 110px; }
.hp-mem-card {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 8px; border-radius: 8px;
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.28);
  animation: hp-rise 2.5s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.15s);
}
.hp-mem-card b {
  font: 800 11px Inter, system-ui, sans-serif; color: #fff; width: 14px; text-align: center;
}
.hp-mem-card i {
  flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.45); font-style: normal;
}
.hp-mem-card.is-fade { opacity: 0.55; }
.hp-mem-card.is-gone {
  opacity: 0.28; border-style: dashed;
  animation: hp-mem-fade 2.8s ease-in-out infinite;
}
@keyframes hp-mem-fade {
  0%, 100% { opacity: 0.22; transform: translateX(0); }
  50% { opacity: 0.08; transform: translateX(4px); }
}

.hp-preview--wide .hp-preview__blurb { font-size: 12px; line-height: 1.5; }
.hp-preview--wide .hp-preview__frame { height: 12.5rem; }

.hp-preview__bullets {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}
.hp-preview__bullets li {
  position: relative;
  padding-left: 0.85rem;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--ink, var(--text-primary, #1d1d1f));
  font-weight: 450;
}
.hp-preview__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold, #C9A86A);
}
.hp-preview--bullets.hp-preview--wide {
  width: 280px;
}
.hp-preview--bullets .hp-preview__blurb {
  margin-bottom: 0.1rem;
  opacity: 0.92;
}
html[data-theme="light"] .hp-preview__bullets li::before {
  background: #0071E3;
}

/* Align / people */
.hp-ui--people {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
}
.hp-ui--people .hp-person {
  width: 28px;
  border-radius: 10px 10px 6px 6px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: hp-rise 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.15s);
  position: relative;
}
.hp-ui--people .hp-person::before {
  content: '';
  position: absolute;
  top: -14px; left: 50%;
  width: 16px; height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
}
.hp-ui--people .hp-person:nth-child(1) { height: 48%; }
.hp-ui--people .hp-person:nth-child(2) { height: 62%; }
.hp-ui--people .hp-person:nth-child(3) { height: 54%; }

/* Content / calendar */
.hp-ui--cal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.hp-ui--cal .hp-cell {
  aspect-ratio: 1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: hp-rise 2.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.12s);
}
.hp-ui--cal .hp-cell.is-on {
  background: rgba(255, 255, 255, 0.8);
}

/* Measure / bars */
.hp-ui--bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  height: 100%;
  padding-bottom: 4px;
}
.hp-ui--bars .hp-bar {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: rgba(255, 255, 255, 0.75);
  height: calc(30% + var(--i) * 12%);
  animation: hp-grow 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.12s);
  transform-origin: bottom;
}

@keyframes hp-rise {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50% { transform: translateY(-4px); opacity: 1; }
}
@keyframes hp-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes hp-shimmer {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
@keyframes hp-fan {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}
@keyframes hp-stack {
  0%, 100% { transform: scaleX(0.96); opacity: 0.7; }
  40%, 70% { transform: scaleX(1); opacity: 1; }
}
@keyframes hp-ring {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
  70% { box-shadow: 0 0 0 22px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
@keyframes hp-orbit {
  0%, 100% { transform: translateY(0) scale(0.96); opacity: 0.7; }
  50% { transform: translateY(-5px) scale(1); opacity: 1; }
}
@keyframes hp-grow {
  0%, 100% { transform: scaleY(0.85); }
  50% { transform: scaleY(1); }
}
@keyframes hp-scrub {
  0% { width: 8%; }
  55% { width: 78%; }
  100% { width: 8%; }
}
@keyframes hp-strip {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 0 28px, 0 0; }
}
@keyframes hp-li-shine {
  0%, 100% { transform: translateX(-30%); opacity: 0.4; }
  50% { transform: translateX(30%); opacity: 1; }
}
@keyframes hp-horn-wave {
  0% { opacity: 0; transform: scale(0.7); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.25); }
}
@keyframes hp-flap {
  0%, 100% { transform: rotateX(0deg); opacity: 0.95; }
  45%, 60% { transform: rotateX(-18deg) translateY(-2px); opacity: 1; }
}
@keyframes hp-to-pop {
  0%, 100% { opacity: 0.55; transform: scale(0.96); border-color: rgba(255, 255, 255, 0.22); }
  40%, 55% { opacity: 1; transform: scale(1); border-color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.28); }
}
@keyframes hp-plane {
  0% { transform: translate(0, 4px) rotate(-8deg); opacity: 0; }
  25% { opacity: 1; }
  70% { transform: translate(10px, -18px) rotate(12deg); opacity: 1; }
  100% { transform: translate(18px, -28px) rotate(18deg); opacity: 0; }
}
@keyframes hp-heart {
  0%, 100% { transform: rotate(-45deg) scale(0.9); opacity: 0.85; }
  45%, 55% { transform: rotate(-45deg) scale(1.15); opacity: 1; }
}
@keyframes hp-board-in {
  0%, 15% { opacity: 0.25; transform: translateY(4px); }
  40%, 70% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0.85; transform: translateY(0); }
}
@keyframes hp-draw {
  0%, 18% { width: 0; opacity: 0; }
  45% { width: 48%; opacity: 1; }
  75%, 100% { width: 48%; opacity: 0.7; }
}
@keyframes hp-pen {
  0%, 18% { transform: translate(-18px, 10px) rotate(28deg); opacity: 0.4; }
  45% { transform: translate(8px, -6px) rotate(18deg); opacity: 1; }
  75%, 100% { transform: translate(14px, -10px) rotate(22deg); opacity: 0.85; }
}
@keyframes hp-eye-bob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-4px, -6px) scale(1.04); }
}
@keyframes hp-pupil {
  0%, 100% { transform: translate(0, 0); }
  40% { transform: translate(1.5px, -1px); }
  70% { transform: translate(-1px, 1px); }
}

@media (prefers-reduced-motion: reduce) {
  .hp-grain__blob,
  .hp-grain__noise,
  .hp-ui--story .hp-card,
  .hp-ui--identity .hp-mark,
  .hp-ui--identity .hp-swatch,
  .hp-ui--browser .hp-hero,
  .hp-ui--proof .hp-case,
  .hp-ui--decks .hp-sheet,
  .hp-ui--layers .hp-layer,
  .hp-ui--burst .hp-core,
  .hp-ui--burst .hp-orbit,
  .hp-ui--announce .hp-horn,
  .hp-ui--announce .hp-horn__wave,
  .hp-ui--announce .hp-chan,
  .hp-ui--email .hp-mail__flap,
  .hp-ui--email .hp-mail__subject,
  .hp-ui--email .hp-mail__to span,
  .hp-ui--email .hp-mail__plane,
  .hp-ui--posts .hp-ig__ring,
  .hp-ui--posts .hp-ig__tile,
  .hp-ui--posts .hp-ig__tile.is-hot b,
  .hp-ui--produce .hp-board__tools span.is-on,
  .hp-ui--produce .hp-board__block,
  .hp-ui--produce .hp-board__line,
  .hp-ui--produce .hp-board__stroke,
  .hp-ui--produce .hp-board__pen,
  .hp-ui--review .hp-rev__hero,
  .hp-ui--review .hp-rev__checks span,
  .hp-ui--review .hp-rev__eye,
  .hp-ui--review .hp-rev__eye span::before,
  .hp-ui--loop .hp-step,
  .hp-ui--funnel .hp-band,
  .hp-ui--people .hp-person,
  .hp-ui--referral .hp-ref-p,
  .hp-ui--referral .hp-ref-flow,
  .hp-ui--undersell .hp-us-substance span,
  .hp-ui--memory .hp-mem-glow,
  .hp-ui--memory .hp-mem-card,
  .hp-ui--cal .hp-cell,
  .hp-ui--bars .hp-bar,
  .hp-ui--film .hp-play,
  .hp-ui--film .hp-scrub b,
  .hp-ui--film .hp-film-strip,
  .hp-ui--film .hp-screen__glow,
  .hp-ui--linkedin .hp-li-card,
  .hp-ui--linkedin .hp-li-badge,
  .hp-ui--linkedin .hp-li-media::after,
  .hp-ui--linkedin .hp-li-react span,
  .hp-preview {
    animation: none !important;
    transition: none !important;
  }
}

@media (hover: none), (pointer: coarse) {
  .hp-preview.is-tappable {
    pointer-events: auto;
  }
}
