/* ==========================================================================
   Homepage — redesigned sections (templates in blocks/home/)
   Light, sand and dark sections alternate; each sets the colour variables its
   children use. Motion lives in blocks/js/home_page.js; everything here renders
   fine without it, and the hero headline animates with CSS alone.
   ========================================================================== */

.hm-page {
  --hm-ink: #172125;
  --hm-ink-2: #1d2a2f;
  --hm-paper: #f7f5f4;
  --hm-sand: #efebe7;
  --hm-coral: #f0493e;
  --hm-ember: #f7722f;
  --hm-btn: linear-gradient(270deg, #ce4961 8.92%, #c94d45 84.76%);
  --hm-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hm-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- Section themes ---------- */

.hm-sec {
  position: relative;
  color: var(--fg);
}
.hm-sec.is-light {
  --bg: var(--hm-paper);
  --card: #fff;
  --fg: #172125;
  --fg-muted: rgba(23, 33, 37, 0.68);
  --fg-faint: rgba(23, 33, 37, 0.42);
  --line: rgba(23, 33, 37, 0.1);
  --line-strong: rgba(23, 33, 37, 0.2);
  --grad: linear-gradient(92deg, #c94d45 10%, #f7722f 90%);
  --fg-label: #8a827c;
}
.hm-sec.is-sand {
  --bg: var(--hm-sand);
  --card: #fbfaf9;
  --fg: #172125;
  --fg-muted: rgba(23, 33, 37, 0.68);
  --fg-faint: rgba(23, 33, 37, 0.42);
  --line: rgba(23, 33, 37, 0.1);
  --line-strong: rgba(23, 33, 37, 0.2);
  --grad: linear-gradient(92deg, #c94d45 10%, #f7722f 90%);
  --fg-label: #8a827c;
}
.hm-sec.is-dark {
  --bg: var(--hm-ink);
  --card: var(--hm-ink-2);
  --fg: #f7f5f4;
  --fg-muted: rgba(247, 245, 244, 0.64);
  --fg-faint: rgba(247, 245, 244, 0.38);
  --line: rgba(247, 245, 244, 0.1);
  --line-strong: rgba(247, 245, 244, 0.2);
  --grad: linear-gradient(92deg, #f7f5f4 12%, #e8ad94 42%, #f7722f 78%);
  --fg-label: rgba(247, 245, 244, 0.55);
}

.hm-sec > .w-container,
.hm-sec > .sidebar {
  position: relative;
  background: var(--bg);
}
.hm-sec > .sidebar {
  border-right: 1px solid var(--line-strong);
}
.hm-sec > .sidebar > h5 {
  color: var(--fg);
}
/* Rail accent grows as the section scrolls past (JS sets --hm-rail) */
.hm-sec > .sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, var(--hm-ember), var(--hm-coral));
  transform-origin: top;
  transform: scaleY(var(--hm-rail, 0));
}

.hm-sticky {
  position: sticky;
  top: 12rem;
}

/* ---------- Shared type ---------- */

.hm-eyebrow {
  display: block;
  margin-bottom: 2.4rem;
  font-family: "Satoshi-Bold";
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-label);
}

.hm-page .hm-h2,
.hm-page .hm-h2 p {
  font-family: "Satoshi-Bold";
  font-size: clamp(3.2rem, 3.4vw, 5.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.hm-page .hm-h3,
.hm-page .hm-h3 p {
  font-family: "Satoshi-Bold";
  font-size: clamp(2.8rem, 2.6vw, 4rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.hm-page .hm-h2 p,
.hm-page .hm-h3 p {
  display: inline;
  font-size: inherit !important;
}
/* Bold words in CMS headings take the section's gradient. Once JS splits a heading
   into words, each word carries its own sampled colour and the gradient is dropped. */
.hm-page .hm-h2 b,
.hm-page .hm-h3 b {
  font-weight: inherit;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hm-page b.hm-plain,
.hm-page b.hm-plain span {
  background: none;
  -webkit-text-fill-color: currentColor;
}

.hm-page .hm-lead {
  max-width: 60rem;
  margin-top: 2.8rem;
  font-size: 1.8rem;
  line-height: 1.6;
  color: var(--fg-muted);
}

.hm-head {
  max-width: 110rem;
  padding-bottom: 8rem;
}

/* Split-text masks (built by JS for section headings, by the template for the hero) */
.hm-page .hm-w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.hm-page .hm-w > span {
  display: inline-block;
  will-change: transform;
}

/* ---------- Buttons & links ---------- */

.hm-page .hm-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2.4rem;
  height: 5.6rem;
  padding: 0 1.2rem 0 2.8rem;
  overflow: hidden;
  isolation: isolate;
  font-family: "Satoshi-Black";
  font-size: 1.4rem;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  color: #fff;
  background: var(--hm-btn);
  text-decoration: none;
  will-change: transform;
}
.hm-page .hm-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hm-ink);
  transform: translateY(101%);
  transition: transform 0.55s var(--hm-ease);
}
.hm-page .is-dark .hm-btn::before {
  background: var(--hm-paper);
}
.hm-page .hm-btn__icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 3.2rem;
  transition: transform 0.55s var(--hm-ease);
}
.hm-page .hm-btn:hover::before,
.hm-page .hm-btn:focus-visible::before {
  transform: translateY(0);
}
.hm-page .is-dark .hm-btn:hover,
.hm-page .is-dark .hm-btn:focus-visible {
  color: #c94d45;
}
.hm-page .hm-btn:hover .hm-btn__icon {
  transform: translateX(0.6rem);
}
.hm-page .hm-btn:focus-visible,
.hm-page .hm-textlink:focus-visible,
.hm-page .hm-arrow:focus-visible,
.hm-page .hm-svc:focus-visible,
.hm-page .hm-post:focus-visible,
.hm-page .hm-case--more:focus-visible {
  outline: 2px solid var(--hm-ember);
  outline-offset: 4px;
}

.hm-page .hm-btn.is-ghost {
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--line-strong);
}
.hm-page .hm-btn.is-ghost::before {
  background: var(--fg);
}
.hm-page .hm-btn.is-ghost:hover,
.hm-page .hm-btn.is-ghost:focus-visible {
  color: var(--bg);
  border-color: var(--fg);
}

.hm-page .hm-textlink {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: "Satoshi-Bold";
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.3s;
}
.hm-page .hm-textlink svg {
  transition: transform 0.45s var(--hm-ease);
}
.hm-page .hm-textlink:hover {
  color: var(--fg);
}
.hm-page .hm-textlink:hover svg {
  transform: translateY(0.3rem);
}
.hm-page .hm-textlink.is-strong {
  font-size: 1.4rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--fg);
}
.hm-page .hm-textlink.is-strong:hover svg {
  transform: translateX(0.6rem);
}

/* ---------- Marquee (CSS loop; JS only nudges its speed with scroll velocity) ---------- */

.hm-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hm-marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: hm-marquee 60s linear infinite;
}
.hm-marquee:hover .hm-marquee__track {
  animation-play-state: paused;
}
@keyframes hm-marquee {
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hm-hero .hm-hero__main {
  min-height: calc(100vh - 20rem);
  min-height: calc(100svh - 20rem);
  padding-top: 12rem;
  padding-bottom: 2.4rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hm-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(23, 33, 37, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 37, 0.05) 1px, transparent 1px);
  background-size: 8rem 8rem;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 15%, transparent 72%);
  pointer-events: none;
}
.hm-hero__glow {
  --gx: 72%;
  --gy: 40%;
  position: absolute;
  inset: 0;
  background: radial-gradient(48rem circle at var(--gx) var(--gy), rgba(247, 114, 47, 0.14), transparent 70%);
  pointer-events: none;
}

.hm-hero__inner {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 6rem;
}

.hm-hero__eyebrow {
  animation: hm-in 0.9s var(--hm-ease) 0.05s both;
}

.hm-page .hm-hero__title {
  max-width: 82rem;
  font-family: "Satoshi-Bold";
  font-size: clamp(4.6rem, 5.6vw, 9rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--fg);
}
.hm-slide.is-active .hm-hero__title .hm-w > span {
  animation: hm-rise 1.15s var(--hm-ease) both;
  animation-delay: calc(var(--i) * 55ms + 120ms);
}
/* Room below the baseline for descenders (g, p, y): the mask and, for gradient words, the
   painted background both stop at the line box, so both get extra bottom padding that the
   negative margin takes back out of the layout. */
