/* ---------- Financing, "What's Your Story?" (Oct 28, round 5) ----------
   Step 1: seven still photo cards, all visible at once (4 + 3 on wide screens, two across on phones). The title sits
   over a navy shade with one short line under it; hovering lifts the card, brightens the photo and lights a gold edge;
   the chosen story keeps a gold frame. Step 2, "Sound Familiar?": the everyday hurdles as a quiet four-column
   checklist without photos; each line opens a short answer with a round-arrow link. */
#your-story .ys-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; max-width: 1260px; margin: 0 auto clamp(56px, 8vh, 96px); }
#your-story .ys-card { position: relative; flex: 0 0 calc((100% - 66px) / 4); aspect-ratio: 3 / 3.7; display: block; overflow: hidden; isolation: isolate;
  padding: 0; border: 0; border-radius: 6px; background: var(--navy-dark); color: #FFFFFF; text-align: left; cursor: pointer; font: inherit;
  box-shadow: 0 10px 26px rgba(8,27,51,.14); transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease; }
#your-story .ys-ph { position: absolute; inset: 0; z-index: -2; }
#your-story .ys-ph img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) brightness(.86); transform: scale(1.02);
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .5s ease; }
#your-story .ys-card::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,27,51,0) 38%, rgba(8,27,51,.6) 66%, rgba(8,27,51,.94) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transition: box-shadow .4s ease; }
#your-story .ys-t { position: absolute; left: 22px; right: 20px; bottom: 50px; font-family: var(--serif); font-size: clamp(1.3rem, 1.7vw, 1.65rem); font-weight: 500;
  line-height: 1.12; color: #FFFFFF; text-shadow: 0 1px 12px rgba(8,27,51,.45); }
#your-story .ys-l { position: absolute; left: 22px; right: 20px; bottom: 22px; font-family: var(--label-font); font-size: .86rem; font-weight: 300;
  line-height: 1.35; color: rgba(255,255,255,.88); }
#your-story .ys-card:hover, #your-story .ys-card:focus-visible { transform: translateY(-6px); outline: none; box-shadow: 0 22px 44px rgba(8,27,51,.28), 0 0 0 1px rgba(201,169,110,.5); }
#your-story .ys-card:hover .ys-ph img, #your-story .ys-card:focus-visible .ys-ph img { transform: scale(1.08); filter: saturate(1.05) brightness(.98); }
#your-story .ys-card:hover::after, #your-story .ys-card:focus-visible::after, #your-story .ys-card.on::after { box-shadow: inset 0 0 0 2px var(--brass); }
#your-story .ys-card.on { box-shadow: 0 18px 40px rgba(8,27,51,.3), 0 0 0 1px rgba(201,169,110,.6); }
#your-story .ys-card.on .ys-ph img { filter: saturate(1.05) brightness(.98); }
#your-story .story-band { scroll-margin-top: calc(var(--nav-h) + 8px); }

/* Sound Familiar? */
#your-story .sound-familiar { max-width: 1200px; margin: 0 auto; padding: clamp(64px, 9vh, 110px) 24px clamp(64px, 9vh, 110px); }
#your-story .sound-familiar .section-head { text-align: center; margin: 0 auto clamp(36px, 5vh, 56px); }
#your-story .sf-sub { max-width: 40ch; margin: 14px auto 0; font-family: var(--label-font); font-weight: 300; font-size: 1.02rem; line-height: 1.55; color: var(--ink-soft); }
#your-story .sf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 34px; background: #FFFFFF; border: 1px solid rgba(21,48,79,.12);
  border-radius: 6px; padding: 34px 34px 26px; box-shadow: 0 18px 44px rgba(8,27,51,.06); }
#your-story .sf-k { margin: 0 0 8px; padding-bottom: 12px; border-bottom: 1px solid var(--brass); font-family: var(--label-font); font-size: .74rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--brass-dark); }
#your-story .sf-item { border-bottom: 1px solid rgba(21,48,79,.1); }
#your-story .sf-item summary { position: relative; display: block; list-style: none; cursor: pointer; padding: 14px 30px 14px 0;
  font-family: var(--serif); font-size: 1.18rem; font-weight: 500; line-height: 1.25; color: var(--navy-dark); transition: color .25s ease; }
