/* Heading typography. Font license: assets/fonts/vela-sans/OFL.txt. */
@font-face { font-family: Vela; src: url(assets/fonts/vela-sans/VelaSans-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: Vela; src: url(assets/fonts/vela-sans/VelaSans-Medium.ttf); font-weight: 500; font-display: swap; }

:root {
  --avis-edge: max(2.78vw, calc((100vw - 1360px)/2));
  --avis-title: clamp(36px, 3.62vw, 52px);
  --avis-line: 1.09615;
  --avis-rubric: 16px;
  --avis-gap: 37px;
  --section-entry: clamp(64px, 9.17vw, 132px);
  --avis-wide: 1256px;
  --avis-narrow: 670px;
  --avis-series-after: 61px;
  --avis-focus-after: 58px;
  --avis-left-after: 50px;
}

main :is(#design, #series, #automation, #benefits, #projects, #customer-reviews, #contact) h2 {
  font: 500 var(--avis-title)/var(--avis-line) Vela, Arial, sans-serif;
  letter-spacing: normal;
  margin: 0;
  text-wrap: balance;
}
main :is(#series, #benefits) h3 { font-family: Vela, Arial, sans-serif; font-weight: 500; letter-spacing: normal; }
main :is(#home, #design, #series, #benefits, #projects, #customer-reviews, #contact)
:is(.hero-kicker, .design-label, .series-label, .reliability-label, .projects-label, .reviews-kicker, .contact-label),
main #automation .automation-copy p {
  font: 400 var(--avis-rubric)/1.19 Vela, Arial, sans-serif;
  letter-spacing: normal;
  text-transform: none;
  margin: 0 0 var(--avis-gap);
}

#home { padding-inline: var(--avis-edge); padding-block: 48px clamp(144px, 22vh, 200px); }
#home .hero-copy { max-width: 666px; }
#home h1 { font: 500 clamp(42px, 4.31vw, 62px)/1.09677 Vela, Arial, sans-serif; letter-spacing: -1px; }
main #home .hero-kicker { margin-bottom: 18px; }
#home .hero-description { margin-top: 22px; }
#home .hero-actions { gap: 22px; margin-top: 28px; align-items: center; }
:is(#home, #series, #contact) .hero-cta {
  position: relative;
  overflow: hidden;
  width: 254px;
  min-height: 62px;
  padding: 0 12px;
  border: 0;
  border-radius: 15px;
  background: #fff;
  color: #000;
  font: 600 16px/1.55 Vela, Arial, sans-serif;
  text-align: center;
  transition: background-color .2s ease, color .2s ease;
}
:is(#home, #contact) .hero-cta:not(.hero-secondary)::after {
  content: "";
  width: 18px;
  height: 18px;
  margin-left: 20px;
  background: radial-gradient(circle, currentColor 0 3px, transparent 3.5px);
}
#home .hero-secondary {
  width: 346px;
  min-height: 61px;
  border: 1px solid #696969;
  background: transparent;
  color: white;
}
:is(#home, #series, #contact) .hero-cta:is(:hover, :focus-visible) { background-color: #e76f41; color: white; }
@media (prefers-reduced-motion: no-preference) {
  :is(#home, #series) .hero-secondary::before {
    content: "";
    pointer-events: none;
    position: absolute;
    inset: -100% auto -100% -40%;
    width: 18%;
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / 28%), transparent);
    animation: hero-button-glint 4s ease-in-out infinite;
  }
  @keyframes hero-button-glint {
    0%, 65% { transform: translateX(0) skewX(-40deg); }
    100% { transform: translateX(950%) skewX(-40deg); }
  }
}
@media (prefers-reduced-motion: reduce) {
  :is(#home, #series, #contact) .hero-cta { transition: none; }
}
@media (max-width: 1199px) {
  :is(#home, #contact) .hero-cta { width: 227px; min-height: 56px; font-size: 14px; }
  #home .hero-secondary { width: 308px; }
}
@media (max-width: 700px) {
  #home { padding-block: 24px 96px; }
  #home .hero-actions { flex-direction: column; align-items: start; gap: 10px; margin-top: 22px; }
  :is(#home, #contact) .hero-cta { width: min(100%, 380px); }
}

/* Section entry spacing belongs to the incoming section. */
#design, #series, #benefits.reliability, #projects.project-gallery, #customer-reviews,
#contact .contact-inner { padding-top: var(--section-entry); }
#design, #benefits.reliability, #projects.project-gallery { padding-bottom: 0; }
#series { padding-bottom: var(--section-entry); }
@media (min-width: 701px) {
  #series:has(+ #benefits) { padding-bottom: 0; }
}

#design .avis-design-header, #series .series-heading {
  max-width: var(--avis-wide);
  margin-inline: auto;
  text-align: center;
}
main :is(#design, #series, #automation, #benefits, #projects, #customer-reviews, #contact) .section-rubric {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
main :is(#design, #series, #automation, #benefits, #projects, #customer-reviews, #contact) .section-rubric::before {
  content: "";
  flex: 0 0 8px;
  height: 8px;
  background: var(--rubric-color);
  transform: rotate(45deg);
}
main :is(#design, #series, #automation, #benefits, #projects, #customer-reviews, #contact) .section-rubric::after { content: none; }
#design, #projects { --rubric-color: #44B9F0; }
#series, #customer-reviews { --rubric-color: #2FA436; }
#automation, #contact { --rubric-color: #FFB00E; }
#benefits { --rubric-color: #E91055; }
:is(#design, #series, #automation, #benefits) .section-rubric { justify-content: center; }
#series .series-heading > p:last-child { max-width: none; margin: var(--avis-series-after) auto 24px; }
#series h2 br { display: none; }
#design .avis-design-header { --avis-gap: 22px; margin-bottom: clamp(30px, 2.6vw, 38px); }
#design .design-intro { margin: 0 0 12px; }
#benefits header, #automation .automation-copy {
  max-width: var(--avis-narrow);
  margin-inline: auto;
  text-align: center;
}
#benefits header h2 { max-width: none; }
#benefits .reliability-intro { max-width: none; margin: var(--avis-focus-after) auto 0; }
#automation .automation-copy { max-width: none; }

#projects.project-gallery, #customer-reviews, #contact .contact-inner { padding-inline: var(--avis-edge); }
#projects h2, #customer-reviews h2, #contact h2 { max-width: var(--avis-narrow); }
#projects .projects-intro, #customer-reviews .reviews-lead, #contact .contact-intro { margin-top: var(--avis-left-after); }

@media(max-width:700px) {
  :root {
    /* Reference geometry at 390: 320px artboard scaled by 390/320. */
    --avis-edge: 12.2px;
    --avis-title: 29.25px;
    --avis-line: 1.08333;
    --avis-rubric: 17.06px;
    --avis-gap: 23.4px;
    --avis-series-after: 37px;
    --avis-focus-after: 49px;
    --avis-left-after: 28px;
  }
  #design .avis-design-header { --avis-gap: 16px; }
  #home h1 { font-size: 34.125px; line-height: 1; letter-spacing: -1.219px; }
  #home .hero-description { margin-top: 18px; }
  #design .avis-design-header, #series .series-heading {
    margin-inline: calc(var(--avis-edge) - var(--gutter));
  }
  #benefits header { margin-inline: calc(6.1px - var(--gutter)); }
  #automation .automation-copy { width: 100%; padding-inline: var(--avis-edge); padding-block: var(--section-entry) 28px; }
  main :is(#projects, #customer-reviews, #contact) :is(.projects-label, .reviews-kicker, .contact-label) { margin-bottom: 36.6px; }
  main :is(#projects, #customer-reviews, #contact) h2 { line-height: 1.1; }
}