.hm-page .hm-hero__title .hm-w {
  padding-bottom: 0.24em;
  margin-bottom: -0.24em;
}
.hm-hero__title .hm-w > span {
  padding-bottom: 0.24em;
  margin-bottom: -0.24em;
}
.hm-hero__title .hm-w.is-accent > span {
  background: linear-gradient(92deg, #c94d45 0%, #f7722f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes hm-rise {
  from { transform: translateY(112%) rotate(4deg); }
  to { transform: none; }
}
@keyframes hm-in {
  from { opacity: 0; transform: translateY(2.4rem); }
  to { opacity: 1; transform: none; }
}

.hm-page .hm-hero__lead {
  max-width: 60rem;
  margin-top: 3.2rem;
  font-size: 2rem;
  line-height: 1.55;
  color: var(--fg-muted);
}
.hm-slide.is-active .hm-hero__lead {
  animation: hm-in 1s var(--hm-ease) 0.5s both;
}

.hm-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3.6rem;
  margin-top: 4.8rem;
}
.hm-slide.is-active .hm-hero__actions {
  animation: hm-in 1s var(--hm-ease) 0.65s both;
}

/* Slides: stacked in one grid cell so the hero keeps the tallest slide's height */
.hm-slides,
.hm-visuals {
  display: grid;
}
.hm-slide,
.hm-visual {
  grid-area: 1 / 1;
  min-width: 0;
}
.hm-slide {
  align-self: start;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.45s var(--hm-ease), visibility 0s linear 0.45s;
}
.hm-slide.is-active {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.45s var(--hm-ease), visibility 0s;
}
.hm-visuals {
  justify-self: end;
  width: 100%;
  max-width: 60rem;
}
.hm-visual {
  visibility: hidden;
  opacity: 0;
  scale: 0.96;
  transition: opacity 0.6s var(--hm-ease), scale 0.9s var(--hm-ease), visibility 0s linear 0.6s;
}
.hm-visual.is-active {
  visibility: visible;
  opacity: 1;
  scale: 1;
  transition: opacity 0.6s var(--hm-ease) 0.15s, scale 0.9s var(--hm-ease) 0.15s, visibility 0s;
}

/* Slide indicator: three short lines on the hero's right edge, vertically centred. The active
   line is longer and fills over the slide's time; the others just say "there is more". */
