/**
 * H On Flow — Home page sections.
 * Rhythm: hero (light wash) · services (INK) · trust ledger (open canvas) · comparison (white)
 *   · why (tint) · ROI (white) · workforce (tint) · product tour (INK) · industries (white)
 *   · security (white) · process (white) · voices (tint) · FAQ (white) · contact (white)
 *   · CTA (orange, once) · footer (INK).
 */

/* ==========================================================================
   Shared: hero wash, live chip, floating proof chips, page hero
   ========================================================================== */
.hf-hero__wash {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(58% 60% at 88% -8%, rgba(255, 120, 0, 0.22), transparent 70%),
    radial-gradient(46% 52% at 6% 6%, rgba(255, 69, 0, 0.11), transparent 70%),
    radial-gradient(70% 38% at 50% 104%, rgba(255, 85, 0, 0.1), transparent 72%),
    var(--hf-white);
}

.hf-chip-live {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 6px 18px 6px 14px;
  border: 1px solid var(--hf-line-strong);
  border-radius: var(--hf-r-pill);
  background: rgba(255, 255, 255, 0.72);
  font-size: var(--hf-fs-small); font-weight: 700; line-height: 1.4;
}
.hf-chip-live__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--hf-orange); flex: none; }
.hf-chip-live__dot::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 1.5px solid var(--hf-orange);
  animation: hf-ping 2.4s var(--hf-ease) infinite;
}
@keyframes hf-ping { 0% { transform: scale(0.4); opacity: 0.9; } 80%, 100% { transform: scale(1.5); opacity: 0; } }

.hf-float {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px 12px 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--hf-line);
  border-radius: 20px;
  box-shadow: var(--hf-shadow-lift);
  will-change: transform;
}
.hf-float__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--hf-orange-3); color: var(--hf-ink); flex: none; }
.hf-float__icon svg { width: 22px; height: 22px; }
.hf-float__title { display: block; font-size: var(--hf-fs-xs); font-weight: 600; color: var(--hf-muted); line-height: 1.4; }
.hf-float__val { display: block; font-size: 1rem; font-weight: 800; line-height: 1.35; color: var(--hf-ink); }
.hf-float__val small { font-size: var(--hf-fs-xs); font-weight: 600; color: var(--hf-muted); margin-left: 4px; }

/* Generic inner-page hero (service, articles, contact, privacy, 404) */
.hf-page-hero { background: var(--hf-white); }
.hf-page-hero__inner { display: grid; gap: clamp(20px, 2.4vw, 32px); padding-top: clamp(124px, 13vw, 184px); padding-bottom: clamp(48px, 6vw, 88px); justify-items: start; }
.hf-page-hero__title { max-width: 18em; font-size: var(--hf-fs-h1); line-height: 1.22; }
html[lang^="en"] .hf-page-hero__title { max-width: 16em; line-height: 1.1; }
.hf-page-hero__foot { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; width: 100%; }
.hf-page-hero__count { justify-self: end; text-align: right; font-size: var(--hf-fs-small); font-weight: 600; color: var(--hf-muted); }
.hf-page-hero__count .hf-num { font-size: clamp(2.5rem, 5vw, 4rem); color: var(--hf-ink); margin-right: 6px; }
@media (max-width: 860px) {
  .hf-page-hero__foot { grid-template-columns: 1fr; }
  .hf-page-hero__count { justify-self: start; text-align: left; }
}

/* ==========================================================================
   01. Hero
   ========================================================================== */
/* Split hero: copy left, staff stage right (>=1024). Mobile order: copy, CTAs, stage, stat. */
.hf-hero__inner { padding: clamp(104px, 9vw, 128px) var(--hf-pad-x) clamp(24px, 3vw, 48px); max-width: calc(var(--hf-container) + var(--hf-pad-x) * 2); margin-inline: auto; }
.hf-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 3vw, 32px); }
.hf-hero__copy { display: grid; align-content: center; justify-items: start; gap: clamp(16px, 2vw, 28px); }
.hf-hero__title { font-size: clamp(2.125rem, 1rem + 3.2vw, 4rem); line-height: 1.2; max-width: 14em; }
html[lang^="en"] .hf-hero__title { max-width: 12em; line-height: 1.08; letter-spacing: -0.025em; }
.hf-hero__claim { display: grid; gap: clamp(18px, 2vw, 28px); max-width: 560px; }
.hf-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hf-hero__media { position: relative; min-width: 0; }
.hf-hero__stat { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); padding-top: clamp(16px, 2vw, 24px); border-top: 1px solid var(--hf-line-strong); }
.hf-hero__stat-num { font-size: clamp(3.25rem, 2rem + 3vw, 5.5rem); line-height: 0.95; letter-spacing: -0.02em; display: flex; align-items: baseline; flex: none; }
.hf-hero__stat-unit { font-size: 0.5em; color: var(--hf-orange); margin-left: 0.04em; }
.hf-hero__stat-label { font-family: var(--hf-font-display); font-size: 1.125rem; line-height: 1.4; max-width: 22em; }
.hf-hero__stat-sub { font-size: var(--hf-fs-small); color: var(--hf-muted); max-width: 32em; }

@media (min-width: 1024px) {
  .hf-hero__grid {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
    grid-template-areas: "copy media" "stat media";
    grid-template-rows: 1fr auto;
    column-gap: clamp(32px, 4vw, 72px);
    min-height: min(calc(100svh - 190px), 760px);
  }
  .hf-hero__copy { grid-area: copy; }
  .hf-hero__media { grid-area: media; display: flex; }
  .hf-hero__stat { grid-area: stat; }
}
@media (max-width: 1023px) {
  .hf-hero__stat { order: 3; }
}
@media (max-width: 480px) {
  .hf-hero__ctas .hf-btn { width: 100%; }
}

/* Ticker (core capabilities) */
.hf-ticker { margin: 0 0 var(--hf-gutter); padding: clamp(18px, 2.4vw, 32px) 0; overflow: hidden; }
.hf-ticker__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px clamp(28px, 4vw, 56px); padding: 0 var(--hf-pad-x); }
.hf-ticker__list li { display: inline-flex; align-items: center; gap: clamp(28px, 4vw, 56px); }
.hf-ticker__list li::after { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--hf-orange); transform: rotate(45deg); flex: none; }
.hf-ticker__list li > a, .hf-ticker__list li > span {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--hf-font-display); font-size: clamp(1.125rem, 0.9rem + 0.9vw, 1.75rem); line-height: 1.3;
  color: var(--hf-ink); white-space: nowrap;
}
.hf-ticker__list a { background: linear-gradient(var(--hf-orange), var(--hf-orange)) 0 calc(50% + 0.7em) / 0 2px no-repeat; transition: background-size var(--hf-dur) var(--hf-ease); }
.hf-ticker__list a:hover { background-size: 100% 2px; }
.hf-ticker.is-marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.hf-ticker.is-marquee .hf-ticker__track { display: flex; width: max-content; animation: hf-marquee 46s linear infinite; }
.hf-ticker.is-marquee .hf-ticker__list { flex-wrap: nowrap; justify-content: flex-start; padding: 0; gap: 0 clamp(28px, 4vw, 56px); padding-right: clamp(28px, 4vw, 56px); }
.hf-ticker.is-marquee:hover .hf-ticker__track { animation-play-state: paused; }
@keyframes hf-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   02. Services index (INK)
   ========================================================================== */
.hf-svc-list { border-top: 1px solid var(--hf-line-on-dark); }
.hf-svc-item { border-bottom: 1px solid var(--hf-line-on-dark); }
.hf-svc-row {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 80px minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px); align-items: start;
  padding: clamp(28px, 3.6vw, 52px) var(--hf-pad-x);
  margin-inline: calc(var(--hf-pad-x) * -1);
  color: #fff;
  transition: color 0.5s var(--hf-ease);
}
.hf-svc-row::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, #FF5500 0%, #FF7800 100%);
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform 0.6s var(--hf-ease);
}
.hf-svc-row__num { font-size: clamp(1.25rem, 1rem + 0.6vw, 1.75rem); color: var(--hf-orange-3); padding-top: 0.4em; transition: color 0.4s var(--hf-ease); }
.hf-svc-row__badge { display: block; font-size: var(--hf-fs-xs); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hf-on-dark-muted); margin-bottom: 10px; transition: color 0.4s var(--hf-ease); }
.hf-svc-row__title { font-size: clamp(1.625rem, 1rem + 2vw, 2.75rem); line-height: 1.25; margin-bottom: 14px; }
.hf-svc-row__desc { display: block; max-width: 56ch; color: var(--hf-on-dark-muted); font-size: var(--hf-fs-body); transition: color 0.4s var(--hf-ease); }
.hf-svc-row__side { display: grid; gap: 28px; justify-items: start; align-content: space-between; height: 100%; }
.hf-svc-row .hf-tag { transition: background-color 0.4s var(--hf-ease), color 0.4s var(--hf-ease); }
.hf-svc-row__go { display: inline-flex; align-items: center; gap: 14px; font-weight: 700; font-size: var(--hf-fs-small); }
.hf-svc-row__arrow {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.34);
  transition: background-color 0.4s var(--hf-ease), border-color 0.4s var(--hf-ease), transform 0.5s var(--hf-ease), color 0.4s var(--hf-ease);
}
.hf-svc-row__arrow svg { width: 22px; height: 22px; }
.hf-svc-row:hover, .hf-svc-row:focus-visible { color: var(--hf-ink); }
.hf-svc-row:hover::before, .hf-svc-row:focus-visible::before { transform: scaleY(1); }
.hf-svc-row:hover .hf-svc-row__num, .hf-svc-row:focus-visible .hf-svc-row__num,
.hf-svc-row:hover .hf-svc-row__badge, .hf-svc-row:focus-visible .hf-svc-row__badge,
.hf-svc-row:hover .hf-svc-row__desc, .hf-svc-row:focus-visible .hf-svc-row__desc { color: var(--hf-ink); }
.hf-svc-row:hover .hf-tag, .hf-svc-row:focus-visible .hf-tag { background: rgba(38, 38, 38, 0.1); color: var(--hf-ink); }
.hf-svc-row:hover .hf-svc-row__arrow, .hf-svc-row:focus-visible .hf-svc-row__arrow { background: var(--hf-ink); border-color: var(--hf-ink); color: #fff; transform: rotate(45deg); }
.hf-svc-row:focus-visible { outline-offset: -4px; border-radius: 0; }
@media (max-width: 960px) {
  .hf-svc-row { grid-template-columns: 56px minmax(0, 1fr); }
  .hf-svc-row__side { grid-column: 2; gap: 20px; }
}
@media (max-width: 560px) {
  .hf-svc-row { grid-template-columns: 1fr; gap: 14px; }
  .hf-svc-row__side { grid-column: 1; }
  .hf-svc-row__num { padding-top: 0; }
}

/* ==========================================================================
   03. Trust ledger (warm tinted panel)
   ========================================================================== */
.hf-ledger { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--hf-ink); }
.hf-ledger__col { display: grid; gap: 14px; align-content: start; padding: clamp(28px, 3vw, 44px) clamp(20px, 3vw, 44px) 0; border-left: 1px solid var(--hf-line-strong); }
.hf-ledger__col:first-child { border-left: 0; padding-left: 0; }
.hf-ledger__num { font-size: clamp(4.25rem, 8.6vw, 8.5rem); line-height: 1; letter-spacing: -0.02em; margin-top: 12px; display: flex; align-items: baseline; flex-wrap: wrap; }
.hf-ledger__unit { font-size: 0.45em; color: var(--hf-orange); margin-left: 0.06em; }
.hf-ledger__unit--text { font-size: 0.3em; margin-left: 0.2em; color: var(--hf-ink); }
.hf-ledger__title { font-size: var(--hf-fs-h3); }
.hf-ledger__desc { color: var(--hf-muted); max-width: 34ch; }
.hf-ledger .hf-tag { justify-self: start; }
@media (max-width: 860px) {
  .hf-ledger { grid-template-columns: 1fr; }
  .hf-ledger__col, .hf-ledger__col:first-child { border-left: 0; padding: 28px 0 36px; border-bottom: 1px solid var(--hf-line-strong); }
  .hf-ledger__col:last-child { border-bottom: 0; }
}
.hf-trust .hf-ledger, .hf-trust .hf-ledger__col { border: 0; }

