@font-face {
  font-family: 'DM Sans';
  src: url('./algofort-hero/dm-sans-lp-latin.woff2') format('woff2');
  font-weight: 300 800;
  font-display: block;
}

:root {
  --automation-section-gap: 120px;
  --automation-content-width: calc(min(100vw, 1360px) - 2 * clamp(20px, 4.5vw, 64px));
  --automation-section-font: 'DM Sans', Arial, sans-serif;
  --automation-section-title-size: clamp(32px, 4.6vw, 72px);
  --automation-section-title: 500 var(--automation-section-title-size)/1.04 var(--automation-section-font);
  --automation-section-title-color: #151616;
  --automation-section-label: 500 15px/1.2 var(--automation-section-font);
  --automation-section-copy: 400 16px/1.5 var(--automation-section-font);
  --automation-section-muted: #646464;
  --automation-section-accent: #f47a1f;
}

@media (max-width: 1024px) {
  :root { --automation-section-gap: 60px; }
}

@media (prefers-reduced-motion: no-preference) {
  :is([data-ai-intro], .ai-entered:not([data-ai-reveal="heading"])) {
    animation: ai-rise .76s cubic-bezier(.22, 1, .36, 1) var(--ai-entry-delay, 0ms) backwards;
  }
  [data-ai-intro="heading"] {
    animation-name: ai-heading-rise;
    animation-duration: .9s;
  }
  [data-ai-intro="header"] { --ai-entry-distance: -12px; }
  [data-ai-intro="heading"] { --ai-entry-delay: 65ms; }
  [data-ai-intro="description"] { --ai-entry-delay: 155ms; }
  [data-ai-intro="action"] { --ai-entry-delay: 225ms; }
  [data-ai-intro="portrait"] { --ai-entry-delay: 180ms; --ai-entry-distance: 24px; }
  [data-ai-intro="card"] { --ai-entry-delay: 280ms; --ai-entry-distance: 24px; }
  [data-ai-intro="detail"] { --ai-entry-delay: 350ms; }
  .automation-examples__heading > p { --ai-entry-delay: 90ms; }
  :is(.automation-examples__track > li:nth-child(even) > article, .trust-card:nth-child(even), .automation-faq__items > details:nth-child(even)) {
    --ai-entry-delay: 70ms;
  }
  :is([data-ai-intro], .ai-entered):focus-within { animation: none; }

  .ai-heading-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-inline: .02em .14em;
    margin-inline: -.02em -.14em;
  }
  .ai-heading-word > span { position: relative; }

  @keyframes ai-rise {
    from { opacity: 0; transform: translateY(var(--ai-entry-distance, 18px)); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes ai-heading-rise {
    from { opacity: 0; transform: translateY(20px); clip-path: inset(0 -8px 85%); }
    to { opacity: 1; transform: translateY(0); clip-path: inset(-8px); }
  }
}
