@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-500.woff2") format("woff2");
}

/* Homepage headings: keep sentence case, drop 18ch traps and orphan lines. */
body.avi-home .hero h1.kin {
  max-width: none;
}
@media (min-width: 900px) {
  body.avi-home .hero h1.kin .ln {
    white-space: nowrap;
  }
}
body.avi-home .rf-homeservices .h2,
body.avi-home .rf-testimonials .head h2,
body.avi-home .rf-homecontact .hc-h,
body.avi-home .cta-block .big,
body.avi-home .lead h2,
body.avi-home .founder .h2 {
  max-width: 18em !important;
  overflow-wrap: normal !important;
  text-wrap: balance;
}

/*
  Interior page H1s: Source Serif 4, sentence case, no 18ch wrap.
*/
:root body:not(.avi-home) :is(.phero, .svp-hero) h1 {
  font-family: "Source Serif 4", Georgia, serif !important;
  font-weight: 300 !important;
  font-size: clamp(40px, 4.45vw, 64px) !important;
  line-height: 1.1 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  max-width: none !important;
  text-wrap: pretty;
  overflow-wrap: normal;
}

:root body:not(.avi-home) :is(.phero, .svp-hero) h1 :is(i, span, b, em, .it, .it-m) {
  font-family: inherit !important;
  font-weight: inherit !important;
  text-transform: none !important;
  letter-spacing: inherit !important;
}

:root body:not(.avi-home) .art-h h1 {
  font-family: "Source Serif 4", Georgia, serif !important;
  font-weight: 300 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* Interior kinetic H1s: join scraps; gold accent on its own line. */
:root body:not(.avi-home) .phero h1.kin {
  max-width: none !important;
  text-wrap: pretty;
}

:root body:not(.avi-home) .phero h1.kin .ln {
  display: inline !important;
  overflow: visible !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

:root body:not(.avi-home) .phero h1.kin .ln i {
  display: inline !important;
  transform: none !important;
}

:root body:not(.avi-home) .phero h1.kin .ln:has(.it-m) {
  display: block !important;
  margin-top: 0.08em;
}

:root body:not(.avi-home) .phero h1 .it-m {
  white-space: nowrap;
}

/* Kill leftover 16ch/18ch/20ch heading traps. */
:root body:not(.avi-home) :is(.rf-services .h2, .rf-team .h2, .rf-testimonials .head h2, .cta-block .big, .lead h2, #route-ai-policy h1) {
  max-width: min(28em, 100%) !important;
  overflow-wrap: normal !important;
  text-wrap: pretty;
}

#route-services .rf-services .h2 {
  max-width: min(28em, 100%) !important;
}

@media (min-width: 900px) {
  #route-services .rf-services .h2 {
    white-space: nowrap;
  }
  :root body:not(.avi-home) :is(.phero, .svp-hero) h1 {
    white-space: nowrap;
  }
}

body:not(.avi-home) :is(h2, h3, h4, h5, h6) {
  text-transform: none !important;
}

/* About titles: 16ch/20ch was stacking “Meet the people” and the closing CTA. */
#route-about .rf-team .h2,
#route-about .lead h2,
#route-about h2.h2,
body:not(.avi-home) .cta-block .big {
  max-width: min(22em, 100%) !important;
  overflow-wrap: normal !important;
  text-wrap: balance;
}