/* ==========================================================================
   04. Comparison matrix (white)
   ========================================================================== */
.hf-scroll-hint { display: none; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; font-size: var(--hf-fs-xs); font-weight: 700; color: var(--hf-muted); }
.hf-scroll-hint svg { width: 16px; height: 16px; }
.hf-cmp { min-width: 940px; table-layout: fixed; }
.hf-cmp th, .hf-cmp td { padding: 22px 24px; }
.hf-cmp thead th { padding-top: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--hf-line-strong); }
.hf-cmp__feature { width: 22%; }
.hf-cmp__feature-title { display: block; font-family: var(--hf-font-display); font-size: 1.0625rem; font-weight: 400; line-height: 1.4; color: var(--hf-ink); }
.hf-cmp__feature-sub { display: block; margin-top: 4px; font-size: var(--hf-fs-xs); font-weight: 600; color: var(--hf-muted); }
.hf-cmp__col { display: table-cell; }
.hf-cmp__tag { display: inline-block; margin-bottom: 12px; padding: 3px 12px; border-radius: var(--hf-r-pill); background: var(--hf-surface); font-family: var(--hf-font); font-size: var(--hf-fs-xs); font-weight: 700; line-height: 1.5; }
.hf-cmp__tag.is-pop { background: var(--hf-ink); color: #fff; }
.hf-cmp__name { display: block; font-family: var(--hf-font-display); font-size: 1.375rem; font-weight: 400; line-height: 1.3; margin-bottom: 10px; }
.hf-cmp__link { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--hf-font); font-size: var(--hf-fs-xs); font-weight: 700; text-decoration: underline; text-decoration-color: var(--hf-line-strong); text-underline-offset: 4px; transition: text-decoration-color 0.25s var(--hf-ease); }
.hf-cmp__link:hover { text-decoration-color: var(--hf-orange); }
.hf-cmp__row-head { text-align: left; font-weight: 400; }
.hf-cmp tbody td { color: var(--hf-ink-soft); }
.hf-cmp .is-popular { background: var(--hf-wash); }
.hf-cmp thead th.is-popular { box-shadow: inset 0 3px 0 var(--hf-orange); }
.hf-cmp tbody tr:hover td, .hf-cmp tbody tr:hover th { background: rgba(38, 38, 38, 0.025); }
.hf-cmp tbody tr:hover td.is-popular { background: rgba(255, 69, 0, 0.09); }
.hf-cmp tfoot td { border-bottom: 0; border-top: 1px solid var(--hf-line); padding-block: 24px; }
@media (max-width: 1100px) {
  .hf-scroll-hint { display: flex; }
  .hf-cmp__feature, .hf-cmp__row-head { position: sticky; left: 0; z-index: 2; background: var(--hf-white); box-shadow: 1px 0 0 var(--hf-line); }
  .hf-cmp th, .hf-cmp td { padding: 18px 18px; }
  .hf-cmp__feature { width: 180px; }
}
@media (max-width: 600px) {
  .hf-cmp__feature { width: 132px; }
  .hf-cmp__row-head { min-width: 132px; max-width: 132px; }
  .hf-cmp__feature-title { font-size: 0.9375rem; }
  .hf-cmp th, .hf-cmp td { padding: 16px 14px; }
}

/* Phones: the matrix is restaged (same DOM, no duplicated copy) as
   service cards → numbered feature cards → CTAs.
   - no JS: every value is listed with its service label (data-label);
   - html.hf-js: a sticky segmented switcher picks ONE service; the ink "selected"
     card + one answer per feature make it read like a spec sheet. */
.hf-cmp-switch { display: none; }
@media (max-width: 700px) {
  .hf-compare .hf-scroll-hint { display: none; }

  .hf-cmp-wrap { border: 0; border-radius: 0; background: none; overflow: visible; }
  .hf-cmp, .hf-cmp thead, .hf-cmp tbody, .hf-cmp tfoot, .hf-cmp tr, .hf-cmp th, .hf-cmp td { display: block; }
  .hf-cmp { min-width: 0; }
  .hf-cmp th, .hf-cmp td { padding: 0; border: 0; }
  .hf-cmp__feature, .hf-cmp__row-head { position: static; width: auto; min-width: 0; max-width: none; background: none; box-shadow: none; }
  .hf-cmp tbody tr:hover td, .hf-cmp tbody tr:hover th, .hf-cmp tbody tr:hover td.is-popular, .hf-cmp .is-popular { background: none; }

  /* Service cards */
  .hf-cmp thead .hf-cmp__feature { display: none; }
  .hf-cmp thead tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
  .hf-cmp thead th.hf-cmp__col { padding: 16px 16px 6px; border: 1px solid var(--hf-line); border-radius: var(--hf-r-card); background: var(--hf-white); }
  .hf-cmp thead th.is-popular { background: var(--hf-wash); box-shadow: inset 0 3px 0 var(--hf-orange); }
  .hf-cmp__tag { margin-bottom: 8px; border-radius: 10px; }
  .hf-cmp__name { font-size: 1.1875rem; margin-bottom: 0; }

  /* Feature cards */
  .hf-cmp tbody { display: grid; gap: 10px; counter-reset: hf-cmp; }
  .hf-cmp tbody tr { counter-increment: hf-cmp; padding: 18px 18px 6px; border: 1px solid var(--hf-line); border-radius: var(--hf-r-card); background: var(--hf-white); }
  .hf-cmp tbody .hf-cmp__row-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--hf-line); }
  .hf-cmp tbody .hf-cmp__row-head::before { content: counter(hf-cmp, decimal-leading-zero); grid-row: span 2; font-family: var(--hf-font); font-size: var(--hf-fs-xs); font-weight: 800; letter-spacing: 0.04em; color: var(--hf-orange); }
  .hf-cmp tbody .hf-cmp__feature-sub { margin-top: 0; }
  /* Cells stay display:block — a grid/flex cell would split the copy at every
     .hf-nb span into separate items. The service label sits above the value. */
  .hf-cmp tbody td { padding: 12px 0; border-bottom: 1px solid var(--hf-line); font-size: var(--hf-fs-small); line-height: 1.6; }
  .hf-cmp tbody td:last-child { border-bottom: 0; }
  .hf-cmp tbody td::before, .hf-cmp tfoot td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: var(--hf-fs-xs); font-weight: 800; line-height: 1.6; color: var(--hf-ink); }
  .hf-cmp tbody td.is-popular::before { color: var(--hf-orange); }

  /* CTAs */
  .hf-cmp tfoot tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; margin-top: 18px; }
  .hf-cmp tfoot .hf-cmp__row-head { display: none; }
  .hf-cmp tfoot td { display: grid; gap: 6px; padding: 0; border: 0; }
  .hf-cmp tfoot .hf-btn { width: 100%; justify-content: space-between; }

  /* ---- Switched mode (JS) ---- */
  .hf-js .hf-cmp-switch { position: sticky; top: calc(var(--hf-header-top) + var(--hf-header-height) + 10px); z-index: 3; display: grid; grid-template-columns: 1.55fr 1fr 1fr 1fr; margin: 0 0 14px; padding: 4px; border: 1px solid var(--hf-line); border-radius: var(--hf-r-pill); background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--hf-shadow-float); }
  .hf-cmp-switch__glide { position: absolute; top: 4px; bottom: 4px; left: 0; width: var(--w, 0); transform: translateX(var(--x, 0)); border-radius: var(--hf-r-pill); background: var(--hf-ink); box-shadow: inset 0 -2px 0 var(--hf-orange-3); transition: transform 0.45s var(--hf-ease), width 0.45s var(--hf-ease); }
  .hf-cmp-switch__btn { position: relative; z-index: 1; min-width: 0; min-height: 44px; padding: 0 8px; border: 0; border-radius: var(--hf-r-pill); background: none; color: var(--hf-ink-soft); font-family: var(--hf-font); font-size: var(--hf-fs-xs); font-weight: 800; line-height: 1.2; cursor: pointer; transition: color 0.3s var(--hf-ease); -webkit-tap-highlight-color: transparent; }
  .hf-cmp-switch__btn[aria-pressed="true"] { color: #fff; }
  .hf-cmp-switch__btn:focus-visible { outline: 2px solid var(--hf-orange); outline-offset: 2px; }

  .hf-js .hf-cmp thead tr, .hf-js .hf-cmp tfoot tr { grid-template-columns: minmax(0, 1fr); }
  .hf-js .hf-cmp thead th.hf-cmp__col { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding: 18px 20px 10px; border-color: var(--hf-ink); border-radius: 12px 4px 12px 4px; background: var(--hf-ink); box-shadow: none; color: #fff; }
  .hf-js .hf-cmp thead .hf-cmp__tag { grid-column: 1 / -1; justify-self: start; background: var(--hf-orange-3); color: var(--hf-ink); }
  .hf-js .hf-cmp thead .hf-cmp__name { font-size: 1.5rem; }
  .hf-js .hf-cmp thead .hf-cmp__link { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.4); }
  .hf-js .hf-cmp tbody td { padding: 14px 0 12px; border-bottom: 0; font-size: 1rem; color: var(--hf-ink); animation: hf-cmp-in 0.45s var(--hf-ease) both; }
  .hf-js .hf-cmp tbody td::before, .hf-js .hf-cmp tfoot td::before { content: none; }
  .hf-js .hf-cmp tfoot tr { margin-top: 14px; }
  .hf-js .hf-cmp-wrap[data-cmp-col="2"] :is(thead th, tbody td, tfoot td):not(:nth-child(2)),
  .hf-js .hf-cmp-wrap[data-cmp-col="3"] :is(thead th, tbody td, tfoot td):not(:nth-child(3)),
  .hf-js .hf-cmp-wrap[data-cmp-col="4"] :is(thead th, tbody td, tfoot td):not(:nth-child(4)),
  .hf-js .hf-cmp-wrap[data-cmp-col="5"] :is(thead th, tbody td, tfoot td):not(:nth-child(5)) { display: none; }
  /* Every switch re-displays the cells, so the answers settle in again. */
  .hf-js .hf-cmp thead th.hf-cmp__col { animation: hf-cmp-in 0.45s var(--hf-ease) both; }
}
@keyframes hf-cmp-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  .hf-cmp-switch__glide { transition: none; }
  .hf-js .hf-cmp tbody td, .hf-js .hf-cmp thead th.hf-cmp__col { animation: none; }
}

