.hero-reference .hero-inner:has(.quote-hero) {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  gap: clamp(28px, 5vw, 96px);
  align-content: center;
}
.hero-reference .hero-inner:has(.quote-hero) .hero-reference-copy { width: 100%; }
.quote-hero { position: relative; isolation: isolate; max-width: 660px; width: 100%; justify-self: center; padding: 12px 0; color: #fff; }
.quote-intro { margin-bottom: 15px; }
.quote-intro h2 { min-height: 1.14em; margin: 3px 0; color: #fff; font: 650 clamp(25px, 2.4vw, 42px)/1.14 Poppins, system-ui, sans-serif; letter-spacing: -.055em; }
.quote-intro h2 .is-typing::after { content: ""; display: inline-block; width: 2px; height: .82em; margin-left: .08em; vertical-align: -.07em; background: #ffb184; animation: quote-caret .9s steps(1,end) infinite; }
@keyframes quote-caret { 50% { opacity: 0; } }
.quote-intro p { margin: 0; font-size: 12px; color: #e6f3ec; }
.hero-reference .hero-scroll > span::after { inset-inline: 0; margin-inline: auto; }
.quote-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.quote-card {
  position: relative; isolation: isolate; overflow: hidden; display: grid; justify-items: start; align-content: start; gap: 5px; min-width: 0; min-height: 116px;
  padding: 12px; border: 1px solid #ffffff45; border-radius: 19px; cursor: pointer; text-align: left; color: #fff;
  background: linear-gradient(145deg, #ffffff25 0%, #ffffff08 40%, #0909093b 100%), #11111124;
  box-shadow: inset 0 1px 0 #ffffff29, 0 4px 10px #00000020;
  text-shadow: 0 1px 4px #0000009c;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: transform .22s, border-color .22s, background .22s;
}
.quote-card::before { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.quote-card::before { inset: -30% 12% 18% -24%; background: radial-gradient(ellipse at 25% 32%, #ffffff35, transparent 56%); filter: blur(13px); }
.quote-card:hover, .quote-card:focus-visible { transform: translateY(-3px); border-color: #ffeddb87; background-color: #24242445; }
.quote-card:focus-visible, .quote-dialog :focus-visible { outline: 2px solid #f5824f; outline-offset: 3px; }
.quote-symbol { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid #ffb38a7a; border-radius: 11px; color: #ffb585; background: #f67e4426; }
.quote-symbol svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.quote-card:hover .quote-symbol svg, .quote-card:focus-visible .quote-symbol svg { animation: quote-icon-lift .5s ease-out both; }
@keyframes quote-icon-lift { 45% { transform: translateY(-3px) scale(1.08); } }
.quote-svg-accent { stroke: #fff0c9; stroke-dasharray: 25; animation: quote-trace 4.8s ease-in-out infinite alternate; }
.quote-card:nth-child(2n) .quote-svg-accent { animation-delay: -.8s; }
.quote-card:nth-child(3n) .quote-svg-accent { animation-delay: -1.6s; }
@keyframes quote-trace { from { stroke-dashoffset: 0; opacity: .9; } to { stroke-dashoffset: 12; opacity: .55; } }
.quote-card-title { margin-top: 2px; font-size: clamp(12px, 1vw, 16px); font-weight: 680; line-height: 1.23; }
.quote-card-cta { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; color: #ffd2b9; }
.quote-card-cta svg, .quote-close svg, .quote-send svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.quote-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
html:has(.quote-dialog[open]) { overflow-y: hidden; scrollbar-gutter: stable; }
.quote-dialog {
  color-scheme: light;
  position: fixed;
  inset: 0;
  width: min(1210px, calc(100% - 40px));
  max-width: none;
  max-height: calc(100dvh - 36px);
  margin: auto;
  padding: 0;
  border: 1px solid #ffffff65;
  border-radius: 32px;
  overflow: auto;
  overscroll-behavior: contain;
  background: #0d2f26;
  color: #122b25;
  box-shadow: 0 28px 90px #00130ca8;
}
.quote-dialog::backdrop { background: #04140fc2; backdrop-filter: blur(7px); }
@media (prefers-reduced-motion: no-preference) {
  .quote-dialog[open] { animation: quote-enter 280ms cubic-bezier(.2,.75,.25,1) both; }
  .quote-dialog[open]::backdrop { animation: quote-fade-in 260ms ease both; }
  .quote-dialog.is-closing { animation: quote-exit 220ms ease both; }
  .quote-dialog.is-closing::backdrop { animation: quote-fade-out 220ms ease both; }
  .quote-success[open] .quote-success-icon { animation: quote-check-in 540ms cubic-bezier(.25,.8,.3,1.18) both; }
}
@keyframes quote-enter { from { opacity: 0; transform: translateY(12px) scale(.985); } }
@keyframes quote-exit { to { opacity: 0; transform: translateY(8px) scale(.99); } }
@keyframes quote-fade-in { from { opacity: 0; } }
@keyframes quote-fade-out { to { opacity: 0; } }
@keyframes quote-check-in { from { opacity: 0; transform: scale(.65); } }
.quote-panel {
  --quote-paper-radius: 32px;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
}
.quote-story {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: clamp(24px, 4vw, 58px);
  /* Continue the artwork behind the rounded corners of the form. */
  margin-inline-end: calc(-1 * var(--quote-paper-radius));
  padding-inline-end: calc(clamp(24px, 4vw, 58px) + var(--quote-paper-radius));
  color: #fff;
  background: linear-gradient(0deg, #0d2f26 6%, #0d2f26ef 36%, #0b2d23ad 67%, #081c1740),
    var(--quote-scene) center 28% / cover no-repeat, #0d2f26;
}
.quote-story-motor { --quote-scene: url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1000&q=85'); }
.quote-story-health { --quote-scene: url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?auto=format&fit=crop&w=1000&q=85'); }
.quote-story-building { --quote-scene: url('https://images.unsplash.com/photo-1511818966892-d7d671e672a2?auto=format&fit=crop&w=1000&q=85'); }
.quote-story-home { --quote-scene: url('https://images.unsplash.com/photo-1600047509807-ba8f99d2cdde?auto=format&fit=crop&w=1000&q=85'); }
.quote-story .quote-symbol { width: 54px; height: 54px; margin-bottom: clamp(18px, 4vw, 48px); }
.quote-story .quote-symbol svg { width: 30px; height: 30px; }
.quote-story-title {
  font: 700 clamp(30px, 4vw, 55px)/1.02 Poppins, system-ui, sans-serif;
  letter-spacing: -.055em;
}
.quote-story-title span { display: block; color: #ff8d3e; margin-top: 5px; }
.quote-story p { max-width: 29ch; margin: 15px 0 0; font-size: clamp(14px, 1.35vw, 17px); line-height: 1.55; }
.quote-story-support { display: flex; align-items: center; gap: 10px; margin-top: clamp(18px, 3vw, 36px); font-size: 13px; font-weight: 650; }
.quote-story-support i { color: #ffad74; font-size: 18px; }
.quote-paper {
  position: relative;
  min-width: 0;
  padding: clamp(23px, 3.7vw, 53px);
  border-radius: var(--quote-paper-radius) 0 0 var(--quote-paper-radius);
  background: linear-gradient(140deg, #fffaf6, #f6eee7);
}
.quote-close {
  position: absolute; z-index: 2; top: 13px; right: 13px;
  display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
  border: 0; border-radius: 50%; background: #ebe2d9; color: #102621; cursor: pointer;
}
.quote-close:hover { background: #e1d5c9; }
.quote-close svg { width: 19px; height: 19px; }
.quote-dialog-head { padding-right: 38px; margin-bottom: 21px; }
.quote-dialog-head h2 {
  margin: 0; color: #102e25;
  font: 700 clamp(25px, 3vw, 43px)/1.12 Poppins, system-ui, sans-serif;
  letter-spacing: -.05em; overflow-wrap: anywhere;
}
.quote-dialog-head h2:focus { outline: none; }
.quote-dialog-head h2 span { color: #b74408; }
.quote-dialog-head p { margin: 9px 0 0; font-size: clamp(13px, 1.3vw, 16px); line-height: 1.5; }
.quote-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quote-field {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 1px 11px; align-content: center;
  min-width: 0; min-height: 68px; padding: 9px 12px; border: 1px solid #dfd6cc; border-radius: 16px;
  background: #fffaf7; box-shadow: 0 3px 8px #4430220c;
}
.quote-field > i { grid-column: 1; grid-row: 1 / span 2; align-self: center; justify-self: center; color: #b74408; font-size: 17px; }
.quote-field-wide { grid-column: 1 / -1; }
.quote-field label { grid-column: 2; font-size: 10px; font-weight: 500; line-height: 1.25; }
.quote-field label span { color: #b74408; }
.quote-field:focus-within { border-color: #c54b0a; box-shadow: 0 0 0 2px #c54b0a38; }
.quote-field input, .quote-field textarea {
  grid-column: 2; display: block; width: 100%; min-width: 0; min-height: 26px; padding: 2px 0;
  border: 0; border-radius: 0; background: transparent; color: #142b25; font: inherit; font-size: 15px;
}
.quote-field input:focus-visible, .quote-field textarea:focus-visible { outline: none; }
.quote-field input::placeholder, .quote-field textarea::placeholder { color: #686f68; }
.quote-field textarea { resize: vertical; }
.quote-field { position: relative; }
.quote-field:focus-within { z-index: 1; }
.quote-select-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.quote-select-trigger {
  display: flex; grid-column: 2; justify-content: space-between; align-items: center; gap: 8px;
  min-height: 28px; padding: 1px 0; border: 0; color: #686f68; background: transparent;
  font: inherit; font-size: 15px; text-align: left; cursor: pointer;
}
.quote-select-trigger.has-value { color: #142b25; }
.quote-select-trigger:disabled { opacity: .65; cursor: default; }
.quote-select-trigger::after {
  content: ''; width: 7px; height: 7px; flex: 0 0 7px; margin-right: 4px;
  border: solid #a94418; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.quote-select-menu {
  position: absolute; inset-inline: -1px; top: calc(100% + 5px);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px;
  padding: 7px; border: 1px solid #dfd6cc; border-radius: 13px;
  background: #fffaf7; box-shadow: 0 12px 25px #2c201f29;
}
.quote-select-menu.opens-above { top: auto; bottom: calc(100% + 5px); }
.quote-select-menu input { grid-column: 1; min-height: 35px; padding: 6px 8px; border: 1px solid #dfd6cc; border-radius: 8px; }
.quote-select-menu input:focus-visible { outline: 2px solid #b74408; outline-offset: -2px; }
.quote-select-options { max-height: min(180px, 28dvh, var(--quote-options-space, 180px)); overflow: auto; overscroll-behavior: contain; }
.quote-select-options button {
  display: block; width: 100%; padding: 7px 9px; border: 0; border-radius: 6px;
  color: #142b25; background: transparent; font: inherit; font-size: 14px; text-align: left; overflow-wrap: anywhere; cursor: pointer;
}
.quote-select-options button:is(:hover, :focus-visible, [aria-pressed="true"]) { background: #f9e9dc; }
.quote-select-options button:focus-visible { outline-offset: -2px; }
.quote-select-error { grid-column: 2; color: #9e3706; }
.quote-select-error:empty { display: none; }
.quote-consent { display: flex; align-items: flex-start; gap: 9px; margin: 19px 0; font-size: 12px; line-height: 1.5; }
.quote-consent input { accent-color: #b74408; margin: 0; width: 19px; height: 19px; flex: 0 0 19px; }
.quote-consent a, .quote-pending a { text-decoration: underline; color: #9e3706; font-weight: 700; }
.quote-privacy-link { border: 0; padding: 0; background: transparent; font: inherit; font-weight: 600; color: #9e3706; text-decoration: underline; cursor: pointer; }
.quote-send {
  display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; min-height: 51px;
  border: 1px solid #a93706; border-radius: 999px; background: linear-gradient(160deg, #be4807, #a43406);
  box-shadow: 0 8px 19px #b3491a35; color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
.quote-send:hover { background: #963204; }
.quote-send:disabled { opacity: .65; cursor: wait; }
.quote-form-status, .quote-pending { margin: 9px 0 0; padding: 12px 14px; border: 1px solid #b4d5c4; border-radius: 12px; background: #e9f4ed; color: #214336; font-size: 13px; }
.quote-form-status[data-kind=error] { border-color: #e1a89b; background: #fff0ec; color: #792619; }
.quote-dialog [hidden] { display: none !important; }
.quote-notice {
  width: min(580px, calc(100% - 24px));
  padding: clamp(23px, 4.5vw, 46px);
  background: linear-gradient(145deg, #fffaf6, #f6eee7);
}
.quote-notice h2 { margin: 12px 28px 12px 0; font-size: clamp(21px, 3.5vw, 30px); line-height: 1.2; }
.quote-notice h2:focus { outline: none; }
.quote-notice p { margin: 0 0 12px; font-size: 14px; line-height: 1.55; }
.quote-notice-mark { color: #b74408; font-size: 24px; }
.quote-notice a { color: #9e3706; text-decoration: underline; overflow-wrap: anywhere; }
.quote-notice-links { display: flex; flex-wrap: wrap; gap: 8px 15px; font-size: 13px; }
.quote-success { width: min(440px, calc(100% - 24px)); text-align: center; }
.quote-success h2 { margin-inline: 0; }
.quote-success-icon { width: 60px; height: 60px; color: #267354; }
.quote-success .quote-reference { padding: 9px; border-radius: 10px; background: #e9f4ed; }
@media (max-width: 760px) {
  .quote-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 23px; }
  .quote-panel { --quote-paper-radius: 22px; grid-template-columns: minmax(0, 1fr); }
  .quote-story {
    margin-inline-end: 0;
    margin-block-end: calc(-1 * var(--quote-paper-radius));
    padding: 20px 65px calc(20px + var(--quote-paper-radius)) 22px;
    background-position: center, center 40%;
  }
  .quote-story .quote-symbol { width: 34px; height: 34px; margin-bottom: 9px; }
  .quote-story .quote-symbol svg { width: 22px; height: 22px; }
  .quote-story-title { font-size: clamp(22px, 5vw, 32px); }
  .quote-story-title span { display: inline; }
  .quote-story p { margin-top: 8px; max-width: 40ch; }
  .quote-story-support { display: none; }
  .quote-paper { border-radius: var(--quote-paper-radius) var(--quote-paper-radius) 0 0; padding: 22px 18px; }
  .quote-dialog-head { padding-right: 0; }
}
@media (max-width: 520px) {
  .quote-fields { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .quote-field input, .quote-field textarea { font-size: 16px; }
}
@media (max-width: 1000px) {
  .hero-reference:has(.quote-hero) { height: auto; min-height: 100svh; max-height: none; }
  .hero-reference .hero-inner:has(.quote-hero) { grid-template-columns: minmax(0,1fr); gap: 20px; padding-bottom: 115px; }
  .hero-reference .hero-inner:has(.quote-hero) .hero-reference-copy { max-width: 680px; }
  .quote-hero { justify-self: start; }
  .hero-reference .hero-inner:has(.quote-hero) .hero-scroll { bottom: 25px !important; }
}
@media (max-width: 520px) {
  .quote-intro h2 { min-height: 2.28em; }
  .quote-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .quote-card { padding: 9px; min-height: 97px; border-radius: 13px; }
}
@media (max-width: 360px) {
  body.home-page #site-header .header-inner { gap: 3px !important; padding-inline: 6px !important; }
  body.home-page #site-header .header-inner .brand-logo { width: 82px !important; }
  body.home-page #site-header .header-inner .header-actions .nav-quote { padding-inline: 6px !important; }
  body.home-page #site-header .header-inner .language-selector { padding-left: 3px !important; }
}
@media (prefers-reduced-motion: reduce) { .quote-svg-accent, .quote-card:hover .quote-symbol svg, .quote-card:focus-visible .quote-symbol svg, .quote-intro h2 .is-typing::after { animation: none; } .quote-card { transition: none; } }

/* Mobile quote: form only */
@media (max-width: 760px) {
  #quote-dialog > .quote-panel > .quote-story { display: none; }
  #quote-dialog > .quote-panel > .quote-paper { border-radius: 22px; }
  #quote-dialog .quote-dialog-head { padding-right: 44px; }
}

/* Illustrated quote cards */
.quote-card.quote-card-art {
  display: block; width: 100%; min-height: 0; padding: 0;
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
  text-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  overflow: visible; transition: transform .22s ease, filter .22s ease;
}
.quote-card.quote-card-art::before { display: none; }
.quote-card.quote-card-art img { display: block; width: 100%; height: auto; }
.quote-card.quote-card-art:hover,
.quote-card.quote-card-art:focus-visible {
  background: transparent; transform: translateY(-3px);
  filter: drop-shadow(0 7px 9px #061b2033);
}
@media (prefers-reduced-motion: reduce) {
  .quote-card.quote-card-art { transition: none; }
  .quote-card.quote-card-art:hover,
  .quote-card.quote-card-art:focus-visible { transform: none; }
}