#your-story .sf-item summary::-webkit-details-marker { display: none; }
#your-story .sf-item summary:hover, #your-story .sf-item summary:focus-visible, #your-story .sf-item[open] summary { color: var(--brass-dark); outline: none; }
#your-story .sf-plus { position: absolute; right: 2px; top: 50%; width: 14px; height: 14px; margin-top: -7px; transition: transform .35s ease; }
#your-story .sf-plus::before, #your-story .sf-plus::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 1.5px; background: var(--brass); }
#your-story .sf-plus::after { transform: rotate(90deg); transition: transform .35s ease; }
#your-story .sf-item summary:hover .sf-plus { transform: rotate(90deg); }
#your-story .sf-item[open] .sf-plus { transform: rotate(45deg); }
#your-story .sf-a { padding: 0 6px 18px 0; }
#your-story .sf-a p { margin: 0 0 12px; font-family: var(--label-font); font-weight: 300; font-size: .93rem; line-height: 1.6; color: var(--ink-soft); }
#your-story .sf-a .circle-link { font-size: .74rem; }
#your-story .sf-foot { display: flex; justify-content: center; margin-top: clamp(32px, 5vh, 48px); }

@media (max-width: 1100px) {
  #your-story .ys-card { flex-basis: calc((100% - 44px) / 3); }
  #your-story .sf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 30px; }
}
@media (max-width: 700px) {
  #your-story .ys-grid { gap: 12px; padding: 0 2px; }
  #your-story .ys-card { flex-basis: calc((100% - 12px) / 2); aspect-ratio: 4 / 5; }
  #your-story .ys-card:last-child { flex-basis: 100%; aspect-ratio: 16 / 9; }
  #your-story .ys-t { left: 14px; right: 12px; bottom: 40px; font-size: 1.12rem; }
  #your-story .ys-l { left: 14px; right: 12px; bottom: 14px; font-size: .74rem; }
  #your-story .sound-familiar { padding-left: 0; padding-right: 0; }
  #your-story .sf-grid { grid-template-columns: 1fr; gap: 26px; padding: 26px 20px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  #your-story .ys-card, #your-story .ys-ph img { transition: none; }
}
/* title and line stack from the foot of the card, so a two-line title never runs into the line below */
#your-story .ys-card { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 0 20px 22px 22px; }
#your-story .ys-t, #your-story .ys-l { position: static; }
@media (max-width: 700px) { #your-story .ys-card { gap: 6px; padding: 0 12px 14px 14px; } #your-story .ys-l { line-height: 1.3; } }

/* ---------- Round 6 (Oct 28): eight cards in a 4 x 2 grid; the chosen story opens a drawer right under its row ---------- */
#your-story .ys-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; max-width: 1260px; }
#your-story .ys-card { flex: none; width: auto; }
#your-story .ys-card:last-child { aspect-ratio: 3 / 3.7; }
#your-story .ys-grid.has-open .ys-card:not(.on) { opacity: .55; filter: saturate(.7); }
#your-story .ys-grid .ys-card { transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease, opacity .35s ease, filter .35s ease; }
#your-story .ys-card.on::before { content: ""; position: absolute; left: 50%; bottom: -1px; width: 16px; height: 16px; margin-left: -8px; z-index: 2;
  background: #FFFFFF; transform: translateY(50%) rotate(45deg); box-shadow: -1px -1px 0 rgba(21,48,79,.12); }
#your-story .ys-drawer { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .42s cubic-bezier(.2,.7,.2,1); margin: -8px 0 4px; }
#your-story .ys-drawer[hidden] { display: none; }
#your-story .ys-drawer.open { grid-template-rows: 1fr; }
#your-story .ys-drawer-in { overflow: hidden; min-height: 0; }
#your-story .ys-drawer-body { position: relative; display: grid; grid-template-columns: 2fr 3fr; gap: 48px; padding: 40px 48px 42px; background: #FFFFFF;
  border: 1px solid rgba(21,48,79,.12); border-radius: 6px; box-shadow: 0 18px 44px rgba(8,27,51,.08); transition: opacity .2s ease; }
