/**
 * Horsing APP marketing — v2 (light, logo-forward)
 */

:root {
  --hm-bg: #eef1fb;
  --hm-bg-deep: #e4e8f8;
  --hm-surface: #ffffff;
  --hm-ink: #1e1b4b;
  --hm-ink-soft: #312e81;
  --hm-muted: #5b567a;
  --hm-line: rgba(49, 46, 129, 0.14);
  --hm-accent: #7c3aed;
  --hm-accent-hot: #6d28d9;
  --hm-gold: #eab308;
  --hm-gold-deep: #ca8a04;
  --hm-sky: #c7d2fe;
  --hm-font-display: "Outfit", system-ui, sans-serif;
  --hm-font-body: "Manrope", system-ui, sans-serif;
  --hm-radius: 16px;
  --hm-radius-lg: 24px;
  --hm-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hm-max: 72rem;
  --hm-shadow: 0 18px 50px rgba(49, 46, 129, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body.hm-body {
  margin: 0;
  min-height: 100vh;
  color: var(--hm-ink);
  font-family: var(--hm-font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  background: var(--hm-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

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

/* Atmosphere — light */
.hm-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1000px 600px at 10% -5%, rgba(167, 139, 250, 0.35), transparent 55%),
    radial-gradient(900px 500px at 95% 5%, rgba(234, 179, 8, 0.22), transparent 50%),
    radial-gradient(800px 520px at 50% 110%, rgba(99, 102, 241, 0.2), transparent 55%),
    linear-gradient(180deg, #f7f8ff 0%, #eef1fb 45%, #e8ecfa 100%);
}

.hm-atmosphere__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.65;
  animation: hm-drift 20s var(--hm-ease) infinite alternate;
}

.hm-atmosphere__orb--a {
  width: min(50vw, 26rem);
  height: min(50vw, 26rem);
  top: -6%;
  left: -4%;
  background: rgba(167, 139, 250, 0.45);
}

.hm-atmosphere__orb--b {
  width: min(38vw, 20rem);
  height: min(38vw, 20rem);
  top: 40%;
  right: -6%;
  background: rgba(250, 204, 21, 0.35);
  animation-delay: -7s;
}

.hm-atmosphere__orb--c {
  width: min(44vw, 24rem);
  height: min(44vw, 24rem);
  bottom: -10%;
  left: 35%;
  background: rgba(129, 140, 248, 0.4);
  animation-delay: -12s;
}

.hm-atmosphere__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(49, 46, 129, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 46, 129, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 25%, #000 15%, transparent 70%);
  animation: hm-grid-pulse 12s ease-in-out infinite;
}

@keyframes hm-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(3%, 5%, 0) scale(1.06);
  }
}

@keyframes hm-grid-pulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.7;
  }
}

.hm-shell {
  position: relative;
  z-index: 1;
}

/* Logo plate — high contrast */
.hm-logo-plate {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  /* Light indigo — contrasts with brand gold */
  background: linear-gradient(145deg, #818cf8 0%, #6366f1 42%, #4f46e5 100%);
  border-radius: 22%;
  box-shadow:
    0 0 0 3px #eab308,
    0 0 0 6px rgba(49, 46, 129, 0.12),
    0 16px 40px rgba(79, 70, 229, 0.28);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.hm-logo-plate img {
  width: 86%;
  height: 86%;
  border-radius: 18%;
  object-fit: cover;
  object-position: center;
}

.hm-logo-plate--nav {
  width: 2.75rem;
  height: 2.75rem;
}

.hm-logo-plate--hero {
  width: clamp(6.5rem, 18vw, 9.5rem);
  height: clamp(6.5rem, 18vw, 9.5rem);
  animation: hm-logo-pulse 4.5s ease-in-out infinite;
}

.hm-logo-plate--center {
  width: 5.5rem;
  height: 5.5rem;
  box-shadow:
    0 0 0 3px #eab308,
    0 0 0 6px rgba(49, 46, 129, 0.12),
    0 20px 50px rgba(79, 70, 229, 0.28);
}

.hm-logo-plate--footer {
  width: 3rem;
  height: 3rem;
}

@keyframes hm-logo-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 3px #eab308,
      0 0 0 6px rgba(49, 46, 129, 0.12),
      0 16px 40px rgba(79, 70, 229, 0.28);
  }
  50% {
    transform: scale(1.03);
    box-shadow:
      0 0 0 3px #facc15,
      0 0 0 7px rgba(99, 102, 241, 0.35),
      0 22px 48px rgba(124, 58, 237, 0.28);
  }
}

