/* Huntrim — single-page marketing site */

:root {
  --navy: #0E1F3A;
  --navy-deep: #0A1630;
  --navy-hover: #1B3358;
  --slate: #5B6B83;
  --paper: #F7F7FB;
  --hairline: #D9DEE8;
  --ice: #8FB4F0;
  --ice-tint: rgba(143, 180, 240, .16);
  --white: #FFFFFF;

  --on-dark: rgba(255, 255, 255, .74);
  --on-dark-strong: rgba(255, 255, 255, .88);
  --line-dark: rgba(143, 180, 240, .22);

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(80px, 10vw, 136px);
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./assets/fonts/inter-latin-var.woff2') format('woff2');
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--slate);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

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

/* ---------- Type ---------- */

.eyebrow {
  margin-bottom: 20px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--slate);
}
.on-dark .eyebrow { color: var(--ice); }

.h2 {
  font-size: clamp(34px, 4.3vw, 54px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.022em;
  color: var(--navy);
  text-wrap: balance;
}
.on-dark .h2 { color: var(--white); }

.section-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 72px); }

.section-sub {
  max-width: 620px;
  margin-top: 20px;
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.55;
  text-wrap: pretty;
}
.on-dark .section-sub { color: var(--on-dark); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 15px; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-hover); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--ice); }
.btn:disabled { opacity: .6; cursor: progress; }

/* ---------- Sections ---------- */

.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); border-block: 1px solid var(--hairline); }
.section--dark { background: var(--navy); color: var(--on-dark); }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease;
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: var(--nav-h); }

.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.brand-mark--dark { display: none; }
.brand-word { font-size: 16px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }

.nav-links { display: flex; gap: 32px; margin-left: auto; }
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--white); }

.nav-cta { background: var(--white); color: var(--navy); }
.nav-cta:hover { background: var(--ice); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-right: -10px;
  border: 0;
  background: none;
  color: var(--white);
  cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }

.nav.is-scrolled {
  background: rgba(10, 22, 48, .82);
  border-bottom-color: var(--line-dark);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}

.nav.is-solid,
.nav.is-open {
  background: rgba(247, 247, 251, .94);
  border-bottom-color: var(--hairline);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}
.nav.is-solid .brand,
.nav.is-open .brand { color: var(--navy); }
.nav.is-solid .brand-mark--light,
.nav.is-open .brand-mark--light { display: none; }
.nav.is-solid .brand-mark--dark,
.nav.is-open .brand-mark--dark { display: block; }
.nav.is-solid .nav-links a { color: var(--slate); }
.nav.is-solid .nav-links a:hover { color: var(--navy); }
.nav.is-solid .nav-cta,
.nav.is-open .nav-cta { background: var(--navy); color: var(--white); }
.nav.is-solid .nav-cta:hover,
.nav.is-open .nav-cta:hover { background: var(--navy-hover); }
.nav.is-solid .nav-toggle,
.nav.is-open .nav-toggle { color: var(--navy); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  padding: 4px var(--gutter) 20px;
  border-top: 1px solid var(--hairline);
}
.mobile-menu a {
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}
.mobile-menu a:last-child { border-bottom: 0; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  .nav-inner { gap: 12px; }
}

@media (max-width: 360px) {
  .nav-cta { display: none; }
  .nav-toggle { margin-left: auto; }
}

/* ---------- Hero ---------- */

.hero {
  --copy-w: min(640px, 54vw);
  --copy-end: calc(max(var(--gutter), (100vw - var(--container)) / 2) + var(--copy-w));
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(680px, 100svh, 980px);
  overflow: hidden;
  padding: calc(var(--nav-h) + clamp(48px, 7vw, 96px)) 0 clamp(72px, 9vw, 120px);
  background: linear-gradient(160deg, var(--navy-deep) 0%, #0C172B 100%);
  color: var(--on-dark);
}

.hero-grid { position: relative; z-index: 1; }
.hero-copy { max-width: var(--copy-w); }

/* The render sits on the right and fades into the navy on its left edge. Its width is set so
   the floating cubes (from ~38% across the image) start just past the end of the copy column. */
.hero-media {
  position: absolute;
  top: calc(50% + var(--nav-h) / 2);
  right: -2vw;
  width: min(1500px, calc((102vw - var(--copy-end) + 20px) / .62));
  aspect-ratio: 16 / 9;
  transform: translateY(-50%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 28%), linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .5) 12%, #000 28%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 28%), linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .5) 12%, #000 28%, #000 82%, transparent 100%);
  mask-composite: intersect;
  pointer-events: none;
}
.hero-media img,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media video { opacity: 0; transition: opacity .8s ease; }
.hero-media video.is-playing { opacity: 1; }

