/* home.css — T2. Home page (.hm-*). Uses only tokens + shared classes from styles.css. */

/* ===================================================================== HERO */

.hm-hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--dock-h) + 4rem);
  padding-bottom: 5.5rem;
  display: flex;
  align-items: center;
}
.hm-hero-grid {
  width: 100%;
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
  justify-items: center;
  text-align: center;
}
.hm-copy { width: 100%; min-width: 0; }

/* ---- photo ---- */
.hm-photo {
  position: relative;
  width: 100%;
  max-width: 20rem;
  aspect-ratio: 4 / 5;
  margin: 0;
}
.hm-photo-plate {
  position: absolute;
  inset: 6% -5% -4% 5%;
  border-radius: var(--radius-2xl);
  transform: rotate(4deg);
  background:
    radial-gradient(rgba(255,255,255,.22) 1px, transparent 1.4px) 0 0 / 12px 12px,
    linear-gradient(160deg, #ff7a87 0%, #eb5160 45%, #8f1d2c 100%);
  box-shadow: 0 40px 90px -30px rgba(var(--accent-rgb), .55);
  transition: transform var(--dur-slow) var(--ease-out);
  animation: hm-swing 1.1s var(--ease-out) .15s backwards;
}
.hm-photo-card {
  position: relative;
  height: 100%;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow-pop);
  background: #12141b;
  isolation: isolate;
  transition: transform var(--dur-slow) var(--ease-out);
  animation: hm-fade-up .9s var(--ease-out) backwards;
}
.hm-photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  filter: saturate(.92) contrast(1.04);
}
.hm-photo-card::after,
.hm-photo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hm-photo-card::after {
  z-index: 1;
  background: linear-gradient(180deg, transparent 38%, rgba(var(--accent-rgb), .38) 68%, rgba(110,18,32,.94) 100%);
}
.hm-photo-card::before {
  z-index: 2;
  opacity: .5;
  background: radial-gradient(rgba(255,255,255,.22) 1px, transparent 1.4px) 0 0 / 12px 12px;
  -webkit-mask-image: linear-gradient(transparent 55%, #000);
          mask-image: linear-gradient(transparent 55%, #000);
}
.hm-photo-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  text-align: left;
}
.hm-photo-year {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font: 700 .75rem/1 var(--font-mono);
  letter-spacing: .2em;
  color: #ffd9dd;
  margin-bottom: .35rem;
}
.hm-photo-year::before {
  content: "";
  width: 32px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.hm-photo-line {
  font: 500 .65rem/1.35 var(--font-mono);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
}
@media (hover: hover) and (pointer: fine) {
  .hm-photo:hover .hm-photo-plate { transform: rotate(6deg); }
  .hm-photo:hover .hm-photo-card { transform: translateY(-4px); }
}

/* ---- headline ---- */
.hm-title { margin: 0; }
.hm-line {
  display: block;
  overflow: hidden;
  /* room for Ö dots, y descender and the italic overhang inside the mask */
  padding: .14em .12em .16em;
  margin: -.14em -.12em -.16em;
}
.hm-line > span {
  display: block;
  animation: hm-rise .9s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 120ms + 80ms);
}
.hm-line--ghost > span {
  font-style: italic;
  color: var(--color-ghost);
  padding-right: .06em;
}

.hm-kicker { margin-top: 2rem; }

/* ---- typewriter ---- */
.hm-typed { margin: 1rem 0 0; }
.hm-typed-box { display: grid; }
.hm-typed-box > * { grid-area: 1 / 1; }
.hm-typed-ghost { visibility: hidden; }
.hm-typed-ghost .hm-caret { animation: none; }
.hm-typed-text {
  /* solid ink, no gradient: the role reads as a headline, the caret carries the accent */
  color: var(--color-text);
}
.hm-caret {
  /* the "|" glyph stays in the markup; it is drawn as a slim accent bar instead */
  display: inline-block;
  width: .055em;
  min-width: 2px;
  height: .86em;
  margin-left: .12em;
  vertical-align: -.09em;
  border-radius: 2px;
  background: var(--color-accent);
  color: transparent;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
  animation: hm-blink 1s steps(1, end) infinite;
}
.hm-typed.is-typing .hm-typed-live .hm-caret { animation: none; opacity: 1; }
.hm-typed.is-static .hm-caret { animation: none; opacity: 1; }

.hm-lead {
  max-width: 34rem;
  margin: 1.5rem auto 0;
}

/* ---- actions row ---- */
.hm-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.25rem;
}
.hm-socials { display: flex; gap: .75rem; }