#your-story .ys-drawer-body.fading { opacity: 0; }
#your-story .ys-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 1px solid rgba(21,48,79,.2); border-radius: 50%; background: #FFFFFF; cursor: pointer; }
#your-story .ys-close span::before, #your-story .ys-close span::after { content: ""; position: absolute; left: 12px; top: 19px; width: 15px; height: 1.5px; background: var(--navy-dark); transform: rotate(45deg); }
#your-story .ys-close span::after { transform: rotate(-45deg); }
#your-story .ys-close:hover { border-color: var(--brass); }
#your-story .yd-k { margin: 0 0 12px; font-family: var(--label-font); font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-dark); }
#your-story .yd-h { margin: 0 0 14px; font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 2.2vw, 2.15rem); line-height: 1.12; color: var(--navy-dark); }
#your-story .yd-h em { color: var(--brass-dark); }
#your-story .yd-line { margin: 0 0 26px; font-family: var(--label-font); font-weight: 300; font-size: 1rem; line-height: 1.55; color: var(--ink-soft); }
#your-story .yd-list { list-style: none; margin: 0; padding: 0; }
#your-story .yd-list li { display: grid; grid-template-columns: 44px 1fr; gap: 0 10px; padding: 16px 0; border-top: 1px solid rgba(21,48,79,.1); }
#your-story .yd-list li:first-child { border-top: 0; padding-top: 4px; }
#your-story .yd-n { font-family: var(--label-font); font-size: .78rem; font-weight: 500; letter-spacing: .16em; color: var(--brass); padding-top: 5px; }
#your-story .yd-q { margin: 0 0 6px; font-family: var(--serif); font-size: 1.24rem; font-weight: 500; line-height: 1.2; color: var(--navy-dark); }
#your-story .yd-a { margin: 0 0 10px; font-family: var(--label-font); font-weight: 300; font-size: .93rem; line-height: 1.6; color: var(--ink-soft); }
#your-story .yd-list .circle-link { font-size: .72rem; }
@media (max-width: 1100px) { #your-story .ys-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } #your-story .ys-drawer-body { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 700px) {
  #your-story .ys-grid { gap: 12px; }
  #your-story .ys-card, #your-story .ys-card:last-child { aspect-ratio: 4 / 5; flex-basis: auto; }
  #your-story .ys-drawer-body { padding: 54px 20px 24px; }
}
@media (prefers-reduced-motion: reduce) { #your-story .ys-drawer, #your-story .ys-drawer-body { transition: none; } }

/* ---------- Why a broker: navy band after Meet Ariane ---------- */
.broker-band { background: var(--navy-dark); color: #FFFFFF; }
.broker-band .bk-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.broker-band .bk-k { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; font-family: var(--label-font); font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--champagne); }
.broker-band .bk-k .ab-rule { width: 44px; height: 1px; background: var(--champagne); display: inline-block; }
.broker-band .split-headline { color: #FFFFFF; margin: 0 0 18px; }
.broker-band .split-headline em { color: var(--champagne); }
.broker-band .bk-lede { margin: 0 0 28px; font-family: var(--label-font); font-weight: 300; font-size: 1.08rem; line-height: 1.65; color: rgba(255,255,255,.86); }
.broker-band .submit-circle { color: #FFFFFF; }
.broker-band .bk-points { list-style: none; margin: 0; padding: 0; }
.broker-band .bk-points li { position: relative; padding: 16px 0 16px 34px; border-top: 1px solid rgba(255,255,255,.14); font-family: var(--label-font); font-weight: 300;
  font-size: .98rem; line-height: 1.55; color: rgba(255,255,255,.8); }
.broker-band .bk-points li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.broker-band .bk-points li::before { content: ""; position: absolute; left: 4px; top: 25px; width: 14px; height: 1px; background: var(--champagne); }
.broker-band .bk-points strong { display: block; margin-bottom: 2px; font-family: var(--serif); font-size: 1.24rem; font-weight: 500; color: #FFFFFF; }
.broker-band .bk-fine { margin: 34px 0 0; font-family: var(--label-font); font-size: .74rem; color: rgba(255,255,255,.55); }
@media (max-width: 900px) { .broker-band .bk-grid { grid-template-columns: 1fr; } }

/* ---------- Explore on your own: three link tiles ---------- */
.tools-band .tl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 1180px; margin: 0 auto; }
.tools-band .tl-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 30px 30px 84px; background: #FFFFFF; border: 1px solid rgba(21,48,79,.12);
  border-radius: 6px; text-decoration: none; color: var(--navy-dark); transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease, border-color .3s ease; }
.tools-band .tl-k { font-family: var(--label-font); font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-dark); }
.tools-band .tl-t { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; line-height: 1.1; }
.tools-band .tl-l { font-family: var(--label-font); font-weight: 300; font-size: .95rem; line-height: 1.55; color: var(--ink-soft); }
.tools-band .tl-card .sc-ring { position: absolute; left: 30px; bottom: 26px; }
.tools-band .tl-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(8,27,51,.12); border-color: var(--brass); }
@media (max-width: 900px) { .tools-band .tl-grid { grid-template-columns: 1fr; } }