.hero h1 {
  font-size: clamp(38px, 4.9vw, 70px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.03em;
  color: var(--white);
  text-wrap: balance;
}
.hero h1 .h1-line { display: block; }
.hero h1 .h1-accent { margin-top: .12em; padding-bottom: .2em; margin-bottom: -.2em; color: var(--ice); } /* padding keeps descenders inside the background-clip: text area */

/* Large brand above the headline. It is the nav brand scaled by --s, so a fixed-position
   copy (.brand-flyer, driven by main.js) can shrink smoothly into the nav's logo spot as
   the page scrolls. With JS the in-flow copy only reserves the space. */
.hero-brand { --s: 3.2; height: calc(30px * var(--s)); margin-bottom: clamp(28px, 4vw, 48px); }
.hero-brand .brand { display: inline-flex; transform: scale(var(--s)); transform-origin: 0 0; }
.brand-fly .hero-brand { visibility: hidden; }

.brand-flyer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  transform-origin: 0 0;
  pointer-events: none;
}
.brand-flyer[hidden] { display: none !important; }
/* While the flying brand is on its way, the nav's own logo waits. */
.nav.is-undocked .brand { visibility: hidden; }
/* With the mobile menu open, the bar shows its own logo and the flyer stays out of the way. */
.nav.is-open .brand { visibility: visible; }
.nav.is-open ~ .brand-flyer { visibility: hidden; }

@media (max-width: 1100px) {
  .hero-brand { --s: 2.8; }
}
@media (max-width: 560px) {
  .hero-brand { --s: 2.2; }
}



@media (max-width: 900px) {
  .hero { --copy-w: 100%; display: block; min-height: 0; padding-bottom: 24px; }
  .hero-media {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    margin-top: 24px;
    aspect-ratio: 4 / 3;
    transform: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
  }
  .hero-media img,
  .hero-media video { object-position: 100% 50%; }
}

@media (max-width: 640px) {
}

/* ---------- Demo form (hero + final CTA) ---------- */

.demo-form { max-width: 520px; margin-top: 36px; }

.demo-form-row {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(143, 180, 240, .32);
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.demo-form-row:focus-within { border-color: var(--ice); box-shadow: 0 0 0 3px rgba(143, 180, 240, .25); }

.demo-form input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 16px;
}
.demo-form input[type="email"]:focus { outline: none; }
.demo-form input::placeholder { color: rgba(255, 255, 255, .55); }

