.hm-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 28px var(--page-pad-x);
    box-sizing: border-box;
}

.hm-main { flex: 1; display: flex; flex-direction: column; }

.hm-hero {
    flex: none;
    display: grid;

    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: 40px;
    box-sizing: border-box;
    min-height: calc(100vh - 92px);
    min-height: calc(100svh - 92px);
    padding: 32px 0;
}

.hm-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.hm-headline {
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: var(--font-display);
    font-size: clamp(40px, 5.6vw, 66px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.hm-headline-accent {
    background: linear-gradient(90deg, #7c3aed, #5a35c9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hm-headline-dot { color: var(--accent); }

.hm-desc {
    margin: 0;
    max-width: 46ch;
    font-size: var(--fs-lead);
    line-height: 1.65;
    color: var(--text-muted-2);
}

.hm-art-box {
    container-type: inline-size;
    display: grid;
    place-items: center;
    min-width: 0;
}

.hm-art {
    font-size: min(10.5px, calc(100cqi / 48), calc((100vh - 160px) / 56.25));
    font-size: min(10.5px, calc(100cqi / 48), calc((100svh - 160px) / 56.25));
}

.hm-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 24px 0 20px;
}

.hm-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 230px;

    padding: 28px 88px 28px 28px;
    box-sizing: border-box;
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(139, 92, 246, 0.14), transparent 60%),
        var(--surface-2);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    transition: transform var(--ease), border-color var(--ease);
}

.hm-tile:hover { color: var(--text-primary); border-color: var(--border-accent-ctrl); transform: translateY(-2px); }
.hm-tile:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 4px; }

.hm-tile-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;

    margin-bottom: auto;
    background: var(--surface-accent-soft);
    border: 1px solid var(--border-accent-ctrl);
    border-radius: var(--radius-md);
    color: var(--accent-hover);
}

.hm-tile svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hm-tile-title {
    margin-top: 28px;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.hm-tile-desc {
    font-size: var(--fs-lead);
    line-height: 1.5;
    color: var(--text-muted-2);
}

.hm-tile-go {
    position: absolute;
    right: 24px;
    bottom: 28px;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border-accent-ctrl);
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.08);
    color: var(--accent);
    transition: background var(--ease), border-color var(--ease);
}

.hm-tile:hover .hm-tile-go { background: rgba(139, 92, 246, 0.22); border-color: var(--accent); }

.hm-follow {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 56px;
    padding: 24px 28px;
    box-sizing: border-box;
    background:
        radial-gradient(120% 160% at 100% 0%, rgba(139, 92, 246, 0.14), transparent 60%),
        var(--surface-2);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    transition: transform var(--ease), border-color var(--ease);
}

.hm-follow:hover { color: var(--text-primary); border-color: var(--border-accent-ctrl); transform: translateY(-2px); }
.hm-follow:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 4px; }

.hm-follow-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 56px;
    height: 56px;
    box-sizing: border-box;
    background: var(--surface-1);
    border: 1px solid var(--border-accent-ctrl);
    border-radius: var(--radius-md);
    color: var(--accent);
}

.hm-follow-icon svg { width: 30px; height: 30px; fill: currentColor; }

.hm-follow-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.hm-follow-title {
    font-size: var(--fs-h3);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.hm-follow-desc {
    font-size: var(--fs-body);
    line-height: 1.5;
    color: var(--text-muted-2);
}

.hm-follow-go {
    display: grid;
    place-items: center;
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--on-accent);
    transition: background var(--ease);
}

.hm-follow:hover .hm-follow-go { background: var(--accent-hover); }

.hm-follow-go svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hm-testimonials { padding: 16px 0 var(--page-space-bottom); }
.hm-testimonials h2 { margin: 0 0 24px; font-size: var(--fs-h2); }

@media (max-width: 900px) {

    .hm-tiles { grid-template-columns: 1fr; gap: 12px; padding-bottom: 12px; }
    .hm-follow { gap: 16px; padding: 24px; }
    .hm-tile { min-height: 0; padding: 24px 84px 24px 24px; }
    .hm-tile-title { margin-top: 20px; font-size: 24px; }

    .hm-hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 32px 0;
    }

    .hm-headline { font-size: clamp(40px, 12vw, 66px); }
}

@media (max-width: 640px) {
    .hm-page { padding: 20px var(--page-pad-x-mobile); }

    .hm-hero { min-height: calc(100svh - 80px); }
    .hm-follow { flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px 84px 24px 24px; }
    .hm-follow-icon { width: 48px; height: 48px; }
    .hm-follow-icon svg { width: 26px; height: 26px; }
    .hm-follow-go { position: absolute; right: 24px; bottom: 28px; }
}

.testimonials { display: block; }

.tm {
  display: flex;
  gap: 20px;

  margin: -2px;
  padding: 2px;
  scroll-padding-inline: 2px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.tm::-webkit-scrollbar { display: none; }
.tm:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius-lg); }

.tm > li { display: flex; flex-direction: column; flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; }

.tm-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 20px;
  aspect-ratio: 1;
  margin: 0;
  padding: 30px;
  box-sizing: border-box;
  background: var(--surface-2);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  transition: border-color var(--ease);
}
.tm-card:hover { border-color: var(--border-accent-strong); }

.tm-mark { display: block; flex-shrink: 0; width: 28px; height: 21px; fill: var(--accent); }

.tm-quote { flex: 1; margin: 0; }
.tm-quote p {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-primary);
  text-wrap: pretty;
}

.tm-name {
  padding-top: 18px;
  border-top: 1px solid var(--border-hairline);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.tm-dots { display: flex; justify-content: center; gap: 4px; margin-top: 20px; }
.tm-dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.tm-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--border-control);
  transition: width var(--ease), background var(--ease);
}
.tm-dot:hover::before { background: var(--text-faint); }
.tm-dot--active::before { width: 20px; background: var(--accent); }
.tm-dot:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 2px; border-radius: var(--radius-pill); }

@media (max-width: 900px) {
  .tm > li { flex-basis: calc((100% - 20px) / 2); }
}

@media (max-width: 640px) {
  .tm > li { flex-basis: 100%; }
  .tm-card { aspect-ratio: auto; min-height: 300px; padding: 26px 22px; }
}