/* Nav */
.hm-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--hm-max);
  margin: 0 auto;
  padding: 1rem 1.35rem 0;
}

.hm-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--hm-font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--hm-ink);
}

.hm-nav__brand em {
  font-style: normal;
  color: var(--hm-accent);
  font-weight: 800;
}

.hm-nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--hm-accent), var(--hm-accent-hot));
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.3);
  transition: transform 0.35s var(--hm-ease), box-shadow 0.35s ease;
}

.hm-nav__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(124, 58, 237, 0.4);
}

/* Hero */
.hm-hero {
  max-width: var(--hm-max);
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 4rem) 1.35rem 3rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 920px) {
  .hm-hero {
    grid-template-columns: 1.1fr 0.9fr;
    min-height: calc(100vh - 4.5rem);
  }
}

.hm-brand-lockup {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: hm-rise 0.9s var(--hm-ease) 0.05s forwards;
}

.hm-brand-lockup__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  min-width: 0;
  overflow: visible;
}

.hm-brand-lockup__word {
  display: block;
  font-family: var(--hm-font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.15rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--hm-ink);
  overflow: visible;
}

.hm-brand-lockup__word span {
  color: var(--hm-accent);
  font-weight: 700;
}

.hm-brand-lockup__tag {
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.4;
  color: var(--hm-gold-deep);
}

.hm-hero__h1 {
  margin: 0 0 1rem;
  font-family: var(--hm-font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--hm-ink);
  opacity: 0;
  animation: hm-rise 0.9s var(--hm-ease) 0.16s forwards;
}

.hm-hero__lede {
  margin: 0 0 1.6rem;
  color: var(--hm-muted);
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  max-width: 34rem;
  opacity: 0;
  animation: hm-rise 0.9s var(--hm-ease) 0.28s forwards;
}

.hm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  opacity: 0;
  animation: hm-rise 0.9s var(--hm-ease) 0.4s forwards;
}

.hm-btn-store {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.35rem;
  padding: 0.55rem 1.15rem 0.55rem 0.85rem;
  border-radius: 14px;
  background: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.9);
  color: #fff;
  transition: transform 0.35s var(--hm-ease), box-shadow 0.35s ease;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
}

.hm-btn-store:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(124, 58, 237, 0.28);
}

.hm-btn-store__icon {
  width: 1.7rem;
  height: 1.7rem;
  flex-shrink: 0;
}

.hm-btn-store__kicker {
  display: block;
  font-size: 0.65rem;
  line-height: 1;
  opacity: 0.75;
}

.hm-btn-store__label {
  display: block;
  font-family: var(--hm-font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hm-hero__hint {
  font-size: 0.88rem;
  color: var(--hm-muted);
  font-weight: 600;
}

.hm-hero__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 28rem);
  opacity: 0;
  animation: hm-rise 1s var(--hm-ease) 0.32s forwards;
  perspective: 1200px;
}

.hm-phone-stage {
  position: relative;
  width: 100%;
  padding: 1.25rem 2.5rem 0.5rem;
}

.hm-phone-stage__scene {
  position: relative;
  height: clamp(26rem, 62vw, 32rem);
  transform-style: preserve-3d;
  animation: hm-stage-float 7s ease-in-out infinite;
}