/* ==========================================================================
   05. Why H On (tint) — sticky intro + accordion
   ========================================================================== */
.hf-why__grid, .hf-faq__grid, .hf-process__grid, .hf-sec__grid, .hf-wf__grid {
  display: grid; gap: clamp(36px, 6vw, 104px); align-items: start;
}
.hf-why__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.hf-why__sticky, .hf-faq__sticky, .hf-process__sticky, .hf-sec__sticky, .hf-split__sticky, .hf-wf__sticky, .hf-art-body__sticky { position: sticky; top: 112px; display: grid; gap: 24px; align-content: start; }
.hf-why__figure { margin: 16px 0 0; border-radius: var(--hf-r-card); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--hf-shadow-float); }
.hf-why__figure img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.hf-acc__lead { display: flex; align-items: baseline; gap: clamp(14px, 2vw, 28px); min-width: 0; }
.hf-acc__num { font-size: var(--hf-fs-small); color: var(--hf-ink); min-width: 2ch; }
.hf-acc__title { font-family: var(--hf-font-display); font-size: var(--hf-fs-h3); line-height: 1.4; }

.hf-why__list .hf-acc__body-inner { padding-left: calc(2ch + clamp(14px, 2vw, 28px)); }
.hf-panel--tint .hf-acc, .hf-panel--tint .hf-acc__item { border-color: var(--hf-line-strong); }
@media (max-width: 960px) {
  .hf-why__grid, .hf-faq__grid, .hf-process__grid, .hf-sec__grid, .hf-wf__grid { grid-template-columns: 1fr; }
  .hf-why__sticky, .hf-faq__sticky, .hf-process__sticky, .hf-sec__sticky, .hf-split__sticky, .hf-wf__sticky, .hf-art-body__sticky { position: static; }
  .hf-acc__body-inner { padding-right: 0; }
}

/* ==========================================================================
   06. ROI: indexed comparison with an integrated calculation note
   ========================================================================== */
.hf-roi__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  grid-template-areas: "intro chart" "method chart";
  grid-template-rows: auto 1fr;
  gap: clamp(22px, 2.5vw, 36px) clamp(32px, 5vw, 72px);
  align-items: start;
  overflow-wrap: anywhere;
}
.hf-roi__intro { grid-area: intro; display: grid; justify-items: start; gap: clamp(14px, 1.8vw, 26px); }
.hf-roi__intro .hf-h2 { max-width: 16em; text-wrap: balance; }
.hf-roi__intro .hf-lead { max-width: 42ch; text-wrap: pretty; }

/* Direct reductions: the orange length and the printed value share a 0–100% scale.
   Static server values keep the comparison readable before scripts and during scrolling. */
.hf-roi__chart {
  grid-area: chart;
  container: hf-roi / inline-size;
  min-width: 0;
  padding: clamp(22px, 3vw, 40px);
  border: 1px solid var(--hf-line);
  border-radius: var(--hf-r-card);
  background: var(--hf-white);
}
.hf-roi__head { display: grid; gap: 8px; padding-bottom: 24px; }
.hf-roi__chart-title {
  margin: 0;
  font-family: var(--hf-font-display);
  font-size: var(--hf-fs-h3);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--hf-ink);
  text-wrap: balance;
}
.hf-roi__chart-sub { margin: 0; color: var(--hf-muted); font-size: var(--hf-fs-small); line-height: 1.6; text-wrap: pretty; }
.hf-roi__rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hf-line); }
.hf-roi__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label pct" "desc pct" "bar bar";
  align-items: center;
  column-gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--hf-line);
}
.hf-roi__comparison-label {
  grid-area: label;
  min-width: 0;
  font-weight: 700;
  font-size: var(--hf-fs-body);
  line-height: 1.5;
  color: var(--hf-ink);
  text-wrap: pretty;
}
.hf-roi__comparison-desc {
  grid-area: desc;
  margin-top: 2px;
  color: var(--hf-muted);
  font-size: var(--hf-fs-xs);
  line-height: 1.6;
  text-wrap: pretty;
}
.hf-roi__pct {
  grid-area: pct;
  font-family: var(--hf-font);
  font-size: clamp(2rem, 1.5rem + 1vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--hf-orange);
}
.hf-roi__bar {
  grid-area: bar;
  height: 6px;
  margin-top: 16px;
  border-radius: var(--hf-r-pill);
  background: var(--hf-surface);
  overflow: hidden;
}
.hf-roi__saving { display: block; width: var(--hf-cut); height: 100%; border-radius: inherit; background: var(--hf-orange); }
.hf-roi__baseline { margin: 16px 0 0; color: var(--hf-muted); font-size: var(--hf-fs-xs); line-height: 1.6; }
@media (max-width: 640px) {
  .hf-roi__head { padding-bottom: 20px; }
  .hf-roi__row {
    grid-template-areas: "label pct" "desc desc" "bar bar";
    column-gap: 12px;
    padding-block: 20px;
  }
  .hf-roi__comparison-desc { margin-top: 6px; }
}
/* When text is enlarged, let the metric wrap below its category rather than squeezing it. */
@container hf-roi (max-width: 12em) {
  .hf-roi__row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "label label" "pct pct" "desc desc" "bar bar";
  }
  .hf-roi__pct { margin-top: 6px; }
}
@media (forced-colors: active) {
  .hf-roi__bar { outline: 1px solid CanvasText; }
  .hf-roi__saving { background: Highlight; forced-color-adjust: none; }
}
.hf-receipt {
  display: grid;
  grid-area: method;
  align-self: end;
  max-width: 48ch;
  gap: 14px;
  padding-top: clamp(16px, 1.8vw, 24px);
  border-top: 1px solid var(--hf-line-strong);
  font-size: var(--hf-fs-small);
}
.hf-receipt__info {
  display: grid;
  gap: 8px;
}
.hf-receipt__label { font-weight: 800; }
.hf-receipt__text { color: var(--hf-muted); line-height: 1.65; }
.hf-receipt__value { color: var(--hf-ink); }
.hf-receipt__foot { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; }
.hf-receipt__foot svg { width: 16px; height: 16px; margin-top: 3px; flex: none; color: var(--hf-orange); }
.hf-receipt__trust {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: var(--hf-fs-xs);
  color: var(--hf-muted);
  line-height: 1.5;
  margin-top: 2px;
}
.hf-receipt__trust svg {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  flex: none;
  color: var(--hf-orange);
}
.hf-receipt__action {
  margin-top: 2px;
}
.hf-receipt__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s var(--hf-ease);
}
.hf-receipt__btn:hover {
  transform: translateY(-1px);
}
@media (max-width: 960px) {
  .hf-roi__layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "chart" "method";
    grid-template-rows: auto;
  }
  .hf-roi__intro .hf-h2, .hf-roi__intro .hf-lead { max-width: 100%; }
}

/* ==========================================================================
   07. Workforce dashboard (tint)
   ========================================================================== */
.hf-wf__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.hf-wf__copy { display: grid; gap: 24px; align-content: start; }
.hf-wf__features { margin-top: 12px; border-top: 1px solid var(--hf-line-strong); }
.hf-wf__feature { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--hf-line-strong); }
.hf-wf__fnum { font-size: 1.125rem; color: var(--hf-ink); padding-top: 0.25em; }
.hf-wf__feature h3 { font-size: var(--hf-fs-h3); margin-bottom: 6px; }
.hf-wf__feature p { color: var(--hf-muted); font-size: var(--hf-fs-small); max-width: 52ch; }
.hf-wf__visual { position: relative; }
.hf-wf__sticky { position: sticky; top: 112px; }
.hf-wf__img { width: 100%; height: auto; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 0 0; }
.hf-wf__phone { position: absolute; z-index: 2; right: -20px; bottom: -48px; width: clamp(150px, 15vw, 210px); border-radius: 28px; border: 6px solid var(--hf-ink); background: var(--hf-ink); box-shadow: var(--hf-shadow-lift); overflow: hidden; will-change: transform; }
.hf-wf__phone img { width: 100%; height: auto; aspect-ratio: 780 / 1688; object-fit: cover; border-radius: 22px; }
.hf-float--wf { left: -24px; bottom: -40px; }
@media (max-width: 960px) {
  .hf-wf__grid { grid-template-columns: 1fr; }
  .hf-float--wf { left: 12px; top: auto; bottom: -36px; }
  .hf-wf__sticky { position: relative; }
  .hf-wf__phone { right: 12px; bottom: -28px; width: 120px; border-width: 4px; border-radius: 22px; }
  .hf-wf__phone img { border-radius: 18px; }
}

/* ==========================================================================
   08. Product tour (INK)
   ========================================================================== */
.hf-pilltabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: clamp(28px, 4vw, 48px); }
.hf-pilltab {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid var(--hf-line-on-dark); border-radius: var(--hf-r-pill);
  background: transparent; color: #fff; cursor: pointer;
  font-size: var(--hf-fs-small); font-weight: 700; line-height: 1.3;
  transition: background-color 0.3s var(--hf-ease), color 0.3s var(--hf-ease), border-color 0.3s var(--hf-ease);
}
.hf-pilltab:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.4); }
.hf-pilltab__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hf-orange-3); transition: transform 0.3s var(--hf-ease), background-color 0.3s var(--hf-ease); }
.hf-pilltab.is-active { background: #fff; color: var(--hf-ink); border-color: #fff; }
.hf-pilltab.is-active .hf-pilltab__dot { background: var(--hf-orange); transform: scale(1.25); }

.hf-tour__pane { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.hf-tour__pane + .hf-tour__pane { margin-top: 56px; }
.hf-tabs-ready .hf-tour__pane + .hf-tour__pane { margin-top: 0; }
.hf-tour__frame { background: var(--hf-white); color: var(--hf-ink); }
.hf-tour__shot { position: relative; }
.hf-tour__shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.hf-hotspot {
  position: absolute; z-index: 2; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; cursor: pointer;
}
.hf-hotspot__num {
  position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--hf-orange-3); color: var(--hf-ink); font-size: var(--hf-fs-xs); font-weight: 800;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9), 0 6px 18px rgba(38, 38, 38, 0.3);
  transition: transform 0.35s var(--hf-ease), background-color 0.35s var(--hf-ease);
}
.hf-hotspot__num::after { content: attr(data-num); }
.hf-hotspot__pulse { position: absolute; inset: 4px; border-radius: 50%; border: 2px solid var(--hf-orange); opacity: 0; }
.hf-hotspot.is-active .hf-hotspot__num { background: var(--hf-orange); color: #fff; transform: scale(1.18); }
.hf-hotspot.is-active .hf-hotspot__num::after { content: attr(data-num); }
.hf-hotspot__pulse { animation: hf-ping 2.2s var(--hf-ease) infinite; }
.hf-hotspot:hover .hf-hotspot__num { transform: scale(1.18); }

.hf-tour__steps { display: grid; gap: 4px; }
.hf-tour__step {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 22px 20px 22px 22px;
  border-left: 2px solid var(--hf-line-on-dark);
  border-radius: 0 var(--hf-r-card) var(--hf-r-card) 0;
  color: rgba(255, 255, 255, 0.64);
  cursor: pointer;
  transition: background-color 0.35s var(--hf-ease), color 0.35s var(--hf-ease), border-color 0.35s var(--hf-ease);
}
.hf-tour__step:hover { background: rgba(255, 255, 255, 0.04); color: rgba(255, 255, 255, 0.86); }
.hf-tour__step.is-active { color: #fff; border-left-color: var(--hf-orange-3); background: rgba(255, 255, 255, 0.07); }
.hf-tour__step-num { font-size: 1.125rem; color: inherit; padding-top: 0.2em; }
.hf-tour__step.is-active .hf-tour__step-num { color: var(--hf-orange-3); }
.hf-tour__step-title { font-size: 1.1875rem; line-height: 1.4; margin-bottom: 6px; }
.hf-tour__step-desc { font-size: var(--hf-fs-small); line-height: 1.7; }
.hf-tour__cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px;
  margin-top: clamp(48px, 6vw, 88px); padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--hf-line-on-dark); border-radius: var(--hf-r-card);
}
.hf-tour__cta p { color: var(--hf-on-dark-muted); margin-top: 6px; max-width: 56ch; }
@media (max-width: 960px) { .hf-tour__pane { grid-template-columns: 1fr; } .hf-tour__shot img { aspect-ratio: 4 / 3; } }