.hm-ind-lines {
  position: absolute;
  top: 50%;
  right: 1.8rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transform: translateY(-50%);
  animation: hm-in 1s var(--hm-ease) 0.8s both;
}
.hm-tab {
  display: grid;
  place-items: center;
  width: 2.4rem;
  padding: 0.6rem 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.hm-tab:focus-visible {
  outline: 2px solid var(--hm-ember);
  outline-offset: 2px;
  border-radius: 0.4rem;
}
.hm-tab__bar {
  display: block;
  width: 2px;
  height: 2.4rem;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line-strong);
  transition: height 0.5s var(--hm-ease), background-color 0.3s;
}
.hm-tab:hover .hm-tab__bar {
  background: var(--fg-faint);
}
.hm-tab.is-active .hm-tab__bar {
  height: 5.6rem;
  background: var(--line-strong);
}
.hm-tab__bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--hm-ember), var(--hm-coral));
  transform-origin: top;
  transform: scaleY(0);
}
.hm-tab.is-active .hm-tab__bar span {
  transform: scaleY(1);
}
/* With autoplay running, the active line fills over --hm-slide-ms */
.hm-hero.is-auto .hm-tab.is-active .hm-tab__bar span {
  animation: hm-fill var(--hm-slide-ms, 12000ms) linear both;
}
.hm-hero.is-paused .hm-tab.is-active .hm-tab__bar span {
  animation-play-state: paused;
}
@keyframes hm-fill {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

/* Knowledge illustration: question, permission-aware sources, cited answer */
.hm-kb {
  position: relative;
  aspect-ratio: 1 / 1;
  container-type: inline-size;
  font-size: 2.3cqw;
}
.hm-kb__wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.hm-kb__wire {
  stroke: #f7722f;
  stroke-width: 1.5;
  stroke-dasharray: 3 4;
  opacity: 0.7;
}
.hm-kb__ask {
  position: absolute;
  top: 3%;
  right: 0;
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  max-width: 76%;
  padding: 1.8cqw 2.4cqw 1.8cqw 1.8cqw;
  border-radius: 2.4cqw 2.4cqw 0.6cqw 2.4cqw;
  background: #172125;
  color: #f7f5f4;
  font-family: "Satoshi-Medium";
  font-size: 2.6cqw;
  line-height: 1.3;
  box-shadow: 0 1.6rem 3.2rem -2rem rgba(23, 33, 37, 0.5);
}
.hm-kb__who {
  flex-shrink: 0;
  font-family: var(--hm-mono);
  font-size: 1.8cqw;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(247, 245, 244, 0.5);
}
.hm-kb__sources {
  position: absolute;
  top: 22%;
  left: 0;
  width: 44%;
  list-style: none;
  display: grid;
  gap: 2cqw;
  padding: 0;
}
.hm-kb__doc {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.6cqw;
  padding: 1.8cqw 2cqw;
  border-radius: 1.8cqw;
  border: 1px solid rgba(23, 33, 37, 0.08);
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 33, 37, 0.04), 0 1.2rem 2.4rem -1.8rem rgba(23, 33, 37, 0.3);
  transition: border-color 0.4s, box-shadow 0.5s var(--hm-ease), translate 0.5s var(--hm-ease), opacity 0.4s;
}
.hm-kb__doc b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Satoshi-Bold";
  font-weight: normal;
  font-size: 2.3cqw;
  color: #172125;
}
.hm-kb__doc small {
  display: block;
  margin-top: 0.4cqw;
  font-family: "Satoshi-Medium";
  font-size: 1.8cqw;
  color: rgba(23, 33, 37, 0.5);
}
.hm-kb__doc em {
  display: grid;
  place-items: center;
  width: 3.6cqw;
  height: 3.6cqw;
  border-radius: 50%;
  background: rgba(23, 33, 37, 0.06);
  font-family: var(--hm-mono);
  font-size: 1.8cqw;
  font-style: normal;
  color: rgba(23, 33, 37, 0.5);
  transition: background-color 0.3s, color 0.3s;
}
.hm-kb__ico {
  display: grid;
  place-items: center;
  width: 5cqw;
  height: 5cqw;
  border-radius: 1.2cqw;
  font-family: "Satoshi-Black";
  font-size: 2.4cqw;
  color: #fff;
}
.hm-kb__ico.is-sp { background: #0f7c80; }
.hm-kb__ico.is-od { background: #1d6fd1; }
.hm-kb__ico.is-in { background: #6b4cc9; }
.hm-kb__ico.is-lock { background: rgba(23, 33, 37, 0.08); color: rgba(23, 33, 37, 0.45); }
.hm-kb__ico svg { width: 2.8cqw; height: 2.8cqw; }
.hm-kb__doc.is-locked {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: none;
}
.hm-kb__doc.is-locked b { color: rgba(23, 33, 37, 0.45); }
.hm-kb__doc.is-locked small { color: #c94d45; }
.hm-kb__doc.is-scan {
  translate: 1cqw 0;
  border-color: rgba(247, 114, 47, 0.55);
  box-shadow: 0 0 0 0.5cqw rgba(247, 114, 47, 0.12), 0 1.4rem 2.8rem -1.6rem rgba(247, 114, 47, 0.45);
}
.hm-kb__doc.is-denied {
  animation: hm-shake 0.5s;
}
@keyframes hm-shake {
  20%, 60% { translate: -0.8cqw 0; }
  40%, 80% { translate: 0.8cqw 0; }
}
.hm-kb__doc.is-cited em {
  background: #f7722f;
  color: #fff;
}
.hm-kb__answer {
  position: absolute;
  top: 30%;
  right: 0;
  width: 50%;
  padding: 2.6cqw;
  border-radius: 2.4cqw;
  background: #fff;
  border: 1px solid rgba(23, 33, 37, 0.08);
  box-shadow: 0 1px 2px rgba(23, 33, 37, 0.04), 0 2.4rem 4.8rem -2.4rem rgba(23, 33, 37, 0.35);
}
.hm-kb__head {
  display: flex;
  align-items: center;
  gap: 1.2cqw;
  margin-bottom: 1.8cqw;
  font-family: "Satoshi-Bold";
  font-size: 2.5cqw;
  color: #172125;
}
.hm-kb__model {
  margin-left: auto;
  font-family: "Satoshi-Medium";
  font-size: 1.8cqw;
  color: rgba(23, 33, 37, 0.5);
}
.hm-page .hm-kb__text {
  min-height: 19cqw;
  font-family: "Satoshi-Medium";
  font-size: 2.45cqw;
  line-height: 1.55;
  color: #172125;
}
.hm-kb__text sup {
  display: inline-grid;
  place-items: center;
  width: 3.2cqw;
  height: 3.2cqw;
  margin: 0 0.2cqw;
  border-radius: 50%;
  background: #f7722f;
  font-family: var(--hm-mono);
  font-size: 1.7cqw;
  line-height: 1;
  color: #fff;
  vertical-align: 0.4em;
}
.hm-page .hm-kb__trail {
  margin-top: 1.8cqw;
  padding-top: 1.6cqw;
  border-top: 1px dashed rgba(23, 33, 37, 0.14);
  font-family: var(--hm-mono);
  font-size: 1.75cqw;
  color: rgba(23, 33, 37, 0.5);
}
.hm-kb__chips {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.4cqw 0;
  list-style: none;
  padding: 0;
}
.hm-kb__chips li {
  padding: 0 2cqw;
  font-family: "Satoshi-Bold";
  font-size: 2cqw;
  color: rgba(23, 33, 37, 0.6);
}
.hm-kb__chips li + li {
  border-left: 1px solid rgba(23, 33, 37, 0.2);
}

/* Data illustration: sources → bronze/silver/gold → plain-English answer */
.hm-data {
  position: relative;
  aspect-ratio: 1 / 1;
  container-type: inline-size;
}
.hm-data__wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.hm-data__wire {
  stroke: rgba(23, 33, 37, 0.16);
  stroke-width: 1.4;
  stroke-dasharray: 4 6;
}
.hm-data__wire.is-up {
  stroke: rgba(212, 164, 58, 0.6);
  stroke-dasharray: 3 5;
}
.hm-data__dot {
  filter: drop-shadow(0 0 3px rgba(247, 114, 47, 0.8));
}
.hm-data__ask {
  position: absolute;
  top: 3%;
  left: 18%;
  right: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2.4cqw;
  padding: 2.2cqw 2.6cqw;
  border-radius: 2.4cqw;
  background: #fff;
  border: 1px solid rgba(23, 33, 37, 0.08);
  box-shadow: 0 1px 2px rgba(23, 33, 37, 0.04), 0 2rem 4rem -2.4rem rgba(23, 33, 37, 0.35);
}
.hm-data__askcopy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2cqw 1.4cqw;
}
.hm-data__askcopy .hm-graph__tag {
  flex-shrink: 0;
  font-family: var(--hm-mono);
  font-size: 1.8cqw;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c94d45;
}
.hm-data__q {
  font-family: "Satoshi-Bold";
  font-size: 2.6cqw;
  line-height: 1.3;
  color: #172125;
}
.hm-data__nosql {
  font-family: "Satoshi-Bold";
  font-size: 1.7cqw;
  color: #1f7a4f;
}
.hm-data__chart {
  display: flex;
  align-items: flex-end;
  gap: 1.2cqw;
  height: 11cqw;
  padding-bottom: 0.4cqw;
  border-bottom: 1px solid rgba(23, 33, 37, 0.14);
}
.hm-data__chart i {
  position: relative;
  width: 3.2cqw;
  height: calc(var(--v) * 100%);
  border-radius: 0.6cqw 0.6cqw 0 0;
  background: linear-gradient(180deg, #f7722f, #c94d45);
  transform-origin: bottom;
  transition: transform 0.9s var(--hm-ease);
}
.hm-data__chart i::after {
  content: "";
  position: absolute;
  left: -0.6cqw;
  right: -0.6cqw;
  bottom: calc(var(--f) / var(--v) * 100%);
  border-top: 2px dashed rgba(23, 33, 37, 0.45);
}
.hm-data__chart.is-reset i {
  transform: scaleY(0.12);
  transition-duration: 0.35s;
}
.hm-data__sources {
  list-style: none;
  padding: 0;
}
.hm-data__sources li {
  position: absolute;
  left: 0;
  top: calc(var(--y) / 6 * 1%);
  transform: translateY(-50%);
  width: 20%;
  padding: 1.6cqw 1.8cqw;
  border-radius: 1.4cqw;
  background: #fff;
  border: 1px solid rgba(23, 33, 37, 0.08);
  box-shadow: 0 1rem 2.4rem -1.6rem rgba(23, 33, 37, 0.3);
  font-family: "Satoshi-Bold";
  font-size: 2.2cqw;
  white-space: nowrap;
  text-align: center;
  color: #172125;
}
.hm-data__tier {
  position: absolute;
  left: calc(var(--x) / 6 * 1%);
  top: 38%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 16%;
  height: 50%;
  padding: 2.4cqw 1cqw;
  border-radius: 2.4cqw;
  text-align: center;
  color: #172125;
  box-shadow: 0 2rem 4rem -2.4rem rgba(23, 33, 37, 0.45);
}
.hm-data__tier b {
  font-family: "Satoshi-Black";
  font-weight: normal;
  font-size: 2.6cqw;
}
.hm-data__tier small {
  margin-top: 0.4cqw;
  font-family: "Satoshi-Medium";
  font-size: 1.7cqw;
  line-height: 1.25;
  opacity: 0.75;
}
.hm-data__tier.is-bronze { background: linear-gradient(180deg, #f3d9c3, #e3b48b); }
.hm-data__tier.is-silver { background: linear-gradient(180deg, #eef1f3, #c9d1d6); }
.hm-data__tier.is-gold { background: linear-gradient(180deg, #faeac0, #e8c063); }
.hm-data__rows {
  display: grid;
  gap: 1.2cqw;
  width: 70%;
  margin-top: auto;
}
.hm-data__rows i {
  height: 1.4cqw;
  border-radius: 1cqw;
  background: rgba(23, 33, 37, 0.14);
}
.hm-data__rows i:nth-child(2n) { width: 80%; }
.hm-data__count {
  margin-top: auto;
  font-family: "Satoshi-Black";
  font-size: 6cqw;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hm-data__route {
  position: absolute;
  left: 32%;
  bottom: 3%;
  display: flex;
  align-items: center;
  gap: 1.2cqw;
  padding: 1.4cqw 2cqw;
  border-radius: 1.2cqw;
  background: #fff;
  border: 1px solid rgba(23, 33, 37, 0.08);
  box-shadow: 0 1.2rem 2.4rem -1.6rem rgba(23, 33, 37, 0.3);
  font-family: "Satoshi-Bold";
  font-size: 2cqw;
  white-space: nowrap;
  color: #172125;
}
.hm-data__doc {
  font-family: var(--hm-mono);
  font-weight: normal;
  color: rgba(23, 33, 37, 0.6);
}
.hm-data__arrow { color: rgba(23, 33, 37, 0.4); }
.hm-data__model {
  color: #c94d45;
  transition: color 0.3s;
}
.hm-data__model.is-escalated {
  color: #5b4bb0;
}
.hm-data__ok { color: #1f7a4f; }

/* Agent graph. Coordinates (--x, --y) are in the SVG's 600 x 600 space, so HTML nodes and
   SVG wires share one layout; sizes use container units so the whole graph scales as one. */
.hm-viz {
  position: relative;
  width: 100%;
}
.hm-visual:first-child .hm-viz {
  animation: hm-in 1.2s var(--hm-ease) 0.35s both;
}
.hm-graph {
  position: relative;
  aspect-ratio: 1 / 1;
  container-type: inline-size;
  will-change: transform;
}
.hm-graph__wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.hm-graph__edge {
  stroke: rgba(23, 33, 37, 0.16);
  stroke-width: 1.4;
  stroke-dasharray: 4 6;
  transition: stroke 0.4s, stroke-width 0.4s;
}
.hm-graph__edge.is-hot {
  stroke: #f7722f;
  stroke-width: 1.8;
  stroke-dasharray: none;
}
.hm-graph__ring {
  stroke: rgba(23, 33, 37, 0.14);
  stroke-width: 1.4;
  stroke-dasharray: 2 7;
  stroke-linecap: round;
  transition: stroke 0.4s, stroke-width 0.4s;
}
.hm-graph__ring.is-guard {
  stroke: #b6a4f2;
  stroke-width: 2.4;
  stroke-dasharray: none;
}
.hm-graph__ring.is-eval {
  stroke: #e9a23b;
  stroke-width: 2.4;
  stroke-dasharray: none;
}
.hm-graph__ringlabel {
  transform-origin: 300px 290px;
  animation: hm-spin 60s linear infinite;
}
.hm-graph__ringlabel text {
  font-family: var(--hm-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  fill: rgba(23, 33, 37, 0.38);
}
@keyframes hm-spin {
  to { transform: rotate(360deg); }
}
.hm-graph__pulse {
  fill: #f7722f;
  filter: drop-shadow(0 0 4px rgba(247, 114, 47, 0.9));
}

.hm-graph__node,
.hm-graph__task,
.hm-graph__core,
.hm-graph__badge {
  position: absolute;
  left: calc(var(--x) / 6 * 1%);
  top: calc(var(--y) / 6 * 1%);
  transform: translate(-50%, -50%);
}
.hm-graph__node {
  display: inline-flex;
  align-items: center;
  gap: 1.4cqw;
  padding: 1.6cqw 2.2cqw 1.6cqw 1.8cqw;
  border-radius: 1.4cqw;
  border: 1px solid rgba(23, 33, 37, 0.08);
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 33, 37, 0.05), 0 1.2rem 2.8rem -1.6rem rgba(23, 33, 37, 0.28);
  font-family: "Satoshi-Bold";
  font-size: 2.5cqw;
  line-height: 1;
  white-space: nowrap;
  color: #172125;
  transition: border-color 0.4s, box-shadow 0.5s var(--hm-ease), color 0.4s, scale 0.5s var(--hm-ease);
}
.hm-graph__node svg {
  width: 3.2cqw;
  height: 3.2cqw;
  color: rgba(23, 33, 37, 0.55);
  transition: color 0.4s;
}
.hm-graph__node i {
  width: 1.3cqw;
  height: 1.3cqw;
  border-radius: 50%;
  background: rgba(23, 33, 37, 0.16);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.hm-graph__node.is-active {
  scale: 1.06;
  border-color: rgba(247, 114, 47, 0.55);
  box-shadow: 0 1.6rem 3.2rem -1.6rem rgba(23, 33, 37, 0.3);
}
.hm-graph__node.is-active svg {
  color: #f7722f;
}
.hm-graph__node.is-active i {
  background: #f7722f;
}
.hm-graph__node.is-done i {
  background: #2fa36b;
}
.hm-graph__node.is-human {
  background: #fdf3ee;
}

.hm-graph__task {
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  max-width: 78cqw;
  padding: 1.5cqw 2.4cqw 1.5cqw 1.6cqw;
  border-radius: 1.6cqw;
  background: #fff;
  border: 1px solid rgba(23, 33, 37, 0.08);
  box-shadow: 0 1.2rem 2.8rem -1.6rem rgba(23, 33, 37, 0.28);
  font-family: "Satoshi-Medium";
  font-size: 2.35cqw;
  line-height: 1.3;
  color: #172125;
}
.hm-graph__tag {
  flex-shrink: 0;
  padding: 0.6cqw 1.2cqw;
  border-radius: 0.8cqw;
  background: rgba(247, 114, 47, 0.12);
  font-family: var(--hm-mono);
  font-size: 1.8cqw;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c94d45;
}
.hm-graph__tasktext {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hm-graph__core {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8cqw;
  width: 31cqw;
  padding: 3cqw 2cqw 2.6cqw;
  border-radius: 3.2cqw;
  background: radial-gradient(120% 120% at 50% 0%, #22323a, #172125 60%);
  box-shadow: 0 0 0 1px rgba(247, 245, 244, 0.06) inset, 0 2.4rem 5.6rem -2rem rgba(23, 33, 37, 0.6);
  color: #f7f5f4;
  text-align: center;
}
.hm-graph__core.is-thinking {
  box-shadow: 0 0 0 1px rgba(247, 114, 47, 0.45) inset, 0 2.4rem 5.6rem -2rem rgba(23, 33, 37, 0.6);
}
.hm-graph__corehead {
  display: inline-flex;
  align-items: center;
  gap: 1.2cqw;
  font-family: "Satoshi-Bold";
  font-size: 3.8cqw;
  line-height: 1;
  letter-spacing: -0.01em;
}
.hm-graph__model {
  font-family: "Satoshi-Medium";
  font-size: 2cqw;
  color: rgba(247, 245, 244, 0.6);
}
.hm-graph__status {
  max-width: 100%;
  margin-top: 1cqw;
  padding: 0.8cqw 1.4cqw;
  border-radius: 0.8cqw;
  background: rgba(247, 245, 244, 0.07);
  font-family: var(--hm-mono);
  font-size: 1.85cqw;
  line-height: 1.3;
  color: #f7a06b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hm-graph__badge {
  display: inline-flex;
  align-items: center;
  gap: 1cqw;
  padding: 1cqw 1.8cqw 1cqw 1.4cqw;
  border-radius: 1cqw;
  background: #fff;
  border: 1px solid rgba(182, 164, 242, 0.6);
  box-shadow: 0 1rem 2.4rem -1.4rem rgba(23, 33, 37, 0.35);
  font-family: "Satoshi-Bold";
  font-size: 2cqw;
  white-space: nowrap;
  color: #5b4bb0;
  opacity: 0;
  translate: 0 1cqw;
  transition: opacity 0.4s, translate 0.5s var(--hm-ease);
}
.hm-graph__badge.is-on {
  opacity: 1;
  translate: 0 0;
}
.hm-graph__badge.is-eval {
  border-color: rgba(233, 162, 59, 0.6);
  color: #9a5b06;
}
.hm-graph__badge svg {
  width: 2.4cqw;
  height: 2.4cqw;
}

/* Narrow graphs (phones): larger type so labels stay readable */
@container (max-width: 460px) {
  .hm-graph__node { font-size: 3.4cqw; gap: 1.6cqw; padding: 2cqw 2.6cqw 2cqw 2.2cqw; }
  .hm-graph__node svg { width: 4cqw; height: 4cqw; }
  .hm-graph__node i { width: 1.6cqw; height: 1.6cqw; }
  .hm-graph__task { font-size: 3.1cqw; max-width: 92cqw; }
  .hm-graph__tag { font-size: 2.4cqw; }
  .hm-graph__core { width: 38cqw; }
  .hm-graph__corehead { font-size: 4.8cqw; }
  .hm-graph__model { font-size: 2.7cqw; }
  .hm-graph__status { font-size: 2.6cqw; }
  .hm-graph__badge { font-size: 2.8cqw; }
  .hm-graph__badge svg { width: 3.2cqw; height: 3.2cqw; }
  .hm-kb__ask { font-size: 3.3cqw; max-width: 90%; }
  .hm-kb__who { font-size: 2.3cqw; }
  .hm-kb__sources { width: 47%; gap: 2.4cqw; }
  .hm-kb__doc { gap: 1.4cqw; padding: 2cqw; }
  .hm-kb__doc b { font-size: 2.9cqw; }
  .hm-kb__doc small { font-size: 2.3cqw; }
  .hm-kb__doc em { width: 4.4cqw; height: 4.4cqw; font-size: 2.3cqw; }
  .hm-kb__ico { width: 5.6cqw; height: 5.6cqw; font-size: 2.8cqw; }
  .hm-kb__answer { width: 50%; padding: 3cqw; }
  .hm-kb__head { font-size: 3.1cqw; }
  .hm-kb__model { font-size: 2.3cqw; }
  .hm-page .hm-kb__text { font-size: 3cqw; line-height: 1.5; }
  .hm-kb__text sup { width: 3.8cqw; height: 3.8cqw; font-size: 2.1cqw; }
  .hm-page .hm-kb__trail { font-size: 2.2cqw; }
  .hm-kb__chips li { font-size: 2.6cqw; }
  .hm-data__q { font-size: 3.3cqw; }
  .hm-data__askcopy .hm-graph__tag, .hm-data__nosql { font-size: 2.3cqw; }
  .hm-data__sources li { font-size: 2.8cqw; width: 22%; }
  .hm-data__tier { width: 18%; }
  .hm-data__tier b { font-size: 3.2cqw; }
  .hm-data__tier small { font-size: 2.2cqw; }
  .hm-data__count { font-size: 7cqw; }
  .hm-data__route { left: 20%; font-size: 2.6cqw; }
}

.hm-viz__metrics {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}
.hm-viz__metrics span {
  padding: 0 1.6rem;
  font-family: "Satoshi-Medium";
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--fg-muted);
}
.hm-viz__metrics span + span {
  border-left: 1px solid var(--line-strong);
}

/* ==========================================================================
   Partnerships (logo row from the stall-backdrop design)
   ========================================================================== */

.hm-partners__main {
  padding-bottom: 6.4rem;
}
.hm-partners__head,
.hm-partner {
  animation: hm-in 1s var(--hm-ease) both;
  animation-delay: 0.85s;
}
.hm-partner:nth-child(2) { animation-delay: 0.93s; }
.hm-partner:nth-child(3) { animation-delay: 1.01s; }
.hm-partner:nth-child(4) { animation-delay: 1.09s; }
.hm-partners__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4rem 8rem;
  padding-top: 4rem;
  border-top: 1px solid var(--line);
}
.hm-page .hm-partners__eyebrow {
  margin-bottom: 1.2rem;
  font-family: "Satoshi-Bold";
  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8a827c;
}
.hm-page .hm-partners__note {
  max-width: 24rem;
  font-family: "Spline Sans";
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--fg-muted);
}
/* Each partner's column is as wide as its logo in the design (--w, design units), and each
   logo box keeps the design's slot height (409) - so the four keep their designed balance
   at any width. */
.hm-partners__row {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 3.2rem;
  width: 100%;
  max-width: 108rem;
  justify-self: end;
}
.hm-partner {
  flex: var(--w) 1 0%;
  min-width: 0;
}
.hm-partner__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  width: 100%;
  padding: 1.6rem 1.6rem 1.4rem;
  border-radius: 1.4rem;
  color: var(--fg);
  text-decoration: none;
  transition: background-color 0.4s, box-shadow 0.5s var(--hm-ease), transform 0.5s var(--hm-ease);
}
.hm-partner__logo {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: var(--w) / 409;
}
.hm-partner__logo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--w) / var(--h);
  transition: transform 0.6s var(--hm-ease);
}
.hm-partner__logo img.is-cover {
  object-fit: cover;
}
.hm-partner__logo img.is-contain {
  object-fit: contain;
}
.hm-partner__tier {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: "Satoshi-Medium";
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--fg-faint);
  transition: color 0.3s;
}
.hm-partner__tier {
  position: relative;
}
/* The arrow sits outside the caption's flow so captions stay centred under their logos */
.hm-partner__tier svg {
  position: absolute;
  left: 100%;
  top: 50%;
  margin: -0.4rem 0 0 0.8rem;
  opacity: 0;
  transform: translateX(-0.6rem);
  transition: opacity 0.3s, transform 0.45s var(--hm-ease);
}
a.hm-partner__link:hover,
a.hm-partner__link:focus-visible {
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 33, 37, 0.04), 0 1.6rem 3.2rem -2rem rgba(23, 33, 37, 0.25);
  transform: translateY(-0.3rem);
}
a.hm-partner__link:hover .hm-partner__logo img {
  transform: scale(1.04);
}
a.hm-partner__link:hover .hm-partner__tier,
a.hm-partner__link:focus-visible .hm-partner__tier {
  color: var(--hm-ember);
}
a.hm-partner__link:hover .hm-partner__tier svg,
a.hm-partner__link:focus-visible .hm-partner__tier svg {
  opacity: 1;
  transform: none;
}
@media (hover: none) {
  .hm-partner__tier svg {
    display: none;
  }
}
a.hm-partner__link:focus-visible {
  outline: 2px solid var(--hm-ember);
  outline-offset: 2px;
}

/* ==========================================================================
   Services
   ========================================================================== */

.hm-services__main {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 8rem;
  padding-top: 14rem;
  padding-bottom: 14rem;
}
.hm-services__cta {
  margin-top: 4rem;
}
.hm-services__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

.hm-svc {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 28rem;
  padding: 3.2rem;
  overflow: hidden;
  isolation: isolate;
  border-radius: 1.4rem;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--fg);
  text-decoration: none;
  transition: transform 0.6s var(--hm-ease), border-color 0.4s, box-shadow 0.6s var(--hm-ease);
}
/* Spotlight follows the pointer (--mx/--my set by JS) */
.hm-svc::before,
.hm-ind::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(32rem circle at var(--mx, 50%) var(--my, 0%), rgba(247, 114, 47, 0.12), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
}
.hm-svc:hover {
  transform: translateY(-0.4rem);
  border-color: rgba(247, 114, 47, 0.32);
  box-shadow: 0 2.4rem 4.8rem -2.4rem rgba(23, 33, 37, 0.22);
}
.hm-svc:hover::before,
.hm-ind:hover::before {
  opacity: 1;
}
.hm-svc__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 3.2rem;
}
.hm-svc__icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  transition: transform 0.6s var(--hm-ease), background-color 0.4s;
}
.hm-svc__icon img {
  width: 3.2rem;
  height: 3.2rem;
  object-fit: contain;
}
.hm-svc:hover .hm-svc__icon {
  transform: translateY(-0.2rem);
}
.hm-svc__index {
  font-family: var(--hm-mono);
  font-size: 1.2rem;
  color: var(--fg-faint);
}
.hm-svc__title {
  display: block;
  margin-bottom: 1.2rem;
  font-family: "Satoshi-Bold";
  font-size: 2.2rem;
  line-height: 1.25;
  color: var(--fg);
}
.hm-svc__text {
  display: block;
  font-family: "Spline Sans";
  font-size: 1.55rem;
  line-height: 1.6;
  color: var(--fg-muted);
}
.hm-svc__go {
  margin-top: auto;
  padding-top: 2.4rem;
  color: var(--fg-faint);
  transition: color 0.3s, transform 0.5s var(--hm-ease);
}
.hm-svc:hover .hm-svc__go {
  color: var(--hm-ember);
  transform: translateX(0.8rem);
}

/* ==========================================================================
   Featured work
   ========================================================================== */

.hm-work__main {
  overflow: hidden;
}
.hm-work__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6rem;
  padding-top: 14rem;
  padding-bottom: 6.4rem;
}
.hm-work__head > div:first-child {
  max-width: 90rem;
}
.hm-work__meta {
  flex-shrink: 0;
  width: 22rem;
}
.hm-page .hm-work__count {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.6rem;
  font-family: "Satoshi-Bold";
  font-size: 5.6rem;
  line-height: 1;
  color: var(--fg);
}
.hm-work__total {
  font-size: 1.6rem;
  color: var(--fg-faint);
}
.hm-work__bar {
  height: 2px;
  background: var(--line);
}
.hm-work__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--hm-ember), var(--hm-coral));
  transform-origin: left;
  transform: scaleX(0);
}

