/* Home page (2026-11-26): the property is the hero, and it changes as the page scrolls. One sample loan is told
   in seven stops on the fictional Bayview Commerce Park; then the federal sources and the close.

   Without JavaScript the seven stops are plain sections, each with its picture and its words. With it
   (page-home.js adds .is-live) the pictures move into one view that stays in place while the words scroll past
   with the page, and the camera glides from one stop's picture to the next:
   - data-mode="split" (1001 px and wider, 560 px and taller): the words scroll on the left, the property stays on
     the right for the full height of the window;
   - data-mode="flow" (phones, portrait tablets, short windows): nothing is pinned; see "Phones and portrait tablets".
   The six property pictures are crops of one photograph, so moving between them is a true zoom and pan, sharp
   at every point. One thing plays on its own: the opening's aerial loop, with a Pause button on the picture.
   With reduced motion the pictures change without moving and there is no footage. */

/* ---------- The story's pictures ----------
   Every stop's picture is 780 x 864. One canvas rule crops them all the same way, and what is drawn on a picture
   (labels, the flood layer) is placed in the picture's own space, in percent. --fx and --fy are the point kept in
   the middle. The script moves a canvas with --a (zoom), --tx and --ty (shift, in parts of its own size). */
.st { position: relative; background: var(--warm); color: var(--navy); --iw: 780; --ih: 864; --fx: .5; --fy: .46; --st-top: 73px; }
.st-pic { position: relative; overflow: hidden; aspect-ratio: 780 / 864; background: #2d3b2f; }
.st-crop { position: absolute; inset: 0; overflow: hidden; container-type: size; }
.st-cv { position: absolute; inset: 0; }
.st-cv > img, .st-cv video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.st-tag, .st-pt, .st-draw, .st-cv > .st-layer { display: none; }
@supports (width: 1cqw) {
  .st-cv {
    --s: max(100cqw / var(--iw), 100cqh / var(--ih));
    inset: auto;
    width: calc(var(--s) * var(--iw));
    height: calc(var(--s) * var(--ih));
    left: clamp(calc(100cqw - var(--s) * var(--iw)), calc(50cqw - var(--s) * var(--iw) * var(--fx)), 0px);
    top: clamp(calc(100cqh - var(--s) * var(--ih)), calc(50cqh - var(--s) * var(--ih) * var(--fy)), 0px);
    transform-origin: 0 0;
    transform: translate(calc(var(--tx, 0) * 100%), calc(var(--ty, 0) * 100%)) scale(var(--a, 1));
  }
  .st-cv > img, .st-cv video { object-fit: fill; }
  .st-tag, .st-pt, .st-cv > .st-layer { display: block; }
  .st-draw { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
}
.st-tag, .st-pt { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); }
.st-tag, .st-pt, .st-draw { opacity: var(--ov, 1); }
.st:is(.is-live, .is-flow) :is(.st-tag, .st-pt, .st-draw, .st-over) { transition: opacity .26s ease; }
/* --nx: how far page-home.js slides a label sideways to keep it clear of the edge of the part of the picture that shows.
   A label never grows wider than that part less its margins (very large text wraps it to two lines), allowing for
   the zoom it is drawn at (--tag-max, measured by page-home.js; before that, the picture's --a). */
.st-tag { translate: var(--nx, 0px) 0; width: max-content; max-width: var(--tag-max, calc((100cqw - 28px) / var(--a, 1))); white-space: normal; text-wrap: balance; transform: translate(-50%, -100%); margin-top: -10px; padding: 7px 14px; border-radius: 999px; background: rgba(10, 28, 46, .92); color: var(--white); font-size: 15px; font-weight: 600; line-height: 1.2; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
/* The pointer under a label stays over its building when the label is slid in from the edge. */
.st-tag::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 10px; margin-left: calc(-1px - var(--nx, 0px)); background: var(--white); }
.st-tag.is-out { background: rgba(255, 255, 255, .95); color: var(--navy); }
.st-tag.is-gap { background: var(--alert); }
.st-tag.is-zone { background: rgba(46, 110, 158, .94); }
.st-tag.is-left { transform: translate(0, -50%); margin-top: 0; }
.st-tag.is-left::after { content: none; }
/* A label centred on its point, with no pointer (the flood zone's). */
.st-tag.is-mid { transform: translate(-50%, -50%); margin-top: 0; }
.st-tag.is-mid::after { content: none; }
/* The numbered badge: the same on a building in the picture and at the start of its row in the list under it. */
.st-n { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; margin-right: 10px; border-radius: 50%; background: var(--sky); color: var(--white); font-size: 15px; font-weight: 700; line-height: 1; font-style: normal; vertical-align: -5px; }
.st-n.is-out { background: var(--slate); }
.st-tag { display: inline-flex; align-items: center; }
.st-tag .st-n { width: 24px; height: 24px; margin: -2px 8px -2px -6px; background: var(--white); color: var(--navy); }
.st-tag.is-out .st-n { background: var(--slate); color: var(--white); }
.st-tag.is-gap .st-n { color: var(--alert); }
.st-tag.is-pin { margin-top: -34px; padding: 8px 16px; font-size: 16px; }
.st-tag.is-pin::after { height: 34px; }
.st-pt { width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 2px rgba(180, 35, 24, .9); }
.st-pt.is-pin { width: 14px; height: 14px; margin: -7px 0 0 -7px; box-shadow: 0 0 0 2.5px var(--navy-deep); }
.st-draw line { stroke: var(--white); stroke-width: 2; vector-effect: non-scaling-stroke; }
.st-sm { display: none; }

/* ---------- What is laid over a picture ----------
   The loan files, the policy page and Cali sit over the picture (.st-over) and don't move with its camera.
   Live, an overlay shows only while the camera rests on its stop (--p is 1 there) and plays in order as the page
   scrolls on through the stop's own room (--u runs from 0 to 1), so nothing from one stop is still on screen
   when the next picture arrives. Without the script, or with reduced motion (.is-calm), everything is simply
   shown: every variable falls back to its finished value. */
.st-over { position: absolute; inset: 0; pointer-events: none; container-type: size; }
.st:is(.is-live, .is-flow) .st-over { opacity: var(--ov, 0); }
.st-veil { position: absolute; inset: 0; background: rgba(10, 28, 46, .68); }

/* A document page, drawn in type so it stays sharp at any size and its values can be marked. Everything inside
   is sized from the page's width (--dw). The four pages are a bank's approval, an appraiser's summary, the
   federal determination form and an insurer's declarations: real layouts, fictional companies (the same ones
   the sample review uses), fictional figures. */
.st-doc { position: relative; width: var(--dw); }
.st-page { position: relative; box-sizing: border-box; width: 100%; aspect-ratio: 85 / 110; overflow: hidden; padding: 4em 4.2em 3.4em; border-radius: .25em; background: #FDFCF9; color: #1E2227; font: 400 calc(var(--dw) * .0205) / 1.36 Arial, Helvetica, sans-serif; text-align: left; box-shadow: 0 1.6em 4em rgba(0, 0, 0, .5); }
.st-page p, .st-page dl, .st-page dd, .st-page ol { margin: 0; }
.st-page b, .st-page strong { font-weight: 700; }
.dp-lh { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1em; align-items: center; padding-bottom: 1em; border-bottom: .22em solid var(--dp-ink, #1F3A5F); }
.dp-mark { width: 3.4em; height: 3.4em; }
.dp-co b { display: block; font: 700 1.62em / 1.1 Georgia, "Times New Roman", serif; color: var(--dp-ink, #1F3A5F); }
.dp-co span { display: block; margin-top: .35em; font-size: .88em; color: #4E5661; }
.dp-ad { text-align: right; font-size: .76em; line-height: 1.45; color: #4E5661; }
.dp-t { margin-top: 1.5em !important; text-align: center; font-weight: 700; font-size: 1.2em; letter-spacing: .06em; text-transform: uppercase; }
.dp-s { margin-top: .4em !important; text-align: center; font-size: .84em; color: #4E5661; }
.dp-tb { margin-top: 1.2em !important; border: .08em solid #8D96A3; }
.dp-tb > div { position: relative; display: grid; grid-template-columns: 21% minmax(0, 1fr); border-top: .08em solid #8D96A3; }
.dp-tb > div:first-child { border-top: 0; }
.dp-tb dt { padding: .7em .8em; background: #E9EDF3; font-weight: 700; font-size: .82em; letter-spacing: .05em; text-transform: uppercase; }
.dp-tb dd { padding: .6em .9em; font: 400 1em / 1.36 Georgia, "Times New Roman", serif; }
.dp-ol { margin-top: 1.1em !important; padding-left: 1.6em; font: 400 .9em / 1.5 Georgia, "Times New Roman", serif; }
.dp-sg { position: relative; display: flex; gap: 3em; align-items: flex-end; margin-top: 1.3em; }
.dp-sg p { min-width: 25%; }
.dp-sg i { display: block; padding: 0 .4em .05em; border-bottom: .08em solid #3A4048; font: italic 400 2em / 1.1 "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive; color: #1F2D4A; }
.dp-sg span { display: block; margin-top: .4em; font-size: .78em; line-height: 1.4; color: #4E5661; }
.dp-stamp { position: absolute; right: .6em; top: -.4em; padding: .45em 1em .4em; border: .18em solid #B8443A; border-radius: .3em; color: #B8443A; font: 700 1.45em / 1.1 Arial, Helvetica, sans-serif; letter-spacing: .12em; text-transform: uppercase; text-align: center; transform: rotate(-8deg); opacity: .88; }
.dp-stamp small { display: block; margin-top: .3em; font-size: .42em; letter-spacing: .08em; }
.dp-ft { position: absolute; left: 4.2em; right: 4.2em; bottom: 1.8em; display: flex; justify-content: space-between; padding-top: .6em; border-top: .06em solid #B5BBC4; font-size: .72em; color: #5B636E; }
.dp-wm { position: absolute; left: 50%; top: 54%; transform: translate(-50%, -50%) rotate(-32deg); font: 700 9em / 1 Arial, Helvetica, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: rgba(30, 34, 39, .045); }
.dp-fine { margin-top: .9em !important; font-size: .8em; line-height: 1.5; color: #4E5661; }
/* The appraiser's page. */
.dp-appr { --dp-ink: #264D3B; }
.dp-appr .dp-co b { font-size: 1.46em; }
.dp-appr .dp-t { text-align: left; }
.dp-kv { margin-top: .8em !important; }
.dp-kv > div { display: grid; grid-template-columns: 34% minmax(0, 1fr); padding: .48em .6em; border-bottom: .06em solid #D5D9DE; }
.dp-kv dt { color: #4E5661; }
.dp-kv dd { font-weight: 700; }
.dp-bar { margin-top: 1.2em !important; padding: .55em .8em; background: var(--dp-ink, #264D3B); color: #FFFFFF; font-weight: 700; font-size: .86em; letter-spacing: .1em; text-transform: uppercase; }
.dp-val > div { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1em; padding: .6em .8em; border: .06em solid #C9CED5; border-top: 0; }
.dp-val dd { font-weight: 700; text-align: right; }
.dp-val .is-sum { background: #EEF2EF; }
.dp-val .is-sum dt { font-weight: 700; }
/* The federal form: black section bars, ruled cells, typed entries. */
.dp-form { padding: 3em 3.6em 2.4em; font-size: calc(var(--dw) * .0176); }
.dp-fh { display: grid; grid-template-columns: 1fr 1fr; gap: .25em 1em; font-size: .8em; color: #333333; }
.dp-fh span + span { text-align: right; }
.dp-fh b { grid-column: 1 / -1; margin-top: .2em; text-align: center; font-size: 1.85em; letter-spacing: .02em; text-transform: uppercase; color: #111111; }
.dp-fh small { grid-column: 1 / -1; text-align: center; font-size: 1em; font-weight: 700; }
.dp-sec { margin-top: .8em !important; padding: .45em .7em; background: #141414; color: #FFFFFF; font-weight: 700; font-size: .82em; letter-spacing: .05em; text-transform: uppercase; }
.dp-cells { display: grid; grid-template-columns: var(--c); border: solid #141414; border-width: 0 .1em .1em 0; }
.dp-cells > p { position: relative; padding: .45em .7em .5em; border: solid #141414; border-width: .1em 0 0 .1em; font: 700 1em / 1.3 "Courier New", Courier, monospace; }
.dp-cells > p > b { display: block; margin-bottom: .35em; font: 700 .6em / 1.2 Arial, Helvetica, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.dp-cells small { display: block; margin-top: .2em; font: 400 .72em / 1.3 Arial, Helvetica, sans-serif; color: #5B636E; }
.dp-form .dp-cells:not(.is-soft) > p:nth-child(-n + 4) { border-top-width: 0; }
.dp-form .dp-cells[style*="1fr 1fr"] > p:nth-child(n + 3) { border-top-width: .1em; }
.dp-line { position: relative; padding: .55em .8em; border: .1em solid #141414; border-top: 0; line-height: 1.6; }
.dp-line small { display: block; font-size: .8em; color: #5B636E; }
.dp-line.is-typed { font: 700 1.02em / 1.5 "Courier New", Courier, monospace; }
.dp-x { display: inline-block; width: .95em; height: .95em; margin-right: .3em; border: .1em solid #141414; vertical-align: -.14em; }
.dp-x.is-on { background: linear-gradient(45deg, transparent 43%, #141414 43% 57%, transparent 57%), linear-gradient(-45deg, transparent 43%, #141414 43% 57%, transparent 57%); }
/* The insurer's declarations. */
.dp-pol { --dp-ink: #1B5E96; }
.dp-pol .dp-co b { font-size: 1.34em; }
.dp-band { margin-top: 1.1em !important; padding: .6em .8em; background: #1B5E96; color: #FFFFFF; text-align: center; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.dp-cells.is-soft { margin-top: .9em; gap: .7em; border: 0; }
.dp-cells.is-soft > p { border: .06em solid #AEB7C2; font: 400 1em / 1.4 Arial, Helvetica, sans-serif; }
.dp-cells.is-soft > p > b { margin-bottom: .45em; color: #1B5E96; font-size: .7em; }
.dp-cells.is-head { gap: 0; }
.dp-cells.is-head > p + p { border-left: 0; }
.dp-cov { margin-top: .9em; border: .06em solid #AEB7C2; }
.dp-cov > p { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 19% 15% 15%; gap: .6em; align-items: center; padding: .6em .8em; border-top: .06em solid #D3D8DF; }
.dp-cov > p > span + span { text-align: right; }
.dp-cov .is-th { border-top: 0; background: #E6EEF6; color: #1B5E96; font-weight: 700; font-size: .76em; letter-spacing: .06em; text-transform: uppercase; }
.dp-cov .is-sum { background: #F3F5F8; font-weight: 700; }
/* A value the review read is marked as the scan passes it (--y is how far down the page it sits). */
.st-page .is-hit { --lit: clamp(0, calc((var(--scan, 1) - var(--y, 0)) * 18), 1); isolation: isolate; }
.st-page .is-hit::before { content: ""; position: absolute; z-index: -1; inset: 0; border: .14em solid #1D1D1D; border-radius: .2em; background: var(--highlight); opacity: var(--lit); }
.st-page .dp-tb .is-hit dt { background: none; }
.st-page .is-hit strong, .st-page .dp-tb .is-hit b, .st-page .dp-val .is-hit dd { font-size: 1.16em; }
.st-page .dp-cells .is-hit strong { font-size: 1.5em; line-height: 1; }
.st-page .is-alert strong { color: var(--alert); }
.st-scan { position: absolute; left: 0; right: 0; top: calc(var(--scan, 1) * 100%); height: .3em; background: var(--sky-light); box-shadow: 0 0 1.8em .6em rgba(156, 203, 235, .9); opacity: clamp(0, calc(min(var(--scan, 1), 1 - var(--scan, 1)) * 40), 1); }
/* A list tied to its picture (the flood-zone stop). Each row takes its turn, or is pointed at: the row is
   marked, and so are its building's roof and label on the picture, in the same yellow the documents use for a
   value the review has read. */
.st-roofs polygon { fill: var(--highlight); fill-opacity: 0; stroke: var(--highlight); stroke-width: 3.5; stroke-opacity: 0; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: fill-opacity .3s, stroke-opacity .3s; }
.st-roofs polygon.is-now { fill-opacity: .5; stroke-opacity: 1; }
.st:is(.is-live, .is-flow) .st-rows.is-linked > div { margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 10px; transition: background-color .25s, box-shadow .25s; }
.st:is(.is-live, .is-flow) .st-rows.is-linked > div.is-now { background: #FFF3C4; box-shadow: inset 0 0 0 2px #E3BF3C; }
.st-tag.is-now { background: var(--highlight); color: var(--navy); box-shadow: 0 0 0 3px var(--navy), 0 4px 14px rgba(0, 0, 0, .35); }
.st-tag.is-now .st-n { background: var(--navy); color: var(--white); }

/* The chip on a page: its name, ticked once read. Live on the loan-files stop it shows where the page stands
   instead (waiting, scanning, processed: page-home.js sets data-state and the word). */
.st-doc-cap { position: absolute; left: 50%; top: calc(100% - 14px); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 6px 14px; border-radius: 999px; background: var(--white); color: var(--navy); font-size: 15.5px; font-weight: 600; line-height: 1.2; white-space: nowrap; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.st-doc-cap b { font-weight: 600; }
.st-doc-st { display: none; }
.st-read { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--ok-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23276B4E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100%; opacity: clamp(0, calc((var(--scan, 1) - .9) * 12), 1); }

/* The four loan files. Plain: side by side, two by two. Live: the four pages are fanned out, each with its
   chip. One at a time a page comes forward (--lift, from page-home.js), is scanned from top to bottom with its
   values marked as the scan passes, and goes back to its place as processed. --fs is the size of a page in
   the fan against its size when forward. On a phone the page that is forward is kept wide enough to read, so
   it runs a little off the picture's lower edge on purpose; every marked value sits in the part that shows.
   In a short, wide picture the page is held to the picture's height for the same reason. */
.st-docs { position: absolute; inset: 0; --dw: min(40cqw, 34cqh); display: grid; grid-template-columns: repeat(2, var(--dw)); gap: 7cqh 6cqw; place-content: center; }
.st:is(.is-live, .is-flow):not(.is-calm) .st-docs { --dw: min(86cqw, 500px, calc((100cqh - max(7cqh, 62px)) * .96)); display: block; }
.st:is(.is-live, .is-flow):not(.is-calm) .st-docs .st-doc { --away: calc(1 - var(--lift, 0)); --s: calc(var(--fs, .45) + (1 - var(--fs, .45)) * var(--lift, 0)); position: absolute; left: 50%; top: max(7cqh, 62px); z-index: calc(1 + var(--up, 0) * 9); margin-left: calc(var(--dw) / -2); transform: translate(calc((var(--i) - 1.5) * 19cqw * var(--away)), calc((48cqh - max(7cqh, 62px) - var(--dw) * .647 + var(--j) * 1.6cqh) * var(--away))) rotate(calc((var(--i) - 1.5) * 5deg * var(--away))) scale(var(--s)); }
.st:is(.is-live, .is-flow):not(.is-calm) .st-docs .st-page::after { content: ""; position: absolute; inset: 0; background: #0A1C2E; opacity: calc(var(--busy, 0) * .42 * var(--away)); }
.st:is(.is-live, .is-flow):not(.is-calm) .st-docs .st-doc-cap { top: auto; bottom: calc(100% + 9px / var(--s)); transform: translateX(-50%) scale(calc(1 / var(--s))); transform-origin: 50% 100%; padding: 5px 12px 5px 8px; font-size: 14px; }
.st:is(.is-live, .is-flow):not(.is-calm) .st-docs .st-doc-cap b { display: none; }
.st:is(.is-live, .is-flow):not(.is-calm) .st-docs .st-doc-st { display: inline; }
.st:is(.is-live, .is-flow):not(.is-calm) .st-docs .st-read { opacity: 1; }
.st-doc[data-state="wait"] .st-doc-cap { background: rgba(255, 255, 255, .9); color: var(--ink-2); }
.st-doc[data-state="wait"] .st-read { background: none; box-shadow: inset 0 0 0 2px #98A1AC; }
.st-doc[data-state="scan"] .st-doc-cap { background: var(--navy); color: var(--white); }
.st-doc[data-state="scan"] .st-read { background: var(--sky-light); box-shadow: 0 0 0 3px rgba(156, 203, 235, .35); }
.st-doc[data-state="done"] .st-doc-cap { color: var(--ok); }

/* The policy page on its own stop. Plain: the page with its line marked. Live: the whole page, the scan marks
   the line, then the view goes in on that line (--zmax and --oy come from page-home.js) and the rest dims. */
.st-proof { position: absolute; inset: 0; --dw: min(72cqw, 58cqh); display: grid; place-items: center; }
.st:is(.is-live, .is-flow):not(.is-calm) .st-proof { --dw: min(50cqw, 44cqh); }
.st:is(.is-live, .is-flow):not(.is-calm) .st-proof .st-doc { --scan: clamp(0, calc((var(--u, 1) - .05) / .33), 1); --zm: clamp(0, calc((var(--u, 1) - .46) / .4), 1); transform: scale(calc(1 + var(--zm) * (var(--zmax, 1.8) - 1))); transform-origin: 50% var(--oy, 50%); }
.st-proof .st-page > *:not(.dp-cov):not(.st-scan), .st-proof .dp-cov > p:not(.is-key), .st-proof .st-doc-cap { opacity: calc(1 - var(--zm, 0) * .66); }
.st-proof .dp-wm { opacity: 1 !important; }

/* Cali, laid over the property: drawn as the website's own chat window (public/cali-chat.css), so the two look the
   same. Over the picture on a phone or a tablet; on a laptop, where the picture holds beside the words, exactly where
   the real chat opens (above the "Ask Cali" button), and gone while the real one is open, so two never show at once. */
.st-chat { position: absolute; right: 4%; bottom: 5%; display: flex; flex-direction: column; width: min(420px, 92%); max-height: 92%; border-radius: 22px; overflow: hidden;
  background: var(--white); color: var(--navy); box-shadow: 0 0 0 1px rgba(156, 203, 235, .9), 0 0 40px 4px rgba(156, 203, 235, .45), 0 28px 70px -10px rgba(10, 28, 46, .55);
  transition: opacity .2s ease, visibility .2s; }
/* The same height as the real one (cali-chat.css): from the screen's height, clear of the menu bar. */
.st.is-live[data-mode="split"] .st-chat { right: 20px; bottom: 92px; width: min(420px, calc(100% - 40px)); height: min(620px, calc(100vh - 186px), calc(100% - 104px)); max-height: none; }
html:not(.has-cali) .st.is-live[data-mode="split"] .st-chat { bottom: 20px; height: min(620px, calc(100vh - 114px), calc(100% - 32px)); }
html.cw-open .st-chat { opacity: 0; visibility: hidden; }
.st-chat p { margin: 0; }
.st-chat-h { flex: none; display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; border-bottom: 1px solid var(--line); }
.st-chat-me { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 2px var(--sky-light), 0 0 16px 2px rgba(156, 203, 235, .85); }
.st-chat-me img { width: 26px; height: auto; }
.st-chat-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.st-chat-who b { font-size: 19px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.st-chat-who span { margin-top: 1px; font-size: 14px; color: var(--ink-3); }
.st-chat-x { flex: none; display: grid; place-items: center; width: 44px; height: 44px; }
.st-chat-x svg, .st-chat-box svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.st-chat-log { flex: 1; min-height: 0; overflow: hidden; padding: 16px 16px 8px; }
.st-chat-q, .st-chat-a, .st-chat-src { --o: clamp(0, calc((var(--u, 1) - var(--at)) * 9), 1); opacity: var(--o); max-height: calc(var(--o) * 16em); overflow: hidden; }
/* Between the question and the answer Cali thinks: her wave turning beside three bobbing dots, and the wave in the
   heading turns too. --think is 1 for that stretch of the play, 0 before and after. */
.st-chat { --think: clamp(0, calc(min(var(--u, 1) - .2, .55 - var(--u, 1)) * 14), 1); }
.st-chat-t { display: flex; align-items: center; gap: 6px; width: fit-content; max-height: calc(var(--think) * 3.4em); margin-top: calc(var(--think) * 12px) !important; padding: calc(var(--think) * 8px) 15px calc(var(--think) * 8px) 9px; overflow: hidden; border-radius: 18px 18px 18px 5px; background: var(--sky-wash); opacity: var(--think); }
.st-chat-tme { flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin-right: 4px; border-radius: 50%; background: var(--white); }
.st-chat-tme img { width: 16px; height: auto; }
/* The three dots only (direct children of the thinking line). */
.st-chat-t > i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); animation: st-think 1.1s ease-in-out infinite; }
.st-chat-t > i:nth-of-type(2) { animation-delay: .16s; }
.st-chat-t > i:nth-of-type(3) { animation-delay: .32s; }
/* With reduced motion the heading's ring shows while she thinks; otherwise her wave turns (site-2026.css). */
@media (prefers-reduced-motion: reduce) { .st-chat-h .cali-me::before { opacity: var(--think); } }
.st-pic:not(.is-shown) .st-chat-t > i, .st-pic:not(.is-shown) .cali-me img, .st-pic:not(.is-shown) .cali-me::after { animation-play-state: paused; }
@keyframes st-think { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-5px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .st-chat-t > i { animation: none; opacity: .7; } }
.st-chat-q { width: fit-content; max-width: 92%; margin: calc(var(--o) * 4px) 0 0 auto !important; padding: calc(var(--o) * 11px) 15px calc(var(--o) * 12px); border-radius: 18px 18px 5px 18px; background: var(--navy); color: var(--white); font-size: 16px; line-height: 1.5; }
.st-chat-a { max-width: 92%; margin-top: calc(var(--o) * 12px); padding: calc(var(--o) * 11px) 15px calc(var(--o) * 12px); border-radius: 18px 18px 18px 5px; background: var(--sky-wash); color: var(--ink); font-size: 16px; line-height: 1.5; }
.st-chat-a b { font-weight: 700; }
.st-chat-src { margin-top: 10px !important; padding-top: 8px; border-top: 1px solid rgba(46, 110, 158, .18); font-size: 14px; color: var(--ink-2); }
.st-chat-src b { color: var(--sky); font-weight: 600; }
/* Where a question would be typed, with the button for adding a file. Drawn only: nothing here can be used. */
.st-chat-box { flex: none; display: flex; align-items: center; gap: 8px; margin: 0 12px 12px !important; padding: 6px; border: 1px solid #C8DCED; border-radius: 22px; background: var(--white); font-size: 16px; color: var(--ink-3); }
.st-chat-up { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sky-wash); color: var(--sky); }
.st-chat-ph { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-chat-send { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--white); }

/* ---------- The map's loans: point at a dot to see the property ----------
   Each loan is a button drawn as a dot, at the place Codex's data gives it (the map picture itself has no dots).
   It shows a card on hover, on focus and on a tap, and goes nowhere. Arrow keys move between them (one stop for
   the Tab key). */
.st-dots { display: none; list-style: none; margin: 0; padding: 0; }
.st-dot { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; font: inherit; cursor: default; opacity: var(--ov, 1); }
.st-dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 2px rgba(10, 28, 46, .6); }
.st-dot.is-gap::after { background: #FF8A7A; }
.st-dot::before { content: ""; position: absolute; inset: 9px; border: 2px solid transparent; border-radius: 50%; transition: border-color .15s, box-shadow .15s; }
.st-dot:hover::before, .st-dot:focus-visible::before { border-color: var(--white); box-shadow: 0 0 0 4px rgba(156, 203, 235, .45); }
.st-dot:focus-visible { outline: 3px solid var(--focus); outline-offset: -4px; }
.st-card { position: absolute; z-index: 6; left: 50%; bottom: calc(100% - 2px); width: max-content; max-width: min(250px, 62cqw); transform: translateX(-50%); padding: 12px 14px 13px; border-radius: 12px; background: var(--white); color: var(--ink-2); text-align: left; font-size: 14.5px; line-height: 1.4; box-shadow: 0 14px 34px rgba(0, 0, 0, .5); opacity: 0; visibility: hidden; pointer-events: none; }
.st-dot:hover, .st-dot:focus-visible, .st-dot.is-open { z-index: 6; }
.st-dot:hover .st-card, .st-dot:focus-visible .st-card, .st-dot.is-open .st-card { opacity: 1; visibility: visible; }
.st-dot.is-below .st-card { bottom: auto; top: calc(100% - 2px); }
.st-dot.is-left .st-card { left: auto; right: 4px; transform: none; }
.st-dot.is-right .st-card { left: 4px; transform: none; }
.st-card b { display: block; font-size: 16px; font-weight: 700; color: var(--navy); }
.st-card span { display: block; }
.st-card-z { margin-top: 6px; color: var(--sky); font-weight: 600; }
.st-dot.is-gap .st-card-c { color: var(--alert); font-weight: 600; }
.st-dot.is-soon .st-card span:last-child { color: var(--navy); font-weight: 600; }
@supports (width: 1cqw) { .st-dots { display: block; } }

/* ---------- The story's words ---------- */
.st-words { padding: 40px clamp(24px, 3.6vw, 60px) 44px max(24px, calc((100vw - var(--max)) / 2)); }
.st-kicker { margin: 0 0 12px; font-size: 17px; font-weight: 600; color: var(--sky); }
.st h1, .st h2 { margin: 0; line-height: 1.04; letter-spacing: -.032em; font-weight: 700; color: var(--navy); text-wrap: balance; }
.st h1 { font-size: clamp(42px, 4.3vw, 66px); }
.st h2 { font-size: clamp(32px, 3.1vw, 46px); }
.st-sub { margin: 16px 0 0; max-width: 30em; font-size: 19px; line-height: 1.5; color: var(--ink-2); }
.st-side { margin-top: 26px; max-width: 520px; }
.st-side p { margin: 0; }
.st-more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 14px; color: var(--sky); font-size: 18px; font-weight: 600; text-decoration: none; }
.st-more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
.st-more:hover { color: var(--navy); }
.st-more:hover svg { transform: translateX(3px); }
.st-more:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.st-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.st-actions .btn { min-height: 54px; padding: 0 22px; font-size: 17px; }
.st-play svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.st-play:hover svg { transform: none; }
.st .st-note { margin-top: 16px; font-size: 15px; color: var(--ink-3); }
.st-rows { margin: 0; }
.st-rows > div { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 20px; padding: 11px 0; border-top: 1px solid #D6D1C7; font-size: 18px; line-height: 1.3; }
.st-rows > div:last-child { border-bottom: 1px solid #D6D1C7; }
.st-rows dt { display: flex; align-items: center; font-weight: 600; }
.st-rows dd { margin: 0; text-align: right; font-weight: 600; color: var(--sky); }
.st-rows dd span { display: block; margin-top: 2px; font-size: 15px; font-weight: 500; color: var(--ink-3); }
.st-rows > div { align-items: center; }
.st-rows .is-quiet dd { color: var(--ink-3); font-weight: 500; }
.st-rows .is-gap dd { color: var(--alert); font-weight: 700; }
.st .st-total { margin-top: 12px; font-size: 17px; color: var(--ink-2); }
.st-total b { color: var(--navy); }
.st .st-ok { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 16px; font-weight: 600; color: var(--ok); }
.st-ok::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ok-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23276B4E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100%; }
/* The loan-files list: the file on screen is marked, and each is ticked once it has been read. Plain: all ticked. */
.st-rows.is-files dt { display: flex; align-items: center; }
/* Under the four files: that they are a sample of the kinds it reads. */
.st .st-also { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--sky-wash); font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.st-also svg { flex: none; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--sky); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.st-also b { font-weight: 600; color: var(--navy); }
.st-rows.is-files dt::before { content: ""; flex: none; width: 22px; height: 22px; margin-right: 10px; border-radius: 50%; background: var(--ok-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23276B4E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100%; }
/* A file not yet read is quieter, in colours that still pass for contrast. */
.st:is(.is-live, .is-flow):not(.is-calm) .st-rows.is-files > div:not(.is-now):not(.is-done) dt { font-weight: 500; color: var(--ink-2); }
.st:is(.is-live, .is-flow):not(.is-calm) .st-rows.is-files > div:not(.is-now):not(.is-done) dd { font-weight: 500; color: var(--ink-3); }
.st:is(.is-live, .is-flow):not(.is-calm) .st-rows.is-files > div:not(.is-done) dt::before { background: var(--line); }
.st:is(.is-live, .is-flow):not(.is-calm) .st-rows.is-files > div.is-now:not(.is-done) dt::before { background: var(--sky); box-shadow: 0 0 0 4px var(--sky-wash); }

/* The portfolio's four numbers: a card each, the icon beside the figure, the name under it, and a bar for the
   number's share of all the flood loans. Under them, a key to the map's two kinds of dot. */
.st-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
.st-nums > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 1px 2px rgba(15, 31, 51, .04), 0 16px 30px -24px rgba(15, 31, 51, .5); }
.st-nums > div::after { content: ""; order: -1; height: 6px; margin-top: 14px; border-radius: 3px; background: linear-gradient(90deg, var(--sky) max(calc(var(--share, 0) * 100%), 8px), var(--line) 0); }
.st-nums > .is-gap::after { background: linear-gradient(90deg, var(--alert) max(calc(var(--share, 0) * 100%), 8px), var(--line) 0); }
.st-nums dd { display: flex; align-items: center; gap: 12px; margin: 0; font-size: clamp(30px, 3.1vw, 46px); font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.st-nums dd svg { flex: none; box-sizing: border-box; width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--sky-wash); fill: none; stroke: var(--sky); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.st-nums .is-gap dd svg { background: var(--alert-wash); stroke: var(--alert); }
.st-nums dt { margin-top: 10px; font-size: 16px; font-weight: 500; line-height: 1.3; color: var(--ink-2); }
.st-nums .is-gap dd { color: var(--alert); }
.st .st-key { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 16px; font-size: 15px; line-height: 1.3; color: var(--ink-2); }
.st-key span { display: inline-flex; align-items: center; gap: 8px; }
.st-key i { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 2px var(--navy); }
.st-key i.is-gap { background: #FF8A7A; }

@media (min-width: 600px) and (min-aspect-ratio: 5/4) {
  .st-stop { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); align-items: center; }
  .st-stop > .st-words { grid-column: 1; grid-row: 1; }
  .st-stop > .st-pic { grid-column: 2; grid-row: 1; aspect-ratio: auto; height: calc(100vh - var(--st-top)); height: calc(100svh - var(--st-top)); }
  .st-stop:first-child { min-height: calc(100vh - var(--st-top)); min-height: calc(100svh - var(--st-top)); }
}
/* ---------- Laptop: words on the left, the property on the right ----------
   The same split holds before the script runs and without it, so nothing jumps when it takes over. */

@media (scripting: enabled) {
  html:not(.is-loaded) .st:not(.is-live) .st-stop:not(:first-child) .st-pic { display: none; }
}
/* Until the script takes over, the later stops' pictures stay out of the page, so the browser doesn't start
   fetching them behind the opening. Their words stay, so they can always be read. Without scripting this rule
   doesn't apply and every stop shows its picture; the same once the page has loaded (is-loaded, set by
   site-2026.js) if this page's script never arrived. */

/* ---------- Phones and portrait tablets: each picture with its own words ----------
   page-home.js sets data-mode="flow" and .is-flow. Nothing is pinned: each stop is its picture and its words,
   moving together with the page, side by side on a tablet and one above the other on a phone. What is laid over a
   picture plays once, by itself, when most of the picture is on screen (the script sets --ov, --u and is-shown).
   The owner's notes of November 26, 2026: on a phone a pinned picture with only the words moving under it was
   hard to follow, and on a portrait iPad the pinned picture was so tall that its labels were cut off. */
.st.is-flow .st-motion { z-index: 5; }
/* Cali's finished panel reaches up over its label wherever the picture is narrow, so the label goes as the answer arrives. */
.st.is-flow .st-tag.is-behind { opacity: calc(var(--ov, 1) * clamp(0, calc((.5 - var(--u, 1)) * 8), 1)); }
/* Phones: the opening and the flood zone are one picture, a third of the screen tall (page-home.js, phone). The flood
   zone's picture lies over the opening's, cropped the same way, and its shading, outlines and labels come in once it
   plays. --fy keeps the middle of the property in view, so all four labels fit. */
.st.is-merged .st-stop:first-child > .st-pic { aspect-ratio: auto; height: clamp(250px, 36vh, 340px); height: clamp(250px, 36svh, 340px); --fy: .5; }
.st-pic.is-merged { position: absolute; inset: 0; z-index: 1; aspect-ratio: auto; height: auto; background: transparent; }
.st-pic.is-merged .st-cv > .st-layer { opacity: var(--ov, 0); transition: opacity .8s ease; }
/* The Pause button goes to the bottom corner here, where nothing is drawn: at the top it covered the house's label. */
.st.is-merged .st-stop:first-child > .st-pic > .st-motion { z-index: 5; top: auto; bottom: 10px; right: 10px; }
@media (min-width: 700px) and (max-aspect-ratio: 1249/1000) {
  .st.is-flow .st-stop { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); align-items: center; }
  .st.is-flow .st-stop > .st-words { grid-column: 1; grid-row: 1; }
  .st.is-flow .st-stop > .st-pic { grid-column: 2; grid-row: 1; height: auto; aspect-ratio: 780 / 864; }
  .st.is-flow .st-stop + .st-stop { border-top: 1px solid var(--line); }
}

/* ---------- The story, live ---------- */
.st-view { position: sticky; z-index: 2; top: var(--st-top); background: #2d3b2f; }
.st-pics { position: absolute; inset: 0; overflow: hidden; }
.st.is-live .st-pic { position: absolute; inset: 0; aspect-ratio: auto; height: auto; background: none; opacity: 0; visibility: hidden; }
.st.is-live .st-pic.is-on { opacity: var(--o, 1); visibility: visible; }
.st.is-live .st-pic.is-under { z-index: 1; }
.st.is-live .st-pic.is-over { z-index: 2; }
.st.is-live .st-pic.is-top { z-index: 3; }
/* A stop the aerial footage carries shows only what is drawn on it: its own still is hidden and the footage,
   in the opening's picture below it, shows through. */
.st-pic.is-ghost .st-cv > img:not(.st-layer) { opacity: var(--still, 0); }
/* A closer picture arriving inside a wider one has soft edges, so the join never shows. */
.st-pic.is-inset .st-cv { -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(transparent, #000 5%, #000 95%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(transparent, #000 5%, #000 95%, transparent); mask-composite: intersect; }
/* The property becoming a framed photograph above its pin on the map. */
.st-pic.is-photo .st-cv { overflow: hidden; border-radius: calc(2.2cqw / var(--a, 1)); box-shadow: 0 0 0 calc(.8cqw / var(--a, 1)) var(--white), 0 calc(2cqw / var(--a, 1)) calc(5cqw / var(--a, 1)) rgba(0, 0, 0, .5); }
.st-loop { position: absolute; inset: 0; opacity: 0; transition: opacity .35s linear; pointer-events: none; }
.st-loop.is-on { opacity: 1; }
/* Seven short rounded bars inside the top of the picture, apart from its edges: at its foot, all seven white at the
   last stop, they read as a line hanging off the map into the white section below (owner's note, November 26, 2026). */
.st-bar { position: absolute; z-index: 3; left: 16px; right: 16px; top: 14px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 4px; pointer-events: none; }
.st-bar i { border-radius: 2px; background: rgba(255, 255, 255, .42); box-shadow: 0 1px 3px rgba(10, 28, 46, .35); transition: background .3s; }
.st-bar i.is-done { background: var(--white); }
.st-motion { position: absolute; z-index: 4; right: 12px; top: 12px; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px 0 14px; border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 999px; background: rgba(10, 28, 46, .8); color: var(--white); font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1; cursor: pointer; }
.st-motion[hidden] { display: none; }
/* The footage's Pause and Play button isn't shown: the owner's choice of November 26, 2026, which departs from
   WCAG 2.2.2's visible control. The motion can still be paused: the button stays in the page for the keyboard and
   screen readers and appears when the Tab key reaches it, and a tap or click on the moving picture pauses or
   resumes it (page-home.js). Reduced motion, data saver and a weak or struggling device get still pictures. */
.st-motion:not(:focus-visible) { width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; }
.st-motion svg { width: 14px; height: 14px; fill: currentColor; }
.st-motion:hover { background: rgba(10, 28, 46, .95); border-color: var(--white); }
.st-motion:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.st-skip { position: absolute; z-index: 4; left: -9999px; top: 16px; padding: 12px 18px; border-radius: 10px; background: var(--white); color: var(--navy); font-weight: 600; }
.st-skip:focus { left: 16px; outline: 3px solid var(--focus); outline-offset: 2px; }

/* Laptop: the words scroll on the left, the property stays on the right. */
.st[data-mode="split"] .st-tag { padding: 8px 16px; font-size: 16.5px; }
/* A short landscape window (a phone held sideways, a short laptop window): smaller labels on the smaller picture;
   Cali's drawn chat takes the picture's height, less the room for the Ask Cali button, and leaves out its subtitle
   and its typing box, so her whole answer and its source show; and the map is fitted whole into the picture, not
   cropped, so every loan's dot can be pointed at (Codex review, November 27, 2026). */
@media (max-height: 559px) {
  .st[data-mode="split"] .st-tag { padding: 6px 12px; font-size: 14.5px; }
  .st.is-live[data-mode="split"] .st-chat { right: 12px; bottom: 66px; width: min(420px, calc(100% - 24px)); height: calc(100% - 78px); }
  html:not(.has-cali) .st.is-live[data-mode="split"] .st-chat { bottom: 12px; height: calc(100% - 24px); }
  .st.is-live[data-mode="split"] .st-chat-who span, .st.is-live[data-mode="split"] .st-chat-box { display: none; }
  .st.is-live[data-mode="split"] .st-chat-log { padding: 10px 12px 6px; }
  /* Her heading is smaller, and her chat keeps its newest lines in view, the answer and its source, letting the
     question go up out of sight as a chat does when there isn't room for all of it (at 768 x 390 as at 1024 x 300).
     When all of it fits, it sits at the top as usual. The chat is a drawing over the picture whose words are also in
     the picture's description and beside it, so it is fitted, not made a scrolling box (Codex review, November 27). */
  .st.is-live[data-mode="split"] .st-chat-h { gap: 10px; padding: 8px 10px 8px 14px; }
  .st.is-live[data-mode="split"] .st-chat-me { width: 32px; height: 32px; }
  .st.is-live[data-mode="split"] .st-chat-me img { width: 20px; }
  .st.is-live[data-mode="split"] .st-chat-x { width: 32px; height: 32px; }
  .st.is-live[data-mode="split"] .st-chat-log { display: flex; flex-direction: column-reverse; }
  .st.is-live[data-mode="split"] .st-chat-run { margin-bottom: auto; }
  .st.is-live[data-mode="split"] .st-view { background: var(--navy-deep); }
  .st.is-live[data-mode="split"] .st-pic[data-cam="map"] .st-cv { --s: min(100cqw / var(--iw), 100cqh / var(--ih)); left: calc(50cqw - var(--s) * var(--iw) / 2); top: calc(50cqh - var(--s) * var(--ih) / 2); }
}
/* There the menu bar scrolls away with the page (site-2026.css), so the story's picture starts at the top of the
   window: the same before the script takes over as after, so nothing jumps. */
@media (orientation: landscape) and (max-height: 500px) { .st { --st-top: 0px; } }
.st.is-live[data-mode="split"] { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); }
.st.is-live[data-mode="split"] > .st-caps { grid-column: 1; grid-row: 1; }
.st.is-live[data-mode="split"] > .st-view { grid-column: 2; grid-row: 1; align-self: start; height: calc(100vh - var(--st-top)); height: calc(100svh - var(--st-top)); }
.st.is-live[data-mode="split"] .st-stop { display: flex; align-items: center; min-height: 60vh; min-height: 60svh; scroll-margin-top: calc(var(--st-top) + 20vh); }
.st.is-live[data-mode="split"] .st-stop:first-child, .st.is-live[data-mode="split"] .st-stop:last-child { min-height: calc(100vh - var(--st-top)); min-height: calc(100svh - var(--st-top)); scroll-margin-top: var(--st-top); }
.st.is-live[data-mode="split"] .st-words { width: 100%; }
/* The words of one stop follow closely on the last: the room a picture needs comes from its stop holding, not
   from empty space between the words. A stop that holds (data-dwell) is taller by that much (--dwell, set by
   the script), half above its words and half below, so the words scroll past the middle of the window while
   the picture holds. They are not pinned: pinned words and a holding picture left a stretch of scroll where
   nothing on the screen moved, which read as broken on the way back up (owner's note, November 26, 2026).
   --wh is the words' height. */
.st.is-live[data-mode="split"] .st-stop[data-dwell] { display: block; box-sizing: content-box; min-height: 0; height: calc(var(--wh, 360px) + var(--dwell, 0px)); padding: max(28px, calc((60vh - var(--wh, 360px)) / 2)) 0; }
.st.is-live[data-mode="split"] .st-stop[data-dwell] > .st-words { margin-top: calc(var(--dwell, 0px) / 2); }
@supports (height: 1svh) {
  .st.is-live[data-mode="split"] .st-stop[data-dwell] { padding: max(28px, calc((60svh - var(--wh, 360px)) / 2)) 0; }
}
/* The Pause button comes before the words in the page (for the keyboard) and is laid over the picture's corner. */
.st.is-live[data-mode="split"] > .st-motion { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--st-top) + 14px); right: auto; justify-self: end; align-self: start; margin-right: 14px; }

/* ---------- A phone held upright: one screen that changes as the page scrolls ----------
   page-home.js sets data-mode="stack" (owner's note, November 27, 2026: "the home page is scrolling to more images
   of the property ... it shows like the home page where one screen changes as the user scrolls"). The property
   stays at the top of the screen at its full width (--st-ph tall), fading into a navy stage under it, and the
   camera glides from stop to stop as on a laptop. Each stop's words are a white card that comes up the screen and
   passes over the picture, so the whole screen moves and not only its lower part (the owner's note of November 26,
   2026, about an earlier phone layout in which the words slid under a pinned picture). Between two cards the
   picture is seen whole; a stop that plays (the flood zone, the loan files, the policy, Cali) starts once the card
   before it has left and holds room before its own card, so what it plays starts with nothing over it. The section ends with the map alone, then the view
   scrolls away with it. */
.st.is-live[data-mode="stack"] { --st-ph: min(calc(100vh - var(--st-top)), calc(100vw * 1.25)); display: grid; grid-template-columns: minmax(0, 1fr); background: var(--navy-deep); }
.st.is-live[data-mode="stack"] > .st-view { grid-row: 1; grid-column: 1; align-self: start; height: calc(100vh - var(--st-top)); background: var(--navy-deep); }
.st.is-live[data-mode="stack"] .st-pics { bottom: auto; height: var(--st-ph); }
.st.is-live[data-mode="stack"] .st-pics::after { content: ""; position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: 9%; background: linear-gradient(rgba(10, 28, 46, 0), var(--navy-deep)); pointer-events: none; }
.st.is-live[data-mode="stack"] > .st-caps { grid-row: 1; grid-column: 1; position: relative; z-index: 3; padding: 0 12px; pointer-events: none; }
/* Between two cards the picture's own height (and 40px), so one card has left the picture before the next comes up
   to it; the camera reaches a stop 20px after the card before it has left the top of the screen (page-home.js). A
   link to a stop lands just past that point, on its picture, with its card below. */
.st.is-live[data-mode="stack"] .st-stop { display: block; padding-top: calc(var(--st-ph) + 40px); scroll-margin-top: calc(var(--st-top) - 24px); }
.st.is-live[data-mode="stack"] .st-stop:first-child { padding-top: calc(var(--st-ph) - 36px); scroll-margin-top: var(--st-top); }
/* A stop that plays holds its room above its card: the camera arrives, the play starts with nothing over it, and
   then the card comes up (page-home.js reaches the stop that much earlier). */
.st.is-live[data-mode="stack"] .st-stop[data-dwell] { padding-top: calc(var(--st-ph) + 40px + var(--dwell, 0px)); }
/* After the last card the view's full height, so the map is seen whole before the view leaves with the section. */
.st.is-live[data-mode="stack"] .st-stop:last-child { padding-bottom: calc(100vh - var(--st-top)); }
.st.is-live[data-mode="stack"] .st-words { pointer-events: auto; padding: 22px 20px 24px; border-radius: 22px; background: var(--white); box-shadow: 0 26px 50px -22px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .5); }
.st.is-live[data-mode="stack"] .st-side { margin-top: 18px; }
@supports (height: 1svh) {
  .st.is-live[data-mode="stack"] { --st-ph: min(calc(100svh - var(--st-top)), calc(100vw * 1.25)); }
  .st.is-live[data-mode="stack"] > .st-view { height: calc(100svh - var(--st-top)); }
  .st.is-live[data-mode="stack"] .st-stop:last-child { padding-bottom: calc(100svh - var(--st-top)); }
}
/* Before the script takes over on a phone held upright, the opening is laid out as the phone layout will lay it out:
   the picture at the same height and the opening's words as the same card in the same place, so nothing moves when
   it does (the other stops' pictures wait until then, see above). Only until the page has loaded (is-loaded, set by
   site-2026.js after this page's script has run): if the script never arrives, the page goes back to its plain
   layout, dark words on the light background. Without scripting the page keeps its plain layout throughout. */
@media (scripting: enabled) and (max-width: 699px) and (max-aspect-ratio: 1/1) {
  html:not(.is-loaded) .st:not(.is-live):not(.is-flow) { --st-ph: min(calc(100vh - var(--st-top)), calc(100vw * 1.25)); background: var(--navy-deep); }
  html:not(.is-loaded) .st:not(.is-live):not(.is-flow) .st-stop:first-child > .st-pic { height: var(--st-ph); }
  html:not(.is-loaded) .st:not(.is-live):not(.is-flow) .st-stop:first-child > .st-words { position: relative; z-index: 3; margin: -36px 12px 0; padding: 22px 20px 24px; border-radius: 22px; background: var(--white); box-shadow: 0 26px 50px -22px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .5); }
}
@supports (height: 1svh) {
  @media (scripting: enabled) and (max-width: 699px) and (max-aspect-ratio: 1/1) {
    html:not(.is-loaded) .st:not(.is-live):not(.is-flow) { --st-ph: min(calc(100svh - var(--st-top)), calc(100vw * 1.25)); }
  }
}
/* The Pause button is in the view here, at the picture's top corner (it shows only when the keyboard reaches it). */
.st.is-live[data-mode="stack"] .st-view > .st-motion { z-index: 5; }

/* ---------- A picture cropped by a focus point ----------
   --iw/--ih: the picture's own size. --fx/--fy: the point to keep in the middle, in the picture's own pixels.
   --z: zoom over "cover". Each comes in -l (laptop), -t (tablet) and -p (phone); a missing one falls back to
   the wider size. Browsers without container units get a plain centred picture. Used by the close. */
.crop { position: relative; overflow: hidden; container-type: size; background: #2d3b2f; }
.crop-cv { position: absolute; inset: 0; }
.crop-cv > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
@supports (width: 1cqw) {
  .crop { --fx: var(--fx-l); --fy: var(--fy-l); --z: var(--z-l, 1); }
  .crop-cv {
    --s: calc(max(100cqw / var(--iw), 100cqh / var(--ih)) * var(--z));
    inset: auto;
    width: calc(var(--s) * var(--iw));
    height: calc(var(--s) * var(--ih));
    left: clamp(calc(100cqw - var(--s) * var(--iw)), calc(50cqw - var(--s) * var(--fx)), 0px);
    top: clamp(calc(100cqh - var(--s) * var(--ih)), calc(50cqh - var(--s) * var(--fy)), 0px);
  }
  .crop-cv > img { object-fit: fill; }
}
@media (max-width: 1080px) { .crop { --fx: var(--fx-t, var(--fx-l)); --fy: var(--fy-t, var(--fy-l)); --z: var(--z-t, var(--z-l, 1)); } }
@media (max-width: 760px) { .crop { --fx: var(--fx-p, var(--fx-t, var(--fx-l))); --fy: var(--fy-p, var(--fy-t, var(--fy-l))); --z: var(--z-p, var(--z-t, var(--z-l, 1))); } }





/* The closing band's last line: the page in one sentence, for anyone (or any search tool) who reads to the end. */
.hx-close .hx-short { grid-column: 1 / -1; max-width: none; margin: 4px 0 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .78); }
.hx-close .hx-short strong { color: var(--sky-light); font-weight: 600; }

/* ---------- What changes for your bank ----------
   Four points, a card each, straight after the story. */
.bn { padding: 88px 0 92px; background: var(--warm); }
.bn-head { max-width: 44em; margin-bottom: 36px; }
.bn-kicker { margin: 0 0 12px; font-size: 17px; font-weight: 600; color: var(--sky); }
.bn h2 { margin: 0; font-size: clamp(32px, 4vw, 54px); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; color: var(--navy); text-wrap: balance; }
.bn-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.bn-list li { display: flex; flex-direction: column; gap: 16px; padding: 24px 22px 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 1px 2px rgba(15, 31, 51, .04), 0 16px 30px -24px rgba(15, 31, 51, .5); font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.bn-list b { display: block; margin-bottom: 4px; font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; color: var(--navy); }
.bn-ic { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--sky-wash); }
.bn-ic svg { width: 25px; height: 25px; fill: none; stroke: var(--sky); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bn-more { margin-top: 26px; }
.bn-more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1080px) {
  .bn { padding: 72px 0; }
  .bn-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .bn { padding: 52px 0 50px; }
  .bn-head { margin-bottom: 24px; }
  .bn-list { grid-template-columns: 1fr; gap: 10px; }
  .bn-list li { flex-direction: row; align-items: flex-start; gap: 14px; padding: 16px; font-size: 15px; }
  .bn-list b { font-size: 17px; }
  .bn-ic { width: 42px; height: 42px; border-radius: 12px; }
  .bn-ic svg { width: 22px; height: 22px; }
}
@media (forced-colors: active) { .bn-list li { border: 1px solid CanvasText; } }


/* ---------- Checked against federal data ---------- */
.hd { padding: 84px 0 44px; background: var(--warm); }
.hd h2, .hx-close h2 { margin: 0; font-size: clamp(32px, 4vw, 54px); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; }
.hd h2 { color: var(--navy); }
.hd-grid { display: grid; gap: 36px; }
.hd-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 40px; }
.hd-head p { margin: 0 0 6px; font-size: 20px; line-height: 1.5; color: var(--ink-2); }
.hd-head-r { display: grid; justify-items: start; gap: 6px; }
/* Five sources, a card each: two larger cards on top (FEMA's flood data and the federal rule book, the two the
   checks rest on) and three under them, so both rows are full and no cell is left empty. Six tracks: the first
   two cards take three each, the rest two each. */
.hd-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.hd-list li { grid-column: span 2; padding: 26px 28px 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 1px 2px rgba(15, 31, 51, .04), 0 16px 30px -24px rgba(15, 31, 51, .5); }
.hd-list li:nth-child(-n + 2) { grid-column: span 3; }
.hd-name { margin-bottom: 10px; }
.hd-logo { display: block; width: auto; max-width: 170px; height: 44px; margin-bottom: 12px; }
/* A source with no logo of its own to show (the eCFR): its name, set as a plain tile. */
.hd-mark { display: grid; place-items: center; width: fit-content; padding: 0 16px; border-radius: 6px; background: var(--navy); color: var(--white); font-size: 21px; font-weight: 700; letter-spacing: .01em; }
.hd-list h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: var(--navy); }
.hd-list h3 span { display: block; margin-top: 2px; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--ink-3); }
.hd-list p + p { margin-top: 8px; }
.hd-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--sky-wash); display: grid; place-items: center; }
.hd-ic svg { width: 24px; height: 24px; fill: none; stroke: var(--sky); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* The agencies' own guide is what the checks are built on, so its card is the one dark card in the section:
   a guide-book icon, and a button to the answers. */
.hd-guide { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; margin-top: 14px; padding: 22px 24px; border-radius: 18px; background: var(--navy); color: var(--white); text-decoration: none; box-shadow: 0 20px 38px -24px rgba(15, 31, 51, .75); }
.hd-guide:hover { background: var(--navy-deep); }
.hd-guide .hd-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--sky-light); }
.hd-guide .hd-ic svg { width: 30px; height: 30px; fill: none; stroke: var(--navy-deep); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hd-guide:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.hd-guide-text b { display: block; font-size: 19px; font-weight: 600; }
.hd-guide-text span { display: block; margin-top: 4px; font-size: 16px; line-height: 1.45; color: rgba(255, 255, 255, .86); }
.hd-guide-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; background: var(--white); color: var(--navy); font-size: 16px; font-weight: 600; white-space: nowrap; }
.hd-guide-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.hd-list p { margin: 0; font-size: 17px; line-height: 1.45; color: var(--ink-2); }
.hd-list strong { font-weight: 600; color: var(--navy); }
/* What makes it fit a bank: a block of its own under the sources, a card for each point. */
.hd-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hd-facts li { display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 1px 2px rgba(15, 31, 51, .04), 0 16px 30px -24px rgba(15, 31, 51, .5); font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.hd-facts b { display: block; margin-bottom: 4px; font-size: 17.5px; font-weight: 600; line-height: 1.25; color: var(--navy); }
.hd-fact-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--sky-wash); display: grid; place-items: center; }
.hd-facts svg { width: 22px; height: 22px; fill: none; stroke: var(--sky); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- The close, back at the river ---------- */
.hx-close { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; background: var(--navy-deep); color: var(--white); }
.hx-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hx-actions .btn { min-height: 54px; padding: 0 26px; font-size: 17px; }
/* Behind it, the flood map the story ended on, dimmed, and darkest behind the words. */
.hx-close-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 44%; opacity: .7; }
.hx-close::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 70% 90% at 50% 50%, rgba(10, 28, 46, .88), rgba(10, 28, 46, .7) 60%, rgba(10, 28, 46, .42)); }
/* The closing band: what to do next on the left, what happens after booking on the right, and the page in one
   sentence underneath. */
.hx-close-in { width: min(var(--max), 100% - 48px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px 72px; align-items: center; padding: 84px 0 64px; }
.hx-steps { list-style: none; counter-reset: hx; margin: 0; padding: 0; display: grid; gap: 18px; }
.hx-steps li { counter-increment: hx; display: flex; align-items: center; gap: 16px; font-size: 18px; line-height: 1.45; color: rgba(255, 255, 255, .9); }
.hx-steps li::before { content: counter(hx); flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid var(--sky-light); border-radius: 50%; font-weight: 600; color: var(--sky-light); }
.hx-close h2 { color: var(--white); }
.hx-close p { max-width: 36em; margin: 16px 0 0; font-size: 19px; line-height: 1.55; color: rgba(255, 255, 255, .86); }
.hx-close .hx-actions { justify-content: flex-start; }

/* ---------- The overview film ---------- */
.film-dialog { width: min(980px, 100% - 32px); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 20px; background: var(--navy-deep); color: var(--white); box-shadow: 0 40px 100px rgba(0, 0, 0, .6); }
.film-dialog::backdrop { background: rgba(5, 12, 20, .8); }
.film-box { padding: 16px 20px 20px; }
.film-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.film-head h2 { margin: 0; font-size: 20px; color: var(--white); }
.film-close { min-height: 44px; padding: 0 18px; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 999px; background: transparent; color: var(--white); font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer; }
.film-close:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.film-close:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.film-video { display: block; width: 100%; height: auto; border-radius: 12px; background: #000; }
.film-note { margin: 12px 0 0; font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .8); }
.film-transcript { margin-top: 6px; font-size: 15px; color: rgba(255, 255, 255, .88); }
.film-transcript summary { display: flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--sky-light); cursor: pointer; }
.film-transcript ol { margin: 4px 0 0; padding-left: 20px; line-height: 1.5; }

@media (max-width: 1000px), (max-height: 559px), (max-aspect-ratio: 1249/1000) {
  .st-pic { aspect-ratio: auto; height: min(calc(100vw * 864 / 780), 52vh); height: min(calc(100vw * 864 / 780), 52svh); }
  .st-words { padding: 30px 32px 48px; }
  .st h1 { font-size: 44px; }
  .st h2 { font-size: 36px; }
  .st-side { max-width: 640px; }
}
/* ---------- Tablet and phone: one column ---------- */

@media (max-width: 1080px) {
  .hd { padding: 72px 0 40px; }
  .hd-grid { gap: 28px; }
  .hd-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .st-words { padding: 22px 16px 40px; }
  .st-kicker { margin-bottom: 8px; font-size: 15px; }
  .st h1 { font-size: 34px; }
  .st h2 { font-size: 30px; }
  .st-sub { margin-top: 10px; font-size: 17px; }
  .st-side { margin-top: 18px; }
  .st-actions { gap: 10px; }
  .st-actions .btn { flex: 1 1 auto; justify-content: center; min-height: 52px; padding: 0 18px; font-size: 16px; }
  .st-rows > div { padding: 10px 0; font-size: 17px; }
  .st-nums { gap: 10px; }
  .st-nums > div { padding: 14px 14px 15px; border-radius: 16px; }
  .st-nums dd { gap: 9px; font-size: 32px; }
  .st-nums dd svg { width: 34px; height: 34px; padding: 8px; border-radius: 10px; }
  .st-nums dt { font-size: 15px; }
  .st-w, .st-lg { display: none; }
  .st-sm { display: inline; }
  .st-tag { padding: 5px 11px; font-size: 13.5px; }
  .st-tag .st-n { width: 20px; height: 20px; margin: -1px 6px -1px -5px; font-size: 13px; }
  .st-n { width: 24px; height: 24px; margin-right: 8px; font-size: 14px; }
  .st-doc-cap { top: calc(100% - 11px); padding: 4px 10px; font-size: 12.5px; gap: 5px; }
  .st:is(.is-live, .is-flow):not(.is-calm) .st-docs .st-doc-cap { bottom: calc(100% + 6px / var(--s)); padding: 3px 8px 3px 5px; font-size: 11px; gap: 4px; }
  .st-read { width: 15px; height: 15px; }
  .st-card { font-size: 13.5px; }
  .st-chat { width: 88%; border-radius: 18px; }
  .st-chat-h { gap: 10px; padding: 9px 10px 9px 12px; }
  .st-chat-me { width: 34px; height: 34px; }
  .st-chat-me img { width: 21px; }
  .st-chat-who b { font-size: 16px; }
  .st-chat-who span { font-size: 12.5px; }
  .st-chat-x { width: 30px; height: 30px; }
  .st-chat-x svg, .st-chat-box svg { width: 18px; height: 18px; }
  .st-chat-log { padding: 10px 11px 4px; }
  .st-chat-q, .st-chat-a { font-size: 14px; line-height: 1.4; padding-left: 12px; padding-right: 12px; }
  .st-chat-a { margin-top: calc(var(--o) * 8px); }
  .st-chat-src { margin-top: 7px !important; padding-top: 6px; font-size: 12.5px; }
  /* The finished panel reaches up over this label, so the label goes as the answer arrives. */
  .st:is(.is-live, .is-flow) .st-tag.is-behind { opacity: calc(var(--ov, 1) * clamp(0, calc((.5 - var(--u, 1)) * 8), 1)); }
  .st-chat-t { margin-top: calc(var(--think) * 8px) !important; padding-top: calc(var(--think) * 6px); padding-bottom: calc(var(--think) * 6px); }
  .st-chat-tme { width: 24px; height: 24px; }
  .st-chat-t > i { width: 7px; height: 7px; }
  .st-chat-box { margin: 0 9px 9px !important; padding: 4px; font-size: 14px; gap: 6px; }
  .st-chat-up, .st-chat-send { width: 32px; height: 32px; }
  .st-tag.is-pin { margin-top: -28px; padding: 6px 13px; font-size: 14.5px; }
  .st-tag.is-pin::after { height: 28px; }
  .st-motion { right: 8px; top: 8px; font-size: 15px; }
  .hd-head p { font-size: 17px; margin-bottom: 14px; }
  .hd-list { grid-template-columns: 1fr; gap: 10px; }
  .hd-list li, .hd-list li:nth-child(-n + 2) { grid-column: auto; padding: 18px 18px 20px; border-radius: 16px; }
  .hd-name { margin-bottom: 6px; }
  .hd-logo { height: 36px; margin-bottom: 8px; }
  .hd-list h3 { font-size: 18px; }
  .hd-ic { width: 40px; height: 40px; }
  .hd-guide { grid-template-columns: auto minmax(0, 1fr); gap: 14px 16px; padding: 18px; }
  .hd-guide .hd-ic { width: 46px; height: 46px; }
  .hd-guide-go { grid-column: 1 / -1; }
  .hd-guide-text b { font-size: 17px; }
  .hd-guide-text span { font-size: 15px; }
  .hd-list p { font-size: 16px; }
  .hd-facts { grid-template-columns: 1fr; gap: 10px; }
  .hd-facts li { flex-direction: row; align-items: center; gap: 14px; padding: 16px; font-size: 15.5px; }
  .hd-facts b { font-size: 16.5px; }
  .hx-actions { gap: 10px; margin-top: 22px; }
  .hx-actions .btn { flex: 1 1 auto; justify-content: center; min-height: 52px; padding: 0 18px; font-size: 16px; }
  .hx-close-in { grid-template-columns: 1fr; gap: 28px; width: calc(100% - 32px); padding: 56px 0 48px; }
  .hx-steps li { font-size: 16px; gap: 12px; }
  .hx-steps li::before { width: 34px; height: 34px; }
  .hx-close p { font-size: 17px; }
}
/* ---------- Phone ---------- */

@media (forced-colors: active) {
  .st-tag, .st-doc-cap, .st-page, .st-chat, .st-card, .st-motion { border: 1px solid CanvasText; }
  .st-page .is-hit::before { border: 2px solid Highlight; background: none; }
  .st-bar i.is-done { background: Highlight; }
  .st-draw line { stroke: CanvasText; }
}
/* ---------- Edge and Windows high contrast ---------- */

@media (max-width: 640px) {
  .hd-mark { font-size: 18px; padding: 0 13px; }
}
/* The refinancing section on a phone: the heading, then the example (the picture of it), then the case in half
   the words, then the buttons. The fuller wording (.hr-xl) shows from a tablet up. */

@media (max-width: 359px) {
  .st-chat-who span, .st-chat-box { display: none; }
  .st-chat-h { padding-top: 7px; padding-bottom: 7px; }
  .st-chat-me { width: 30px; height: 30px; }
  .st-chat-q, .st-chat-a { font-size: 13.5px; }
}
/* The narrowest phones: the picture is too short for the whole window, so the drawn chat leaves out its subtitle and
   the box for typing, and the answer and its source show in full. */

/* Checked against federal data, on a phone: the five sources as one list in one white panel, a row each, every row
   the same shape: the agency's logo in a slot of its own on the left, its name and what it is used for on the right.
   Five rows look even where five tiles two a row left one by itself (owner's note, November 27, 2026: "Can we make
   these five a bit nicer and even? Not sure how we can make it look nice with odd number"). The longer sentences
   stay for screen readers and wider screens (overnight review, November 27, 2026: the section took two screens). */
.hd-more { font-size: inherit; }
@media (max-width: 640px) {
  .hd-list { display: block; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 1px 2px rgba(15, 31, 51, .04), 0 16px 30px -24px rgba(15, 31, 51, .5); }
  .hd-list li, .hd-list li:nth-child(-n + 2) { position: relative; display: grid; grid-template-columns: 78px auto minmax(0, 1fr); align-items: center; column-gap: 6px; min-height: 76px; padding: 12px 16px; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .hd-list li:nth-child(n + 2) { border-top: 1px solid var(--line); }
  /* The logo and the name become the row's own cells. */
  .hd-name { display: contents; }
  .hd-list .hd-logo { grid-column: 1; grid-row: 1 / span 2; justify-self: start; align-self: center; width: auto; max-width: 70px; height: auto; max-height: 34px; margin: 0 10px 0 0; }
  .hd-list .hd-mark { height: 30px; max-width: none; padding: 0 9px; font-size: 15px; }
  .hd-list h3 { grid-column: 2 / -1; grid-row: 1; align-self: end; font-size: 17px; line-height: 1.25; }
  .hd-list p { grid-column: 2 / -1; align-self: start; margin: 2px 0 0; font-size: 15px; line-height: 1.35; }
  .hd-list strong { font-weight: 600; }
  .hd-more, .hd-pub { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* FEMA's two uses side by side, so its row is as tall as the others. A browser without :has() stacks them instead. */
@supports selector(:has(+ p)) {
  @media (max-width: 640px) {
    .hd-list p:has(+ p) { grid-column: 2; grid-row: 2; }
    .hd-list p + p { grid-column: 3; grid-row: 2; }
  }
}
/* Keep exploring sits close under the federal-data section, not a screen away (owner's note of November 27, 2026:
   "so much gap here! tidy things up!"). Phones keep the site-wide 32 px rhythm. */
.hd + .next-band { padding-top: 44px; }