/* ==========================================================================
   09. Industries explorer (white)
   ========================================================================== */
.hf-ind__layout { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.hf-ind__side { position: sticky; top: 112px; display: grid; gap: 12px; align-content: start; max-height: calc(100svh - 128px); overflow-y: auto; scrollbar-width: thin; }
.hf-ind__tabs { position: relative; isolation: isolate; display: grid; gap: 4px; }
.hf-ind__tabs.has-indicator::before {
  content: ''; position: absolute; left: 0; top: 0; pointer-events: none;
  width: var(--ind-w); height: var(--ind-h);
  transform: translate(var(--ind-x), var(--ind-y));
  border-radius: var(--hf-r-control); background: var(--hf-ink);
  transition: transform 0.48s var(--hf-ease), width 0.48s var(--hf-ease), height 0.48s var(--hf-ease);
}
.hf-ind__tabs.has-indicator .hf-ind__tab { position: relative; z-index: 1; }
.hf-ind__tabs.has-indicator .hf-ind__tab.is-active { background: transparent; }
.hf-ind__toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 1.5px solid var(--hf-line-strong); border-radius: var(--hf-r-pill); background: transparent; font-weight: 800; font-size: var(--hf-fs-small); cursor: pointer; transition: background-color 0.25s var(--hf-ease), border-color 0.25s var(--hf-ease); }
.hf-ind__toggle:hover { border-color: var(--hf-ink); background: var(--hf-canvas); }
.hf-ind__toggle svg { width: 18px; height: 18px; transition: transform 0.3s var(--hf-ease); }
.hf-ind__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.hf-ind__tab {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) 20px; gap: 12px; align-items: center;
  min-height: 56px; padding: 8px 16px;
  border: 0; border-radius: var(--hf-r-control); background: transparent; cursor: pointer; text-align: left;
  font-size: var(--hf-fs-small); font-weight: 700; line-height: 1.4; color: var(--hf-ink);
  transition: background-color 0.3s var(--hf-ease), color 0.3s var(--hf-ease);
}
.hf-ind__tab-num { font-size: 0.9375rem; color: var(--hf-muted); transition: color 0.3s var(--hf-ease); }
.hf-ind__tab-arrow { width: 18px; height: 18px; opacity: 0; transform: translateX(-6px); transition: opacity 0.3s var(--hf-ease), transform 0.3s var(--hf-ease); }
.hf-ind__tab:hover { background: var(--hf-canvas); }
.hf-ind__tab:hover .hf-ind__tab-arrow { opacity: 1; transform: none; }
.hf-ind__tab.is-active { background: var(--hf-ink); color: #fff; }
.hf-ind__tab.is-active .hf-ind__tab-num { color: var(--hf-orange-3); }
.hf-ind__tab.is-active .hf-ind__tab-arrow { opacity: 1; transform: none; color: var(--hf-orange-3); }

.hf-ind__panes { min-height: 100%; }
.hf-tabs-ready .hf-ind__pane:not(.is-active), .hf-tabs-ready .hf-tour__pane:not(.is-active) { display: none; }
.hf-ind__pane {
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: var(--hf-r-panel);
  background: var(--hf-canvas);
  border: 1px solid var(--hf-line);
  box-shadow: var(--hf-shadow-card);
  overflow: hidden;
}
.hf-ind__pane + .hf-ind__pane { margin-top: 48px; }
.hf-tabs-ready .hf-ind__pane + .hf-ind__pane { margin-top: 0; }

.hf-ind__media {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  overflow: hidden;
  background: var(--hf-ink);
  border-top-left-radius: calc(var(--hf-r-panel) - 1px);
  border-top-right-radius: calc(var(--hf-r-panel) - 1px);
}
.hf-ind__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
  transition: transform 0.8s var(--hf-ease);
}
.hf-ind__pane:hover .hf-ind__media img { transform: scale(1.03); }
.hf-ind__media-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.15) 0%, rgba(20, 20, 20, 0.58) 45%, rgba(18, 18, 18, 0.92) 88%, rgba(18, 18, 18, 0.97) 100%);
  pointer-events: none;
}
.hf-ind__media-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  padding: clamp(26px, 3.4vw, 44px);
}
.hf-ind__kicker {
  font-family: var(--hf-font);
  font-size: var(--hf-fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hf-orange-3);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
.hf-ind__title {
  font-family: var(--hf-font-display);
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  line-height: 1.25;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}
.hf-ind__vp {
  color: rgba(255, 255, 255, 0.90);
  max-width: 62ch;
  line-height: 1.65;
  font-size: var(--hf-fs-base);
  margin: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.hf-ind__body {
  display: grid;
  padding: clamp(24px, 3vw, 40px);
}
.hf-ind__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 2.5vw, 36px); align-items: start; }
.hf-ind__label { font-family: var(--hf-font); font-size: var(--hf-fs-xs); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hf-muted); margin-bottom: 16px; }
html[lang^="th"] .hf-ind__label { letter-spacing: 0.03em; text-transform: none; font-size: var(--hf-fs-small); }
.hf-ind__chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr));
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.hf-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--hf-white);
  border: 1px solid var(--hf-line);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: border-color 0.25s var(--hf-ease), transform 0.25s var(--hf-ease), box-shadow 0.25s var(--hf-ease), background-color 0.25s var(--hf-ease);
}
.hf-chip:hover {
  border-color: rgba(255, 69, 0, 0.35);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 14px rgba(255, 69, 0, 0.08);
  background: #ffffff;
}
.hf-chip__icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 69, 0, 0.08);
  color: var(--hf-orange);
  flex: none;
  transition: background-color 0.25s var(--hf-ease), color 0.25s var(--hf-ease), transform 0.25s var(--hf-ease);
}
.hf-chip:hover .hf-chip__icon {
  background: var(--hf-orange);
  color: #ffffff;
  transform: scale(1.05);
}
.hf-chip__icon svg,
.hf-chip > svg {
  width: 12px;
  height: 12px;
  color: inherit;
  flex: none;
}
.hf-chip__text {
  flex: 1;
  min-width: 0;
  font-family: var(--hf-font);
  font-size: var(--hf-fs-small);
  font-weight: 600;
  line-height: 1.4;
  color: var(--hf-ink);
  overflow-wrap: break-word;
  word-break: normal;
}
@media (min-width: 541px) {
  .hf-chip:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}
@media (max-width: 540px) {
  .hf-ind__chips {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
.hf-ind__links { display: grid; gap: 8px; }
.hf-ind__link { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: 18px; background: var(--hf-white); border: 1px solid var(--hf-line); transition: border-color 0.3s var(--hf-ease), transform 0.4s var(--hf-ease), box-shadow 0.4s var(--hf-ease); }
.hf-ind__link-title { display: block; font-weight: 800; line-height: 1.4; }
.hf-ind__link-desc { display: block; margin-top: 2px; font-size: var(--hf-fs-xs); color: var(--hf-muted); line-height: 1.6; }
.hf-ind__link-go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--hf-surface); flex: none; transition: background-color 0.3s var(--hf-ease), color 0.3s var(--hf-ease), transform 0.4s var(--hf-ease); }
.hf-ind__link-go svg { width: 18px; height: 18px; }
.hf-ind__link:hover { border-color: var(--hf-ink); transform: translateY(-2px); box-shadow: var(--hf-shadow-float); }
.hf-ind__link:hover .hf-ind__link-go { background: var(--hf-orange); color: #fff; transform: rotate(45deg); }
@media (max-width: 1024px) {
  .hf-ind__layout { grid-template-columns: 1fr; }
  .hf-ind__side { position: static; max-height: none; overflow: visible; }
  .hf-ind__tabs { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 8px; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-inline: calc(var(--hf-pad-x) * -1); padding-inline: var(--hf-pad-x); }
  .hf-ind__tabs::-webkit-scrollbar { display: none; }
  .hf-ind__tab { flex: none; grid-template-columns: auto; min-height: 48px; padding: 8px 18px; border: 1px solid var(--hf-line-strong); border-radius: var(--hf-r-pill); scroll-snap-align: start; white-space: nowrap; }
  .hf-ind__tab-num, .hf-ind__tab-arrow { display: none; }
  .hf-ind__tab.is-active { border-color: var(--hf-ink); }
  .hf-ind__tabs.has-indicator::before { border-radius: var(--hf-r-pill); }
}
@media (prefers-reduced-motion: reduce) {
  .hf-ind__tabs.has-indicator::before { transition: none; }
  /* Apply immediately, even before JavaScript processes a preference change. */
  .hf-ind__media img, .hf-ind__kicker, .hf-ind__title, .hf-ind__vp,
  .hf-ind__roles, .hf-ind__services, .hf-chip, .hf-chip__icon { opacity: 1 !important; transform: none !important; transition: none !important; }
}
@media (max-width: 860px) {
  .hf-ind__cols { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .hf-ind__media { min-height: 220px; }
  .hf-ind__media-content { padding: 22px 20px; gap: 8px; }
  .hf-ind__title { font-size: 1.6rem; }
  .hf-ind__vp { font-size: var(--hf-fs-small); line-height: 1.6; }
  .hf-ind__body { padding: 20px; }
  .hf-ind__cols { gap: 24px; }
}

/* ==========================================================================
   10. Security spec sheet (white)
   ========================================================================== */
.hf-sec__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.hf-sec__figure { position: relative; margin: 16px 0 0; border-radius: var(--hf-r-panel); overflow: hidden; aspect-ratio: 4 / 5; background: var(--hf-canvas); }
.hf-sec__figure > img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.hf-sec__seal { position: absolute; left: 20px; bottom: 20px; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: #fff; box-shadow: var(--hf-shadow-float); }
.hf-sec__seal img { width: 44px; height: auto; }
.hf-spec { border-top: 2px solid var(--hf-ink); }
.hf-spec__row { display: grid; grid-template-columns: clamp(56px, 8vw, 96px) minmax(0, 1fr); gap: 16px; padding: clamp(28px, 3vw, 44px) 0; border-bottom: 1px solid var(--hf-line-strong); }
.hf-spec__num { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); color: var(--hf-orange); line-height: 1.1; }
.hf-spec__title { font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem); line-height: 1.35; margin-bottom: 14px; }
.hf-spec__tag { margin-bottom: 14px; }
.hf-spec__tag .hf-tag { height: auto; padding-block: 6px; line-height: 1.5; border-radius: 14px; }
.hf-spec__desc { color: var(--hf-muted); max-width: 64ch; }

/* ==========================================================================
   11. Process timeline (white)
   ========================================================================== */
.hf-process__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.hf-callout { display: flex; gap: 16px; align-items: center; margin-top: 12px; padding: 20px 24px; border-radius: var(--hf-r-card); background: var(--hf-canvas); border: 1px solid var(--hf-line); }
.hf-callout__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--hf-orange-3); color: var(--hf-ink); flex: none; }
.hf-callout__icon svg { width: 24px; height: 24px; }
.hf-callout__title { font-weight: 800; line-height: 1.4; }
.hf-callout__sub { font-size: var(--hf-fs-small); color: var(--hf-muted); }