.hm-phone {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(100%, 15.5rem);
  aspect-ratio: 9 / 19;
  margin: 0;
  border-radius: 2rem;
  padding: 0.65rem;
  background: linear-gradient(160deg, #fff, #eef1fb);
  border: 1px solid rgba(49, 46, 129, 0.12);
  box-shadow: var(--hm-shadow);
  transform-style: preserve-3d;
  transform-origin: center center;
  transition: transform 0.7s var(--hm-ease), opacity 0.7s var(--hm-ease), filter 0.7s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.hm-phone.is-active {
  opacity: 1;
  z-index: 4;
  pointer-events: auto;
  filter: drop-shadow(0 28px 40px rgba(49, 46, 129, 0.28));
  transform: translate(-50%, -50%) translateZ(40px) rotateY(0deg) rotateX(4deg);
}

.hm-phone.is-prev {
  opacity: 0.72;
  z-index: 2;
  pointer-events: auto;
  cursor: pointer;
  filter: brightness(0.92);
  transform: translate(-50%, -50%) translateX(-58%) translateZ(-80px) rotateY(38deg) rotateX(6deg) scale(0.86);
}

.hm-phone.is-next {
  opacity: 0.72;
  z-index: 2;
  pointer-events: auto;
  cursor: pointer;
  filter: brightness(0.92);
  transform: translate(-50%, -50%) translateX(58%) translateZ(-80px) rotateY(-38deg) rotateX(6deg) scale(0.86);
}

.hm-phone.is-far {
  opacity: 0;
  z-index: 0;
  transform: translate(-50%, -50%) translateZ(-160px) scale(0.7);
}

.hm-phone__screen {
  height: 100%;
  border-radius: 1.45rem;
  overflow: hidden;
  background: linear-gradient(180deg, #312e81 0%, #1e1b4b 100%);
  color: #f8f7ff;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.15rem 0.9rem 0.9rem;
}

.hm-phone__notch {
  position: absolute;
  top: 0.55rem;
  left: 50%;
  transform: translateX(-50%);
  width: 35%;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  z-index: 3;
}

.hm-phone__brand-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
  margin-bottom: 0.55rem;
  position: relative;
  z-index: 2;
}

.hm-phone__mini-logo {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 22%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.7);
}

.hm-phone__brand {
  font-family: var(--hm-font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.hm-phone__line {
  margin: 0 0 0.75rem;
  color: #fde68a;
  font-size: 0.78rem;
  font-weight: 600;
  position: relative;
  z-index: 2;
}

.hm-phone__stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.hm-phone__row {
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hm-phone__row strong {
  display: block;
  font-size: 0.78rem;
  margin-bottom: 0.12rem;
}

.hm-phone__row span {
  font-size: 0.68rem;
  color: #c4b5fd;
}

.hm-phone-nav {
  position: absolute;
  top: 42%;
  z-index: 8;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(49, 46, 129, 0.16);
  background: rgba(255, 255, 255, 0.92);
  color: var(--hm-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(49, 46, 129, 0.14);
  transition: transform 0.3s var(--hm-ease), background 0.3s ease;
}

.hm-phone-nav:hover {
  transform: scale(1.08);
  background: #fff;
}

.hm-phone-nav--prev {
  left: 0.15rem;
}

.hm-phone-nav--next {
  right: 0.15rem;
}

.hm-phone-hit {
  position: absolute;
  top: 8%;
  bottom: 18%;
  width: 28%;
  z-index: 6;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.hm-phone-hit--prev {
  left: 0;
}

.hm-phone-hit--next {
  right: 0;
}

.hm-phone__dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1rem;
  position: relative;
  z-index: 2;
}

.hm-phone__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(49, 46, 129, 0.22);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.hm-phone__dot.is-active {
  background: #eab308;
  transform: scale(1.25);
}

@keyframes hm-stage-float {
  0%,
  100% {
    transform: translateY(0) rotateY(-6deg) rotateX(2deg);
  }
  50% {
    transform: translateY(-14px) rotateY(6deg) rotateX(4deg);
  }
}

@keyframes hm-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes hm-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .hm-phone.is-prev {
    transform: translate(-50%, -50%) translateX(-42%) translateZ(-60px) rotateY(28deg) scale(0.8);
  }
  .hm-phone.is-next {
    transform: translate(-50%, -50%) translateX(42%) translateZ(-60px) rotateY(-28deg) scale(0.8);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hm-phone-stage__scene {
    animation: none;
  }
}

/* Sections */
.hm-section {
  max-width: var(--hm-max);
  margin: 0 auto;
  padding: 2.25rem 1.35rem 1rem;
}

.hm-section__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hm-accent-hot);
}

.hm-section__title {
  margin: 0 0 0.7rem;
  font-family: var(--hm-font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--hm-ink);
}

.hm-section__lede {
  margin: 0 0 1.6rem;
  color: var(--hm-muted);
  max-width: 42rem;
}

.hm-section__lede strong.hm-chain {
  color: var(--hm-ink);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(120deg, transparent 0%, rgba(234, 179, 8, 0.35) 45%, transparent 100%);
  padding: 0 0.15em;
}

.hm-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--hm-ease), transform 0.75s var(--hm-ease);
}

.hm-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Major doors */
.hm-doors {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .hm-doors {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hm-door {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 15rem;
  padding: 1.35rem 1.25rem;
  border-radius: var(--hm-radius-lg);
  border: 1px solid var(--hm-line);
  background: var(--hm-surface);
  box-shadow: 0 10px 30px rgba(49, 46, 129, 0.06);
  overflow: hidden;
  transition: transform 0.4s var(--hm-ease), box-shadow 0.4s ease, border-color 0.4s ease;
}

.hm-door::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 160px at 15% 0%, rgba(124, 58, 237, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hm-door:hover,
.hm-door:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 22px 50px rgba(49, 46, 129, 0.14);
  outline: none;
}

.hm-door:hover::before,
.hm-door:focus-visible::before {
  opacity: 1;
}

.hm-door__index {
  position: relative;
  font-family: var(--hm-font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--hm-accent);
  margin-bottom: 1rem;
}

.hm-door__title {
  position: relative;
  margin: 0 0 0.5rem;
  font-family: var(--hm-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hm-door__text {
  position: relative;
  margin: 0;
  color: var(--hm-muted);
  font-size: 0.95rem;
  flex: 1;
}

.hm-door__go {
  position: relative;
  margin-top: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--hm-accent-hot);
}

.hm-door:hover .hm-door__go svg {
  transform: translateX(4px);
}

.hm-door__go svg {
  transition: transform 0.35s var(--hm-ease);
}

/* Network circle — interactive HTML ring */
.hm-network {
  margin-top: 0.5rem;
  padding: 1.25rem 0.75rem 1.5rem;
  border-radius: calc(var(--hm-radius-lg) + 4px);
  background: var(--hm-surface);
  border: 1px solid var(--hm-line);
  box-shadow: var(--hm-shadow);
  overflow: visible;
}

.hm-ring {
  --ring-size: min(100%, 44rem);
  --orbit: clamp(9.5rem, 34vw, 15.25rem);
  --role-size: clamp(5.6rem, 16vw, 7.4rem);
  position: relative;
  width: var(--ring-size);
  aspect-ratio: 1;
  margin: 0 auto;
}

.hm-ring__glow {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.22), transparent 70%);
  animation: hm-drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

.hm-ring__track {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 2px dashed rgba(99, 102, 241, 0.35);
  animation: hm-orbit-dash 28s linear infinite;
  pointer-events: none;
}

.hm-ring__track::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 18px solid rgba(224, 231, 255, 0.65);
}

.hm-ring__center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
  width: 7.5rem;
  z-index: 1;
  pointer-events: none;
}

.hm-network__center-label {
  font-family: var(--hm-font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--hm-ink);
}

.hm-network__center-label span {
  color: var(--hm-accent);
}

.hm-role {
  --angle: calc(var(--i) * 40deg - 90deg);
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--role-size);
  height: var(--role-size);
  margin: calc(var(--role-size) / -2) 0 0 calc(var(--role-size) / -2);
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-decoration: none;
  transform: rotate(var(--angle)) translate(var(--orbit)) rotate(calc(-1 * var(--angle)));
  transform-origin: center;
  z-index: 2;
  transition: transform 0.45s var(--hm-ease), z-index 0s;
}