.hm-status {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  height: 56px;
  padding: 0 1rem;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  text-align: left;
  max-width: 100%;
}
.hm-eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 20px;
  flex: none;
}
.hm-eq i {
  display: block;
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--color-accent);
  transform-origin: 50% 100%;
  animation: hm-eq 1.1s ease-in-out infinite alternate;
}
.hm-eq i:nth-child(1) { animation-duration: .9s;  animation-delay: -.2s; }
.hm-eq i:nth-child(2) { animation-duration: 1.3s; animation-delay: -.7s; }
.hm-eq i:nth-child(3) { animation-duration: 1.05s; animation-delay: -.4s; }
.hm-eq i:nth-child(4) { animation-duration: 1.2s; animation-delay: -1s; }
.hm-status-copy {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-width: 0;
}
.hm-status-label.label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .55rem;
  letter-spacing: .3em;
  line-height: 1;
}
.hm-ok {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-ok);
  flex: none;
}
.hm-ok::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-ok);
  animation: hm-ping 2s var(--ease-out) infinite;
}
.hm-status-title {
  font: 600 .85rem/1.2 var(--font-body);
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hm-status-meta {
  display: none;
  font: 500 .65rem/1 var(--font-mono);
  letter-spacing: .12em;
  color: var(--color-muted);
  padding-left: .85rem;
  margin-left: .1rem;
  border-left: 1px solid var(--color-border-soft);
  align-self: stretch;
  align-items: center;
  white-space: nowrap;
}

/* entrance for the copy column */
.hm-kicker, .hm-typed, .hm-lead, .hm-actions {
  animation: hm-fade-up .8s var(--ease-out) backwards;
}
.hm-kicker  { animation-delay: .32s; }
.hm-typed   { animation-delay: .4s; }
.hm-lead    { animation-delay: .48s; }
.hm-actions { animation-delay: .56s; }

/* ---- scroll cue ---- */
.hm-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: .5rem .75rem;
  border: 0;
  background: none;
  color: var(--color-faint);
  font: 700 .6rem/1 var(--font-mono);
  letter-spacing: .4em;
  cursor: pointer;
  transition: color var(--dur-base);
  animation: hm-fade 1s ease .9s backwards;
}
.hm-scroll:hover { color: var(--color-text); }
.hm-scroll-text { padding-left: .4em; } /* balance the trailing tracking */
.hm-scroll-line {
  position: relative;
  display: block;
  width: 1px;
  height: 40px;
  overflow: hidden;
  background: var(--color-border);
}
.hm-scroll-line i {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 40%;
  background: var(--color-accent);
  animation: hm-drop 1.8s var(--ease-in-out) infinite;
}
@media (max-height: 639.98px) { .hm-scroll { display: none; } }

@media (max-width: 639.98px) {
  .hm-typed-box { min-height: 2.3em; }
}
@media (max-width: 1023.98px) {
  .hm-hero { padding-bottom: 7.5rem; } /* stacked hero: keep the scroll cue clear of the status card */
}
@media (min-width: 640px) {
  .hm-status-meta { display: inline-flex; }
}
@media (min-width: 1024px) {
  .hm-hero-grid {
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    justify-items: stretch;
    text-align: left;
  }
  .hm-copy { order: 1; }
  .hm-photo { order: 2; justify-self: end; max-width: 26rem; }
  .hm-lead { margin-left: 0; margin-right: 0; }
  .hm-actions { justify-content: flex-start; }
}

/* ================================================================= NUMBERS */

.hm-numbers-head .h-section { margin: 1.1rem 0 0; }
.hm-numbers-sub { max-width: 40rem; margin: 1.25rem 0 0; }

.hm-stats {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}
.hm-stat {
  border-left: 2px solid rgba(var(--accent-rgb), .5);
  padding-left: 1.25rem;
}
.hm-stat .label { margin: 0; }
.hm-stat-value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .6rem;
  margin: 1rem 0 0;
}
.hm-count { font-variant-numeric: tabular-nums; color: var(--color-text); }
.hm-stat-unit { font-size: .75rem; }
.hm-stat-note { margin: .65rem 0 0; max-width: 22rem; }