/* ---------- From Today to Closing Day: two simple numbered tracks (no flipping) ---------- */
#process .pt-tracks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); max-width: 1180px; margin: 0 auto; }
#process .pt-track { background: #FFFFFF; border: 1px solid rgba(21,48,79,.1); border-radius: 6px; padding: 34px 36px 26px; }
#process .pt-track h3 { margin: 10px 0 10px; font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.15; color: var(--navy-dark); }
#process .pt-track > p { margin: 0 0 18px; font-family: var(--label-font); font-weight: 300; font-size: .95rem; line-height: 1.6; color: var(--ink-soft); }
#process .pt-steps { list-style: none; margin: 0; padding: 0; }
#process .pt-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 0 8px; padding: 14px 0; border-top: 1px solid rgba(21,48,79,.1); }
#process .pt-n { font-family: var(--label-font); font-size: .78rem; font-weight: 500; letter-spacing: .16em; color: var(--brass); padding-top: 4px; }
#process .pt-q { margin: 0 0 4px; font-family: var(--serif); font-size: 1.18rem; font-weight: 500; color: var(--navy-dark); }
#process .pt-a { margin: 0; font-family: var(--label-font); font-weight: 300; font-size: .9rem; line-height: 1.55; color: var(--ink-soft); }
@media (max-width: 900px) { #process .pt-tracks { grid-template-columns: 1fr; } #process .pt-track { padding: 26px 20px 18px; } }
#your-story .yd-line { display: none; }   /* the card already says it */
#your-story .yd-h { margin-bottom: 26px; }
.tools-band .tl-card .sc-ring { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--navy-dark); border-radius: 50%; color: var(--navy-dark); transition: background .3s ease, color .3s ease; }
.tools-band .tl-card .sc-arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.tools-band .tl-card:hover .sc-ring { background: var(--navy-dark); color: #FFFFFF; }
/* Why a Broker: an ombre from deep navy to blue with a faint champagne glow; each dash sits on its heading line */
.broker-band { position: relative; overflow: hidden;
  background: radial-gradient(ellipse 60% 70% at 88% 10%, rgba(201,169,110,.16), rgba(201,169,110,0) 70%),
              radial-gradient(ellipse 70% 80% at 0% 100%, rgba(40,78,128,.55), rgba(40,78,128,0) 70%),
              linear-gradient(135deg, #07152A 0%, #0D2340 45%, #1A3A63 100%); }
.broker-band .bk-points li::before { display: none; }
.broker-band .bk-points strong { position: relative; }
.broker-band .bk-points strong::before { content: ""; position: absolute; left: -30px; top: .62em; width: 14px; height: 1px; background: var(--champagne); }
/* Renovators & Builders: the Park City house sits low in its wide photo; enlarge it a touch and lift it so the house
   stands in the middle of the card instead of sliding off the bottom */
#your-story .ys-card[data-story="renovators"] .ys-ph img { position: relative; height: 140%; top: -40%; object-position: 50% 100%; }
