@import url('/brand.css');
@import url('/site-navigation.css');

:root {
  --ink:#1c2b29;
  --muted:#4e605b;
  --rule:#c9d2cc;
  --page:#f1f3ef;
  --sheet:#fff;
  font:16px/1.48 "Segoe UI",Arial,sans-serif;
  color:var(--ink);
  background:var(--page);
}
* {box-sizing:border-box}
body,h1,h2,h3,p,figure,dl,dd {margin:0}
button {font:inherit;color:inherit}
a {color:inherit;text-underline-offset:.2em}
button:focus-visible,a:focus-visible {outline:3px solid #1d72ad;outline-offset:3px}
.frame {width:min(1320px,calc(100% - clamp(32px,8vw,120px)));margin-inline:auto}
.assistive,.skip-link:not(:focus) {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip-link:focus {position:absolute;z-index:4;background:white;padding:10px 16px}
.market a,footer a {text-decoration:none}
.market a:hover,footer a:hover {text-decoration:underline}
.introduction {display:grid;grid-template-columns:1.2fr 1fr;align-items:center;gap:8%;padding:clamp(28px,3.7vw,54px) 0;border-bottom:1px solid var(--rule)}
h1,.case-sheet h2 {font-family:Georgia,"Times New Roman",serif;font-weight:normal;letter-spacing:-.045em;text-wrap:balance}
h1 {font-size:clamp(34px,3.65vw,50px);line-height:1.06;max-width:25ch}
.introduction p {max-width:49ch;color:var(--muted);font-size:clamp(16px,1.2vw,18px);line-height:1.55}
.workspace {display:grid;grid-template-columns:clamp(220px,19vw,264px) minmax(0,1fr);align-items:start;gap:clamp(20px,2.4vw,36px);padding:clamp(20px,2.5vw,36px) 0}
.chooser h2 {font-size:clamp(19px,1.6vw,23px);line-height:1.25;letter-spacing:-.035em;font-weight:650;margin:0 0 17px}
.chooser-buttons,.plain-options {display:grid;gap:9px}
.chooser button {--brand:#ee4731;appearance:none;position:relative;display:grid;justify-items:center;align-content:center;gap:8px;min-height:101px;width:100%;padding:13px 24px;border:1px solid #c4cec8;border-radius:5px;background:white;cursor:pointer}
.chooser button[data-industry="lender"] {--brand:#3986bf}
.chooser button[data-industry="insurance"] {--brand:#b57417}
.chooser button:hover {border-color:#637a70}
.chooser button[aria-pressed="true"] {border-color:#354841;box-shadow:inset 4px 0 var(--brand)}
.chooser button[aria-pressed="true"]::after {content:"";position:absolute;width:7px;height:12px;right:15px;top:13px;border:solid #334b40;border-width:0 2px 2px 0;transform:rotate(45deg)}
.chooser button img {display:block;width:min(100%,178px);height:auto}
.chooser button span {color:#495750;font-size:14px;line-height:1.25}
.case {container-type:inline-size;min-width:0;border:1px solid #bac6be;border-radius:7px;background:var(--sheet);overflow:hidden}
.case-spread {display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.12fr);grid-template-areas:"media sheet";align-items:start;gap:clamp(18px,1.8vw,26px);padding:clamp(14px,1.4vw,21px)}
.case-photo {grid-area:media;position:relative;background:#28372f;overflow:hidden;min-width:0;border-radius:4px;height:clamp(300px,24vw,350px)}
.case-photo img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:52% 50%}
.case-photo figcaption {position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;padding:16px;color:#fff}
.property-history {display:flex;position:relative;isolation:isolate;list-style:none;padding:0;margin:0}
.property-history::before {content:"";position:absolute;inset:-44px -16px -16px;z-index:-1;background:linear-gradient(transparent,#14201ce8 48%,#14201c)}
.property-history li {position:relative;flex:1;min-width:0;padding:11px 3px 0 0;border-top:1px solid #c4d0c5}
.property-history li::before {content:"";position:absolute;top:-4px;left:0;width:7px;height:7px;border-radius:50%;background:#f1f6ef}
.property-history li:last-child::before {background:var(--accent)}
.property-history li:last-child {border-color:transparent}
.property-history span,.property-history strong {display:block}
.property-history span {font-size:12px;line-height:1.25}
.property-history strong {margin-top:2px;font-size:14px;font-weight:650}
.case-sheet {grid-area:sheet;min-width:0;display:grid;grid-template-areas:"identity" "story" "facts" "actions" "message";align-content:start}
.case-identity {grid-area:identity}
.case-story {grid-area:story}
.case-facts {grid-area:facts}
.case-actions {grid-area:actions}
[data-case-film-message] {grid-area:message;margin-top:8px;color:var(--muted);font-size:14px}
.case-photo video {position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#121919}
.case[data-view="film"] .case-photo {height:auto;aspect-ratio:16/9}
.case-photo video:focus-visible {outline:3px solid #76b7ea;outline-offset:-3px}
.case[data-view="film"] .case-photo>img,.case[data-view="film"] .case-photo figcaption,.case[data-view="film"] .watch-film {display:none}
.close-film {position:absolute;top:8px;right:8px;min-height:36px;padding:4px 11px;border:1px solid #a3b2aa;border-radius:4px;background:#15221eed;color:white;cursor:pointer;font-size:14px}
.film-credits {display:none;padding:6px clamp(15px,1.8vw,27px) 10px;color:var(--muted);font-size:13px}
.case[data-view="film"] .film-credits {display:block}
.film-credits summary {cursor:pointer;width:fit-content}
.film-credits p {margin-top:4px}
.case-meta {display:flex;align-items:center;flex-wrap:wrap;gap:7px 10px;color:var(--muted);font-weight:600;font-size:13px}
.file-tab {display:inline-flex;align-items:center;gap:6px;background:var(--tint,#fdede9);color:var(--accent-text,#a83325);padding:4px 9px;border-radius:3px}
.file-tab::before {content:"";width:6px;height:8px;border:1px solid currentColor;border-top-width:2px}
.case-sheet h2 {margin:13px 0 8px;font-size:clamp(30px,2.7vw,42px);line-height:1.08}
.case-story {font-size:16px;line-height:1.5;color:#40524a;max-width:54ch}
.case-facts {margin:17px 0 19px;border-top:1px solid var(--rule)}
.case-facts div {display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);align-items:baseline;gap:10px;padding:7px 0;border-bottom:1px solid #e0e5e1;font-size:14px}
.case-facts dt {color:var(--muted)}
.case-facts dd {font-weight:600}
.case-actions {display:flex;gap:8px 16px;align-items:center;flex-wrap:wrap}
.case-actions a {display:inline-flex;align-items:center;gap:8px;min-height:43px;font-size:14px;font-weight:600}
.open-lead {padding:9px 14px;border-radius:4px;background:#213b34;color:white;text-decoration:none}
.open-lead::after {content:"→";font-size:17px;line-height:1}
.open-lead:hover {background:#304d42}
.watch-film {position:absolute;top:12px;left:12px;display:inline-flex;align-items:center;gap:8px;min-height:44px;max-width:calc(100% - 24px);padding:6px 12px 6px 7px;border:1px solid #ffffff80;border-radius:5px;background:#182125f5;color:white;font-size:14px;font-weight:600;line-height:1.25;text-decoration:none}
.watch-film:hover {background:#0e171a;border-color:white}
.watch-film:focus-visible {outline:3px solid white;outline-offset:2px;box-shadow:0 0 0 6px #182125}
.play-icon {display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:50%;background:var(--accent);color:#14181d}
.play-icon::before {content:"";width:0;height:0;margin-left:2px;border-block:5px solid transparent;border-left:8px solid currentColor}
.case-index {display:flex;align-items:center;flex-wrap:wrap;gap:0 24px;margin-inline:clamp(14px,1.4vw,21px);padding-block:8px 14px;border-top:1px solid var(--rule)}
.case-index h3 {font:400 20px/1.2 Georgia,"Times New Roman",serif;letter-spacing:-.025em}
.case-index nav {display:flex;flex-wrap:wrap;column-gap:20px}
.case-index a {display:inline-flex;align-items:center;min-height:44px;color:var(--ink);font-size:15px;font-weight:600;text-decoration:underline;text-decoration-color:#85978e;text-underline-offset:4px}
.case-index a:is(:hover,:focus-visible) {text-decoration-color:currentColor;text-decoration-thickness:2px}
.case-index .record-note {flex-basis:100%}
.record-note {color:var(--muted);font-size:12px;line-height:1.4}
.market a {display:inline-flex;align-items:center;min-height:38px;font-size:14px}
.lead-origins {display:grid;grid-template-columns:minmax(190px,.85fr) 1fr 1fr;gap:clamp(20px,4vw,60px);padding:clamp(21px,2.8vw,38px) 0;border-top:1px solid var(--rule)}
.lead-origins h2 {font:normal clamp(23px,2vw,29px)/1.15 Georgia,"Times New Roman",serif;letter-spacing:-.035em}
.lead-origins h3 {font-size:16px;font-weight:650;margin:0 0 6px}
.lead-origins p {font-size:15px;line-height:1.5;color:var(--muted);max-width:50ch}
.origins-heading a {display:inline-flex;align-items:center;min-height:40px;font-size:14px}
.market {display:flex;align-items:center;gap:clamp(14px,2.5vw,36px);padding:21px 0;border-block:1px solid var(--rule)}
.market img {width:117px;height:auto}
.market p {color:var(--muted);flex:1;font-size:14px}
.market strong {display:block;color:var(--ink);font-size:16px;font-weight:600}
.market a {font-weight:600;gap:6px;text-decoration:underline}
footer {display:flex;flex-wrap:wrap;gap:8px 18px;padding-block:20px;color:var(--muted);font-size:13px}
footer span {margin-right:auto}
@media(max-width:1050px) {
  .workspace {grid-template-columns:190px minmax(0,1fr);gap:18px}
  .chooser button img {width:min(100%,146px)}
  .case-spread {grid-template-columns:minmax(0,.62fr) minmax(0,1.12fr)}
}
@media(max-width:820px) {
  .workspace {display:block}.chooser-buttons {grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:15px}
  .chooser h2 {margin-bottom:10px}.chooser button {min-height:79px;padding:12px 17px}
  .chooser button[aria-pressed="true"] {box-shadow:inset 0 -3px var(--brand)}
  .chooser button[aria-pressed="true"]::after {right:6px;top:6px;width:4px;height:8px}
}
@media(min-width:591px) {
  .case[data-view="film"] .case-spread {grid-template-columns:minmax(0,1.7fr) minmax(0,1fr)}
  @container (max-width:680px) {
    .case[data-view="film"] .case-spread {grid-template-columns:minmax(0,1fr);grid-template-areas:"identity" "actions" "message" "media" "story" "facts";gap:0}
    .case[data-view="film"] .case-sheet {display:contents}
    .case[data-view="film"] .case-photo {margin:12px 0}
  }
}
@media(max-width:590px) {
  .frame {width:calc(100% - 32px)}
  .introduction {display:block;padding:21px 0 17px}
  h1 {font-size:32px;max-width:22ch}
  .introduction p {font-size:15px;margin-top:10px;line-height:1.4}
  .workspace {padding:15px 0 19px}
  .chooser-buttons {grid-template-columns:1fr;gap:4px;margin-bottom:12px}
  .chooser button {grid-template-columns:minmax(0,1.48fr) minmax(0,1fr);align-items:center;gap:6px;padding:7px 17px 7px 10px;min-height:46px}
  .chooser button img {width:min(100%,141px)}
  .chooser button span {font-size:12px;justify-self:start}
  .chooser button[aria-pressed="true"] {box-shadow:inset 3px 0 var(--brand)}
  .chooser button[aria-pressed="true"]::after {top:calc(50% - 5px);right:9px}
  .case-spread {grid-template-columns:minmax(0,1fr);grid-template-areas:"identity" "actions" "message" "media" "story" "facts";padding:15px 16px 12px;gap:0}
  .case-photo {width:100%;height:auto;aspect-ratio:16/9;margin:12px 0}
  .case[data-view="film"] .case-photo {width:calc(100% + 32px);margin-inline:-16px;border-radius:0}
  .case-photo img {object-position:50% 52%}
  .case-photo figcaption {padding:9px 12px}
  .case-sheet {display:contents}
  .case-sheet h2 {font-size:32px;margin:8px 0}
  .case-actions {gap:4px 14px}
  .case-actions a,.case-index a {min-height:44px}
  .case-facts {margin:12px 0 0}
  .close-film {min-height:44px}
  .lead-origins {grid-template-columns:1fr;gap:15px}
  .origins-heading {display:flex;align-items:baseline;flex-wrap:wrap;gap:0 18px}
  .case-index {display:block;margin-inline:16px;padding-block:14px}
  .case-index nav {column-gap:16px}
  .market {display:grid;grid-template-columns:1fr;gap:7px;padding:16px 0}
  .market a {min-height:40px;width:fit-content}
}
@media(max-width:355px) {
  .chooser button {grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
}