/* ---- distribution ---- */
.hm-dist { margin-top: 3.5rem; }
.hm-dist .label { margin: 0; }
.hm-dist-bar {
  display: flex;
  height: 14px;
  margin-top: 1.25rem;
  border-radius: var(--radius-full);
  background: var(--heat-0);
  overflow: hidden;
}
.hm-seg {
  display: block;
  height: 100%;
  width: 0;
  flex: none;
  border-radius: var(--radius-full);
  background: var(--c);
  transition: width 900ms var(--ease-out) var(--d, 0ms);
}
.hm-seg + .hm-seg { margin-left: 2px; }
.hm-dist-bar.is-grown .hm-seg { width: calc((100% - var(--gaps, 0) * 2px) * var(--f)); }

.hm-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1.5rem;
  margin-top: 1.75rem;
}
.hm-leg { display: flex; gap: .75rem; min-width: 0; }
.hm-leg-dot {
  width: 8px;
  height: 8px;
  margin-top: .45rem;
  border-radius: 50%;
  background: var(--c);
  flex: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent);
}
.hm-leg-body { min-width: 0; }
.hm-leg-body p { margin: 0; }
.hm-leg-name {
  font: 600 1rem/1.3 var(--font-head);
  color: var(--color-text);
}
.hm-leg-focus {
  margin-top: .25rem !important;
  font: 500 .7rem/1.4 var(--font-mono);
  letter-spacing: .08em;
  color: var(--color-muted);
}
.hm-leg-pct {
  margin-top: .8rem !important;
  font: 600 calc(clamp(2.4rem, 5vw, 4rem) * .6)/1 var(--font-head);
  letter-spacing: -.03em;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}
.hm-pct-sign { font-size: .62em; color: var(--color-muted); margin: 0 .06em; letter-spacing: 0; }
.hm-leg-months {
  margin-top: .4rem !important;
  font: 500 .7rem/1 var(--font-mono);
  letter-spacing: .1em;
  color: var(--color-faint);
}
.hm-dist-note { margin: 1.75rem 0 0; max-width: 48rem; }

.hm-divider { margin-block: 3rem; }

/* ---- timeline heat-map ---- */
.hm-tl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.hm-tl-head .label { margin: 0; }
.hm-tabs {
  display: flex;
  gap: .25rem;
  max-width: 100%;
  padding: .25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  overflow-x: auto;
  scrollbar-width: none;
}
.hm-tabs::-webkit-scrollbar { display: none; }
.hm-tab {
  flex: none;
  height: 2rem;
  padding: 0 .95rem;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-muted);
  font: 700 .7rem/1 var(--font-mono);
  letter-spacing: .12em;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-fast), box-shadow var(--dur-base);
}
.hm-tab:hover { color: var(--color-text); }
.hm-tab.is-active {
  background: var(--color-accent);
  color: var(--color-on-accent);
  box-shadow: var(--shadow-glow);
}

.hm-heat-wrap { position: relative; margin-top: 1.75rem; }
.hm-heat-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
  padding: 4px 2px 6px 0; /* room for hover rings */
}
.hm-heat {
  --cell-min: 28px;
  --cell-gap: 4px;
  display: grid;
  grid-template-columns: 5.5rem repeat(var(--years), minmax(var(--cell-min), 1fr));
  gap: var(--cell-gap);
  min-width: calc(5.5rem + var(--years) * (var(--cell-min) + var(--cell-gap)));
}
.hm-heat-lane {
  position: sticky;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding-right: .5rem;
  background: var(--color-surface);
  box-shadow: 10px 0 12px -10px var(--color-surface);
  font: 700 .65rem/1.1 var(--font-mono);
  letter-spacing: .14em;
  color: var(--color-muted);
  transition: opacity var(--dur-base);
}
.hm-cell {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--h);
  box-shadow: inset 0 0 0 1px var(--color-border-soft);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-base), box-shadow var(--dur-fast);
}
.hm-cell[data-level="3"] { box-shadow: 0 0 16px -2px rgba(var(--accent-rgb), .45); }
.hm-cell:hover,
.hm-cell.is-current {
  transform: scale(1.1);
  box-shadow: 0 0 0 2px var(--color-surface), 0 0 0 3.5px var(--color-text);
  position: relative;
  z-index: 1;
}
.hm-cell.is-dim,
.hm-heat-lane.is-dim { opacity: .18; }
.hm-cell.is-dim { cursor: default; pointer-events: none; }
.hm-heat-axis-pad {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--color-surface);
}
.hm-year {
  padding-top: .4rem;
  text-align: center;
  font: 500 .6rem/1 var(--font-mono);
  letter-spacing: .04em;
  color: var(--color-faint);
  font-variant-numeric: tabular-nums;
}
.hm-year--last { color: var(--color-accent-text); font-weight: 700; }
@media (max-width: 1023.98px) {
  .hm-year--odd { visibility: hidden; }
  .hm-year--last { visibility: visible; }
}
@media (min-width: 768px) {
  .hm-heat { --cell-gap: 6px; }
}
@media (pointer: coarse) {
  .hm-heat { --cell-min: 40px; }
  .hm-tab { height: 2.5rem; }
}