.hm-role__face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  height: 100%;
  padding: 0.65rem;
  border-radius: 50%;
  text-align: center;
  background: #fff;
  border: 3px solid var(--role-color, var(--hm-accent));
  box-shadow:
    0 10px 28px rgba(49, 46, 129, 0.12),
    0 0 0 4px rgba(255, 255, 255, 0.9);
  transition:
    transform 0.45s var(--hm-ease),
    box-shadow 0.45s ease,
    border-width 0.45s ease,
    background 0.45s ease;
}

.hm-role__name {
  font-family: var(--hm-font-display);
  font-weight: 800;
  font-size: clamp(0.82rem, 2.4vw, 1.05rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--hm-ink);
  transition: font-size 0.35s ease, color 0.35s ease;
}

.hm-role__blurb {
  display: block;
  max-height: 0;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 0.55rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--hm-muted);
  transition: opacity 0.35s ease, max-height 0.45s ease, max-width 0.45s ease, font-size 0.35s ease;
}

.hm-role:hover,
.hm-role:focus-visible {
  z-index: 8;
  outline: none;
  transform: rotate(var(--angle)) translate(var(--orbit)) rotate(calc(-1 * var(--angle))) scale(1.72);
}

.hm-role:hover .hm-role__face,
.hm-role:focus-visible .hm-role__face {
  border-width: 4px;
  gap: 0.2rem;
  padding: 0.55rem 0.5rem;
  background: linear-gradient(160deg, #ffffff 0%, #f5f3ff 100%);
  box-shadow:
    0 22px 50px rgba(49, 46, 129, 0.22),
    0 0 0 6px color-mix(in srgb, var(--role-color) 28%, white);
}

.hm-role:hover .hm-role__blurb,
.hm-role:focus-visible .hm-role__blurb {
  max-height: 7.5rem;
  max-width: 7.25rem;
  opacity: 1;
  font-size: 0.48rem;
  line-height: 1.28;
}

.hm-role:hover .hm-role__name,
.hm-role:focus-visible .hm-role__name {
  color: var(--role-color);
  font-size: 0.62rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

@keyframes hm-orbit-dash {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .hm-ring {
    --orbit: clamp(8.2rem, 36vw, 11.5rem);
    --role-size: clamp(4.8rem, 22vw, 5.8rem);
  }

  .hm-role:hover,
  .hm-role:focus-visible {
    transform: rotate(var(--angle)) translate(var(--orbit)) rotate(calc(-1 * var(--angle))) scale(1.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hm-ring__track {
    animation: none;
  }
}

/* Small doors */
.hm-small-doors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hm-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.55rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--hm-line);
  background: var(--hm-surface);
  color: var(--hm-ink);
  font-size: 0.92rem;
  font-weight: 700;
  transition: border-color 0.3s ease, transform 0.3s var(--hm-ease), box-shadow 0.3s ease;
}

.hm-chip:hover,
.hm-chip:focus-visible {
  border-color: rgba(124, 58, 237, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(49, 46, 129, 0.1);
  outline: none;
}

.hm-chip__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--hm-gold);
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.7);
}