.form-status { min-height: 1.5em; margin-top: 12px; font-size: 15px; color: var(--on-dark-strong); }
.form-status.is-error { color: #FFC9C9; }
.demo-form.is-sent .demo-form-row { display: none; }
.demo-form.is-sent .form-status { margin-top: 0; font-size: 18px; font-weight: 600; color: var(--white); }

@media (max-width: 560px) {
  .demo-form-row { flex-direction: column; gap: 10px; padding: 0; border: 0; background: none; }
  .demo-form-row:focus-within { box-shadow: none; }
  .demo-form input[type="email"] {
    flex: none; /* in the stacked layout, flex: 1 would collapse the field to its text height */
    border: 1px solid rgba(143, 180, 240, .32);
    border-radius: 12px;
    background: rgba(255, 255, 255, .07);
  }
  .demo-form input[type="email"]:focus { border-color: var(--ice); box-shadow: 0 0 0 3px rgba(143, 180, 240, .25); }
  .demo-form .btn { width: 100%; }
}

/* ---------- Qualification dialog (step 2 of Book a demo) ---------- */

.demo-dialog {
  width: min(580px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 20px;
  background: var(--white);
  color: var(--slate);
  box-shadow: 0 30px 80px -20px rgba(2, 8, 22, .6);
}
.demo-dialog::backdrop {
  background: rgba(10, 22, 48, .62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.demo-dialog[open] { animation: dialog-in .35s var(--ease); }
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.dialog-card { position: relative; padding: clamp(24px, 4vw, 36px); }
.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--slate);
  cursor: pointer;
}
.dialog-close:hover { background: var(--paper); color: var(--navy); }

.dialog-step { margin-bottom: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.dialog-title { padding-right: 40px; font-size: clamp(24px, 3vw, 28px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: var(--navy); }
.dialog-title:focus { outline: none; }
.dialog-sub { margin-top: 8px; font-size: 15.5px; line-height: 1.55; }
.dialog-sub strong { font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.qual-form { display: grid; gap: 18px; margin-top: 24px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: grid; gap: 6px; }
.field > span,
.choice legend { font-size: 13.5px; font-weight: 600; color: var(--navy); }
.field input,
.field select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 15.5px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field select {
  padding-right: 40px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6B83' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px;
}
.field select:invalid { color: var(--slate); }
.field input:focus,
.field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(143, 180, 240, .45); }

.choice { min-width: 0; margin: 0; padding: 0; border: 0; }
.choice legend { margin-bottom: 8px; padding: 0; }
.legend-note { font-weight: 500; color: var(--slate); }
.choice-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.choice label { position: relative; }
.choice input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.choice label span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.choice label:hover span { border-color: var(--navy); }
.choice input:checked + span { border-color: var(--navy); background: var(--navy); color: var(--white); }
.choice input:focus-visible + span { outline: 2px solid var(--ice); outline-offset: 2px; }

.dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 4px; }
.demo-dialog .form-status { min-height: 0; margin: 0; font-size: 14.5px; color: var(--slate); }
.demo-dialog .form-status.is-error { color: #B42318; }
.dialog-fineprint { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.dialog-fineprint .icon { width: 15px; height: 15px; }
.dialog-fineprint a { color: var(--navy); }

.dialog-done { padding: 12px 0 4px; text-align: center; }
.dialog-done .dialog-title { padding-right: 0; }
.dialog-done .btn { margin-top: 24px; }
.done-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 8px auto 20px;
  border-radius: 50%;
  background: var(--ice);
  color: var(--navy);
  animation: pop .5s var(--ease);
}
.done-mark .icon { width: 30px; height: 30px; stroke-width: 2; stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw-check .5s var(--ease) .25s forwards; }
@keyframes draw-check { to { stroke-dashoffset: 0; } }

/* Inline form: "finish your details" prompt after closing the dialog early */
.form-status .link-btn { color: var(--white); }

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .dialog-actions .btn { width: 100%; }
}

/* ---------- Meet Huntrim: Source → Hire → Learn loop (deck v32 slide 4) ---------- */

.loop {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.loop-svg { width: 100%; height: auto; overflow: visible; font-family: inherit; }

.loop-input rect { fill: var(--paper); stroke: var(--hairline); }
.loop-input-icon { fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.loop-input-kicker { font-size: 11px; font-weight: 700; letter-spacing: .14em; fill: var(--slate); }
.loop-input-title { font-size: 16px; font-weight: 700; fill: var(--navy); }
.loop-input-note { font-size: 12.5px; font-style: italic; fill: var(--slate); }
.loop-input-arrow { fill: none; stroke: var(--ice); stroke-width: 1.6; stroke-dasharray: 2 4; }

.loop-arc { fill: none; stroke: var(--ice); stroke-width: 2.2; stroke-linecap: round; }
.loop-arc-label { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; fill: var(--slate); }

.loop-center circle { fill: var(--paper); stroke: var(--hairline); }
.loop-center-icon { fill: none; stroke: var(--ice); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; }
.loop-center-text { font-size: 15px; font-weight: 700; fill: var(--navy); }

.loop-node-disc { fill: var(--white); stroke: var(--ice); stroke-width: 2.2; transition: fill .4s ease; }
.loop-node-icon { fill: none; stroke: var(--navy); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.loop-node.is-active .loop-node-disc { fill: var(--ice); }
.loop-label { font-size: 13px; font-weight: 700; letter-spacing: .14em; fill: var(--navy); }
.loop-label-n { fill: var(--slate); font-weight: 600; }

.loop-cards { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.loop-card {
  display: grid;
  grid-template-columns: minmax(130px, .62fr) minmax(0, 1.38fr);
  gap: 16px 24px;
  padding: 22px 24px;
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--hairline);
  border-radius: 14px;
  background: var(--paper);
  transition: border-color .4s ease, box-shadow .4s ease;
}
.loop-card.is-active { border-color: var(--ice); box-shadow: 0 0 0 4px rgba(143, 180, 240, .16); }
.loop-n { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--slate); }
.loop-card h3 { margin-top: 2px; font-size: 22px; font-weight: 800; letter-spacing: -.015em; color: var(--navy); }
.loop-sub { margin-top: 4px; font-size: 14.5px; line-height: 1.45; }
.loop-card ul { display: grid; align-content: center; gap: 6px 20px; margin: 0; padding: 0 0 0 20px; border-left: 1px solid var(--hairline); list-style: none; }
.loop-card--wide ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.loop-card li { position: relative; padding-left: 14px; font-size: 14.5px; line-height: 1.45; color: var(--navy); }
.loop-card li::before { content: ''; position: absolute; top: .6em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--ice); }

@media (max-width: 1024px) {
  .loop { grid-template-columns: 1fr; }
  .loop-diagram { width: min(100%, 520px); margin-inline: auto; }
}
@media (max-width: 600px) {
  .loop-card { grid-template-columns: 1fr; }
  .loop-card ul { padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--hairline); }
}
@media (max-width: 420px) {
  .loop-card--wide ul { grid-template-columns: 1fr; }
}

/* ---------- Product moment ---------- */

/* Thread message beside its step illustration, step tabs below
   (layout from huntrim-app design/website-illustrations). */
.moment-stage {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
}

.thread {
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
}
.thread-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line-dark);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}
.thread-tag { margin-left: auto; font-size: 12.5px; font-weight: 500; color: rgba(255, 255, 255, .5); white-space: nowrap; }

.thread-body { display: grid; align-content: start; padding: 24px 22px 28px; min-height: 150px; }

.msg { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
.msg-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .09);
  color: var(--white);
}
.thread-head .msg-avatar { width: 30px; height: 30px; border-radius: 8px; }
.msg-avatar .icon { width: 18px; height: 18px; }
.msg-avatar--huntrim { border: 1px solid rgba(143, 180, 240, .45); background: var(--navy-deep); }