.hm-tip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 6;
  width: max-content;
  max-width: min(20rem, 100%);
  padding: .85rem 1rem .9rem;
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-pop);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-fast) ease;
  text-align: left;
}
.hm-tip.is-on { opacity: 1; }
.hm-tip::after {
  content: "";
  position: absolute;
  left: var(--ax, 50%);
  bottom: -6px;
  width: 10px;
  height: 10px;
  background: var(--color-surface-2);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  transform: translateX(-50%) rotate(45deg);
}
.hm-tip.is-below::after {
  bottom: auto;
  top: -6px;
  transform: translateX(-50%) rotate(225deg);
}
.hm-tip-head {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  margin: 0;
}
.hm-tip-year { font: 700 .85rem/1 var(--font-mono); color: var(--color-accent-text); letter-spacing: .06em; }
.hm-tip-lane { font: 700 .6rem/1 var(--font-mono); letter-spacing: .3em; color: var(--color-faint); }
.hm-tip ul { list-style: none; margin: .65rem 0 0; padding: 0; display: grid; gap: .45rem; }
.hm-tip li {
  position: relative;
  padding-left: .95rem;
  font-size: .8rem;
  line-height: 1.45;
  color: var(--color-text);
}
.hm-tip li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
}
.hm-tip-empty { margin: .55rem 0 0; font-size: .8rem; color: var(--color-muted); font-style: italic; }

.hm-tl-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .35rem;
  margin-top: 1rem;
  font: 700 .6rem/1 var(--font-mono);
  letter-spacing: .2em;
  color: var(--color-faint);
}
.hm-tl-legend span:first-child { margin-right: .35rem; }
.hm-tl-legend span:last-child { margin-left: .35rem; }
.hm-tl-legend i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--h);
  box-shadow: inset 0 0 0 1px var(--color-border-soft);
}
.hm-tl-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem 2rem;
  margin-top: 1.25rem;
}
.hm-tl-foot p { margin: 0; }
.hm-tl-foot .t-small { max-width: 34rem; }
.hm-tl-updated {
  font: 500 .6rem/1.5 var(--font-mono);
  letter-spacing: .25em;
  color: var(--color-faint);
}

@media (min-width: 768px) {
  .hm-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .hm-legend { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ==================================================================== DOTS */

.hm-dots-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hm-dots-head .label { margin: 0; }
.hm-dots-title { max-width: 20ch; margin: 1.1rem auto 0; text-wrap: balance; }
.hm-dots-sub {
  max-width: 46rem;
  margin: 1.5rem auto 0;
  font-size: .85rem;
  line-height: 1.9;
  letter-spacing: .02em;
  color: var(--color-muted);
}
.hm-dots .hl { color: var(--color-text); font-weight: 700; }
.hm-dots-sub .accent { font-weight: 700; }

.hm-dots-panel {
  margin-top: 3rem;
  border-radius: var(--radius-2xl);
  padding: clamp(1rem, 3vw, 2.5rem);
  transition: border-color var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out);
}
.hm-dots-panel[data-tier="me"] {
  border-color: rgba(var(--accent-rgb), .45);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(var(--accent-rgb), .12), 0 30px 80px -40px rgba(var(--accent-rgb), .45);
}
.hm-dots-stage { width: 100%; }
.hm-dots-canvas {
  display: block;
  margin-inline: auto;
  max-width: 100%;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.hm-dots-detail {
  min-height: 4.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border-soft);
  text-align: left;
}
.hm-dots-detail p { margin: 0; }
.hm-dots-detail-title {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .35rem !important;
  font: 600 1.1rem/1.3 var(--font-head);
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}
.hm-dots-detail-title[hidden] { display: none; }

.hm-key {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
  background: var(--dot-base);
}
.hm-key--top { background: var(--dot-top); }
.hm-key--me {
  background: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .18), 0 0 12px rgba(var(--accent-rgb), .8);
}

.hm-dots-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}
.hm-dots-keys {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font: 700 .7rem/1.2 var(--font-mono);
  letter-spacing: .14em;
  color: var(--color-muted);
}
.hm-dots-keys li { display: inline-flex; align-items: center; gap: .6rem; }
.hm-dots-find { flex: none; }
.hm-dots-source {
  margin: 1.5rem 0 0;
  font: 500 .65rem/1.7 var(--font-mono);
  letter-spacing: .2em;
  color: var(--color-faint);
}