.hf-timeline { position: relative; display: grid; }
.hf-timeline__rail { position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; background: var(--hf-line-strong); border-radius: 2px; }
.hf-timeline__progress { position: absolute; inset: 0; background: var(--hf-gradient); border-radius: 2px; transform-origin: 50% 0; }
.hf-timeline__step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); padding-bottom: clamp(36px, 5vw, 64px); }
.hf-timeline__step:last-child { padding-bottom: 0; }
.hf-timeline__node {
  position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--hf-orange-3); color: var(--hf-ink); font-size: 1.125rem; border: 2px solid var(--hf-orange-3);
  transition: background-color 0.5s var(--hf-ease), border-color 0.5s var(--hf-ease), transform 0.5s var(--hf-ease);
}
.hf-timeline__step.is-pending .hf-timeline__node { background: var(--hf-white); border-color: var(--hf-line-strong); color: var(--hf-muted); }
.hf-timeline__kicker { font-size: var(--hf-fs-xs); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hf-muted); margin-bottom: 6px; padding-top: 6px; }
.hf-timeline__title { font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem); line-height: 1.3; margin-bottom: 10px; }
.hf-timeline__desc { color: var(--hf-muted); max-width: 56ch; }

/* ==========================================================================
   12. Voices — profile-card collage (tint)
   ========================================================================== */
/* ==========================================================================
   13. FAQ (white)
   ========================================================================== */
.hf-faq__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.hf-faq .hf-acc__title { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.4375rem); }
.hf-help { display: flex; gap: 16px; align-items: flex-start; margin-top: 8px; padding: 24px; border-radius: var(--hf-r-card); background: var(--hf-canvas); border: 1px solid var(--hf-line); }
.hf-help__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--hf-orange-3); color: var(--hf-ink); flex: none; }
.hf-help__icon svg { width: 24px; height: 24px; }
.hf-help__title { font-family: var(--hf-font-display); font-size: 1.1875rem; }
.hf-help__sub { font-size: var(--hf-fs-small); color: var(--hf-muted); margin-bottom: 4px; }

/* ==========================================================================
   14. Contact section / form (white)
   ========================================================================== */
.hf-contact__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(16px, 2vw, 24px); align-items: start; }
.hf-contact__info { position: sticky; top: 104px; display: grid; gap: 24px; align-content: start; padding: clamp(28px, 3.4vw, 48px); border-radius: var(--hf-r-panel); background: var(--hf-ink); color: #fff; }
.hf-contact__badge { justify-self: start; background: rgba(255, 255, 255, 0.12); color: #fff; }
.hf-contact__company { font-size: var(--hf-fs-h3); line-height: 1.4; }
.hf-checklist { display: grid; gap: 12px; }
.hf-checklist li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; font-size: var(--hf-fs-small); line-height: 1.7; color: rgba(255, 255, 255, 0.9); }
.hf-checklist svg { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--hf-orange-3); color: var(--hf-ink); margin-top: 2px; }
.hf-contact__list { display: grid; gap: 0; margin: 8px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--hf-line-on-dark); }
.hf-contact__item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--hf-line-on-dark); }
.hf-contact__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: var(--hf-orange-3); }
.hf-contact__icon svg { width: 20px; height: 20px; }
.hf-contact__item .hf-contact__label { font-size: var(--hf-fs-xs); font-weight: 700; color: var(--hf-on-dark-muted); }
.hf-contact__item .hf-contact__value { margin: 2px 0 0; font-size: var(--hf-fs-small); line-height: 1.7; color: #fff; }
#contact-section a { transition: color var(--hf-dur) var(--hf-ease); }
#contact-section a:hover,
#contact-section a:focus-visible { color: var(--hf-orange); }
#contact-section .hf-contact__info a { color: #fff; transition: color var(--hf-dur) var(--hf-ease); }
#contact-section .hf-contact__info a:hover,
#contact-section .hf-contact__info a:focus-visible { color: var(--hf-orange-3); }
.hf-contact__item .hf-contact__value a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: #fff; background: linear-gradient(var(--hf-orange-3), var(--hf-orange-3)) 0 calc(50% + 0.75em) / 0 1.5px no-repeat; transition: color var(--hf-dur) var(--hf-ease), background-size var(--hf-dur) var(--hf-ease); }
.hf-contact__item .hf-contact__value a:hover,
.hf-contact__item .hf-contact__value a:focus-visible { color: var(--hf-orange-3); background-size: 100% 1.5px; }

.hf-contact__form { padding: clamp(24px, 3.4vw, 48px); border-radius: var(--hf-r-panel); background: var(--hf-canvas); border: 1px solid var(--hf-line); }
.hf-contact__form-head { display: grid; gap: 6px; margin-bottom: 28px; }
.hf-contact__form-head p { color: var(--hf-muted); font-size: var(--hf-fs-small); }
.hf-form { display: grid; gap: 28px; }
.hf-form__group { display: grid; gap: 18px; margin: 0; padding: 0 0 28px; border: 0; border-bottom: 1px solid var(--hf-line-strong); min-width: 0; }
.hf-form__group legend { display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 18px; float: left; width: 100%; font-family: var(--hf-font-display); font-size: 1.1875rem; line-height: 1.4; }
.hf-form__group legend + * { clear: both; }
.hf-form__step { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--hf-ink); color: #fff; font-family: var(--hf-font); font-size: var(--hf-fs-xs); font-weight: 800; flex: none; }
.hf-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hf-form__submit { justify-self: start; }
/* Result notice: green = sent, red = failed. A 4px state rail on the leading edge + a
   solid round badge carry the state for colour-blind users alongside the icon shape. */
.hf-form__status { --st: var(--hf-success); --st-ink: var(--hf-success-ink); position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px 18px 22px; overflow: hidden; border-radius: 18px; background: var(--hf-success-wash); border: 1px solid var(--hf-success-line); color: var(--hf-ink); font-size: var(--hf-fs-small); line-height: 1.65; animation: hf-status-in 0.5s var(--hf-ease) both; }
.hf-form__status::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--st); }
.hf-form__status[hidden] { display: none; }
.hf-form__status svg { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--st); color: #fff; stroke-width: 2.5; flex: none; }
.hf-form__status p { margin: 2px 0 0; }
.hf-form__status strong { display: block; margin-bottom: 2px; color: var(--st-ink); font-weight: 800; }
.hf-form__status--error { --st: var(--hf-danger); --st-ink: var(--hf-danger-ink); background: var(--hf-danger-wash); border-color: var(--hf-danger-line); }
.hf-form__status--error p { color: var(--hf-danger-ink); font-weight: 600; }
@keyframes hf-status-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .hf-form__status { animation: none; } }
@media (max-width: 960px) { .hf-contact__grid { grid-template-columns: 1fr; } .hf-contact__info { position: static; } }
@media (max-width: 600px) {
  .hf-form__row { grid-template-columns: 1fr; }
  .hf-form__submit { width: 100%; justify-self: stretch; }
}


/* ==========================================================================
   Responsive consolidation (must stay LAST so per-section desktop column rules
   defined above can never override the stacked layouts)
   ========================================================================== */
@media (max-width: 960px) {
  .hf-why__grid, .hf-faq__grid, .hf-process__grid, .hf-sec__grid, .hf-wf__grid,
  .hf-contact__grid, .hf-tour__pane { grid-template-columns: minmax(0, 1fr); }
  .hf-why__sticky, .hf-faq__sticky, .hf-process__sticky, .hf-sec__sticky, .hf-split__sticky, .hf-art-body__sticky { position: static; }
}
@media (max-width: 560px) {
  .hf-spec__row { grid-template-columns: 1fr; gap: 6px; }
  .hf-timeline__rail { left: 23px; }
  .hf-timeline__step { grid-template-columns: 48px minmax(0, 1fr); gap: 16px; }
  .hf-timeline__node { width: 48px; height: 48px; }
  .hf-help { flex-direction: column; }
}
@media (max-width: 560px) {
  .hf-frame__url { display: none; }
  .hf-frame__bar { justify-content: space-between; }
}

.hf-ind--svc .hf-ind__photo { display: none; }
.hf-ind--svc .hf-ind__head { grid-template-columns: minmax(0, 1fr); }

/* ==========================================================================
   Client flow: an editorial fan of real brands, progressively enhanced in motion.js.
   The complete grid remains readable without JavaScript or with reduced motion.
   ========================================================================== */