.hm-work__viewport {
  padding-bottom: 14rem;
  /* Without the pinned scroll (no JS, reduced motion) the track is a native scroller */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 5.4rem;
  scrollbar-width: thin;
}
.hm-work__viewport .hm-case {
  scroll-snap-align: start;
}
.hm-anim .hm-work__viewport {
  overflow: visible;
}
.hm-work__track {
  display: flex;
  gap: 2.4rem;
  width: max-content;
  will-change: transform;
}

.hm-case {
  --accent: #2a3438;
  position: relative;
  flex: 0 0 min(118rem, 76vw);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  min-height: 60rem;
  overflow: hidden;
  isolation: isolate;
  border-radius: 2rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(70rem circle at 0% 100%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%),
    var(--card);
  transition: border-color 0.4s;
}
.hm-case:hover {
  border-color: var(--line-strong);
}
.hm-case__body {
  display: flex;
  flex-direction: column;
  padding: 4.8rem;
}
.hm-page .hm-case__kicker {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 3.2rem;
  font-family: var(--hm-mono);
  font-size: 1.3rem;
  color: var(--fg-faint);
}
.hm-case__tag {
  font-family: "Satoshi-Bold";
  font-size: 1.2rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.hm-case__tag::before {
  content: "—";
  margin-right: 1.2rem;
  color: var(--fg-faint);
}
.hm-page .hm-case__title {
  margin-bottom: 2rem;
  font-family: "Satoshi-Bold";
  font-size: clamp(2.8rem, 2.5vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.hm-case__link {
  color: inherit;
  text-decoration: none;
}
/* Whole card is the link target */
.hm-case__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}
.hm-case__link:focus-visible {
  outline: none;
}
.hm-case__link:focus-visible::after {
  outline: 2px solid var(--hm-ember);
  outline-offset: -4px;
  border-radius: 2rem;
}
.hm-page .hm-case__text {
  font-size: 1.7rem;
  line-height: 1.6;
  color: var(--fg-muted);
}
.hm-case__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.4rem;
  margin-top: auto;
  padding-top: 4rem;
}
.hm-case__stats > div {
  padding-top: 2rem;
  border-top: 1px solid var(--line-strong);
}
.hm-case__stats dt {
  margin-bottom: 0.8rem;
  font-family: "Satoshi-Bold";
  font-size: clamp(3.4rem, 3vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.hm-case__stats dd {
  margin: 0;
  font-family: "Spline Sans";
  font-size: 1.4rem;
  line-height: 1.45;
  color: var(--fg-muted);
}
.hm-case__cta {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: 3.6rem;
  font-family: "Satoshi-Bold";
  font-size: 1.4rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--hm-ember);
}
.hm-case__cta svg {
  transition: transform 0.45s var(--hm-ease);
}
.hm-case:hover .hm-case__cta svg {
  transform: translateX(0.8rem);
}
.hm-case__media {
  position: relative;
  margin: 1.6rem;
  overflow: hidden;
  border-radius: 1.2rem;
  background: rgba(0, 0, 0, 0.2);
}
.hm-case__img {
  position: absolute;
  inset: 0 -8%;
  width: 116%;
  height: 100%;
  object-fit: cover;
  transition: scale 1.2s var(--hm-ease);
}
.hm-case:hover .hm-case__img {
  scale: 1.04;
}

.hm-case--more {
  flex: 0 0 34rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 4.8rem;
  color: var(--fg);
  text-decoration: none;
  background: transparent;
  border-style: dashed;
}
.hm-case--more__label {
  font-family: "Satoshi-Bold";
  font-size: 3.2rem;
  line-height: 1.15;
}
.hm-case--more__icon {
  display: grid;
  place-items: center;
  width: 9.6rem;
  height: 9.6rem;
  border-radius: 50%;
  background: var(--hm-btn);
  color: #fff;
  transition: transform 0.6s var(--hm-ease);
}
.hm-case--more:hover .hm-case--more__icon {
  transform: scale(1.08) rotate(-12deg);
}

/* ==========================================================================
   Industries
   ========================================================================== */

.hm-industries__main {
  padding-top: 14rem;
  padding-bottom: 14rem;
  overflow: hidden;
}
.hm-industries__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  align-items: end;
  gap: 6rem;
  margin-bottom: 6.4rem;
}
.hm-industries__side .hm-lead {
  margin-top: 0;
}
.hm-arrows {
  display: flex;
  gap: 1.2rem;
  margin-top: 3.2rem;
}
.hm-arrow {
  display: grid;
  place-items: center;
  width: 5.6rem;
  height: 5.6rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, opacity 0.3s;
}
.hm-arrow:hover:not(:disabled) {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}
.hm-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.hm-rail {
  display: flex;
  gap: 2rem;
  padding-bottom: 2rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 5.4rem;
  scrollbar-width: none;
  cursor: grab;
}
.hm-rail::-webkit-scrollbar {
  display: none;
}
.hm-rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}
.hm-rail.is-dragging .hm-ind {
  pointer-events: none;
}
.hm-rail:focus-visible {
  outline: 2px solid var(--hm-ember);
  outline-offset: -2px;
}
.hm-rail__end {
  flex: 0 0 3.4rem;
}
.hm-rail__progress {
  height: 2px;
  margin: 3.2rem 5.4rem 0;
  background: var(--line);
}
.hm-rail__progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--hm-ember), var(--hm-coral));
  transform-origin: left;
  transform: scaleX(var(--hm-rail-p, 0.2));
  transition: transform 0.3s var(--hm-ease);
}