/* List markers: upward triangle, same stance as the AVI A. */
.rf-services .bul li::before,
.rf-homeservices .bul li::before,
.sitem .sbul li::before {
  width: 8px !important;
  height: 7px !important;
  background: var(--gold, #9f8550) !important;
  transform: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  top: 8px !important;
  opacity: 1 !important;
}

.sitem .sbul li::before {
  width: 6px !important;
  height: 5px !important;
  background: var(--ink, #2a2419) !important;
  opacity: 0.55 !important;
  top: 8px !important;
}

/* Let's Talk. Bronze (#9f8550) with white text is about 3.5:1, below WCAG AA, so the fill is black. */
.nav .ntalk,
a.nmenu-talk {
  background: #000 !important;
  color: #fff !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  line-height: 1.2 !important;
  opacity: 1 !important;
}

.nav .ntalk:hover,
a.nmenu-talk:hover {
  background: #2a2419 !important;
  color: #fff !important;
}

.nav .ntalk:focus-visible,
a.nmenu-talk:focus-visible {
  outline: 2px solid #000 !important;
  outline-offset: 3px !important;
}

body.avi-dark .nav .ntalk,
body.avi-dark a.nmenu-talk {
  background: #fff !important;
  color: #000 !important;
}

body.avi-dark .nav .ntalk:hover,
body.avi-dark a.nmenu-talk:hover {
  background: #f4efe3 !important;
  color: #000 !important;
}

body.avi-dark .nav .ntalk:focus-visible,
body.avi-dark a.nmenu-talk:focus-visible {
  outline-color: #fff !important;
}

#route-services .services-location h2 {
  text-wrap: balance;
  margin-bottom: 0 !important;
}

@media (max-width: 900px) {
  .rf-team .g4 {
    min-height: 0 !important;
    align-items: start;
  }

  .rf-team .g4-stage {
    display: none !important;
  }

  .rf-team .g4-role {
    opacity: 1 !important;
    white-space: normal;
    text-align: left;
  }

  .rf-team .g4-name {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .rf-team .g4-list .g4-portrait {
    position: relative !important;
    inset: auto !important;
    display: block;
    width: min(100%, 280px);
    height: auto !important;
    aspect-ratio: 3 / 4;
    margin: 6px 0 16px;
    border-radius: 14px;
    overflow: hidden;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  .rf-team .g4-list .g4-portrait:not(.on) {
    display: none !important;
  }

  .rf-team .g4-list .g4-portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: none !important;
    transition: none !important;
  }
}

@media (max-width: 700px) {
  body:not(.avi-home) .phero h1 .it-m {
    white-space: normal;
    text-wrap: balance;
  }
}

/* Newsletter popup — same paper, ink, gold, and filled black CTA as the site. */
.foot button.avi-news-open {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.foot button.avi-news-open:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.foot button.avi-news-open:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.avi-news[hidden] {
  display: none !important;
}
.avi-news {
  position: fixed;
  inset: 0;
  z-index: 160;
}
.avi-news-scrim {
  position: absolute;
  inset: 0;
  background: rgba(42, 36, 25, 0.46);
}
.avi-news-panel {
  position: relative;
  z-index: 1;
  width: min(460px, calc(100vw - 32px));
  margin: 10vh auto 0;
  padding: 44px 36px 32px;
  background: var(--paper, #f4efe3);
  color: var(--ink, #2a2419);
  border: 1px solid var(--line, #e3dccb);
  box-sizing: border-box;
}
.avi-news-x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.avi-news-x:hover {
  color: var(--gold, #9f8550);
}
.avi-news-x:focus-visible,
.avi-news-submit:focus-visible,
.avi-news-skip:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}
.avi-news-kicker {
  display: block;
  width: 132px;
  height: 26px;
  overflow: hidden;
  margin: 0 0 22px;
  line-height: 0;
}
.avi-news-logo {
  display: block;
  width: 132px;
  height: auto;
  max-width: none;
  filter: url(#avi-logo-remove-white);
  clip-path: inset(6% 6% 51% 2%);
}
.avi-news-panel h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 40px);
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: none;
  margin: 0 0 10px;
  max-width: 11ch;
}
.avi-news-panel #avi-news-copy {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--muted, #6b6253);
  margin: 0 0 28px;
  max-width: 34ch;
}
.avi-news-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 0;
}
.avi-news-form label {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.2;
  color: var(--muted, #6b6253);
  font-weight: 400;
}
.avi-news-form input[type="email"] {
  display: block;
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 16px;
  line-height: 44px;
  color: var(--ink, #2a2419);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line, #e3dccb);
  border-radius: 0;
  padding: 0;
  margin: 0;
  outline: none;
  box-shadow: none;
}
.avi-news-form input[type="email"]:focus,
.avi-news-form input[type="email"]:focus-visible {
  outline: none;
  box-shadow: none;
  border-bottom-color: var(--ink, #2a2419);
}
.avi-news-error {
  color: #8a2a12;
  font-size: 14px;
  margin: 10px 0 0;
}
.avi-news-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 48px;
  margin-top: 22px;
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--ink, #2a2419);
  color: var(--paper, #f4efe3);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
}
.avi-news-submit:hover,
.avi-news-submit:disabled {
  background: #000;
}
.avi-news-foot {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line, #e3dccb);
}
.avi-news-legal,
.avi-news-done {
  font-size: 13px;
  line-height: 1.45;
  color: var(--faint, #a49a86);
  margin: 0;
}
.avi-news-done {
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink, #2a2419);
  margin: 0 0 8px;
}
.avi-news-legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.avi-news-skip {
  display: inline-block;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--faint, #a49a86);
  font: 14px "Hanken Grotesk", system-ui, sans-serif;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.avi-news-skip:hover {
  color: var(--ink, #2a2419);
}
.avi-news.is-done .avi-news-foot,
.avi-news.is-done .avi-news-form {
  display: none;
}
.avi-news.is-done .avi-news-done {
  display: block;
}
@media (prefers-reduced-motion: no-preference) {
  .avi-news-panel {
    animation: aviNewsIn 0.42s cubic-bezier(0.16, 0.84, 0.44, 1) both;
  }
}
@keyframes aviNewsIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 540px) {
  .avi-news-panel {
    margin: auto 16px 16px;
    width: calc(100vw - 32px);
    padding: 36px 22px 24px;
  }
  .avi-news-panel h2 {
    font-size: 30px;
    max-width: none;
  }
}