.msg-meta { display: flex; align-items: baseline; gap: 8px; font-size: 15px; font-weight: 700; color: var(--white); }
.msg-meta time { font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .5); }
.msg-text { margin-top: 3px; font-size: 16px; line-height: 1.55; color: var(--on-dark-strong); }
.msg.is-new { animation: msg-in .45s var(--ease); }
@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.typing { display: none; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; }
.typing.is-on { display: grid; }
.typing-dots { display: inline-flex; gap: 5px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .07); justify-self: start; }
.typing-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .7); animation: dot 1.2s ease-in-out infinite; }
.typing-dots i:nth-child(2) { animation-delay: .15s; }
.typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot {
  0%, 60%, 100% { opacity: .3; transform: none; }
  30% { opacity: 1; transform: translateY(-3px); }
}

.moment-art { min-width: 0; }
.art svg { display: block; width: 100%; height: auto; }
.art.is-new svg { animation: art-in .5s var(--ease); }
@keyframes art-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.moment-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.moment-steps button {
  position: relative;
  width: 100%;
  padding: 14px 0 0;
  border: 0;
  border-top: 2px solid var(--line-dark);
  background: none;
  color: rgba(255, 255, 255, .55);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: color .25s ease;
}
.moment-steps button:hover,
.moment-steps button[aria-current="step"] { color: var(--white); }
.moment-n { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--ice); }

/* The active tab's bar: full when chosen by hand, filling over the step while autoplaying. */
.moment-steps button::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ice);
}
.moment-steps button[aria-current="step"]::before { width: 100%; }
.moment-steps button.is-running::before { animation: step-fill var(--step-ms, 6500ms) linear forwards; }
@keyframes step-fill {
  from { width: 0; }
  to { width: 100%; }
}

@media (max-width: 900px) {
  .moment-stage { grid-template-columns: 1fr; }
  .moment-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
}
@media (max-width: 560px) {
  .moment-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .moment-art { margin-inline: calc(var(--gutter) * -1); }
  .thread-body { padding: 20px 16px 24px; }
  .thread-head { padding: 14px 16px; }
}

/* ---------- Architecture ---------- */

.arch { position: relative; display: flex; flex-direction: column; align-items: center; max-width: 1080px; margin: 0 auto; }