.hm-ind {
  position: relative;
  flex: 0 0 40rem;
  display: flex;
  flex-direction: column;
  padding: 3.2rem;
  overflow: hidden;
  isolation: isolate;
  scroll-snap-align: start;
  border-radius: 1.6rem;
  border: 1px solid var(--line);
  background: var(--card);
  transition: border-color 0.4s, transform 0.6s var(--hm-ease);
}
.hm-ind:hover {
  border-color: rgba(247, 114, 47, 0.32);
  transform: translateY(-0.4rem);
}
.hm-ind__head {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 2.4rem;
}
.hm-ind__icon {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
}
.hm-ind__icon img {
  width: 2.6rem;
  height: 2.6rem;
  object-fit: contain;
}
.hm-page .hm-ind__title {
  font-family: "Satoshi-Bold";
  font-size: 2.4rem;
  line-height: 1.2;
  color: var(--fg);
}
.hm-ind__list {
  list-style: none;
  display: grid;
  gap: 1.2rem;
}
.hm-ind__list li {
  position: relative;
  padding-left: 2.6rem;
  font-family: "Spline Sans";
  font-size: 1.55rem;
  line-height: 1.5;
  color: var(--fg-muted);
}
.hm-ind__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 1.2rem;
  height: 0.7rem;
  border-left: 2px solid var(--hm-ember);
  border-bottom: 2px solid var(--hm-ember);
  transform: rotate(-45deg);
}
.hm-ind__clients {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: auto;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
}
.hm-ind__list + .hm-ind__clients {
  margin-top: 3.2rem;
}
.hm-ind__clients > span {
  font-family: var(--hm-mono);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.hm-ind__clients img {
  height: 2.4rem;
  width: auto;
  max-width: 11rem;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter 0.4s, opacity 0.4s;
}
.hm-ind:hover .hm-ind__clients img {
  filter: none;
  opacity: 1;
}

/* ==========================================================================
   Process
   ========================================================================== */

.hm-process__main {
  padding-top: 14rem;
  padding-bottom: 14rem;
  overflow: hidden;
}
.hm-process__orb {
  display: none;
  position: absolute;
  top: 4rem;
  right: -14rem;
  width: 56rem;
  height: 56rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(247, 114, 47, 0.32), rgba(240, 73, 62, 0.1) 45%, transparent 70%);
  filter: blur(1rem);
  pointer-events: none;
}

