.reference-home { --ref-paper:#f7f5f0; }
.reference-home .cinematic-hero { min-height:470px; padding:48px max(6vw,calc((100vw - 1400px)/2)); grid-template-columns:minmax(0,1fr) 335px; gap:60px; align-items:center; }
.reference-home .hero-inner { max-width:550px; }
.reference-home .cinematic-hero h1 { font-size:clamp(60px,6.3vw,92px); margin:14px 0 20px; }
.reference-home .hero-description { font-size:18px; line-height:1.5; max-width:470px; margin-bottom:20px; }
.reference-home .protection-picker { padding:22px; }
.reference-home .protection-picker legend { font-size:24px; margin-bottom:4px; }
.reference-home .picker-intro { font-size:12px; color:#56606a; margin:0 0 10px; }
.reference-home .protection-picker label { grid-template-columns:64px 1fr 16px; gap:12px; padding:9px 0; min-height:68px; font-size:14px; }
.reference-home .protection-picker label img { width:64px; height:48px; object-fit:cover; }
.reference-home .protection-picker label small { display:block; font-size:11px; color:#56606a; margin-top:4px; }
.reference-home .protection-picker button { margin-top:14px; padding:13px; }
.reference-home .protection-picker>p { font-size:10px; margin:12px 0 0; text-align:center; }
.ref-services,.ref-notes { padding:30px max(6vw,calc((100vw - 1400px)/2)); background:var(--ref-paper); color:#102330; }
.reference-home .eyebrow { font-size:10px; letter-spacing:.2em; }
.ref-services .eyebrow,.ref-team .eyebrow,.ref-notes .eyebrow { color:#79582b; }
.ref-section-heading { display:flex; align-items:center; justify-content:space-between; gap:40px; margin-bottom:22px; }
.ref-section-heading h2,.ref-team h2,.ref-process h2,.ref-close h2 { font:400 clamp(30px,3vw,44px)/1.08 var(--serif,Georgia,serif); letter-spacing:-.03em; margin:10px 0 0; }
.ref-section-heading>p { max-width:410px; font:400 14px/1.6 var(--sans,Arial,sans-serif); color:#4c5862; }
.ref-section-heading>p a { color:inherit; text-decoration:underline; text-underline-offset:3px; }
.ref-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.ref-card { border:1px solid #10233022; border-radius:3px; overflow:hidden; display:flex; flex-direction:column; }
.ref-card>img { display:block; width:100%; height:auto; aspect-ratio:3/1; object-fit:cover; }
.ref-card>div { padding:18px 22px; flex:1; display:flex; flex-direction:column; }
.ref-card h3 { font:400 25px/1.15 var(--serif,Georgia,serif); letter-spacing:-.02em; margin:0 0 8px; }
.ref-card p { font:400 15px/1.5 var(--sans,Arial,sans-serif); color:#46525b; margin:0 0 14px; }
.ref-card ul { list-style:none; padding:0; margin:0 0 18px; font:400 14px/1.6 var(--sans,Arial,sans-serif); color:#46525b; }
.ref-card li { position:relative; padding-left:24px; margin:3px 0; }
.ref-card li:before { content:'✓'; color:#967235; position:absolute; left:0; }
.ref-link { font:500 13px/1.5 var(--sans,Arial,sans-serif); color:inherit; text-decoration:underline; text-underline-offset:5px; }
.ref-card .ref-link { margin-top:auto; align-self:flex-start; }
.ref-process { background:#081925; color:#f7f5ef; padding:46px max(6vw,calc((100vw - 1400px)/2)); display:grid; grid-template-columns:1fr 1.7fr; gap:55px; }
.ref-process .eyebrow,.ref-close .eyebrow { color:#e1bb77; }
.ref-process h2 { font-size:clamp(28px,2.8vw,40px); }
.ref-process ol { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px; margin:0; padding:0; list-style:none; }
.ref-process svg { width:32px; height:32px; display:block; color:#e1bb77; margin-bottom:12px; }
.ref-process small { color:#d6b374; font-size:10px; }
.ref-process h3 { font:500 16px/1.3 var(--sans,Arial,sans-serif); margin:6px 0 12px; }
.ref-process li p { font:400 13px/1.5 var(--sans,Arial,sans-serif); color:#c9d1d6; margin:0; }
.ref-team { display:grid; grid-template-columns:1fr 1fr; background:#f1eee7; color:#102330; }
.ref-team-images { display:grid; grid-template-columns:1fr 1fr; overflow:hidden; max-height:365px; gap:4px; }
.ref-team-images img { width:100%; height:365px; object-fit:cover; object-position:center 23%; }
.ref-team-copy { padding:35px clamp(24px,4vw,60px); align-self:center; }
.ref-team-copy>p:not(.eyebrow) { font:400 15px/1.55 var(--sans,Arial,sans-serif); color:#46525b; margin:16px 0; max-width:590px; }
.reference-home .ref-team .button,.reference-home .ref-close .button { background:#d6af67; border:1px solid #d6af67; color:#081925; padding:13px 20px; font-size:14px; min-width:0; }
.ref-notes-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.ref-notes-grid>a { text-decoration:none; color:inherit; }
.ref-notes-grid img { display:block; width:100%; height:auto; aspect-ratio:3.6/1; object-fit:cover; }
.ref-notes-grid h3 { font:500 16px/1.4 var(--sans,Arial,sans-serif); margin:10px 0 4px; }
.ref-close { display:flex; align-items:center; justify-content:space-between; gap:32px; padding:34px max(6vw,calc((100vw - 1400px)/2)); background:linear-gradient(#081925cd,#081925ed),url('uploads/cinematic-ranch-landscape.webp') center 55%/cover; color:#f7f5ef; }
.ref-close h2 { font-size:clamp(28px,3vw,42px); }
.ref-close p:not(.eyebrow) { font-size:15px; color:#d5dcdf; margin:12px 0 0; }
.ref-close>div:last-child { flex-shrink:0; display:flex; flex-direction:column; align-items:center; gap:12px; }
.ref-card,.ref-notes-grid>a { transition:transform .25s,box-shadow .25s; }
.ref-card:hover { transform:translateY(-3px); box-shadow:0 8px 22px #0819250c; }
.ref-notes-grid>a:hover { transform:translateY(-3px); }
.ref-link:hover { text-decoration-thickness:2px; }
.reference-home main a:focus-visible { outline:2px solid #a47936; outline-offset:5px; }
@media(min-width:1800px) { .reference-home .cinematic-hero { min-height:570px; } }
@media(max-width:1050px) {
 .ref-process { grid-template-columns:1fr; gap:28px; }
 .ref-process ol { gap:24px; }
 .ref-card>div { padding:16px; }
 .ref-team-images,.ref-team-images img { height:390px; max-height:390px; }
 .ref-section-heading>p { max-width:310px; }
}
@media(max-width:760px) {
 .reference-home .cinematic-hero { grid-template-columns:1fr; padding:44px 24px; gap:34px; min-height:0; }
 .reference-home .cinematic-hero h1 { font-size:64px; }
 .reference-home .hero-inner { max-width:500px; }
 .reference-home .protection-picker { max-width:440px; }
 .reference-home .advisory-visual img { object-position:60% center; }
 .ref-services,.ref-notes,.ref-process,.ref-close { padding:32px 24px; }
 .ref-section-heading { align-items:flex-start; flex-direction:column; gap:14px; }
 .ref-section-heading>p { max-width:none; margin:0; }
 .ref-cards { grid-template-columns:1fr; gap:18px; }
 .ref-card>img { aspect-ratio:3/1; }
 .ref-card>div { padding:20px; }
 .ref-process ol { grid-template-columns:1fr 1fr; gap:28px; }
 .ref-team { grid-template-columns:1fr; }
 .ref-team-images,.ref-team-images img { height:300px; max-height:300px; }
 .ref-team-copy { padding:30px 24px; }
 .ref-notes-grid { grid-template-columns:1fr; gap:20px; }
 .ref-notes-grid>a { display:grid; grid-template-columns:100px 1fr; gap:16px; align-items:center; }
 .ref-notes-grid img { aspect-ratio:4/3; }
 .ref-notes-grid h3 { font-size:15px; margin:0; }
 .ref-close { flex-direction:column; align-items:flex-start; }
}
@media(prefers-reduced-motion:reduce) { .ref-card,.ref-notes-grid>a { transition:none; } }
/* Keep thumbnail choices in a single readable column at tablet widths. */
.reference-home .protection-picker fieldset { display:block; }
@media(max-width:760px) {
 .reference-home .cinematic-hero:after { background:linear-gradient(180deg,rgba(5,20,29,.48),rgba(5,20,29,.32) 25%,#081925 52%); }
 .reference-home .cinematic-hero .eyebrow { color:#f2d49c; }
}

/* Shared founder image supplied by Brady; preserve both people at every size. */
.ref-team-images.ref-team-shared { display:block; height:100%; max-height:none; min-height:330px; }
.ref-team-images.ref-team-shared img { display:block; width:100%; height:100%; max-height:none; object-fit:cover; object-position:50% 50%; }
@media (max-width:1050px) and (min-width:761px) { .ref-team { grid-template-columns:1fr; } .ref-team-images.ref-team-shared { min-height:0; height:auto; } .ref-team-images.ref-team-shared img { height:auto; aspect-ratio:2/1; } }
@media (max-width:760px) { .ref-team-images.ref-team-shared { min-height:0; height:auto; } .ref-team-images.ref-team-shared img { height:auto; aspect-ratio:1.6; object-position:center; } }

/* Let the desktop opening occupy the viewport below the sticky navigation. */
@media (min-width:1101px) {
 .reference-home .cinematic-hero {
  min-height:calc(100vh - 86px);
  min-height:calc(100svh - 86px);
  align-items:center;
 }
 .reference-home .advisory-visual img { object-position:center center; }
}

/* Give the family a central position and the desktop chooser more presence. */
@media (min-width:1101px) {
 .reference-home .cinematic-hero { grid-template-columns:minmax(0,1fr) 410px; }
 .reference-home .advisory-visual { left:-25%; right:0; width:125%; }
 .reference-home .protection-picker { padding:28px; }
 .reference-home .protection-picker legend { font-size:30px; }
 .reference-home .picker-intro { font-size:14px; line-height:1.5; margin-bottom:14px; }
 .reference-home .protection-picker label { grid-template-columns:76px 1fr 20px; gap:14px; min-height:86px; padding:12px 0; font-size:17px; }
 .reference-home .protection-picker label img { width:76px; height:58px; }
 .reference-home .protection-picker label small { font-size:13px; line-height:1.4; }
 .reference-home .protection-picker button { font-size:18px; padding:16px; margin-top:18px; }
 .reference-home .protection-picker>p { font-size:12px; }
}