.hf-clients { --hf-client-width: clamp(224px, 20vw, 280px); --hf-client-height: 184px; --hf-client-gap: 64px; }
.hf-clients > .hf-panel__inner { padding-top: clamp(64px, 7vw, 104px); padding-bottom: 36px; }
.hf-clients .hf-section-head { max-width: 960px; margin-bottom: 0; gap: 22px; }
.hf-clients .hf-h2 { font-size: clamp(2rem, 1.1rem + 3.1vw, 4rem); line-height: 1.3; text-wrap: balance; }
.hf-clients__lead { max-width: 640px; font-size: clamp(1rem, .9rem + .35vw, 1.1875rem); }
.hf-clients__stage { position: relative; isolation: isolate; }
.hf-clients__orbit { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; fill: none; stroke: var(--hf-orange-3); stroke-width: 1; opacity: .3; }
.hf-clients__orbit path + path { opacity: .35; }
.hf-clients__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 224px), 1fr)); gap: 32px 48px; margin-inline: auto; max-width: 1376px; padding: 32px var(--hf-pad-x); }
.hf-client-item { min-width: 0; width: var(--hf-client-width); max-width: 100%; justify-self: center; }
/* Match the Process phase fins; the outer li owns the independent curved motion. */
.hf-client { position: relative; display: grid; place-items: center; min-height: var(--hf-client-height); height: 100%; padding: 28px 32px; border-radius: 12px 4px 12px 4px; transform: skewX(-10deg); background: #fff; color: var(--hf-ink); border: 1px solid rgba(38,38,38,.08); }
a.hf-client { transition: border-color .25s ease; }
a.hf-client:hover { border-color: var(--hf-orange-3); }
.hf-clients a.hf-client:focus-visible { outline: 3px solid var(--hf-orange-3); outline-offset: 5px; }
.hf-client__logo { display: flex; align-items: center; justify-content: center; min-width: 0; width: 100%; transform: skewX(10deg); }
.hf-client__logo img { width: auto; height: auto; max-width: 100%; max-height: 112px; object-fit: contain; }
.hf-client__mark { display: block; max-width: 100%; overflow-wrap: anywhere; color: var(--hf-ink); line-height: 1.2; text-align: center; }
.hf-client__mark.is-latin { font-weight: 800; letter-spacing: .06em; font-size: clamp(1.125rem, 1.6vw, 1.5rem); }
.hf-client__mark.is-thai { font-family: var(--hf-font-display); font-size: clamp(1.5rem, 3vw, 2.25rem); }
.hf-clients__controls { display: flex; justify-content: center; padding: 12px 24px 44px; }
.hf-clients__toggle [hidden], .hf-clients__toggle[hidden], .hf-clients__play-icon { display: none; }
.hf-clients__toggle[aria-pressed="true"] .hf-clients__pause-icon { display: none; }
.hf-clients__toggle[aria-pressed="true"] .hf-clients__play-icon { display: initial; }
.hf-clients.is-flowing .hf-clients__stage { height: calc(var(--hf-client-height) + 132px); overflow: clip; }
.hf-clients.is-flowing .hf-clients__grid { display: block; position: relative; max-width: none; height: 100%; margin: 0; padding: 0; }
.hf-clients.is-flowing .hf-client-item { position: absolute; left: 50%; top: 24px; width: var(--hf-client-width); height: var(--hf-client-height); will-change: transform; }
@media (max-width: 767px) {
  /* Phones: compact fins (~150×97 at 375px) so 2–3 brands share the stage instead of
     one oversized card; logos are capped by height so wide and square marks balance. */
  .hf-clients { --hf-client-width: clamp(132px, 40vw, 184px); --hf-client-height: clamp(88px, 26vw, 120px); --hf-client-gap: 20px; /* plain px: motion.js parseFloat()s it */ }
  .hf-clients .hf-section-head { gap: 18px; }
  .hf-clients > .hf-panel__inner { padding-bottom: 12px; }
  .hf-clients .hf-h2 { font-size: clamp(1.875rem, 7.8vw, 2.75rem); }
  .hf-clients__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-block: 24px; }
  .hf-client-item { width: 100%; }
  .hf-clients.is-flowing .hf-clients__stage { height: calc(var(--hf-client-height) + 68px); }
  .hf-clients.is-flowing .hf-client-item { top: 16px; }
  .hf-client { padding: 12px 18px; border-radius: 10px 3px 10px 3px; }
  .hf-client__logo img { max-height: clamp(42px, 14vw, 64px); }
  .hf-client__mark.is-latin { font-size: 0.9375rem; letter-spacing: 0.04em; }
  .hf-client__mark.is-thai { font-size: 1.1875rem; }
  .hf-clients__controls { padding-top: 4px; padding-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .hf-clients__toggle, a.hf-client { transition: none; }
}

/* ==========================================================================
   Iteration 004: Home middle sections re-laid out (same copy)
   ========================================================================== */
/* Why H On: editorial image and lead benefit, followed by a simple grid. */
.hf-mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.hf-mosaic__card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
  gap: 11px;
  padding: clamp(18px, 2.5vw, 34px);
  border: 1px solid var(--hf-line);
  border-radius: var(--hf-r-card);
  background: var(--hf-white);
  overflow-wrap: anywhere;
}
.hf-mosaic__card--featured { align-content: center; grid-template-rows: auto; background: var(--hf-ink); color: var(--hf-white); border-color: var(--hf-ink); }
.hf-mosaic__card--featured .hf-mosaic__desc { color: var(--hf-on-dark-muted); }
.hf-mosaic__card--featured .hf-tag { background: rgba(255, 255, 255, 0.12); color: var(--hf-white); }
.hf-mosaic__num { width: fit-content; padding-bottom: 4px; border-bottom: 2px solid var(--hf-orange); font-size: 0.875rem; }
.hf-mosaic__title { font-size: clamp(1.2rem, 1rem + 0.65vw, 1.65rem); line-height: 1.35; }
.hf-mosaic__card--featured .hf-mosaic__title { font-size: clamp(1.4rem, 1rem + 1.15vw, 2rem); }
.hf-mosaic__desc { color: var(--hf-muted); font-size: var(--hf-fs-small); line-height: 1.65; }
.hf-mosaic__figure { position: relative; margin: 0; min-height: clamp(215px, 25vw, 350px); overflow: hidden; border-radius: var(--hf-r-card); background: var(--hf-canvas); }
.hf-mosaic__figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 44%; }
.hf-mosaic .hf-tag { max-width: 100%; white-space: normal; }
@media (max-width: 640px) {
  .hf-mosaic { grid-template-columns: minmax(0, 1fr); }
  .hf-mosaic__figure { min-height: 0; aspect-ratio: 16 / 10; }
}

/* Security: dark compliance badge grid */
.hf-sec__seal-lg { justify-self: end; align-self: center; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: #fff; }
.hf-sec__seal-lg img { width: 48px; height: auto; }
.hf-sec--badges .hf-section-head--split { align-items: center; grid-template-columns: minmax(0, 1fr) auto; }
.hf-sec--badges .hf-section-head--split .hf-eyebrow { grid-column: 1 / -1; }
.hf-badges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--hf-line-on-dark); }
.hf-badge { display: grid; gap: 14px; align-content: start; padding: clamp(24px, 2.6vw, 36px) clamp(16px, 2vw, 28px) 8px 0; margin-right: clamp(16px, 2vw, 28px); border-right: 1px solid var(--hf-line-on-dark); }
.hf-badge:last-child { border-right: 0; margin-right: 0; }
.hf-badge__num { font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); line-height: 1; color: var(--hf-orange-3); }
.hf-badge__title { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.4; }
.hf-badge__tag { display: inline-block; width: fit-content; padding: 4px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.1); font-size: var(--hf-fs-xs); font-weight: 700; line-height: 1.5; }
.hf-badge__desc { color: var(--hf-on-dark-muted); font-size: var(--hf-fs-small); line-height: 1.75; }
@media (max-width: 1100px) {
  .hf-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hf-badge { margin-right: 0; padding-right: 0; border-right: 0; padding-bottom: 28px; border-bottom: 1px solid var(--hf-line-on-dark); }
  .hf-badge:nth-child(odd) { padding-right: 24px; }
}
@media (max-width: 640px) { .hf-badges { grid-template-columns: minmax(0, 1fr); } .hf-badge:nth-child(odd) { padding-right: 0; } .hf-sec--badges .hf-section-head--split { grid-template-columns: 1fr; } .hf-sec__seal-lg { display: none; } }