.hm-phases {
  position: relative;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4rem;
  padding: 0;
  counter-reset: none;
}
.hm-phases__line {
  position: absolute;
  top: 3.2rem;
  left: 3.2rem;
  right: 3.2rem;
  height: 1px;
  background: var(--line-strong);
}
.hm-phases__line span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--hm-ember), var(--hm-coral));
  transform-origin: left;
  transform: scaleX(1);
}
.hm-phase {
  position: relative;
}
.hm-phase__node {
  position: relative;
  display: grid;
  place-items: center;
  width: 6.4rem;
  height: 6.4rem;
  margin-bottom: 3.2rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--hm-ink);
  font-family: var(--hm-mono);
  font-size: 1.4rem;
  color: var(--fg-muted);
  transition: border-color 0.5s, color 0.5s, box-shadow 0.6s var(--hm-ease);
}
.hm-phase.is-active .hm-phase__node {
  border-color: var(--hm-ember);
  color: #fff;
  background: #c94d45;
}
.hm-page .hm-phase__title {
  margin-bottom: 2.4rem;
  font-family: "Satoshi-Bold";
  font-size: 1.5rem;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hm-ember);
}
.hm-phase__points {
  list-style: none;
  display: grid;
  gap: 0;
}
.hm-phase__points li {
  position: relative;
  padding: 1.6rem 0 1.6rem 3.2rem;
  border-top: 1px solid var(--line);
  font-family: "Satoshi-Medium";
  font-size: 2rem;
  line-height: 1.35;
  color: var(--fg);
  transition: color 0.5s;
}
.hm-phase__points li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 2.35rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  border: 1.5px solid var(--fg-faint);
  transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.hm-phase__points li.is-final::before {
  border-radius: 0.2rem;
  transform: rotate(45deg);
}
.hm-phase.is-active .hm-phase__points li::before {
  background: var(--hm-ember);
  border-color: var(--hm-ember);
}
.hm-phase.is-active .hm-phase__points li:nth-child(2)::before { transition-delay: 0.12s; }
.hm-phase.is-active .hm-phase__points li:nth-child(3)::before { transition-delay: 0.24s; }
.hm-phase.is-active .hm-phase__points li:nth-child(4)::before { transition-delay: 0.36s; }

.hm-stack {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: 6rem;
  margin-top: 12rem;
  padding-top: 6.4rem;
  border-top: 1px solid var(--line);
}
.hm-page .hm-stack__title {
  font-family: "Satoshi-Bold";
  font-size: 2.8rem;
  line-height: 1.2;
  color: var(--fg);
}
.hm-page .hm-stack__text {
  margin-top: 1.6rem;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--fg-muted);
}
.hm-stack__groups {
  display: grid;
  gap: 3.2rem;
}
.hm-page .hm-stack__label {
  margin-bottom: 1.4rem;
  font-family: var(--hm-mono);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.hm-stack__chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2.8rem;
}
.hm-chip {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: "Satoshi-Medium";
  font-size: 1.5rem;
  color: var(--fg-muted);
  transition: color 0.3s;
}
.hm-chip:hover {
  color: var(--fg);
}
.hm-chip img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.6rem;
  object-fit: contain;
  background: #fff;
}

/* ==========================================================================
   Why Reckonsys
   ========================================================================== */

.hm-why__main {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 8rem;
  padding-top: 14rem;
  padding-bottom: 14rem;
}
.hm-why__list {
  list-style: none;
  display: grid;
  gap: 10rem;
  padding: 0;
}
.hm-reason__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 1.6rem;
  background: #232020;
}
.hm-reason__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hm-reason__copy {
  display: grid;
  grid-template-columns: 5.6rem minmax(0, 1fr);
  gap: 1.6rem;
  margin-top: 2.8rem;
}
.hm-reason__index {
  padding-top: 0.6rem;
  font-family: var(--hm-mono);
  font-size: 1.3rem;
  color: var(--hm-ember);
}
.hm-page .hm-reason__text,
.hm-page .hm-reason__text p {
  font-family: "Satoshi-Bold";
  font-size: clamp(2.2rem, 2vw, 2.8rem);
  line-height: 1.3;
  color: var(--fg);
}