/* Promise */
.hm-promise {
  margin: 2.5rem auto 1rem;
  max-width: var(--hm-max);
  padding: 0 1.35rem;
}

.hm-promise__inner {
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: calc(var(--hm-radius-lg) + 4px);
  border: 1px solid var(--hm-line);
  background: linear-gradient(135deg, #ffffff 0%, #f3f0ff 55%, #fff8e7 100%);
  overflow: hidden;
  box-shadow: var(--hm-shadow);
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 720px) {
  .hm-promise__inner {
    grid-template-columns: auto 1fr;
  }
}

.hm-promise__quote {
  margin: 0 0 0.75rem;
  font-family: var(--hm-font-display);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--hm-ink);
}

.hm-promise__note {
  margin: 0;
  color: var(--hm-muted);
}

.hm-promise__note strong {
  color: var(--hm-gold-deep);
}

/* Final CTA */
.hm-final {
  max-width: var(--hm-max);
  margin: 2.5rem auto 0;
  padding: 1rem 1.35rem 3rem;
  text-align: center;
}

.hm-final__logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.hm-final__title {
  margin: 0 0 0.55rem;
  font-family: var(--hm-font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.hm-final__lede {
  margin: 0 auto 1.35rem;
  color: var(--hm-muted);
  max-width: 28rem;
}

.hm-final .hm-btn-store {
  margin: 0 auto;
}

.hm-final__qr {
  margin: 1.25rem auto 0;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 12px;
  border: 1px dashed rgba(49, 46, 129, 0.3);
  display: grid;
  place-items: center;
  color: var(--hm-muted);
  font-size: 0.72rem;
  text-align: center;
  padding: 0.5rem;
  background: var(--hm-surface);
}

/* Footer */
.hm-footer {
  border-top: 1px solid var(--hm-line);
  max-width: var(--hm-max);
  margin: 0 auto;
  padding: 1.5rem 1.35rem 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  color: var(--hm-muted);
  font-size: 0.9rem;
}

.hm-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--hm-font-display);
  font-weight: 800;
  color: var(--hm-ink);
}

.hm-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

.hm-footer__links a:hover {
  color: var(--hm-ink);
}

/* Role page extras */
.hm-role-hero {
  max-width: var(--hm-max);
  margin: 0 auto;
  padding: 2.5rem 1.35rem 1.5rem;
}

.hm-role-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--hm-accent-hot);
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}

.hm-role-grid {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0 2rem;
}

@media (min-width: 720px) {
  .hm-role-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hm-role-point {
  padding: 1.1rem 1.15rem;
  border-radius: var(--hm-radius);
  background: var(--hm-surface);
  border: 1px solid var(--hm-line);
}

.hm-role-point h3 {
  margin: 0 0 0.35rem;
  font-family: var(--hm-font-display);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.hm-role-point p {
  margin: 0;
  color: var(--hm-muted);
  font-size: 0.95rem;
}

.hm-role-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0 2.5rem;
}

:focus-visible {
  outline: 2px solid var(--hm-accent);
  outline-offset: 3px;
}