/* Connector from the external integrations into the orchestrator (drawn by JS) */
.arch-links {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.arch-links .ext-link {
  fill: none;
  stroke: #9AA7BC;
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
  animation: dash-in 1s linear infinite;
}
.arch-links .ext-dot { fill: #9AA7BC; }
@keyframes dash-in { to { stroke-dashoffset: -10; } }

.arch-external {
  align-self: flex-end;
  margin-right: clamp(0px, 5%, 64px);
  padding: 16px 18px 18px;
  border: 1.5px dashed #B8C2D3;
  border-radius: 18px;
}
.arch-external .arch-label { text-align: left; }
.arch-label span { margin-left: 8px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.arch-label span::before { content: '\00B7'; margin-right: 8px; }

.arch-system {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 64px;
  padding: 52px clamp(20px, 3vw, 36px) clamp(24px, 3vw, 36px);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  background: var(--white);
}
.system-tag {
  position: absolute;
  top: 0;
  left: clamp(20px, 3vw, 36px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  transform: translateY(-50%);
}
.arch-system .channel { background: var(--paper); }
.arch .arch-stem--external { display: none; }
.arch-tier { width: 100%; }
.arch-label {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
  color: var(--slate);
}

.channels { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
.channel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--white);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}
.channel .icon { width: 18px; height: 18px; }

.arch-stem { display: block; width: 1px; height: 36px; background: var(--hairline); }
.arch-stem--mobile { display: none; }

.orchestrator {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: center;
  width: 100%;
  max-width: 560px;
  padding: 24px 28px;
  border-radius: 18px;
  background: var(--navy);
  color: var(--on-dark);
}
.orchestrator h3 { font-size: 20px; font-weight: 700; color: var(--white); }
.orchestrator p { margin-top: 4px; font-size: 15.5px; line-height: 1.5; }

.arch-lines { width: 100%; height: 64px; overflow: visible; }
.arch-lines path { fill: none; stroke-width: 1.5; }
.arch-lines .base { stroke: var(--hairline); }
.arch-lines .draw {
  stroke: var(--ice);
  stroke-width: 2;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1s var(--ease);
}
.arch.is-drawn .arch-lines .draw { stroke-dashoffset: 0; }

.agents {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.agent {
  padding: 20px 18px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--white);
  transition: border-color .4s ease, box-shadow .4s ease;
}
.agent-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--navy);
  transition: background-color .4s ease;
}
.agent h4 { font-size: 16px; font-weight: 700; color: var(--navy); }
.agent p { margin-top: 6px; font-size: 14.5px; line-height: 1.45; }
.agent.is-active { border-color: var(--ice); box-shadow: 0 0 0 4px rgba(143, 180, 240, .22); }
.agent.is-active .agent-icon { background: var(--ice); }

.arch-learn { display: flex; flex-direction: column; align-items: center; }
.learn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
}
.learn-pill .icon { width: 16px; height: 16px; }
.arch-stem--arrow { position: relative; height: 32px; }
.arch-stem--arrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -4px;
  width: 9px;
  height: 9px;
  border-right: 1px solid var(--slate);
  border-bottom: 1px solid var(--slate);
  transform: rotate(45deg);
}

.data-layer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  width: 100%;
  margin-top: 4px;
  padding: 22px 26px;
  border: 1px solid var(--navy);
  border-radius: 16px;
  background: var(--white);
}
.data-layer h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: var(--navy); }
.data-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.data-tags li {
  padding: 6px 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--paper);
  font-size: 14px;
  color: var(--navy);
}

.under-hood { width: 100%; margin-top: 48px; border-block: 1px solid var(--hairline); }
.under-hood summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
  cursor: pointer;
}
.under-hood summary::-webkit-details-marker { display: none; }
.under-hood summary .icon { transition: transform .25s ease; }
.under-hood[open] summary .icon { transform: rotate(180deg); }

.engines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 8px 0 32px; }
.engine h4 { font-size: 17px; font-weight: 700; color: var(--navy); }
.engine-sub { margin-top: 2px; font-size: 14.5px; }
.engine ul { margin: 14px 0 0; padding-left: 18px; font-size: 15px; line-height: 1.65; }

@media (max-width: 960px) {
  .agents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arch-lines, .arch-links { display: none; }
  .arch-external { align-self: stretch; margin-right: 0; }
  .arch-external .arch-label { text-align: center; }
  .arch .arch-stem--external {
    display: block;
    height: 40px;
    background: repeating-linear-gradient(to bottom, #9AA7BC 0 4px, transparent 4px 8px);
  }
  .arch-system { margin-top: 0; padding-top: 44px; }
  .arch-stem--mobile { display: block; }
  .engines { grid-template-columns: 1fr; gap: 24px; }
  .data-tags { margin-left: 0; }
}
@media (max-width: 560px) {
  .agents { grid-template-columns: 1fr; }
  .agent { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: start; padding: 18px; }
  .agent-icon { grid-row: span 2; margin-bottom: 0; }
  .agent p { margin-top: 2px; }
  .orchestrator { grid-template-columns: 40px 1fr; padding: 20px; }
  .orchestrator img { width: 40px; height: 40px; }
  .channel { width: 100%; justify-content: center; }
}

/* ---------- Comparison ---------- */

.compare-toggle {
  display: none;
  margin-bottom: 16px;
  padding: 4px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--paper);
}
.compare-toggle button {
  flex: 1;
  height: 42px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--slate);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}