/* Process: the reading direction and scroll direction share one vertical spine. */
.hf-process--h .hf-process__layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(48px, 7vw, 112px); align-items: start; }
.hf-process__intro { display: grid; gap: clamp(28px, 3vw, 40px); }
.hf-process__heading { display: grid; gap: 24px; }
.hf-process__heading .hf-h2 { max-width: 12em; }
.hf-process__heading .hf-lead { max-width: 34em; }
.hf-process__note { display: flex; gap: 16px; padding: 24px; border-radius: 20px; background: var(--hf-ink); color: var(--hf-white); }
.hf-process__note-icon { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: var(--hf-orange-3); color: var(--hf-ink); }
.hf-process__note-icon svg { width: 22px; height: 22px; }
.hf-process__note-title { font-family: var(--hf-font-display); font-size: 1rem; margin-bottom: 8px; }
.hf-process__note-copy { font-size: var(--hf-fs-small); line-height: 1.75; color: var(--hf-on-dark-muted); max-width: 32em; }
.hf-process__journey { position: relative; --hf-process-node: 64px; }
.hf-process__steps { list-style: none; margin: 0; padding: 0; }
.hf-process__step { position: relative; display: grid; grid-template-columns: var(--hf-process-node) minmax(0, 1fr); column-gap: clamp(20px, 2.8vw, 40px); padding-bottom: 48px; scroll-margin-top: calc(62vh - var(--hf-process-node) / 2 - var(--hf-process-scroll-padding, 96px) - 2px); }
.hf-process__step:last-child { padding-bottom: 0; }
.hf-process__step:not(:last-child)::before { content: ''; position: absolute; left: calc(var(--hf-process-node) / 2 - 1px); top: calc(var(--hf-process-node) / 2); width: 2px; height: 100%; background: var(--hf-line-strong); }
.hf-process__node { position: relative; z-index: 1; display: grid; place-items: center; width: var(--hf-process-node); height: var(--hf-process-node); border: 1px solid var(--hf-ink); border-radius: 18px 4px 18px 4px; background: var(--hf-ink); color: #fff; font-size: 1.125rem; transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease; }
.hf-process__step.is-pending .hf-process__node { background: var(--hf-white); color: var(--hf-muted); border-color: var(--hf-line-strong); }
.hf-process__step.is-current .hf-process__node { background: var(--hf-orange-3); border-color: var(--hf-orange-3); color: var(--hf-ink); }
.hf-process__body { padding-top: 2px; padding-bottom: 36px; overflow-wrap: anywhere; }
.hf-process__step:last-child .hf-process__body { padding-bottom: 0; }
.hf-process__kicker { font-size: var(--hf-fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hf-muted); margin-bottom: 12px; }
.hf-process__title { font-size: clamp(1.375rem, 1rem + 0.8vw, 1.75rem); line-height: 1.45; margin-bottom: 12px; }
.hf-process__desc { color: var(--hf-muted); font-size: 1rem; line-height: 1.8; max-width: 38em; }
.hf-process__rail { position: absolute; left: calc(var(--hf-process-node) / 2 - 1px); top: calc(var(--hf-process-node) / 2); height: 0; width: 2px; }
.hf-process__progress { display: block; width: 100%; height: 100%; background: var(--hf-orange-3); transform-origin: 50% 0; }
/* Slanted flow fins echo the H On mark and mirror each journey’s reading position. */
.hf-process__map { display: grid; grid-template-columns: repeat(var(--hf-process-count, 4), minmax(0, 1fr)); gap: 8px; padding: 0 6px; max-width: 360px; }
.hf-process__phase { display: grid; align-content: space-between; justify-content: space-between; grid-template-columns: 1fr auto; min-height: 88px; text-decoration: none; padding: 14px; border-radius: 12px 4px 12px 4px; transform: skewX(-10deg); background: var(--hf-wash); color: var(--hf-muted); border-top: 3px solid var(--hf-line-strong); transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease; }
.hf-process__phase > span { transform: skewX(10deg); font-size: 1rem; }
.hf-process__phase .hf-num { grid-column: 1; grid-row: 2; }
.hf-process__phase-arrow { grid-column: 2; grid-row: 1; line-height: 1; }
.hf-process__phase:hover { border-top-color: var(--hf-orange-3); }
.hf-process__phase:focus-visible { outline: 3px solid var(--hf-ink); outline-offset: 4px; }
.hf-process__step:focus-visible { outline: 2px solid var(--hf-orange-3); outline-offset: 8px; border-radius: 4px; }
.hf-process__phase.is-reached { background: var(--hf-ink); color: #fff; border-top-color: var(--hf-ink); }
.hf-process__phase.is-current { background: var(--hf-orange-3); color: var(--hf-ink); border-top-color: var(--hf-orange-3); }
/* Sticky only when the entire introduction fits; no ancestor transform on this panel. */
@media (min-width: 1100px) and (min-height: 800px) { .hf-process__intro[data-process-sticky] { position: sticky; top: 120px; } }
@media (max-width: 960px) {
  .hf-process--h .hf-process__layout { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hf-process__intro { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 24px 32px; align-items: end; }
  .hf-hsteps .hf-process__intro { grid-template-columns: minmax(0, 1fr); }
  .hf-process__map { grid-column: 1; grid-row: 2; width: 100%; }
  .hf-process__intro .hf-process__note { grid-column: 2; grid-row: 1 / 3; }
  .hf-process__journey { --hf-process-node: 56px; }
}
@media (max-width: 600px) {
  .hf-process__intro { grid-template-columns: minmax(0, 1fr); }
  .hf-process__intro .hf-process__note { grid-column: auto; grid-row: auto; padding: 20px; }
  .hf-process__phase { min-height: 62px; padding: 10px; }
  .hf-process__heading { gap: 20px; }
  .hf-process__journey { --hf-process-node: 44px; }
  .hf-process__step { column-gap: 20px; padding-bottom: 32px; }
  .hf-process__body { padding-bottom: 28px; }
  .hf-process__node { font-size: 0.9375rem; }
  .hf-process__title { font-size: 1.25rem; }
  .hf-process__desc { font-size: 0.9375rem; }
}
@media (prefers-reduced-motion: reduce) { .hf-process__progress { transform: none !important; } .hf-process__node, .hf-process__phase { transition: none; } }
.hf-ledger__num--range { white-space: nowrap; font-size: clamp(3rem, 1.4rem + 4.4vw, 6rem); flex-wrap: nowrap; }

/* Iteration 004: chip visibility */
@media (max-width: 1023px) { .hf-float--wf { display: none; } }

/* ==========================================================================
   Hero stage: rotating outsourced-staff cut-outs (GSAP, hero.js)
   ========================================================================== */
.hf-stage { position: relative; isolation: isolate; overflow: hidden; width: 100%; margin-inline: auto; aspect-ratio: 1 / 0.92; border-radius: clamp(20px, 2.4vw, 32px); background: var(--hf-wash); border: 1px solid var(--hf-line); }
.hf-stage__disc { position: absolute; z-index: -1; left: 50%; bottom: -34%; width: min(62%, 72vh); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: var(--hf-gradient); }
.hf-stage__floor { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 14%; background: rgba(38, 38, 38, 0.05); }
.hf-stage__slides { position: absolute; inset: 0; }
.hf-hero-slide { position: absolute; inset: 0; margin: 0; display: flex; align-items: flex-end; justify-content: center; will-change: transform, opacity; }
/* inactive slides are non-current carousel panels (display:none keeps their lazy images unfetched until preloaded); slide 1 is server-rendered active */
.hf-hero-slide:not(.is-active) { display: none; }
.hf-hero-slide img { width: auto; max-width: 94%; height: 86%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 18px 24px rgba(38, 38, 38, 0.18)); }
@media (max-width: 860px) {
  .hf-hero-slide img { height: 76%; }
  .hf-stage__disc { width: 88%; bottom: -26%; }
}

/* Empty or loading slide media uses an open, frameless canvas. */
.hf-hero--slides:not(.has-image-frame),
.hf-hero--slides:not(.has-image-frame) :is(.hf-stage, .hf-chip-live, .hf-btn, .hf-btn__icon) {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.hf-hero--slides:not(.has-image-frame) .hf-btn--primary { color: var(--hf-ink); }
.hf-hero--slides:not(.has-image-frame) .hf-hero__stat { border-color: transparent; }
.hf-hero--slides:not(.has-image-frame) :is(.hf-hero__wash, .hf-stage__disc, .hf-stage__floor) { visibility: hidden; }

/* Desktop: stage fills the right column at viewport height */
@media (min-width: 1024px) {
  .hf-stage { aspect-ratio: auto; height: auto; min-height: 520px; flex: 1; }
  .hf-stage__disc { width: min(92%, 640px); bottom: -22%; }
  .hf-hero-slide img { height: 88%; max-width: 96%; }
}
[hidden] { display: none !important; }

/* Many slides (up to ~10): the indicator bar wraps instead of overflowing the stage */
@media (max-width: 860px) { .hf-stage--8 .hf-hero-slide img, .hf-stage--9 .hf-hero-slide img, .hf-stage--10 .hf-hero-slide img { height: 66%; } }

/* Iteration 006: mobile hero fold, wide groups scale to the stage width, stat width reserved */
.hf-hero__stat-num { min-width: calc(3ch + 0.6em); }
@media (max-width: 860px) {
  .hf-hero__inner { padding-top: 92px; padding-bottom: 20px; }
  .hf-hero__grid { gap: 16px; }
  .hf-hero__copy { gap: 12px; }
  .hf-hero__claim { gap: 14px; }
  .hf-hero__title { font-size: clamp(2rem, 1rem + 4.4vw, 3rem); }
  .hf-hero__claim .hf-lead { font-size: 1rem; line-height: 1.65; }
  .hf-hero__ctas { gap: 10px; }
  .hf-hero__ctas .hf-btn { min-height: 52px; }
  .hf-stage { aspect-ratio: 1 / 0.8; }
  .hf-hero-slide img { height: 82%; }
  .hf-hero-slide.is-wide img { width: 100%; max-width: 100%; height: auto; max-height: 88%; object-fit: contain; }
  .hf-stage__disc { width: 84%; bottom: -24%; }
}
/* Video hero: a single documentary frame with a protected reading area. */
.hf-panel.hf-hero--video {
  padding-block-start: calc(var(--hf-header-top) + var(--hf-header-height) + clamp(12px, 1.4vw, 20px) - var(--hf-gutter) - var(--hf-header-page-offset, 0px));
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.hf-hero--video .hf-hero__vlayout {
  --reel-pad: max(clamp(26px, 5vw, 84px), calc((100% - 1240px) / 2));
  max-width: none;
  padding: 0;
  overflow: hidden;
  border-radius: var(--hf-r-panel);
  background: var(--hf-ink);
  color: var(--hf-white);
}

.hf-hero__vmid {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: clamp(500px, calc(100svh - var(--hf-header-height) - 165px), 820px);
  padding: clamp(40px, 5vw, 76px) var(--reel-pad) clamp(44px, 6vw, 88px);
  overflow: hidden;
  background: var(--hf-ink);
  color: var(--hf-white);
}

.hf-reel__screen.hf-stage {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: var(--hf-ink);
  pointer-events: none;
}

.hf-hero__video-canvas,
.hf-candid-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hf-candid-video {
  display: block;
  object-fit: cover;
  object-position: center 54%;
  opacity: 0;
}

.hf-reel__screen.has-video-frame .hf-candid-video {
  opacity: 1;
}

.hf-hero__vmid::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0;
  background:
    linear-gradient(0deg, var(--hf-ink), transparent 30%),
    linear-gradient(90deg, rgba(24, 24, 24, 0.98), rgba(24, 24, 24, 0.91) 26%, rgba(24, 24, 24, 0.83) 46%, rgba(24, 24, 24, 0.12) 73%);
  pointer-events: none;
}

.hf-hero__vmid:has(.has-video-frame)::before { opacity: 1; }

.hf-hero__vright {
  display: grid;
  justify-items: start;
  align-content: center;
  gap: clamp(12px, 1.35vw, 20px);
  max-width: min(100%, 42vw);
}

.hf-hero__vbadge {
  color: var(--hf-white);
  font-size: 0.875rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.hf-hero--video .hf-hero__vtitle {
  color: inherit;
  font-size: clamp(2rem, 1.15rem + 2.9vw, 4.125rem);
  line-height: 1.16;
  overflow-wrap: anywhere;
}

html[lang^="en"] .hf-hero--video .hf-hero__vtitle {
  max-width: 12em;
  line-height: 1.05;
  letter-spacing: -0.038em;
}

.hf-hero--video .hf-hero__vtitle .hf-accent {
  color: var(--hf-orange-3);
}

.hf-hero__vright .hf-lead {
  max-width: 50ch;
  color: rgba(255, 255, 255, 0.91);
  font-size: clamp(0.9375rem, 0.88rem + 0.18vw, 1.0625rem);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.hf-hero--video .hf-hero__ctas {
  max-width: 100%;
  align-items: center;
  gap: 4px clamp(14px, 2vw, 26px);
}

.hf-hero--video .hf-btn--primary {
  --btn-bg: var(--hf-white);
  --btn-bd: var(--hf-white);
  --btn-fg: var(--hf-ink);
  --btn-fs: 0.9375rem;
  width: auto;
  min-height: 48px;
  max-width: 100%;
  padding: 8px 18px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.hf-hero--video .hf-btn--primary:hover {
  --btn-bg: var(--hf-orange-3);
  --btn-bd: var(--hf-orange-3);
}

.hf-hero--video .hf-btn--primary > .hf-icon {
  width: 17px;
  height: 17px;
  flex: none;
}

.hf-hero__vservices {
  max-width: 100%;
  background: none;
  color: var(--hf-white);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.hf-hero__vservices[href="#our-services"]:hover .hf-icon {
  transform: translateY(3px);
}

.hf-hero--video .hf-hero__vlayout :focus-visible {
  outline: 2px solid var(--hf-orange-3);
  outline-offset: 3px;
}

.hf-hero__vfooter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  align-items: start;
  gap: clamp(24px, 4vw, 56px);
  margin-inline: var(--reel-pad);
  padding: clamp(18px, 2vw, 28px) 0 clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--hf-line-on-dark);
}

.hf-hero__vleft {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
}

.hf-hero__vleft .hf-hero__stat-num {
  min-width: 0;
  font-size: clamp(1.875rem, 1.25rem + 1.55vw, 2.75rem);
}

.hf-hero__vleft .hf-hero__stat-unit {
  color: inherit;
  font-size: 0.72em;
}

.hf-hero__vleft .hf-hero__stat-label {
  font-family: var(--hf-font);
  font-size: 0.875rem;
  font-weight: 700;
}

.hf-hero__vleft .hf-hero__stat-sub,
.hf-hero__vpartners-label,
.hf-hero__vpartners-meta {
  color: var(--hf-on-dark-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.hf-hero__vpartners-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hf-hero__video-toggle,
.hf-clients__toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  padding: 0;
  border: 1px solid var(--hf-line-on-dark);
  border-radius: 50%;
  background: transparent;
  color: var(--hf-white);
  cursor: pointer;
}

.hf-hero__video-toggle { visibility: hidden; }
.hf-hero__video-toggle:hover,
.hf-clients__toggle:hover { border-color: var(--hf-on-dark-muted); }
.hf-hero__play-icon,
.hf-hero__video-toggle.is-paused .hf-hero__pause-icon { display: none; }
.hf-hero__video-toggle.is-paused .hf-hero__play-icon { display: initial; }

.hf-hero__video-toggle.is-available {
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .hf-hero__video-toggle.is-available {
    visibility: hidden;
  }
}

.hf-hero__vpartners-label {
  font-weight: 700;
}

.hf-hero__vpartners-list,
.hf-hero__vpartners-meta {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hf-hero__vpartners-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px clamp(12px, 2vw, 22px);
  font-size: 0.875rem;
}

.hf-hero__vpartners-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  color: var(--hf-white);
  overflow-wrap: anywhere;
}

.hf-hero__vpartners-list a .hf-icon {
  width: 13px;
  height: 13px;
  flex: none;
  color: var(--hf-on-dark-muted);
}

.hf-hero__vpartners-list a:hover,
.hf-hero__vpartners-list a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.hf-hero__vpartners-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 8px;
}

@media (min-width: 851px) and (max-height: 710px) {
  .hf-hero__vmid {
    min-height: 0;
    padding-block: 36px 48px;
  }

  .hf-hero__vright {
    gap: 10px;
    max-width: 46vw;
  }

  .hf-hero--video .hf-hero__vtitle,
  html[lang^="en"] .hf-hero--video .hf-hero__vtitle {
    max-width: none;
    font-size: clamp(1.875rem, 3.7vw, 2.75rem);
  }

  .hf-hero__vright .hf-lead {
    max-width: 55ch;
    font-size: 0.875rem;
  }
}

@media (max-width: 850px) {
  .hf-hero--video .hf-hero__vlayout {
    --reel-pad: clamp(16px, 4vw, 34px);
  }

  .hf-hero__vmid {
    --reel-opening: clamp(154px, 43vw, 310px);
    min-height: 0;
    padding: var(--reel-opening) var(--reel-pad) 30px;
  }

  .hf-reel__screen.hf-stage {
    height: clamp(300px, 64vw, 520px);
  }

  .hf-candid-video {
    object-position: 65% 51%;
  }

  .hf-hero__vmid::before {
    height: clamp(301px, 64vw + 1px, 521px);
    background: linear-gradient(180deg, rgba(38, 38, 38, 0.25), transparent 64px, rgba(38, 38, 38, 0.86) var(--reel-opening), var(--hf-ink) calc(var(--reel-opening) + 112px));
  }

  .hf-hero__vright {
    max-width: none;
    gap: 10px;
  }

  .hf-hero--video .hf-hero__vtitle {
    max-width: 18em;
  }

  .hf-hero__vright .hf-lead {
    order: 1;
  }
}

/* The label is ONE flex item: bare text + .hf-nb spans used to become separate
   items and wrap word-by-word ("PEO — บริหาร HR" | "ครบวงจร"). */
.hf-hero__vpartners-text { min-width: 0; }

@media (max-width: 600px) {
  .hf-hero__vfooter {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  /* Phones: the four services become a 2×2 set of skewed-corner "fin" tiles (same
     12/4 corner rhythm as the client and process fins), arrow pinned top-right. */
  .hf-hero__vpartners-head { margin-bottom: 10px; }
  .hf-hero__vpartners-list { gap: 8px; }
  .hf-hero__vpartners-list li { display: flex; min-width: 0; }
  .hf-hero__vpartners-list a {
    position: relative;
    flex: 1;
    align-items: flex-start;
    min-height: 58px;
    padding: 10px 30px 10px 12px;
    border: 1px solid var(--hf-line-on-dark);
    border-radius: 12px 4px 12px 4px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.45;
    transition: border-color var(--hf-dur) var(--hf-ease), background-color var(--hf-dur) var(--hf-ease);
  }
  .hf-hero__vpartners-list a .hf-icon { position: absolute; top: 11px; right: 10px; color: var(--hf-orange-3); }
  .hf-hero__vpartners-list a:hover,
  .hf-hero__vpartners-list a:focus-visible { border-color: var(--hf-orange-3); background: rgba(255, 120, 0, 0.08); text-decoration: none; }
  .hf-hero__vpartners-meta { gap: 4px 14px; margin-top: 12px; }
  .hf-hero__vpartners-meta li::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 7px; border-radius: 50%; background: var(--hf-orange-3); vertical-align: 0.15em; }

  .hf-hero--video .hf-hero__vtitle {
    font-size: clamp(1.75rem, 1.2rem + 2.5vw, 2.25rem);
  }
}

@media (max-width: 360px) {
  .hf-hero__vmid {
    --reel-opening: 145px;
  }
}

@media (max-width: 380px) {
  .hf-hero--video .hf-btn--primary {
    padding-inline: 12px;
  }

  .hf-hero--video .hf-btn--primary > .hf-icon {
    display: none;
  }
}

/* ==========================================================================
   Custom Sections Engine — 5 Pre-Engineered Responsive Templates
   ========================================================================== */
.hf-custom-section { position: relative; }
.hf-cs-title { margin: 0; }
.hf-cs-lead { margin: 0; color: var(--hf-muted); line-height: 1.7; }

/* 1. text_banner */
.hf-cs-banner-box {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: clamp(16px, 2vw, 24px);
  padding: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 56px);
  background: var(--hf-wash);
  border: 1px solid var(--hf-line);
  border-radius: var(--hf-r-panel);
  box-shadow: var(--hf-shadow-float);
}
.hf-cs-banner-box .hf-cs-title { max-width: 22em; }
.hf-cs-banner-box .hf-cs-lead { max-width: 40em; }
.hf-cs-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* 2. two_column */
.hf-cs-split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 64px); align-items: start;
}
.hf-cs-split__left { display: grid; gap: clamp(16px, 2vw, 24px); align-content: start; }
.hf-cs-split__right { display: grid; gap: 16px; }
.hf-cs-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.hf-cs-check-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: clamp(16px, 2vw, 22px);
  border-radius: var(--hf-r-card);
  background: var(--hf-canvas);
  border: 1px solid var(--hf-line);
}
.hf-cs-check-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--hf-orange); color: #fff;
  display: grid; place-items: center; flex: none; margin-top: 2px;
}
.hf-cs-check-icon svg { width: 14px; height: 14px; stroke-width: 2.5; }
.hf-cs-check-body { display: grid; gap: 4px; }
.hf-cs-item-title { font-size: 1.1rem; font-weight: 700; margin: 0; color: var(--hf-ink); }
.hf-cs-item-desc { font-size: var(--hf-fs-small); color: var(--hf-muted); margin: 0; line-height: 1.6; }
@media (max-width: 860px) {
  .hf-cs-split { grid-template-columns: minmax(0, 1fr); }
}