/* =============================================================== STATEMENT */

.hm-statement-text {
  margin: 0;
  text-align: center;
  font: 500 clamp(1.6rem, 3.6vw, 2.75rem)/1.3 var(--font-head);
  letter-spacing: -.015em;
  color: var(--color-text);
  text-wrap: balance;
}
.hm-statement .uline {
  text-decoration: none;
  background: linear-gradient(var(--color-accent), var(--color-accent)) 0 100% / calc(var(--uline-p, 0) * 100%) 3px no-repeat;
  padding-bottom: 4px;
}

/* ================================================================= EXPLORE */

.hm-explore-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
}
.hm-explore-head .label { margin: 0; }
.hm-explore-title { margin: 1rem 0 0; }
.hm-pill {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: .6rem .6rem .6rem 1.25rem;
  border-radius: var(--radius-full);
  color: inherit;
  text-decoration: none;
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base);
}
.hm-pill > * { position: relative; z-index: 1; }
.hm-pill .label { margin: 0; }
.hm-pill-title { font: 600 1.05rem/1 var(--font-head); color: var(--color-text); }

.hm-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 3rem;
}
.hm-link-wrap { display: flex; }
.hm-link {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-height: 13rem;
  padding: 1.75rem;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
          appearance: none;
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base);
}
.hm-link > * { position: relative; z-index: 1; }
.hm-link-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.hm-link-spacer { flex: 1 1 auto; min-height: 2.25rem; }
.hm-link-title { display: block; margin-bottom: .5rem; color: var(--color-text); }
.hm-link-desc { display: block; max-width: 32rem; }
@media (hover: hover) {
  .hm-link:hover, .hm-pill:hover { transform: translateY(-2px); }
}

@media (min-width: 768px) {
  .hm-explore-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .hm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ================================================================ KEYFRAMES */

@keyframes hm-rise    { from { transform: translateY(105%); } to { transform: none; } }
@keyframes hm-fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hm-fade    { from { opacity: 0; } to { opacity: 1; } }
@keyframes hm-swing   { from { transform: rotate(0deg); opacity: 0; } 30% { opacity: 1; } to { transform: rotate(4deg); } }
@keyframes hm-blink   { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes hm-eq      { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
@keyframes hm-ping    { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(3); opacity: 0; } }
@keyframes hm-drop    { from { transform: translateY(-100%); } to { transform: translateY(250%); } }

/* In-place re-render (language switch): no intro replay. */
.hm--static .hm-line > span,
.hm--static .hm-photo-plate,
.hm--static .hm-photo-card,
.hm--static .hm-kicker,
.hm--static .hm-typed,
.hm--static .hm-lead,
.hm--static .hm-actions,
.hm--static .hm-scroll,
.hm--static .hm-seg { animation: none; transition: none; }

/* ========================================================== REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  .hm-line > span,
  .hm-photo-plate,
  .hm-photo-card,
  .hm-kicker, .hm-typed, .hm-lead, .hm-actions,
  .hm-scroll,
  .hm-caret,
  .hm-ok::after { animation: none !important; }
  .hm-eq i { animation: none; }
  .hm-eq i:nth-child(1) { transform: scaleY(.55); }
  .hm-eq i:nth-child(2) { transform: scaleY(1); }
  .hm-eq i:nth-child(3) { transform: scaleY(.7); }
  .hm-eq i:nth-child(4) { transform: scaleY(.4); }
  .hm-scroll-line i { animation: none; transform: translateY(75%); }
  .hm-seg { transition: none; }
  .hm-photo-plate, .hm-photo-card, .hm-link, .hm-pill, .hm-cell { transition: none; }
  .hm-photo:hover .hm-photo-plate { transform: rotate(4deg); }
  .hm-photo:hover .hm-photo-card,
  .hm-link:hover, .hm-pill:hover,
  .hm-cell:hover, .hm-cell.is-current { transform: none; }
  .hm-statement { --uline-p: 1; }
}

/* labels may wrap on narrow screens: give wrapped lines air */
.hm .label { line-height: 1.6; }

@media (max-width: 639.98px) {
  .hm-tabs { flex-wrap: wrap; border-radius: var(--radius-lg); overflow: visible; }
}
.hm-heat-scroll.has-left-fade {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 2.25rem);
  mask-image: linear-gradient(to right, transparent 0, #000 2.25rem);
}