.compare-toggle button[aria-pressed="true"] { background: var(--white); color: var(--navy); box-shadow: 0 1px 2px rgba(14, 31, 58, .12); }

.compare-wrap { overflow: hidden; border: 1px solid var(--hairline); border-radius: 18px; background: var(--white); }
.compare table { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 18px 24px; border-bottom: 1px solid var(--hairline); text-align: center; vertical-align: middle; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { padding-block: 22px; font-size: 14.5px; font-weight: 700; color: var(--navy); }
.compare tbody th { width: 40%; text-align: left; font-weight: 600; color: var(--navy); }
.compare .col-huntrim { background: var(--ice-tint); }
.compare thead .col-huntrim { background: rgba(143, 180, 240, .3); }
.huntrim-head { display: inline-flex; align-items: center; gap: 8px; font-size: 15.5px; }
.compare .icon { margin: 0 auto; width: 22px; height: 22px; }
.compare .yes { color: var(--navy); stroke-width: 2; }
.compare .no { color: var(--slate); }
.compare .limited, .compare .none { font-size: 15px; color: var(--slate); }

@media (max-width: 720px) {
  .compare-toggle { display: flex; }
  .compare th, .compare td { padding: 14px 10px; }
  .compare tbody th { width: auto; padding-left: 16px; font-size: 15px; }
  .compare thead th { font-size: 13.5px; }
  .huntrim-head img { display: none; }
  .compare[data-compare="internal"] .col-agency,
  .compare[data-compare="agency"] .col-internal { display: none; }
}

/* ---------- FAQ ---------- */

.faq-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq { border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: clamp(18px, 1.6vw, 20px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--slate); transition: transform .25s ease; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { max-width: 640px; padding-bottom: 24px; font-size: 17px; }

@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Three reasons (deck v32 slide 8) ---------- */

.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.reason {
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--ice);
  border-radius: 6px 6px 18px 18px;
  background: var(--paper);
  transition: transform .3s var(--ease), box-shadow .3s ease;
}
.reason:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(14, 31, 58, .35); }
.reason-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 36px; }
.reason-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.reason-n { font-size: 13px; font-weight: 600; color: var(--slate); font-variant-numeric: tabular-nums; }
.reason h3 { font-size: clamp(22px, 2.1vw, 27px); font-weight: 700; letter-spacing: -.015em; color: var(--navy); }
.reason p:not(.reason-top) { margin-top: 12px; font-size: 17px; }

@media (max-width: 860px) {
  .reasons { grid-template-columns: 1fr; }
  .reason-top { margin-bottom: 20px; }
}

/* ---------- Security & compliance strip ---------- */

.trust-strip { padding-block: clamp(36px, 5vw, 56px); background: var(--paper); }
.trust-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.trust-head .eyebrow { margin-bottom: 6px; }
.trust-title { font-size: clamp(22px, 2.2vw, 26px); font-weight: 700; letter-spacing: -.015em; color: var(--navy); }

.badges { display: flex; flex-wrap: wrap; gap: 20px 0; margin: 0; padding: 0; list-style: none; }
.badge { display: flex; align-items: center; gap: 12px; padding: 0 28px; }
.badge + .badge { border-left: 1px solid var(--hairline); }
.badge:last-child { padding-right: 0; }
.badge-svg { width: 48px; height: 48px; flex: none; color: var(--white); }
.badge-ring { fill: var(--navy); }
.badge-glyph { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badge-text { fill: currentColor; font-size: 8.5px; font-weight: 700; letter-spacing: .04em; text-anchor: middle; }
.badge-caption { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--navy); }

@media (max-width: 860px) {
  .badges { width: 100%; }
  .badge { flex: 1 1 0; min-width: 0; padding: 0 16px; }
  .badge:first-child { padding-left: 0; }
}
@media (max-width: 480px) {
  .badges { flex-direction: column; align-items: flex-start; gap: 14px; }
  .badge, .badge:first-child { padding: 0; }
  .badge + .badge { border-left: 0; }
}