/* 3. cards_grid */
.hf-cs-grid {
  display: grid; gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(32px, 4vw, 48px);
}
.hf-cs-grid--3col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hf-cs-grid--4col { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hf-cs-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(24px, 2.5vw, 32px);
  border-radius: var(--hf-r-card);
  background: #fff;
  border: 1px solid var(--hf-line);
  box-shadow: 0 1px 3px rgba(38, 38, 38, 0.04);
  transition: transform 0.25s var(--hf-ease), box-shadow 0.25s var(--hf-ease);
}
.hf-cs-card:hover { transform: translateY(-3px); box-shadow: var(--hf-shadow-lift); }
.hf-cs-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.hf-cs-card__num { font-size: clamp(1.8rem, 1.4rem + 1vw, 2.4rem); color: var(--hf-orange); font-weight: 800; line-height: 1; }
.hf-cs-card__title { font-size: clamp(1.15rem, 1rem + 0.3vw, 1.3rem); font-weight: 700; margin: 0; color: var(--hf-ink); }
.hf-cs-card__desc { font-size: var(--hf-fs-small); color: var(--hf-muted); margin: 0; line-height: 1.65; }
@media (max-width: 1024px) {
  .hf-cs-grid--4col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hf-cs-grid--3col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .hf-cs-grid--3col, .hf-cs-grid--4col { grid-template-columns: minmax(0, 1fr); }
}

/* 4. faq_list */
.hf-cs-accordion {
  display: grid; gap: 12px; max-width: 840px;
  margin: clamp(32px, 4vw, 48px) auto 0;
}
.hf-cs-faq-item {
  border: 1px solid var(--hf-line);
  border-radius: var(--hf-r-card);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hf-cs-faq-item[open] { border-color: var(--hf-orange); box-shadow: var(--hf-shadow-float); }
.hf-cs-faq-head {
  display: flex; align-items: center; gap: 16px;
  padding: clamp(18px, 2vw, 24px) clamp(20px, 2.5vw, 28px);
  cursor: pointer; list-style: none; font-weight: 700;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
}
.hf-cs-faq-head::-webkit-details-marker { display: none; }
.hf-cs-faq-num { font-size: 1.1rem; color: var(--hf-orange); font-weight: 800; flex: none; }
.hf-cs-faq-q { flex: 1; color: var(--hf-ink); }
.hf-cs-faq-toggle { width: 20px; height: 20px; display: grid; place-items: center; transition: transform 0.25s ease; flex: none; }
.hf-cs-faq-item[open] .hf-cs-faq-toggle { transform: rotate(180deg); }
.hf-cs-faq-body {
  padding: 0 clamp(20px, 2.5vw, 28px) clamp(18px, 2vw, 24px);
  color: var(--hf-muted); font-size: var(--hf-fs-small); line-height: 1.7;
}

/* 5. callout_cta */
.hf-cs-callout-card {
  display: flex; justify-content: space-between; align-items: center;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(32px, 4vw, 56px);
  border-radius: var(--hf-r-panel);
  background: var(--hf-wash);
  border: 1px solid var(--hf-line-strong);
  box-shadow: var(--hf-shadow-float);
}
.hf-cs-callout-copy { display: grid; gap: 12px; max-width: 680px; }
.hf-cs-callout-action { flex: none; }
@media (max-width: 860px) {
  .hf-cs-callout-card { flex-direction: column; align-items: flex-start; }
}

/* Services index: brand service tile leads each row; the index number becomes the badge
   prefix ("02  PROFESSIONAL EMPLOYER (PEO)"). The tile runs from the badge cap line to the
   title's first baseline. Measured (Mitr, TH = EN): cap-to-baseline = 24.25px + 1.0285 x the
   title size, so the tile follows the title's clamp(); x 1.05 = tile aspect (2000/1905). */
.hf-svc-row {
  --hf-svc-tile: calc((24.25px + 1.0285 * clamp(1.625rem, 1rem + 2vw, 2.75rem)) * 1.05);
  grid-template-columns: var(--hf-svc-tile) minmax(0, 1.35fr) minmax(0, 1fr);
}
.hf-svc-row__icon {
  display: block; width: var(--hf-svc-tile); margin-top: 6.5px;
  transition: transform 0.6s var(--hf-ease);
}
.hf-svc-row__idx { margin-right: 12px; color: var(--hf-orange-3); letter-spacing: 0.04em; transition: color 0.4s var(--hf-ease); }
.hf-svc-row:hover .hf-svc-row__icon, .hf-svc-row:focus-visible .hf-svc-row__icon { transform: translateY(-4px) rotate(-4deg); }
.hf-svc-row:hover .hf-si__alt, .hf-svc-row:focus-visible .hf-si__alt { opacity: 1; }
.hf-svc-row:hover .hf-svc-row__idx, .hf-svc-row:focus-visible .hf-svc-row__idx { color: var(--hf-ink); }
/* Keyboard ring in ink: orange-on-orange would vanish on the filled row */
.hf-svc-row:focus-visible { outline: 2px solid var(--hf-ink); outline-offset: -8px; }
@media (max-width: 960px) {
  .hf-svc-row { grid-template-columns: var(--hf-svc-tile) minmax(0, 1fr); }
}
/* Stacked rows: the tile leads the block above the badge */
@media (max-width: 560px) {
  .hf-svc-row { grid-template-columns: 1fr; }
  .hf-svc-row__icon { width: 56px; margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .hf-svc-row__icon { transition: none; transform: none !important; } }

/* Service hero chip: the service's own tile instead of the live dot */
.hf-chip-live--service { min-height: 46px; padding-left: 9px; gap: 12px; }
.hf-chip-live__icon { display: block; width: 34px; flex: none; }
