/* Homepage, built on the Dev components (dev.css). */

.hm-hero {
  background:
    radial-gradient(55% 60% at 72% 42%, rgba(255, 107, 53, 0.18), transparent 70%),
    radial-gradient(40% 45% at 66% 62%, rgba(92, 225, 255, 0.1), transparent 70%),
    #000;
}

.hm-lock .hm-key { animation: hm-pulse 2.8s ease-in-out infinite; }
.hm-lock .hm-lock__shackle { animation: hm-unlock 6s ease-in-out infinite; }

@keyframes hm-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

@keyframes hm-unlock {
  0%, 60%, 100% { transform: translateY(0); }
  75%, 88% { transform: translateY(-14px); }
}

.hm-paths {
  position: relative;
  z-index: 2;
  margin-top: clamp(40px, 7vh, 80px);
  padding-top: 22px;
  border-top: 1px solid var(--dv-line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  opacity: 0;
  animation: dv-fade 900ms ease 950ms forwards;
}

.hm-paths a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  transition: transform 220ms var(--dv-ease);
}

.hm-paths a:hover { transform: translateY(-2px); }
.hm-paths span { grid-row: span 2; color: var(--dv-orange); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hm-paths strong { font-size: 18px; font-weight: 650; }
.hm-paths em { color: var(--dv-mute); font-size: 14px; font-style: normal; }
.hm-paths a:hover strong { color: var(--dv-orange); }

/* Academy (the sale) */
.hm-academy__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.hm-ticks {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.hm-ticks li {
  position: relative;
  padding-left: 32px;
  color: #d2d2d7;
  font-size: 17px;
  line-height: 1.5;
}

.hm-ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.6l4.6-5' fill='none' stroke='%231a0f0a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat,
    var(--dv-orange);
}

.hm-price {
  margin: 34px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
}

.hm-price strong { font-size: 56px; line-height: 1; letter-spacing: -0.04em; }
.hm-price del { color: var(--dv-mute); font-size: 22px; font-weight: 600; }
.hm-price span { flex-basis: 100%; color: var(--dv-soft); font-size: 15px; }

.hm-static { opacity: 1; animation: none; }

.hm-preview {
  display: block;
  border: 1px solid var(--dv-line);
  border-radius: 26px;
  overflow: hidden;
  background: #111113;
  box-shadow: 0 50px 120px -50px rgba(255, 107, 53, 0.55);
  transition: transform 300ms var(--dv-ease);
}

.hm-preview:hover { transform: translateY(-4px); }

.hm-preview__bar {
  height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid var(--dv-line);
  background: #1a1a1d;
  display: flex;
  align-items: center;
  gap: 7px;
}

.hm-preview__bar i { width: 10px; height: 10px; border-radius: 50%; background: #48484c; }
.hm-preview__bar i:nth-child(1) { background: #ff5f57; }
.hm-preview__bar i:nth-child(2) { background: #febc2e; }
.hm-preview__bar i:nth-child(3) { background: #28c840; }
.hm-preview__bar b { margin-left: 10px; color: var(--dv-soft); font-size: 12px; font-weight: 600; }

.hm-preview ol { margin: 0; padding: 8px 20px 14px; list-style: none; }

.hm-preview li {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #e8e8ed;
  font-size: 15px;
  font-weight: 550;
}

.hm-preview li:last-child { border-bottom: 0; }
.hm-preview li b { color: rgba(245, 245, 247, 0.4); font-size: 13px; font-variant-numeric: tabular-nums; }

.hm-preview li em {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 107, 53, 0.14);
  color: #ff9a6c;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hm-preview li.is-free em { background: rgba(48, 209, 88, 0.16); color: #4be27a; }

/* Free resources */
.hm-free__grid,
.hm-work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.hm-work__grid { grid-template-columns: 1fr 1fr; }

.hm-card,
.hm-big {
  position: relative;
  min-height: 260px;
  padding: 30px;
  border: 1px solid var(--dv-line);
  border-radius: 26px;
  background: linear-gradient(170deg, #141416, #0b0b0d);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 260ms var(--dv-ease), border-color 260ms ease;
}

.hm-card:hover,
.hm-big:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.24); }

.hm-card__tag { color: var(--dv-orange); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }

.hm-card h3,
.hm-big h3 {
  margin: auto 0 10px;
  padding-top: 40px;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hm-card p,
.hm-big p { margin: 0; max-width: 34em; color: var(--dv-soft); font-size: 15.5px; line-height: 1.5; }

.hm-card__go { margin-top: 20px; color: var(--dv-ink); font-size: 15px; font-weight: 650; }
.hm-card__go::after { content: "\00a0\203A"; }
.hm-card:hover .hm-card__go,
.hm-big:hover .hm-card__go { color: var(--dv-orange); }

.hm-big { min-height: 380px; }
.hm-big h3 { font-size: clamp(32px, 3.4vw, 44px); }

.hm-big--consulting {
  background:
    radial-gradient(70% 70% at 100% 0%, rgba(92, 225, 255, 0.18), transparent 60%),
    linear-gradient(170deg, #141416, #0b0b0d);
}

.hm-big--dev {
  background:
    radial-gradient(70% 70% at 100% 0%, rgba(255, 107, 53, 0.24), transparent 60%),
    linear-gradient(170deg, #141416, #0b0b0d);
}

/* ---------- Founder: the particle portrait from About, assembling as you arrive ---------- */
.hm-founder {
  padding: clamp(90px, 11vw, 150px) 0;
  background: radial-gradient(45% 60% at 75% 50%, rgba(255, 184, 77, 0.1), transparent 70%), #000;
  border-top: 1px solid var(--dv-line);
  overflow: hidden;
}

.hm-founder__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hm-founder__lede {
  margin: 22px 0 0;
  max-width: 30em;
  color: var(--dv-soft);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
}

.hm-founder__facts {
  margin: 34px 0 36px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--dv-line);
}

.hm-founder__facts li { padding: 18px 16px 0 0; }
.hm-founder__facts strong { display: block; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.02em; }
.hm-founder__facts span { display: block; margin-top: 4px; color: var(--dv-mute); font-size: 14px; line-height: 1.4; }

.hm-founder__stage {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 640px;
  width: 100%;
}

.hm-founder__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  object-fit: cover;
  object-position: center 28%;
  filter: grayscale(1) contrast(1.15) brightness(0.72);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 42%, #000 45%, transparent 100%);
  mask-image: radial-gradient(70% 70% at 50% 42%, #000 45%, transparent 100%);
  transition: opacity 900ms var(--dv-ease);
}

.hm-founder__stage canvas {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  opacity: 0;
  transition: opacity 900ms var(--dv-ease);
}

.hm-founder__stage.is-ready canvas { opacity: 1; }
.hm-founder__stage.is-ready .hm-founder__poster { opacity: 0; }

@media (max-width: 1000px) {
  .hm-academy__grid { grid-template-columns: minmax(0, 1fr); }
  .hm-free__grid { grid-template-columns: 1fr; }
  .hm-card { min-height: 0; }
}

@media (max-width: 860px) {
  .hm-founder__grid { grid-template-columns: minmax(0, 1fr); }
  .hm-founder__stage { order: -1; width: min(420px, 100%); margin: 0 auto; }
  .hm-founder__facts { grid-template-columns: 1fr 1fr; }
  .hm-founder__facts li:last-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .hm-paths { grid-template-columns: 1fr; gap: 14px; }
  .hm-work__grid { grid-template-columns: 1fr; }
  .hm-big { min-height: 0; }
  .hm-price strong { font-size: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-lock .hm-key,
  .hm-lock .hm-lock__shackle { animation: none; }
  .hm-paths { opacity: 1; animation: none; }
}

/* A founding buyer's review under the Academy price. */
.hm-review { margin: 28px 0 0; }
