/* Full-width hero composition; all text and images remain connected to Stateform. */
.hero {
    position: relative;
    isolation: isolate;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: 760px;
    background: #f6f6f2;
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0,1.35fr) minmax(0,.85fr);
    align-items: end;
    gap: clamp(40px,6vw,100px);
    padding-block: clamp(56px,5vw,90px) 58px;
    min-height: inherit;
}
.hero-copy { position: relative; z-index: 2; min-width: 0; align-self: start; }
.hero-copy .eyebrow { margin-bottom: 24px; color: #58656a; font-size: 10px; letter-spacing: .18em; }
.hero-copy h1 {
    font-family: var(--font);
    font-size: clamp(39px,3.6vw,66px);
    font-weight: 750;
    line-height: 1.09;
    letter-spacing: -.055em;
    max-width: none;
    width: max-content;
    max-width: calc(100vw - var(--gutter) * 2);
    margin: 0;
}
.hero-copy h1 .heading-first { display: block; white-space: nowrap; color: var(--navy); }
.heading-second {
    display: grid;
    grid-template-columns: auto 1fr;
    position: relative;
    width: max-content;
    max-width: 100%;
    min-width: min(10ch,100%);
    margin-top: 5px;
    color: var(--red);
    min-height: 1.1em;
}
.hero-copy h1 .typing-reserve { visibility: hidden; grid-area: 1 / 1; user-select: none; pointer-events: none; }
.typing-reserve::after { content: ""; display: inline-block; width: calc(.12em + 2px); }
.typing-reserve,.typing-output { min-width: 0; overflow-wrap: anywhere; }
.hero-copy h1 .typing-output { grid-area: 1 / 1; color: var(--red); }
/* Cursor follows the text without measuring or changing headline layout. */
.typing-output::after { content: ""; display: inline-block; height: .72em; width: 2px; background: currentColor; margin-left: .12em; vertical-align: -.01em; opacity: 0; }
.typing-heading[data-typing-running] .typing-output::after { animation: sf-cursor 1100ms step-end infinite; }
.hero-copy .lead { font-size: 16px; line-height: 1.75; max-width: 410px; margin: 24px 0 28px; color: #4c5d68; }
.hero-visual { position: absolute; z-index: -1; inset: 0 0 0 auto; display: block; width: 65%; padding: 0; overflow: hidden; }
.hero-photo { width: 100%; height: 100%; border-radius: 0; object-fit: cover; object-position: var(--position); }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#f6f6f2 0%,rgba(246,246,242,.94) 8%,rgba(246,246,242,.55) 30%,rgba(246,246,242,0) 57%),linear-gradient(0deg,#f6f6f2 0%,rgba(246,246,242,.2) 30%,transparent 68%); pointer-events: none; }
.photo-label { position: absolute; top: 24px; right: var(--gutter); font-size: 9px; letter-spacing: .04em; z-index: 1; color: #43505b; border-radius: 30px; background: #ffffffe8; padding: 5px 12px; }
.agent-portrait-stage { position: absolute; right: 8%; top: 7%; width: min(65%,540px); height: 69%; z-index: 1; overflow: hidden; border-radius: 42% 42% 3% 3%; -webkit-mask-image: linear-gradient(#000 78%,transparent); mask-image: linear-gradient(#000 78%,transparent); }
.hero-agent-photo { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.quote-card { max-width: 470px; padding: 24px; border-radius: var(--radius); margin: 0; box-shadow: var(--shadow-soft); }
.quote-heading { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }
.quote-heading h2 { font-size: 17px; margin: 0; letter-spacing: -.03em; }
.quote-fields { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.quote-card label { font-size: 11px; letter-spacing: .01em; color: #4d5c68; }
.quote-card input,.quote-card select { height: 48px; margin-bottom: 15px; }
.select-surface { position: relative; }
.select-surface > .icon { width: 18px; height: 18px; position: absolute; left: 12px; top: 15px; pointer-events: none; }
.select-surface select { padding-left: 40px; }
.quote-card .primary { min-height: 49px; justify-content: space-between; padding-inline: 18px; }
.quote-card .primary .icon { width: 20px; height: 20px; color: #fff; }
.quote-card small { font-size: 10px; line-height: 1.6; margin-top: 13px; color: #53616a; }
.quote-actions { margin-top: 12px; gap: 12px; }
.quote-actions .button { min-height: 44px; font-size: 12px; gap: 8px; }
.quote-actions .icon { width: 16px; height: 16px; }
.profile-card { position: relative; z-index: 2; margin: 0; padding: 26px; border-radius: var(--radius); box-shadow: var(--shadow-soft); max-width: 450px; justify-self: end; width: 100%; }
.profile-main { gap: 14px; align-items: flex-start; }
.profile-main h2 { font-size: clamp(23px,2.1vw,32px); line-height: 1.12; letter-spacing: -.04em; color: var(--navy); margin: 8px 0; overflow-wrap: anywhere; }
.profile-main p { font-size: 12px; }
.profile-main .eyebrow { font-size: 9px; letter-spacing: .13em; }
.profile-details { grid-template-columns: 1fr; gap: 15px; margin-top: 20px; padding-top: 20px; border-top-color: #dfe4df; }
.profile-details > div,.profile-phone { display: flex; gap: 12px; align-items: flex-start; }
.profile-details .icon { width: 17px; height: 17px; margin-top: 2px; flex-shrink: 0; }
.profile-details p { font-size: 11px; line-height: 1.6; }
.profile-details strong { font-weight: 650; font-size: 11px; }
.profile-phone { font-size: 13px; font-weight: 700; }
@media(min-width:1600px) { .hero-inner { padding-block: 85px 65px; min-height: 820px; }.hero { min-height: 820px; }.hero-copy .lead { font-size: 18px; max-width: 460px; }.quote-card { max-width: 500px; } }
@media(max-width:1100px) {
    .hero { min-height: 720px; }
    .hero-inner { grid-template-columns: 1.2fr .9fr; gap: 35px; padding-block: 52px 45px; }
    .hero-copy h1 { font-size: clamp(36px,4.2vw,47px); }
    .hero-copy .lead { max-width: 360px; font-size: 15px; }
    .profile-card { padding: 22px; }
    .hero-visual { width: 72%; }
}
@media(max-width:850px) {
    .hero-inner { grid-template-columns: 1.15fr 1fr; gap: 24px; padding-block: 44px 36px; }
    .hero-copy h1 { font-size: 35px; }
    .hero-copy .lead { max-width: 350px; font-size: 14px; }
    .quote-card { padding: 19px; }
    .quote-fields { grid-template-columns: 1fr; gap: 0; }
    .profile-card { padding: 20px; margin-bottom: 0; }
    .profile-main > .utility-icon { display: none; }
    .hero-visual::after { background: linear-gradient(90deg,#f6f6f2 0%,rgba(246,246,242,.8) 25%,transparent 80%),linear-gradient(0deg,#f6f6f2,transparent 85%); }
}
@media(max-width:640px) {
    .hero { min-height: 0; background: #f6f6f2; }
    .hero-inner { display: flex; flex-direction: column; align-items: stretch; gap: 24px; padding-block: 38px 30px; }
    .hero-copy h1 { width: auto; max-width: none; font-size: clamp(32px,7.4vw,45px); letter-spacing: -.05em; }
    .hero-copy h1 .heading-first { white-space: normal; max-width: 20ch; }
    .hero-copy .eyebrow { font-size: 9px; letter-spacing: .11em; margin-bottom: 19px; }
    .hero-copy .lead { font-size: 14px; max-width: 95%; margin-block: 20px 24px; }
    .hero-visual { width: 100%; height: 390px; top: 0; bottom: auto; opacity: .34; }
    .hero-visual::after { background: linear-gradient(90deg,#f6f6f2 0%,rgba(246,246,242,.5) 90%),linear-gradient(0deg,#f6f6f2 0%,transparent 85%); }
    .photo-label { display: none; }
    .quote-card { max-width: none; padding: 22px; }
    .quote-fields { grid-template-columns: 1fr; gap: 0; }
    .quote-heading h2 { font-size: 16px; }
    .profile-card { max-width: none; padding: 22px; }
    .profile-main > .utility-icon { display: grid; }
    .profile-main h2 { font-size: 25px; }
    .profile-details { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
    .has-agent-portrait .hero-visual { position: relative; width: 100%; height: 330px; opacity: 1; z-index: 0; }
    .has-agent-portrait .hero-inner { padding-top: 28px; }
    .has-agent-portrait .agent-portrait-stage { width: 75%; height: 95%; right: 12%; top: 5%; }
}
@media(max-width:360px) { .quote-fields,.profile-details { grid-template-columns: 1fr; }.quote-card { padding: 18px; }.hero-copy h1 { font-size: 31px; } }
@media(prefers-reduced-motion:reduce) { .typing-heading .typing-output::after { animation: none; display: none; } }