/* ==========================================================================
   Clients
   ========================================================================== */

.hm-clients__main {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 8rem;
  padding-top: 10rem;
  padding-bottom: 10rem;
}
.hm-clients__story .hm-h2 {
  max-width: 56rem;
}
.hm-clients__meta {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2.4rem 4.8rem;
  margin-top: 4.8rem;
  padding-top: 3.2rem;
  border-top: 1px solid var(--line);
}
.hm-page .hm-clients__stat {
  font-family: "Satoshi-Medium";
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--fg-muted);
}
.hm-clients__stat span {
  display: block;
  margin-bottom: 0.6rem;
  font-family: "Satoshi-Bold";
  font-size: 6.4rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.hm-clients__meta .hm-textlink {
  margin-bottom: 0.4rem;
}

/* Three columns of logo cards drifting in opposite directions. Each track holds its
   logos twice and moves by half its height, so the loop is seamless. */
.hm-logocols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  height: 68rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
}
.hm-logocol {
  min-width: 0;
}
.hm-logocol__track {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding-bottom: 1.6rem;
  animation: hm-drift-up var(--speed, 50s) linear infinite;
}
.hm-logocol.is-reverse .hm-logocol__track {
  animation-direction: reverse;
}
.hm-logocol:hover .hm-logocol__track {
  animation-play-state: paused;
}
@keyframes hm-drift-up {
  to { transform: translateY(-50%); }
}
.hm-logocard {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  height: 13rem;
  padding: 2rem;
  border-radius: 1.6rem;
  border: 1px solid rgba(23, 33, 37, 0.06);
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 33, 37, 0.04), 0 1.2rem 3.2rem -2rem rgba(23, 33, 37, 0.18);
  transition: transform 0.6s var(--hm-ease), box-shadow 0.6s var(--hm-ease), border-color 0.4s;
}
.hm-logocard:hover {
  transform: translateY(-0.4rem) scale(1.02);
  border-color: rgba(247, 114, 47, 0.28);
  box-shadow: 0 1px 2px rgba(23, 33, 37, 0.04), 0 2.4rem 4.8rem -2.4rem rgba(23, 33, 37, 0.3);
}
.hm-logocard img {
  max-width: 100%;
  object-fit: contain;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.hm-voices__main {
  padding-top: 14rem;
  padding-bottom: 14rem;
  overflow: hidden;
}
.hm-voices__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 6rem;
  margin-bottom: 8rem;
}
.hm-voices__head .hm-h2 {
  max-width: 76rem;
}
.hm-scores {
  display: flex;
  gap: 1.2rem;
}
.hm-culture__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
}
.hm-score {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "value value"
    "stars stars"
    "count logo";
  align-items: end;
  column-gap: 1.6rem;
  min-width: 19rem;
  padding: 2.4rem;
  border-radius: 1.4rem;
  border: 1px solid var(--line);
  background: rgba(247, 245, 244, 0.03);
  color: var(--fg);
  text-decoration: none;
  transition: border-color 0.4s, transform 0.6s var(--hm-ease), background-color 0.4s;
}
.hm-score:hover {
  border-color: rgba(247, 114, 47, 0.45);
  transform: translateY(-0.4rem);
}
.hm-score__value {
  grid-area: value;
  font-family: "Satoshi-Bold";
  font-size: 4rem;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.hm-score__stars {
  grid-area: stars;
  display: flex;
  gap: 0.3rem;
  margin: 1.2rem 0 2rem;
}
.hm-score__stars img {
  width: 1.6rem;
  height: 1.6rem;
}
.hm-score__count {
  grid-area: count;
  font-family: "Satoshi-Medium";
  font-size: 1.3rem;
  color: var(--fg-muted);
}
.hm-score__logo {
  grid-area: logo;
  justify-self: end;
}
.hm-score__logo img {
  height: 2.2rem;
  width: auto;
  max-width: 11rem;
  object-fit: contain;
}
/* Review-site logos are dark artwork on opaque backgrounds, so on dark cards they sit on a paper chip */
.is-dark .hm-score__logo {
  padding: 0.6rem 1rem;
  border-radius: 0.6rem;
  background: #f7f5f4;
}
.is-dark .hm-score__logo img {
  height: 1.8rem;
}
.hm-score.is-light {
  background: var(--card);
  grid-template-areas:
    "value value"
    "stars stars"
    "logo logo";
}
.hm-score.is-light .hm-score__logo {
  justify-self: start;
}
.hm-score.is-badge {
  display: grid;
  place-items: center;
  grid-template-areas: none;
  padding: 1.6rem 2.4rem;
}
.hm-score.is-badge img {
  height: 13rem;
  width: auto;
}
.hm-score.is-badge:hover {
  transform: none;
  border-color: var(--line);
}

.hm-quotes {
  display: grid;
  gap: 2rem;
}
.hm-quotes__row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.hm-quotes__track {
  display: flex;
  gap: 2rem;
  width: max-content;
  padding-right: 2rem;
  animation: hm-marquee 90s linear infinite;
}
.hm-quotes__row.is-reverse .hm-quotes__track {
  animation-direction: reverse;
  animation-duration: 100s;
}
.hm-quotes__row:hover .hm-quotes__track {
  animation-play-state: paused;
}
.hm-quote {
  flex: 0 0 44rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.8rem;
  padding: 3.2rem;
  border-radius: 1.6rem;
  border: 1px solid var(--line);
  background: var(--card);
  transition: border-color 0.4s;
}
.hm-quote:hover {
  border-color: var(--line-strong);
}
.hm-quote blockquote {
  margin: 0;
  font-family: "Satoshi-Medium";
  font-size: 1.9rem;
  line-height: 1.45;
  color: var(--fg);
}
.hm-quote blockquote::before {
  content: "\201C";
  display: block;
  height: 3.2rem;
  font-family: "Satoshi-Black";
  font-size: 6.4rem;
  line-height: 1;
  color: var(--hm-ember);
}
.hm-quote figcaption {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-family: "Spline Sans";
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--fg-muted);
}
.hm-quote figcaption b {
  display: block;
  font-family: "Satoshi-Bold";
  font-weight: normal;
  font-size: 1.6rem;
  color: var(--fg);
}
.hm-quote__avatar {
  flex-shrink: 0;
  width: 4.8rem;
  height: 4.8rem;
  overflow: hidden;
  border-radius: 50%;
  background: var(--line);
}
.hm-quote__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Awards + best place to work
   ========================================================================== */

.hm-awards__main {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 6rem;
  padding-top: 10rem;
  padding-bottom: 8rem;
}
.hm-awards .hm-marquee__track {
  gap: 4.8rem;
  padding-right: 4.8rem;
  animation-duration: 40s;
}
.hm-badge img {
  height: 13rem;
  width: auto;
  transition: transform 0.6s var(--hm-ease);
}
.hm-badge:hover img {
  transform: translateY(-0.6rem) scale(1.04);
}

.hm-culture__main {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 6rem;
  padding-top: 8rem;
  padding-bottom: 10rem;
}
.hm-culture__main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 5.4rem;
  right: 5.4rem;
  height: 1px;
  background: var(--line);
}

/* ==========================================================================
   Insights
   ========================================================================== */

.hm-insights__main {
  padding-top: 14rem;
  padding-bottom: 14rem;
}
.hm-insights__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4rem;
  margin-bottom: 4rem;
}
.hm-insights__head .hm-h2 {
  max-width: 76rem;
}
.hm-topics {
  display: flex;
  gap: 2.8rem;
  margin-bottom: 4.8rem;
  padding-bottom: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.hm-topics::-webkit-scrollbar {
  display: none;
}
.hm-topic {
  flex-shrink: 0;
  font-family: "Satoshi-Medium";
  font-size: 1.5rem;
  color: var(--fg-muted);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: color 0.3s, background-size 0.4s var(--hm-ease);
}
.hm-topic:hover {
  color: var(--fg);
  background-size: 100% 1px;
}

.hm-posts {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 2.4rem;
}
.hm-post {
  display: flex;
  flex-direction: column;
  color: var(--fg);
  text-decoration: none;
}
.hm-post.is-featured {
  grid-row: span 2;
}
.hm-post__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 1.4rem;
  background: var(--hm-sand);
}
.hm-post.is-featured .hm-post__media {
  aspect-ratio: auto;
  flex: 1;
  min-height: 32rem;
}
.hm-post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--hm-ease);
}
.hm-post:hover .hm-post__media img {
  transform: scale(1.05);
}
.hm-post__body {
  display: block;
  padding-top: 1.8rem;
}
.hm-post__cat {
  display: block;
  margin-bottom: 0.8rem;
  font-family: "Satoshi-Bold";
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hm-coral);
}
.hm-post__title {
  display: block;
  font-family: "Satoshi-Bold";
  font-size: 1.9rem;
  line-height: 1.3;
  color: var(--fg);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--hm-ease);
}
.hm-post:hover .hm-post__title {
  background-size: 100% 1px;
}
.hm-post.is-featured .hm-post__title {
  font-size: clamp(2.4rem, 2.2vw, 3.2rem);
  line-height: 1.2;
}
.hm-post__date {
  display: block;
  margin-top: 1rem;
  font-family: "Spline Sans";
  font-size: 1.35rem;
  color: var(--fg-faint);
}