/* ---------- Final CTA (deck v32 slide 10) ---------- */

.final {
  position: relative;
  overflow: hidden;
  padding-block: clamp(96px, 12vw, 160px);
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--on-dark);
}
.final-inner { position: relative; }
.final-wordmark {
  font-size: clamp(64px, 11vw, 160px);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.02em;
  color: var(--white);
}
.final .h2 { max-width: 640px; margin-top: clamp(28px, 4vw, 48px); font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12; }

.partner-cta {
  max-width: 560px;
  margin-top: clamp(32px, 4vw, 44px);
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  background: rgba(255, 255, 255, .04);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.partner-title { font-size: clamp(20px, 2vw, 24px); font-weight: 700; letter-spacing: -.015em; color: var(--white); }
.partner-sub { margin-top: 6px; font-size: 16.5px; line-height: 1.5; color: var(--on-dark); }
.partner-cta .demo-form { margin-top: 20px; }
.partner-cta .form-status:empty { min-height: 0; margin-top: 0; }

/* Fingerprint ridges around the glowing avatar, on the right like the closing slide. */
.final-visual {
  position: absolute;
  top: 50%;
  right: max(-80px, calc((100vw - var(--container)) / 2 - 140px));
  width: min(640px, 52vw);
  aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
}
.fp-svg { width: 100%; height: 100%; }
.fp-ridges { fill: none; stroke: rgba(143, 180, 240, .26); stroke-width: 2; stroke-linecap: round; }
.fp-avatar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22%;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: var(--ice);
  -webkit-mask: url('./assets/huntrim-mark-white.svg') center / contain no-repeat;
  mask: url('./assets/huntrim-mark-white.svg') center / contain no-repeat;
  filter: drop-shadow(0 0 18px rgba(143, 180, 240, .75));
}

@media (max-width: 900px) {
  .final { display: flex; flex-direction: column; padding-bottom: 40px; }
  .final-inner { order: 1; }
  .final-visual { position: relative; top: auto; right: auto; order: 2; width: min(340px, 86vw); margin: 32px auto 0; transform: none; }
}

/* ---------- Footer ---------- */

.footer { padding: 56px 0 40px; border-top: 1px solid var(--line-dark); background: var(--navy-deep); color: rgba(255, 255, 255, .6); }
.footer-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 32px; }
.footer-brand p { margin-top: 12px; font-size: 15px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0; padding: 0; list-style: none; }
.footer-links a, .footer-bottom a { font-size: 15px; color: rgba(255, 255, 255, .78); text-decoration: none; }
.footer-links a:hover, .footer-bottom a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  font-size: 14px;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-bottom .footer-legal a { font-size: 14px; }




/* ---------- Legal pages (privacy.html, terms.html) ---------- */

.legal { padding: calc(var(--nav-h) + clamp(48px, 7vw, 88px)) 0 var(--section-y); background: var(--paper); }
.legal-inner { max-width: 760px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 800; line-height: 1.05; letter-spacing: -.025em; color: var(--navy); }
.legal-meta { margin-top: 14px; font-size: 15px; }
.legal-intro { margin-top: 28px; font-size: 18px; }
.legal h2 { margin-top: 44px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--navy); }
.legal h3 { margin-top: 24px; font-size: 17px; font-weight: 700; color: var(--navy); }
.legal p { margin-top: 12px; font-size: 16.5px; line-height: 1.65; }
.legal ul { margin: 12px 0 0; padding-left: 20px; font-size: 16.5px; line-height: 1.65; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--navy); }
.legal strong { color: var(--navy); font-weight: 600; }

/* ---------- Micro-interactions ---------- */

@keyframes pop {
  0% { transform: scale(.82); }
  60% { transform: scale(1.1); }
  100% { transform: none; }
}

:root { interpolate-size: allow-keywords; }


/* Scroll progress line under the nav (browsers with scroll-driven animations only) */
.nav::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--ice);
  transform: scaleX(0);
  transform-origin: left;
}
@supports (animation-timeline: scroll()) {
  .nav::after { animation: progress linear both; animation-timeline: scroll(root); }
}
@keyframes progress { to { transform: scaleX(1); } }

.nav-links a { position: relative; }
.nav-links a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.btn-arrow { width: 18px; height: 18px; margin-right: -4px; transition: transform .25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* Hero */

.js .hero h1 .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(.32em);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(.1s + var(--i) * .07s);
}
.js .hero h1.is-split-in .w { opacity: 1; transform: none; }