/* ==========================================================================
   Pre-animation states (only while JS motion is active)
   ========================================================================== */

.hm-anim .hm-page [data-hm-fade],
.hm-anim .hm-page [data-hm-stagger] > * {
  opacity: 0;
}
.hm-anim .hm-page [data-hm-split] {
  visibility: hidden;
}

/* Shared contact + footer snippets are brown-black site-wide; here they join the dark sections */
body.home-page {
  background: #172125;
}
body.home-page .contact-section > .sidebar.dark-section,
body.home-page .contact-section > .w-container.c-dark {
  background: #172125;
  border-right-color: rgba(247, 245, 244, 0.1);
}
body.home-page .contact-section input,
body.home-page .contact-section textarea,
body.home-page .contact-main .contact-container .contact-form select,
body.home-page .contact-section .countrycode-phnno,
body.home-page .contact-section option,
body.home-page .newsletter-subscription input {
  /* contact.css uses long selectors (and !important on select); colour only, so the select chevron survives */
  background-color: #111a1d !important;
  border-color: rgba(247, 245, 244, 0.16) !important;
}
body.home-page .footer-newsletter {
  background-color: #1d2a2f;
}
body.home-page .welcomeback-model {
  background-color: #172125;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media only screen and (max-width: 1200px) {
  .hm-partners__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .hm-partners__row {
    justify-self: stretch;
    max-width: none;
  }
  .hm-partners__head {
    display: flex;
    align-items: baseline;
    gap: 2.4rem;
  }
  .hm-page .hm-partners__note {
    max-width: none;
  }
  .hm-clients__main {
    gap: 5.6rem;
  }
  .hm-hero__inner {
    gap: 4rem;
  }
  .hm-services__main,
  .hm-why__main {
    gap: 5.6rem;
  }
  .hm-case {
    flex-basis: 84vw;
  }
}

@media only screen and (max-width: 992px) {
  .hm-hero .hm-hero__main {
    min-height: 0;
    padding-top: 14rem;
  }
  .hm-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 6.4rem;
  }
  .hm-visuals {
    justify-self: center;
    max-width: 56rem;
  }
  .hm-sticky {
    position: static;
  }
  .hm-services__main,
  .hm-why__main,
  .hm-clients__main {
    grid-template-columns: minmax(0, 1fr);
  }
  .hm-logocols {
    height: 56rem;
  }
  .hm-industries__head,
  .hm-voices__head,
  .hm-awards__main,
  .hm-culture__main,
  .hm-stack {
    grid-template-columns: minmax(0, 1fr);
    gap: 4rem;
  }
  .hm-case {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 30rem auto;
    min-height: 0;
  }
  .hm-case__media {
    grid-row: 1;
    margin: 1.2rem 1.2rem 0;
  }
  .hm-case__body {
    padding: 3.6rem;
  }
  .hm-why__list {
    gap: 6.4rem;
  }
  .hm-posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hm-post.is-featured {
    grid-column: span 2;
    grid-row: auto;
  }
  .hm-post.is-featured .hm-post__media {
    aspect-ratio: 16 / 9;
    flex: none;
    min-height: 0;
  }
}

@media only screen and (max-width: 768px) {
  .hm-hero .hm-hero__main,
  .hm-services__main,
  .hm-work__head,
  .hm-industries__main,
  .hm-process__main,
  .hm-why__main,
  .hm-voices__main,
  .hm-insights__main {
    padding-top: 10rem;
  }
  .hm-hero .hm-hero__main {
    padding-top: 12rem;
  }
  .hm-services__main,
  .hm-industries__main,
  .hm-process__main,
  .hm-why__main,
  .hm-voices__main,
  .hm-insights__main,
  .hm-work__viewport {
    padding-bottom: 10rem;
  }
  .hm-page .hm-hero__lead {
    font-size: 1.8rem;
  }
  .hm-services__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hm-partners__main {
    padding-bottom: 4.8rem;
  }
  .hm-partners__inner {
    padding-top: 4rem;
    gap: 2.4rem;
  }
  .hm-partners__head {
    display: block;
  }
  .hm-partners__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
  }
  .hm-partner__link {
    padding: 2.4rem 1.6rem 1.6rem;
    background: #fff;
    border: 1px solid var(--line);
  }
  .hm-partner__tier {
    font-size: 1.2rem;
    white-space: normal;
    text-align: center;
  }
  /* Equal cells: scale each logo by its design width against the widest */
  .hm-partner__logo {
    width: calc(100% * var(--w) / 1267);
  }
  /* Columns become sideways rows */
  .hm-logocols {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    height: auto;
    margin: 0 -3.6rem;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  }
  .hm-logocol__track {
    flex-direction: row;
    width: max-content;
    gap: 1rem;
    padding: 0 1rem 0 0;
    animation-name: hm-marquee;
  }
  .hm-logocard {
    width: 15rem;
    height: 8.8rem;
    padding: 1.4rem;
    border-radius: 1.2rem;
  }
  .hm-svc {
    min-height: 0;
  }

  /* Featured work stacks vertically on small screens */
  .hm-work__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 3.2rem;
  }
  .hm-work__meta {
    display: none;
  }
  .hm-work__viewport {
    padding-right: 3.6rem;
    overflow: visible;
  }
  .hm-work__track {
    flex-direction: column;
    width: auto;
    gap: 2rem;
  }
  .hm-case,
  .hm-case--more {
    flex-basis: auto;
  }
  .hm-case {
    grid-template-rows: 22rem auto;
  }
  .hm-case__body {
    padding: 2.8rem;
  }
  .hm-case--more {
    flex-direction: row;
    align-items: center;
    padding: 2.8rem;
  }
  .hm-case--more__icon {
    width: 6.4rem;
    height: 6.4rem;
  }

  .hm-rail {
    scroll-padding-left: 3.6rem;
  }
  .hm-rail__progress {
    margin-left: 3.6rem;
    margin-right: 3.6rem;
  }
  .hm-ind {
    flex-basis: 82vw;
  }
  .hm-phases {
    grid-template-columns: minmax(0, 1fr);
    gap: 5.6rem;
    padding-left: 8.8rem;
  }
  .hm-phases__line {
    top: 0;
    bottom: 0;
    left: 3.2rem;
    right: auto;
    width: 1px;
    height: auto;
  }
  .hm-phases__line span {
    height: 100%;
    width: 100%;
    transform-origin: top;
  }
  .hm-phase__node {
    position: absolute;
    left: -8.8rem;
    top: -1.6rem;
  }
  .hm-scores {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
  }
  .hm-score {
    min-width: 0;
    padding: 1.8rem 1.4rem;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "value" "stars" "count" "logo";
    row-gap: 0.8rem;
  }
  .hm-score__value {
    font-size: 3rem;
  }
  .hm-score__stars {
    margin: 0;
  }
  .hm-score__stars img {
    width: 1.3rem;
    height: 1.3rem;
  }
  .hm-score__logo {
    justify-self: start;
    max-width: 100%;
  }
  .hm-score__logo img {
    max-width: 100%;
    height: auto;
    max-height: 1.8rem;
  }
  .hm-score.is-light {
    grid-template-areas: "value" "stars" "logo";
  }
  .hm-culture__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hm-score.is-badge {
    grid-column: span 2;
  }
  .hm-quote {
    flex-basis: 30rem;
    padding: 2.4rem;
  }
  .hm-quote blockquote {
    font-size: 1.7rem;
  }
  .hm-insights__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .hm-posts {
    grid-template-columns: minmax(0, 1fr);
  }
  .hm-post.is-featured {
    grid-column: auto;
  }
  .hm-culture__main::before {
    left: 3.6rem;
    right: 3.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hm-page *,
  .hm-page *::before,
  .hm-page *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  /* Logo columns become a static wall */
  .hm-logocols {
    height: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hm-logocard.is-copy {
    display: none;
  }
  .hm-logocol {
    overflow-x: auto;
  }
  /* Marquees become plain horizontal scrollers */
  .hm-marquee,
  .hm-quotes__row {
    overflow-x: auto;
  }
}