@keyframes link-flow { to { stroke-dashoffset: -11; } }

/* Meet Huntrim loop: arcs draw, the centre arrows turn, the input arrow flows */
.js .loop-arc { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--ease); }
.js .loop-arc.is-drawn { stroke-dashoffset: 0; }
.loop-input-arrow { animation: link-flow 1.6s linear infinite; }
.loop.is-running .loop-center-icon { animation: spin-cw 9s linear infinite; }
@keyframes spin-cw { to { transform: rotate(360deg); } }

/* Architecture */
.arch-lines .signal { fill: var(--ice); opacity: 0; }
.agent.is-active .agent-icon { animation: pop .5s var(--ease); }
.learn-pill .icon { animation: spin 7s linear infinite; }
@keyframes spin { to { transform: rotate(-360deg); } }
.arch-learn .arch-stem {
  background: repeating-linear-gradient(to bottom, var(--ice) 0 4px, transparent 4px 8px);
  animation: flow-down .9s linear infinite;
}
@keyframes flow-down { to { background-position: 0 8px; } }

/* Comparison: marks tick in row by row */
.compare tbody tr:nth-child(2) { --row: 1; }
.compare tbody tr:nth-child(3) { --row: 2; }
.compare tbody tr:nth-child(4) { --row: 3; }
.compare tbody tr:nth-child(5) { --row: 4; }
.compare tbody tr:nth-child(6) { --row: 5; }
.compare tbody tr:nth-child(7) { --row: 6; }
.js .compare .icon {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset .5s var(--ease);
  transition-delay: calc(.3s + var(--row, 0) * .09s);
}
.js .compare .col-huntrim .icon { transition-delay: calc(.45s + var(--row, 0) * .09s); }
.js .compare.is-in .icon { stroke-dashoffset: 0; }

/* Smooth open/close for disclosures (Chromium; others open instantly) */
.faq details::details-content,
.under-hood::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size .35s var(--ease), content-visibility .35s allow-discrete;
}
.faq details[open]::details-content,
.under-hood[open]::details-content { block-size: auto; }


/* Final CTA: ridges drift, the avatar glows */
.fp-ridges ellipse { animation: ridge-drift var(--d, 80s) linear infinite; }
@keyframes ridge-drift { to { stroke-dashoffset: -100; } }
.fp-avatar { animation: avatar-glow 3.6s ease-in-out infinite; }
@keyframes avatar-glow {
  0%, 100% { filter: drop-shadow(0 0 14px rgba(143, 180, 240, .55)); }
  50% { filter: drop-shadow(0 0 30px rgba(143, 180, 240, .95)); }
}

/* Hero brand + slogan: one band of light sweeps across the large logo, then the slogan.
   The logo is white with an ice band; the slogan is ice with a white band. JS adds
   html.sheen-on once the headline's words have risen in and merged back into plain text,
   so the clipped-text effect never sits on animated child spans (which Safari drops). */
@keyframes sheen {
  0% { background-position: 130% 0; }
  45%, 100% { background-position: -30% 0; }
}
.brand-flyer .brand-word,
.brand-flyer .brand-mark--sheen,
.sheen-on .hero h1 .h1-accent { background-size: 260% 100%; }
.brand-flyer .brand-word {
  background-image: linear-gradient(100deg, #fff 0%, #fff 40%, var(--ice) 50%, #fff 60%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.brand-flyer .brand-mark--sheen {
  display: block;
  background-image: linear-gradient(100deg, #fff 0%, #fff 40%, var(--ice) 50%, #fff 60%, #fff 100%);
  -webkit-mask: url('./assets/huntrim-mark-white.svg') center / contain no-repeat;
  mask: url('./assets/huntrim-mark-white.svg') center / contain no-repeat;
}
.sheen-on .hero h1 .h1-accent {
  background-image: linear-gradient(100deg, var(--ice) 0%, var(--ice) 40%, #fff 50%, var(--ice) 60%, var(--ice) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.sheen-on .brand-flyer .brand-word,
.sheen-on .brand-flyer .brand-mark--sheen { animation: sheen 7s ease-in-out infinite; }
.sheen-on .hero h1 .h1-accent { animation: sheen 7s ease-in-out .7s infinite; }

/* ---------- Reveal ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal][data-d="1"] { transition-delay: .08s; }
.js [data-reveal][data-d="2"] { transition-delay: .16s; }
.js [data-reveal][data-d="3"] { transition-delay: .24s; }
.js [data-reveal][data-d="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
