/* "Listing sheet, after dark": the Lake of the Ozarks Properties look for
   the chat. Loaded into the widget's shadow root after its own styles when a
   page sets __chatBrand.skin, so every rule here replaces the comic look.

   Built from www.lakeoftheozarksproperty.info: navy #0F172A and slate on
   white, Inter, white "For Sale" pills, the navy stat strip, and Dan's drone
   photos of his parcels with each boundary drawn on in white. The chat is
   staged like a broker's showcase of those listings:

   - launcher: an arched window onto a parcel, a slow light running round
     its rim, and Dan stepping out over the top of it, waving
   - teaser: a dark listing notice; the parcel's boundary is surveyed onto
     the photo (a sweep reveals a glowing line and a pin at every corner)
   - welcome: a cinematic featured listing. Three parcels cross-fade with a
     slow push-in and mouse parallax at three depths, each boundary sweeps
     on, the acreage counts up in big light numerals, and the site's stat
     strip floats over the photo as frosted glass with Dan's legs behind it.
     Film grain and a faint warm light leak sit over the whole frame
   - topics: listing cards that zoom and survey their parcel on hover
   - answers: a spec sheet with large light numerals, tracked labels, and
     the first linked listing shown as a photo card with its boundary
   - thinking: a small parcel outline drawing itself
   - topographic contour lines as the texture on paper and on navy

   The traces (ozarks-trace-*.svg) are the outlines from Dan's photos,
   redrawn at each photo's own pixel size, so background-size: cover keeps
   line and photo in register. The page registers --oz-sw, --oz-n and
   --oz-ring with @property, which Chrome only accepts outside a shadow
   root; without them the sweeps and counts simply land at their end.

   v4, the readability pass (WCAG 2.2 AA):
   - type: message text 15px (16px on phones), no label under 12px, most
     secondary text 14px; secondary greys moved from slate-400/500 to
     slate-600 where they sat on tinted grounds
   - words over photos sit on solid navy or a strong navy panel (in v5
     the featured listing's words left the photo altogether); the
     teaser's address and headline moved off the photo onto the navy
   - short screens (landscape phones, short laptop windows): the chat
     fills the screen, the call bar joins the header, the featured
     listing turns into a short banner with its words beside it, the
     topics go four across, and the input stays on screen
   - tap targets 40 to 48px, a 3px focus ring

   v5, the featured listing as a listing sheet: the aerial photo is left
   clear (slide bars and one chip only), the acreage, address and stat strip
   sit in a navy band under it, and Dan waves from the greeting below,
   cut at the waist by the card edge, never over the photo or the type. */

:host, :host([data-theme="dark"]) {
  --navy: #0F172A; --navy2: #1E293B; --navy3: #334155; --night: #0A1020;
  --s600: #475569; --s500: #64748B; --s400: #94A3B8; --s300: #CBD5E1; --s200: #E2E8F0; --s100: #F1F5F9; --s50: #F8FAFC;
  --blue: #2563EB; --sky: #BFDBFE;
  --bg: #fff; --surface: #fff; --text: #0F172A; --muted: #64748B; --ink: #0F172A; --paper: #fff; --glove: #F1F5F9;
  --line: #E2E8F0; --hard: transparent; --focus: #2563EB; --dot: transparent;
  --disp: Inter, var(--font-tfc1, system-ui), -apple-system, "Segoe UI", sans-serif;
  --body: Inter, var(--font-tfc1, system-ui), -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1); --out: cubic-bezier(.16, 1, .3, 1);
  --lift-sh: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 28px -16px rgba(15, 23, 42, .4);
  --deep-sh: 0 1px 2px rgba(15, 23, 42, .08), 0 8px 16px -10px rgba(15, 23, 42, .25), 0 30px 60px -28px rgba(15, 23, 42, .6);
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F172A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --arrow-w: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E");
  /* the boundary reveal: a sweep around the parcel, driven by --oz-sw */
  --sweep: conic-gradient(from -90deg at 50% 58%, #000 var(--oz-sw), transparent calc(var(--oz-sw) + .5deg));
  /* the welcome card: photo height, card height (photo plus the two lines
     under it), and how far from the card's right edge Dan's waving arm can
     reach, so the listing's words stop short of him */
  --ph: 230px; --row: 80px; --strip: 60px; --acw: 112px; --acf: 44px; --dan: 210px;
  --pos1: 50% 100%; --pos2: 50% 100%; --pos3: 50% 100%;
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

.ic { stroke-width: 1.8; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

@keyframes oz-rise { from { transform: translateY(10px); opacity: 0 } to { transform: none; opacity: 1 } }
@keyframes oz-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes oz-up { from { transform: translateY(34px); opacity: 0 } to { transform: none; opacity: 1 } }
@keyframes oz-reel-x { from { background-position-x: 0% } to { background-position-x: 100% } }
@keyframes oz-reel-y { from { background-position-y: 0% } to { background-position-y: 100% } }
@keyframes oz-push { from { background-size: 104% auto } to { background-size: 116% auto } }
@keyframes oz-ring { to { --oz-ring: 360deg } }
@keyframes oz-pan { from { background-position: 30% 40% } to { background-position: 70% 46% } }
@keyframes oz-leak { from { translate: 0 0; opacity: .5 } to { translate: -30px 14px; opacity: .8 } }
@keyframes oz-survey { 0% { --oz-sw: 0deg; opacity: 0 } 4% { opacity: 1 } 26% { --oz-sw: 360deg } 82% { --oz-sw: 360deg; opacity: 1 } 100% { --oz-sw: 360deg; opacity: 0 } }
@keyframes oz-tick { from { --oz-n: 0 } }
/* three parcels, seven seconds each: cross-fade, push in, survey the line, count the acres */
@keyframes oz-p1 { 0% { opacity: 1; scale: 1.04 } 31% { opacity: 1 } 35% { opacity: 0; scale: 1.12 } 96% { opacity: 0; scale: 1.04 } 100% { opacity: 1; scale: 1.04 } }
@keyframes oz-p2 { 0%, 31% { opacity: 0; scale: 1.04 } 35% { opacity: 1 } 64% { opacity: 1 } 68% { opacity: 0; scale: 1.12 } 100% { opacity: 0; scale: 1.12 } }
@keyframes oz-p3 { 0%, 64% { opacity: 0; scale: 1.04 } 68% { opacity: 1 } 96% { opacity: 1 } 100% { opacity: 0; scale: 1.12 } }
@keyframes oz-o1 { 0% { opacity: 0; scale: 1.04; --oz-sw: 0deg } 2% { opacity: 1 } 12% { --oz-sw: 360deg } 29% { opacity: 1 } 33% { opacity: 0; scale: 1.12 } 100% { opacity: 0; scale: 1.04; --oz-sw: 360deg } }
@keyframes oz-o2 { 0%, 34% { opacity: 0; scale: 1.04; --oz-sw: 0deg } 36% { opacity: 1 } 46% { --oz-sw: 360deg } 62% { opacity: 1 } 66% { opacity: 0; scale: 1.12 } 100% { opacity: 0; scale: 1.12; --oz-sw: 360deg } }
@keyframes oz-o3 { 0%, 67% { opacity: 0; scale: 1.04; --oz-sw: 0deg } 69% { opacity: 1 } 79% { --oz-sw: 360deg } 94% { opacity: 1 } 98% { opacity: 0; scale: 1.12 } 100% { opacity: 0; scale: 1.12; --oz-sw: 360deg } }
@keyframes oz-l1 { 0%, 30% { opacity: 1; translate: 0 0 } 33% { opacity: 0; translate: 0 -6px } 97% { opacity: 0; translate: 0 6px } 100% { opacity: 1; translate: 0 0 } }
@keyframes oz-l2 { 0%, 33% { opacity: 0; translate: 0 6px } 36%, 63% { opacity: 1; translate: 0 0 } 66%, 100% { opacity: 0; translate: 0 -6px } }
@keyframes oz-l3 { 0%, 66% { opacity: 0; translate: 0 6px } 69%, 97% { opacity: 1; translate: 0 0 } 100% { opacity: 0; translate: 0 -6px } }
@keyframes oz-n1 { 0%, 30% { opacity: 1; translate: 0 0 } 0% { --oz-n: 0 } 5% { --oz-n: 3 } 33% { opacity: 0; translate: 0 -6px } 97% { opacity: 0; translate: 0 6px; --oz-n: 3 } 100% { opacity: 1; translate: 0 0; --oz-n: 0 } }
@keyframes oz-n2 { 0%, 33% { opacity: 0; translate: 0 6px; --oz-n: 0 } 36% { opacity: 1; translate: 0 0 } 41% { --oz-n: 8 } 63% { opacity: 1; translate: 0 0 } 66%, 100% { opacity: 0; translate: 0 -6px; --oz-n: 8 } }
@keyframes oz-n3 { 0%, 66% { opacity: 0; translate: 0 6px; --oz-n: 0 } 69% { opacity: 1; translate: 0 0 } 75% { --oz-n: 10 } 97% { opacity: 1; translate: 0 0 } 100% { opacity: 0; translate: 0 -6px; --oz-n: 10 } }
@keyframes oz-b1 { 0% { scale: 0 1 } 33.3%, 99.5% { scale: 1 1 } 100% { scale: 0 1 } }
@keyframes oz-b2 { 0%, 33.3% { scale: 0 1 } 66.6%, 99.5% { scale: 1 1 } 100% { scale: 0 1 } }
@keyframes oz-b3 { 0%, 66.6% { scale: 0 1 } 99.5% { scale: 1 1 } 100% { scale: 0 1 } }
@keyframes oz-tap-a { 0%, 100% { transform: none } 30% { transform: translateY(-12px) } 60% { transform: translateY(1px) } }
@keyframes oz-tap-b { 0%, 100% { transform: none } 30% { transform: translateY(-12px) } 60% { transform: translateY(1px) } }

/* ================= launcher: an arched window onto a parcel ================= */
.launch { width: 100px; height: 130px; right: 26px; bottom: calc(26px + var(--lift)); border-radius: 50px 50px 18px 18px; overflow: visible;
  animation: oz-rise .7s var(--out) .3s backwards; transition: transform .35s var(--ease), opacity .25s, visibility 0s, bottom .4s var(--ease); }
.launch::before { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(10, 16, 32, 0) 30%, rgba(10, 16, 32, .9) 100%), url("ozarks-5231.webp") 30% 40% / auto 150% no-repeat, var(--navy2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), var(--deep-sh); animation: oz-pan 18s ease-in-out infinite alternate; }
/* the light running round the rim */
.launch::after { content: ""; position: absolute; inset: -4px; z-index: 0; border-radius: 54px 54px 22px 22px; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--oz-ring), rgba(15, 23, 42, .14) 0 62%, rgba(147, 197, 253, .9) 74%, #fff 80%, rgba(147, 197, 253, .9) 86%, rgba(15, 23, 42, .14) 98%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: oz-ring 5s linear infinite; }
.launch .wig { animation: none; z-index: 1; clip-path: inset(-70px 0 0 0 round 0 0 18px 18px); }
.launch .face { display: none; }
.launch .wig::before { content: ""; position: absolute; left: -10px; top: -44px; width: 120px; height: 257px; transform-origin: 50% 100%;
  background: url("dan-wave.webp") 0 0 / 3000% 200% no-repeat; filter: drop-shadow(0 6px 10px rgba(10, 16, 32, .45));
  transition: transform .4s var(--ease);
  animation: oz-reel-x 2.5s steps(30, jump-none) infinite, oz-reel-y 5s steps(2, jump-none) infinite; }
.launch .tag { left: 50%; right: auto; bottom: 9px; top: auto; z-index: 2; padding: 6px 12px 6px 10px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; transform: translateX(-50%); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5);
  background: rgba(15, 23, 42, .84); -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4); font-size: 0; letter-spacing: 0; text-transform: none; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.launch .tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 3px rgba(191, 219, 254, .25); }
.launch .tag::after { content: "Ask Dan"; font: 600 14px/1 var(--body); color: #fff; letter-spacing: .01em; }
.launch .fx { display: none; }
.launch:hover .wig::before, .launch:focus-visible .wig::before { transform: translateY(-5px) scale(1.02); }
.launch:focus-visible { outline: none; }
.launch:focus-visible::after { background: var(--blue); animation: none; }
.launch:active { transform: scale(.97); }
.launch.hide { transform: translateY(10px) scale(.94); opacity: 0; visibility: hidden; animation: none; transition: transform .25s ease-in, opacity .2s, visibility 0s linear .26s, bottom .4s var(--ease); }
.wrap.thinking .launch .face { animation: none; }

/* ================= teaser: a dark listing notice ================= */
.teaser { right: calc(26px + 100px + 18px); bottom: calc(26px + var(--lift)); width: 300px; transform-origin: 100% 100%; animation: oz-rise .6s var(--out) backwards; }
.teaser.out { animation: oz-fade .2s ease-in reverse forwards; }
.teaser .tb { display: flex; flex-direction: column; padding: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; color: #fff;
  background: url("ozarks-topo-light.svg") 30% 100% / 560px auto no-repeat, linear-gradient(180deg, #111A2E, var(--night)); box-shadow: var(--deep-sh); transition: box-shadow .3s, transform .3s var(--ease); }
.teaser .tb:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 12px 22px -12px rgba(15, 23, 42, .3), 0 40px 70px -28px rgba(15, 23, 42, .7); }
/* v4: the photo is a band across the top and every word sits below it on
   the navy, so a bright field or roof can never sit behind the type */
.teaser .tb::before { content: ""; position: static; display: block; flex: none; width: auto; height: var(--tph, 140px); margin: 0; border: 0; border-radius: 0; transform: none; z-index: auto;
  background: linear-gradient(180deg, rgba(17, 26, 46, .35) 0%, rgba(17, 26, 46, 0) 26%, rgba(17, 26, 46, .12) 68%, rgba(17, 26, 46, .92) 100%), url("ozarks-5231.webp") 50% 62% / 104% auto no-repeat, var(--navy2);
  animation: oz-push 16s ease-in-out 1s infinite alternate; }
/* the boundary, surveyed on over and over */
.teaser::before { content: ""; position: absolute; left: 1px; right: 1px; top: 1px; height: var(--tph, 140px); z-index: 1; border-radius: 13px 13px 0 0; pointer-events: none;
  background: url("ozarks-trace-5231.svg") 50% 62% / 104% auto no-repeat; -webkit-mask: var(--sweep); mask: var(--sweep);
  animation: oz-push 16s ease-in-out 1s infinite alternate, oz-survey 6s var(--ease) .6s infinite; }
.teaser::after { content: "For Sale"; position: absolute; left: 14px; top: 14px; z-index: 2; padding: 6px 11px; border-radius: 999px; background: #fff;
  font: 600 12.5px/1 var(--body); color: var(--navy); box-shadow: 0 1px 3px rgba(15, 23, 42, .25); pointer-events: none; }
.teaser .tb::after { content: ""; position: absolute; left: 18px; right: auto; bottom: 10px; top: auto; width: 30px; height: 30px; border: 0; border-radius: 50%; transform: none; z-index: auto;
  background: url("dan-head.webp") 50% 0 / cover no-repeat, var(--navy2); box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.teaser b { position: relative; z-index: 2; margin: 10px 18px 0; font: 700 21px/1.2 var(--body); letter-spacing: -.025em; text-transform: none; color: #fff; }
.teaser b::before { content: "5231 Osage Beach Parkway \00B7  3 acres"; display: block; margin-bottom: 6px; font: 600 13px/1.35 var(--body); letter-spacing: .01em; color: var(--sky); }
.teaser b em, :host([data-theme="dark"]) .teaser b em { font-style: normal; color: #fff; }
.teaser small { margin: 8px 18px 0; font: 400 14.5px/1.5 var(--body); color: var(--s200); }
.teaser small::after { content: "Chat with Dan"; display: block; margin: 14px 0 0; padding: 14px 26px 15px 42px; border-top: 1px solid rgba(255, 255, 255, .14);
  font: 600 14px/20px var(--body); color: #fff; background: var(--arrow-w) 100% 50% / 16px 16px no-repeat; transition: background-position .3s var(--ease); }
.teaser .tb:hover small::after { background-position: calc(100% + 4px) 50%; }
.teaser .tx, :host([data-theme="dark"]) .teaser .tx { top: 10px; right: 10px; z-index: 3; width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, .45); background: rgba(15, 23, 42, .78); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: none; }
.teaser .tx:hover { background: rgba(15, 23, 42, .92); }
.teaser .tx .ic { width: 14px; height: 14px; stroke-width: 2.4; }
.teaser .tb:focus-visible, .teaser .tx:focus-visible { outline-color: var(--blue); outline-offset: 3px; }

/* ================= panel ================= */
.panel { border: 0; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(15, 23, 42, .08), 0 18px 36px -18px rgba(15, 23, 42, .35), 0 50px 100px -36px rgba(15, 23, 42, .6);
  transform-origin: 100% 100%; transform: translateY(16px) scale(.98);
  transition: transform .35s var(--ease), opacity .2s, visibility 0s linear .35s, bottom .4s var(--ease), height .4s var(--ease); }
.wrap.is-open .panel { transform: none; transition: transform .5s var(--out), opacity .25s, visibility 0s, bottom .4s var(--ease), height .4s var(--ease); }
.panel > .fx { display: none; }

.head { min-height: 64px; padding: 10px 12px 10px 16px; gap: 6px; color: var(--navy); background: rgba(255, 255, 255, .92); border-radius: 0; border-bottom: 1px solid var(--s200); }
.head::before { content: ""; flex: none; width: 92px; height: 42px; background: url("ozarks-logo.webp") 0 50% / contain no-repeat; }
.head :focus-visible, .strip :focus-visible { outline-color: var(--blue); }
.hface { display: none; }
.htext { margin-left: 8px; padding-left: 14px; border-left: 1px solid var(--s200); }
.htext h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.htext p { margin: 0; font-size: 0; color: var(--navy); }
.htext p::before { content: "Ask Dan"; display: block; font: 600 15px/1.25 var(--body); letter-spacing: -.01em; color: var(--navy); white-space: nowrap; }
.htext p::after { content: "Osage Beach, Missouri"; display: block; margin-top: 3px; font: 500 12px/1.25 var(--body); letter-spacing: .04em; text-transform: uppercase; color: var(--s600); white-space: nowrap; }
.hbtn { width: 40px; height: 40px; border: 1px solid var(--s300); border-radius: 10px; background: #fff; color: var(--navy); box-shadow: none; transition: background .15s, border-color .15s; }
.hbtn:hover { transform: none; box-shadow: none; background: var(--s50); border-color: var(--s400); }
.hbtn:active { transform: scale(.96); box-shadow: none; }
.hbtn .ic { width: 18px; height: 18px; stroke-width: 2.1; }

.strip, :host([data-theme="dark"]) .strip { padding: 6px 12px 6px 16px; background: var(--s50); color: var(--navy); border-bottom: 1px solid var(--s200); font: 500 14px/1.2 var(--body); }
.strip a, .strip button { color: var(--navy); }
.strip a { gap: 6px; min-height: 40px; padding: 4px 0; color: var(--s600); }
.strip a b { font: 600 15px/1 var(--body); letter-spacing: 0; color: var(--navy); font-variant-numeric: tabular-nums; }
.strip .ic { width: 16px; height: 16px; color: var(--navy); }
.strip button { gap: 6px; min-height: 40px; padding: 6px 12px; border: 1px solid var(--s400); border-radius: 9px; background: #fff; color: var(--navy); font: 600 14px/1 var(--body); letter-spacing: 0; text-transform: none; transition: background .15s, color .15s, border-color .15s; }
.strip button .ic { color: currentColor; }
.strip button:hover { transform: none; background: var(--navy); border-color: var(--navy); color: #fff; }

/* paper with the lake's contour lines in it */
.scroller { padding: 16px 16px 22px; background: url("ozarks-topo-ink.svg") 70% 100% / 720px auto no-repeat, #fff; }
.scroller::-webkit-scrollbar { width: 8px; }
.scroller::-webkit-scrollbar-thumb { background: var(--s200); border-radius: 8px; border: 2px solid #fff; }

/* ================= welcome: the featured listing ================= */
/* v5: a listing sheet. The aerial is the hero and stays clear: only the
   slide bars and one small chip sit on it. The details are set in a navy
   band under the photo (acreage and address, then the stat strip), and Dan
   greets from the white block below, cut off at the waist by the card's
   bottom edge, with the greeting to his left.

   --ph   photo height          --row  acreage and address row
   --strip stat strip height    --dan  Dan's whole sprite height; he shows
   from the waist up (55% of it) and is .4667 of it wide
   --pos1..3 where each photo sits in its frame, so its outlined parcel is
   in view (the outlines share the photo's position, so they stay in register) */
.stage, :host([data-theme="dark"]) .stage { position: relative; height: auto;
  min-height: calc(var(--ph) + var(--row) + var(--strip) + var(--dan) * .56 + 14px);
  padding: calc(var(--ph) + var(--row) + var(--strip) + 18px) calc(var(--dan) * .4667 + 8px) 20px 20px;
  border: 0; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--s200), var(--deep-sh); isolation: isolate; cursor: default; }
.stage .hero { display: none; }
.stage .fx { position: absolute; inset: 0; pointer-events: none; }
.stage .fx.back, .stage .fx.front { bottom: auto; height: calc(var(--ph) + var(--row)); overflow: hidden; }
.stage .fx i { position: absolute; display: block; }
/* photos (back 1-3) and their surveyed boundaries (front 1-3) share one frame */
.stage .fx.back i:nth-child(-n+3), .stage .fx.front i:nth-child(-n+3) { left: 0; right: 0; top: 0; height: var(--ph); opacity: 0; scale: 1.04;
  background: 50% 100% / cover no-repeat; translate: calc(var(--px, 0) * -6px) calc(var(--py, 0) * -3px); transition: translate .6s var(--ease); }
.stage .fx.back i:nth-child(-n+3) { z-index: 0; background-color: var(--navy2); }
.stage .fx.front i:nth-child(-n+3) { z-index: 2; -webkit-mask: var(--sweep); mask: var(--sweep); filter: drop-shadow(0 0 6px rgba(191, 219, 254, .55)); }
.stage .fx.back i:nth-child(1), .stage .fx.front i:nth-child(1) { opacity: 1; background-position: var(--pos1); }
.stage .fx.back i:nth-child(2), .stage .fx.front i:nth-child(2) { background-position: var(--pos2); }
.stage .fx.back i:nth-child(3), .stage .fx.front i:nth-child(3) { background-position: var(--pos3); }
.stage .fx.back i:nth-child(1) { background-image: url("ozarks-5231.webp"); }
.stage .fx.back i:nth-child(2) { background-image: url("ozarks-6432.webp"); }
.stage .fx.back i:nth-child(3) { background-image: url("ozarks-parkside.webp"); }
.stage .fx.front i:nth-child(1) { background-image: url("ozarks-trace-5231.svg"); }
.stage .fx.front i:nth-child(2) { background-image: url("ozarks-trace-6432.svg"); }
.stage .fx.front i:nth-child(3) { background-image: url("ozarks-trace-parkside.svg"); }
.wrap.is-open .stage .fx.back i:nth-child(1) { animation: oz-p1 21s linear infinite; }
.wrap.is-open .stage .fx.back i:nth-child(2) { animation: oz-p2 21s linear infinite; }
.wrap.is-open .stage .fx.back i:nth-child(3) { animation: oz-p3 21s linear infinite; }
.wrap.is-open .stage .fx.front i:nth-child(1) { animation: oz-o1 21s linear .4s infinite backwards; }
.wrap.is-open .stage .fx.front i:nth-child(2) { animation: oz-o2 21s linear .4s infinite backwards; }
.wrap.is-open .stage .fx.front i:nth-child(3) { animation: oz-o3 21s linear .4s infinite backwards; }
/* a little film grain on the photo; the warm light leak is gone, it washed the land out */
.stage .fx.front i:nth-child(4) { left: 0; right: 0; top: 0; height: var(--ph); z-index: 5; opacity: .14; mix-blend-mode: overlay; background: url("ozarks-grain.svg") 0 0 / 180px 180px; }
.stage .fx.front i:nth-child(5) { display: none; }
/* a soft shade along the top edge only, so the white slide bars show on a pale sky */
.stage .fx.front i:nth-child(12) { left: 0; right: 0; top: 0; height: 60px; z-index: 5; background: linear-gradient(180deg, rgba(10, 16, 32, .42), rgba(10, 16, 32, 0)); }
.stage .fx.front i:nth-child(n+13), .stage .fx.back i:nth-child(10) { display: none; }

/* the details band under the photo. It sits above the photo layers, so a
   photo pushed in by the slow zoom never shows under the type */
.stage::before { content: ""; position: absolute; left: 0; right: 0; top: var(--ph); height: calc(var(--row) + var(--strip)); z-index: 4; pointer-events: none;
  background: url("ozarks-topo-light.svg") 80% 30% / 520px auto no-repeat, linear-gradient(170deg, #16213A, var(--night)); }

/* one progress bar per parcel */
.stage .fx.back i:nth-child(n+7):nth-child(-n+9) { top: 12px; height: 2px; width: calc((100% - 40px) / 3); z-index: 6; border-radius: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.stage .fx.back i:nth-child(7) { left: 16px; }
.stage .fx.back i:nth-child(8) { left: calc(20px + (100% - 40px) / 3); }
.stage .fx.back i:nth-child(9) { left: calc(24px + (100% - 40px) * 2 / 3); }
.stage .fx.back i:nth-child(n+7):nth-child(-n+9)::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; }
.stage .fx.back i:nth-child(8)::after, .stage .fx.back i:nth-child(9)::after { scale: 0 1; }
.wrap.is-open .stage .fx.back i:nth-child(7)::after { animation: oz-b1 21s linear infinite; }
.wrap.is-open .stage .fx.back i:nth-child(8)::after { animation: oz-b2 21s linear infinite; }
.wrap.is-open .stage .fx.back i:nth-child(9)::after { animation: oz-b3 21s linear infinite; }

/* the one chip on the photo: For Sale | 1 / 3, low left, where none of the
   three parcels reaches (the top left holds Parkside's far corner) */
.stage .fx.front i:nth-child(n+6):nth-child(-n+8) { left: 12px; top: calc(var(--ph) - 40px); z-index: 6; display: flex; align-items: center; gap: 7px; padding: 6px 10px 6px 11px; border-radius: 999px;
  background: #fff; box-shadow: 0 2px 8px -2px rgba(10, 16, 32, .4); font: 600 12.5px/1 var(--body); color: var(--navy); }
.stage .fx.front i:nth-child(n+6):nth-child(-n+8)::before { content: "For Sale"; }
.stage .fx.front i:nth-child(n+6):nth-child(-n+8)::after { padding-left: 7px; border-left: 1px solid var(--s300); font: 600 12px/1 var(--body); letter-spacing: .02em; color: var(--s600); font-variant-numeric: tabular-nums; }
.stage .fx.front i:nth-child(6)::after { content: "1 / 3"; }
.stage .fx.front i:nth-child(7)::after { content: "2 / 3"; }
.stage .fx.front i:nth-child(8)::after { content: "3 / 3"; }

/* in the band: the acreage, big and light, then a rule and the address */
.stage .fx.back i:nth-child(n+4):nth-child(-n+6) { left: 20px; top: calc(var(--ph) + (var(--row) - var(--acf)) / 2); z-index: 6; width: var(--acw); display: flex; align-items: baseline; gap: 7px; counter-reset: ac var(--oz-n); }
.stage .fx.back i:nth-child(n+4):nth-child(-n+6)::before { content: counter(ac); font: 300 var(--acf)/1 var(--body); letter-spacing: -.045em; color: #fff; font-variant-numeric: tabular-nums; }
.stage .fx.back i:nth-child(5):nth-child(5)::before { content: counter(ac) ".6"; }
.stage .fx.back i:nth-child(n+4):nth-child(-n+6)::after { content: "acres"; font: 600 12.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--s200); }
.stage .fx.back i:nth-child(4) { --oz-n: 3; }
.stage .fx.back i:nth-child(5) { --oz-n: 8; }
.stage .fx.back i:nth-child(6) { --oz-n: 10; }
.stage .fx.front i:nth-child(n+9):nth-child(-n+11) { left: calc(20px + var(--acw) + 10px); right: 18px; top: calc(var(--ph) + 12px); height: calc(var(--row) - 24px); z-index: 6;
  display: flex; flex-direction: column-reverse; justify-content: center; gap: 3px; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .2); color: #fff; }
.stage .fx.front i:nth-child(n+9):nth-child(-n+11)::after { font: 600 16px/1.3 var(--body); letter-spacing: -.01em; color: #fff; }
.stage .fx.front i:nth-child(n+9):nth-child(-n+11)::before { content: "Osage Beach, Missouri"; font: 500 13px/1.3 var(--body); color: var(--s300); }
.stage .fx.front i:nth-child(9)::after { content: "5231 Osage Beach Parkway"; }
.stage .fx.front i:nth-child(10)::after { content: "6432 Osage Beach Parkway"; }
.stage .fx.front i:nth-child(11)::after { content: "Parkside Village Vacant Land"; }
.stage .fx.front i:nth-child(7), .stage .fx.front i:nth-child(8), .stage .fx.back i:nth-child(5), .stage .fx.back i:nth-child(6), .stage .fx.front i:nth-child(10), .stage .fx.front i:nth-child(11) { opacity: 0; }
.wrap.is-open .stage .fx.front i:nth-child(6), .wrap.is-open .stage .fx.front i:nth-child(9) { animation: oz-l1 21s linear infinite; }
.wrap.is-open .stage .fx.front i:nth-child(7), .wrap.is-open .stage .fx.front i:nth-child(10) { animation: oz-l2 21s linear infinite; }
.wrap.is-open .stage .fx.front i:nth-child(8), .wrap.is-open .stage .fx.front i:nth-child(11) { animation: oz-l3 21s linear infinite; }
.wrap.is-open .stage .fx.back i:nth-child(4) { animation: oz-n1 21s linear infinite; }
.wrap.is-open .stage .fx.back i:nth-child(5) { animation: oz-n2 21s linear infinite; }
.wrap.is-open .stage .fx.back i:nth-child(6) { animation: oz-n3 21s linear infinite; }
/* the site's stat strip, the lower half of the band */
.stage .fx.top { left: 0; right: 0; top: calc(var(--ph) + var(--row)); bottom: auto; height: var(--strip); z-index: 6; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center;
  border-radius: 0; background: rgba(255, 255, 255, .05); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.wrap.is-open .stage .fx.top { animation: oz-rise .7s var(--out) .45s backwards; }
.stage .fx.top i { position: static; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 0 4px; text-align: center; border-left: 1px solid rgba(255, 255, 255, .14); counter-reset: st var(--oz-n); }
.stage .fx.top i:first-child { border-left: 0; }
.stage .fx.top i:nth-child(4) { display: none; }
.stage .fx.top i::before { font: 650 16px/1 var(--body); letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.stage .fx.top i::after { font: 500 12.5px/1.15 var(--body); letter-spacing: 0; text-transform: none; color: var(--s200); white-space: nowrap; }
.stage .fx.top i:nth-child(1) { --oz-n: 275; }
.stage .fx.top i:nth-child(2) { --oz-n: 14; }
.wrap.is-open .stage .fx.top i:nth-child(1), .wrap.is-open .stage .fx.top i:nth-child(2) { animation: oz-tick 1.6s cubic-bezier(.2, .7, .2, 1) .6s backwards; }
.stage .fx.top i:nth-child(1)::before { content: "$" counter(st) "K-$4M"; }
.stage .fx.top i:nth-child(1)::after { content: "Investment range"; }
.stage .fx.top i:nth-child(2)::before { content: "2 to " counter(st); }
.stage .fx.top i:nth-child(2)::after { content: "Acres"; }
.stage .fx.top i:nth-child(3)::before { content: "Ready"; }
.stage .fx.top i:nth-child(3)::after { content: "Utilities"; }

/* the greeting, on white under the band, with Dan to its right: his
   sprite hangs past the card's bottom edge, which cuts him at the waist */
.say { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; z-index: 3; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; transform: none; }
.say::before { display: none; }
.say h3 { font: 700 21px/1.2 var(--body); letter-spacing: -.028em; text-transform: none; color: var(--navy); }
.say h3 em, :host([data-theme="dark"]) .say h3 em { font-style: normal; color: var(--navy); }
.caption { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; z-index: 3; margin: 6px 0 0; padding: 0; border: 0; background: none; box-shadow: none; transform: none; font: 400 15px/1.5 var(--body); color: var(--s600); text-wrap: pretty; }
.wrap.is-open .say { animation: oz-rise .6s var(--out) .35s backwards; }
.wrap.is-open .caption { animation: oz-rise .6s var(--out) .45s backwards; }
.stage::after { content: ""; position: absolute; z-index: 3; right: -2px; top: auto; bottom: calc(var(--dan) * -.45); width: calc(var(--dan) * .4667); height: var(--dan); pointer-events: none;
  background: url("dan-wave.webp") 0 0 / 3000% 200% no-repeat; clip-path: none;
  filter: drop-shadow(0 8px 14px rgba(10, 16, 32, .3));
  translate: calc(var(--px, 0) * 3px) 0; transition: translate .6s var(--ease); }
.wrap.is-open .stage::after { animation: oz-reel-x 2.5s steps(30, jump-none) infinite, oz-reel-y 5s steps(2, jump-none) infinite, oz-up .9s var(--out) .15s backwards; }
.wrap.is-open[data-hit="a"] .stage::after { animation: oz-reel-x 2.5s steps(30, jump-none) infinite, oz-reel-y 5s steps(2, jump-none) infinite, oz-tap-a .6s var(--ease); }
.wrap.is-open[data-hit="b"] .stage::after { animation: oz-reel-x 2.5s steps(30, jump-none) infinite, oz-reel-y 5s steps(2, jump-none) infinite, oz-tap-b .6s var(--ease); }

/* ================= topics ================= */
.tilehead { margin: 28px 2px 14px; gap: 12px; }
.tilehead h3 { font: 600 12.5px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--s600); }
.tilehead h3 span { background: none; }
.tilehead .zig, :host([data-theme="dark"]) .tilehead .zig { height: 1px; background: linear-gradient(90deg, var(--s300), rgba(203, 213, 225, 0)); opacity: 1; }
.tiles { gap: 10px; padding: 0; }
.tile { min-height: 62px; padding: 10px 12px; column-gap: 10px; row-gap: 2px; grid-template-columns: 32px minmax(0, 1fr); border: 1px solid var(--s200); border-radius: 12px; background: rgba(255, 255, 255, .92); color: var(--navy); box-shadow: 0 1px 2px rgba(15, 23, 42, .04); transform: none;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .2s; }
.wrap.is-open .tile { animation: oz-rise .5s var(--out) backwards; animation-delay: calc(.4s + var(--i) * 50ms); }
.tile:hover, .tile:focus-visible { transform: translateY(-3px); border-color: var(--s300); box-shadow: var(--deep-sh); }
.tile:active { transform: translateY(-1px); }
.tile .ti { width: 32px; height: 32px; border: 0; border-radius: 9px; background: var(--s100); color: var(--navy); transition: background .2s, color .2s; }
.tile:hover .ti { background: var(--navy); color: #fff; }
.tile .ti .ic { width: 17px; height: 17px; }
.tile b { font: 600 15px/1.25 var(--body); letter-spacing: -.01em; text-transform: none; }
.tile small { font: 400 14px/1.4 var(--body); color: var(--s600); }
.tile.red { background: linear-gradient(160deg, var(--navy2), var(--night)); border-color: var(--navy); color: #fff; }
.tile.red small { color: var(--s200); }
.tile.red .ti, .tile.red:hover .ti { background: rgba(255, 255, 255, .12); color: #fff; }
/* the first four are listing cards with his photos */
.tile:nth-child(-n+4) { display: flex; flex-direction: column; align-items: stretch; padding: 0 0 12px; overflow: hidden; }
.tile:nth-child(-n+4)::before { content: ""; display: block; height: var(--tile-ph, 96px); margin-bottom: 11px; background: var(--s100) 50% 50% / 100% auto no-repeat; transition: background-size .8s var(--out); }
.tile:nth-child(-n+4):hover::before { background-size: 112% auto; }
/* the icon's box becomes the survey layer over the photo */
.tile:nth-child(-n+4) .ti { display: block; position: absolute; left: 0; right: 0; top: 0; width: auto; height: var(--tile-ph, 96px); border-radius: 0; z-index: 1; pointer-events: none;
  background: 50% 50% / 100% auto no-repeat; --oz-sw: 0deg; opacity: 0; -webkit-mask: var(--sweep); mask: var(--sweep); filter: drop-shadow(0 0 5px rgba(191, 219, 254, .6));
  transition: --oz-sw 1.1s var(--ease), opacity .3s, background-size .8s var(--out); }
.tile:nth-child(-n+4) .ti .ic { display: none; }
.tile:nth-child(-n+4):hover .ti, .tile:nth-child(-n+4):focus-visible .ti { --oz-sw: 360deg; opacity: 1; background-size: 112% auto; }
.tile:nth-child(-n+2) .ti { -webkit-mask: none; mask: none; filter: none; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .35) 45%, transparent 60%) -150% 0 / 200% 100% no-repeat; transition: background-position .9s var(--out), opacity .2s; }
.tile:nth-child(-n+2):hover .ti { background-position: 150% 0; background-size: 200% 100%; }
.tile:nth-child(-n+4) b, .tile:nth-child(-n+4) small { align-self: stretch; text-align: left; }
.tile:nth-child(-n+4) b { position: relative; padding: 0 30px 0 12px; }
.tile:nth-child(-n+4) b::after { content: ""; position: absolute; right: 12px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: var(--arrow) 50% 50% / contain no-repeat; opacity: 0; translate: -6px 0; transition: opacity .3s, translate .4s var(--out); }
.tile:nth-child(-n+4):hover b::after { opacity: 1; translate: 0 0; }
.tile:nth-child(-n+4) small { padding: 2px 12px 0; }
.tile:nth-child(-n+4)::after { position: absolute; left: 8px; top: 8px; z-index: 2; padding: 5px 9px; border-radius: 999px; background: #fff; font: 600 12px/1 var(--body); color: var(--navy); box-shadow: 0 1px 3px rgba(15, 23, 42, .25); }
.tile:nth-child(1)::before { background-image: url("ozarks-campus.webp"); background-position: 50% 70%; }
.tile:nth-child(1)::after { content: "For Sale or Lease"; }
.tile:nth-child(2)::before { background-image: url("ozarks-office.webp"); background-position: 50% 45%; }
.tile:nth-child(2)::after { content: "Class A"; }
.tile:nth-child(3)::before, .tile:nth-child(3) .ti { background-position: 50% 50%; }
.tile:nth-child(3)::before { background-image: url("ozarks-broadwater.webp"); }
.tile:nth-child(3) .ti { background-image: url("ozarks-trace-broadwater.svg"); }
.tile:nth-child(3)::after { content: "For Sale"; }
.tile:nth-child(4)::before, .tile:nth-child(4) .ti { background-position: 50% 62%; }
.tile:nth-child(4)::before { background-image: url("ozarks-6432.webp"); }
.tile:nth-child(4) .ti { background-image: url("ozarks-trace-6432.svg"); }
.tile:nth-child(4)::after { content: "Osage Beach, MO"; }
.ownq { margin: 18px 4px 0; font: 400 14px/1.45 var(--body); color: var(--s600); }

/* ================= conversation ================= */
.log { gap: 18px; }
.u { max-width: 85%; padding: 10px 15px; border: 0; border-radius: 16px 16px 4px 16px; background: linear-gradient(170deg, var(--navy2), var(--navy)); color: #fff; font: 500 15px/1.5 var(--body);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 10px 20px -14px rgba(15, 23, 42, .8); }
:host([data-theme="dark"]) .u { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 10px 20px -14px rgba(15, 23, 42, .8); }
.u.in { animation: oz-rise .4s var(--out) backwards; }
.bot { grid-template-columns: 34px minmax(0, 1fr); column-gap: 10px; row-gap: 14px; }
.av { width: 34px; height: 34px; border: 0; background: var(--s100); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--s200); }
.av img { width: 100%; height: 100%; left: 0; top: 0; object-fit: cover; object-position: 50% 0; }
.bot.in .av { animation: oz-fade .4s ease backwards; }
.bubble { padding: 13px 15px; border: 1px solid var(--s200); border-radius: 4px 16px 16px 16px; background: rgba(255, 255, 255, .94); color: var(--navy); box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.bubble::before { display: none; }
.bot.in .bubble { animation: oz-rise .45s var(--out) .05s backwards; }
.bubble p { font: 400 15px/1.6 var(--body); color: #334155; }
.who, :host([data-theme="dark"]) .who { margin-bottom: 7px; font: 600 12px/1.2 var(--body); letter-spacing: .08em !important; text-transform: uppercase !important; color: var(--s600); }
.kick, :host([data-theme="dark"]) .kick, .ghead .kick { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px 2px; padding: 0; border: 0; background: none; color: var(--s600); font: 600 12px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; transform: none; box-shadow: none; }
.kick::before { content: ""; flex: none; width: 18px; height: 1px; background: var(--s400); }

/* a reply's parts: a spec sheet with big light numerals */
.ghead { margin-bottom: 0; }
.ghead img, .ghead .gn { display: none; }
.secs { gap: 0; border: 1px solid var(--s200); border-radius: 14px; overflow: hidden; background: #fff; counter-reset: p; box-shadow: var(--lift-sh); }
.sec, .sec.v1, .sec.v2, .sec.v3, .sec.v4, :host([data-theme="dark"]) .sec.v1 { padding: 15px 16px 16px; border: 0; border-top: 1px solid var(--s100); border-radius: 0; background: #fff; color: var(--navy); box-shadow: none; transform: none; counter-increment: p; }
.sec:first-child { border-top: 0; }
.bot.in .sec { animation: oz-rise .5s var(--out) backwards; animation-delay: calc(.2s + var(--i) * 90ms); }
.sec::after { display: none; }
.sec .sh { align-items: baseline; gap: 12px; margin-bottom: 5px; }
.sec .num { width: 34px; height: auto; display: block; background: none; }
.sec .num svg, .sec .num span, .sec.v1 .num span, .sec.v2 .num span, .sec.v3 .num span, .sec.v4 .num span { display: none; }
.sec .num::after { content: counter(p, decimal-leading-zero); font: 300 24px/1 var(--body); letter-spacing: -.04em; color: var(--s500); font-variant-numeric: tabular-nums; }
.sec h4 { font: 600 16px/1.3 var(--body); letter-spacing: -.012em; text-transform: none; }
.sec .si { display: none; }
.sec p { margin-left: 46px; font: 400 15px/1.58 var(--body); color: var(--s600); }

/* links to his pages */
.links { gap: 8px; }
.card { position: relative; grid-template-columns: 36px minmax(0, 1fr) 20px; gap: 12px; padding: 11px 14px 11px 11px; overflow: hidden; border: 1px solid var(--s200); border-radius: 12px; background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(15, 23, 42, .04); transform: none; transition: border-color .2s, box-shadow .3s, transform .3s var(--ease); }
.bot.in .card { animation: oz-rise .45s var(--out) backwards; animation-delay: calc(.3s + var(--i) * 70ms); }
.card:hover, .card:focus-visible { transform: translateY(-2px); border-color: var(--s300); box-shadow: var(--deep-sh); }
.card .ci, .card:nth-child(1) .ci, .card:nth-child(2) .ci { width: 36px; height: 36px; border: 0; border-radius: 9px; background: var(--s100); color: var(--navy); }
.card .ci .ic { width: 18px; height: 18px; }
.card .ct { font: 600 15px/1.3 var(--body); letter-spacing: -.01em; text-transform: none; }
.card .cw { margin-top: 2px; font: 400 14px/1.4 var(--body); color: var(--s600); }
.card .go { width: 20px; height: 20px; border: 0; background: none; color: var(--navy); transition: transform .3s var(--ease); }
.card:hover .go { transform: translateX(4px); }
.card .go .ic { width: 18px; height: 18px; stroke-width: 2; }
/* a link to one of his listings shows the parcel; the first such link is a photo card with its boundary */
.card[href$="/real-estate-investment-opportunity/"], .card[href$="/property-investment/"], .card[href$="/vacant-land-for-sale/"],
.card[href$="/undeveloped-land-for-sale/"], .card[href$="/land-investment-opportunity/"], .card[href$="/empty-land-for-sale/"], .card[href$="/properties/"] { --pic: 1; grid-template-columns: 48px minmax(0, 1fr) 20px; }
.card[href$="/real-estate-investment-opportunity/"] .ci, .card[href$="/property-investment/"] .ci, .card[href$="/vacant-land-for-sale/"] .ci,
.card[href$="/undeveloped-land-for-sale/"] .ci, .card[href$="/land-investment-opportunity/"] .ci, .card[href$="/empty-land-for-sale/"] .ci,
.card[href$="/properties/"] .ci { width: 48px; height: 38px; border-radius: 7px; background-position: 50% 50%; background-size: cover; background-repeat: no-repeat; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08); }
.card[href$="/real-estate-investment-opportunity/"] .ci .ic, .card[href$="/property-investment/"] .ci .ic, .card[href$="/vacant-land-for-sale/"] .ci .ic,
.card[href$="/undeveloped-land-for-sale/"] .ci .ic, .card[href$="/land-investment-opportunity/"] .ci .ic, .card[href$="/empty-land-for-sale/"] .ci .ic,
.card[href$="/properties/"] .ci .ic { display: none; }
.card[href$="/real-estate-investment-opportunity/"] .ci { background-image: url("ozarks-campus.webp"); }
.card[href$="/property-investment/"] .ci { background-image: url("ozarks-office.webp"); }
.card[href$="/vacant-land-for-sale/"] .ci { background-image: url("ozarks-trace-parkside.svg"), url("ozarks-parkside.webp"); }
.card[href$="/undeveloped-land-for-sale/"] .ci, .card[href$="/properties/"] .ci { background-image: url("ozarks-trace-6432.svg"), url("ozarks-6432.webp"); }
.card[href$="/land-investment-opportunity/"] .ci { background-image: url("ozarks-trace-5231.svg"), url("ozarks-5231.webp"); }
.card[href$="/empty-land-for-sale/"] .ci { background-image: url("ozarks-trace-broadwater.svg"), url("ozarks-broadwater.webp"); }
.links .card:first-child:is([href$="/properties/"], [href$="/real-estate-investment-opportunity/"], [href$="/property-investment/"], [href$="/vacant-land-for-sale/"], [href$="/undeveloped-land-for-sale/"], [href$="/land-investment-opportunity/"], [href$="/empty-land-for-sale/"]) { grid-template-columns: minmax(0, 1fr) 20px; row-gap: 12px; padding: 0 16px 14px; }
.links .card:first-child:is([href$="/properties/"], [href$="/real-estate-investment-opportunity/"], [href$="/property-investment/"], [href$="/vacant-land-for-sale/"], [href$="/undeveloped-land-for-sale/"], [href$="/land-investment-opportunity/"], [href$="/empty-land-for-sale/"]) .ci {
  grid-column: 1 / -1; width: auto; height: 132px; margin: 0 -16px; border-radius: 0; background-size: 104% auto; background-position: 50% 55%; transition: background-size .8s var(--out); }
.links .card:first-child:is([href$="/properties/"], [href$="/real-estate-investment-opportunity/"], [href$="/property-investment/"], [href$="/vacant-land-for-sale/"], [href$="/undeveloped-land-for-sale/"], [href$="/land-investment-opportunity/"], [href$="/empty-land-for-sale/"]):hover .ci { background-size: 112% auto; }
.links .card:first-child:is([href$="/properties/"], [href$="/real-estate-investment-opportunity/"], [href$="/property-investment/"], [href$="/vacant-land-for-sale/"], [href$="/undeveloped-land-for-sale/"], [href$="/land-investment-opportunity/"], [href$="/empty-land-for-sale/"]) .ct { font-size: 16px; }

/* video */
.vbtn { border: 0; border-radius: 14px; box-shadow: var(--deep-sh); background: linear-gradient(180deg, rgba(10, 16, 32, .1), rgba(10, 16, 32, .85)), url("ozarks-parkside.webp") 50% 50% / cover no-repeat, var(--navy); }
:host([data-theme="dark"]) .vbtn { box-shadow: var(--deep-sh); }
.vbtn:hover, .vbtn:focus-visible { transform: translateY(-2px); box-shadow: var(--deep-sh); }
.bot.in .vbtn { animation: oz-rise .45s var(--out) .3s backwards; }
.vbtn .vrays { display: none; }
.vbtn .vplay { width: 58px; height: 58px; margin: -29px 0 0 -29px; border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .18); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .45); }
.vbtn .vplay .ic { width: 24px; height: 24px; margin-left: 3px; }
.vbtn .vtag { border: 0; border-radius: 999px; padding: 6px 11px; background: #fff; color: var(--navy); font: 600 12.5px/1 var(--body); letter-spacing: 0; text-transform: none; transform: none; box-shadow: none; }
.vbtn .vt { padding-top: 40px; background: linear-gradient(transparent, rgba(10, 16, 32, .9) 40%); font: 600 16px/1.3 var(--body); letter-spacing: -.01em; text-transform: none; }
.vframe { border: 0; border-radius: 14px; box-shadow: var(--deep-sh); animation: oz-fade .3s ease backwards; }
.vlink { min-height: 40px; font: 500 14px/1.3 var(--body); color: var(--navy); text-decoration-color: var(--s500); text-decoration-thickness: 1px; }

/* follow-up questions */
.follow { gap: 8px; }
.chip, .chip:nth-child(2), .chip:nth-child(3), :host([data-theme="dark"]) .chip:nth-child(2) { gap: 8px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--s400); border-radius: 999px; background: #fff; color: var(--navy); font: 500 14.5px/1.35 var(--body); box-shadow: none; transition: background .2s, color .2s, border-color .2s, padding .3s var(--ease); }
:host([data-theme="dark"]) .chip { box-shadow: none; }
.chip .q { display: none; }
.chip::after { content: ""; width: 0; height: 13px; background: var(--arrow-w) 100% 50% / 13px 13px no-repeat; transition: width .3s var(--ease); }
.chip:hover, .chip:focus-visible { transform: none; box-shadow: none; background: var(--navy); border-color: var(--navy); color: #fff; }
.chip:hover::after, .chip:focus-visible::after { width: 13px; }
.chip:active { transform: scale(.98); box-shadow: none; }
.bot.in .chip { animation: oz-rise .45s var(--out) backwards; animation-delay: calc(.45s + var(--i) * 60ms); }

/* thinking: a parcel outline drawing itself */
.typing { gap: 10px; margin-top: 18px; }
.typing .av { animation: none; }
.thought { gap: 10px; padding: 9px 14px 9px 12px; border: 1px solid var(--s200); border-radius: 4px 16px 16px 16px; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); animation: oz-fade .3s ease backwards; }
.thought::before, .thought::after { display: none; }
.dots { gap: 0; }
.dots i { display: none; }
.dots::before { content: ""; width: 36px; height: 20px; background: url("ozarks-draw.svg") 50% 50% / contain no-repeat; }
.tl { font: 500 14px/1.2 var(--body); letter-spacing: 0; text-transform: none; color: var(--s600); }

/* talk to Dan */
.contact { border: 1px solid var(--s200); border-radius: 14px; background: #fff; box-shadow: var(--deep-sh); }
.bot.in .contact { animation: oz-rise .5s var(--out) .25s backwards; }
.ctop { padding: 18px 16px 17px 70px; color: #fff; background: url("ozarks-topo-light.svg") 0 30% / 520px auto no-repeat, linear-gradient(160deg, #16213A, var(--night)); border-bottom: 0; }
.ctop::before { content: ""; position: absolute; left: 16px; top: 50%; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; background: url("dan-head.webp") 50% 0 / cover no-repeat, var(--navy2); box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 6px 14px -4px rgba(0, 0, 0, .5); }
.ctop h4 { font: 650 17px/1.25 var(--body); letter-spacing: -.015em; text-transform: none; text-shadow: none; }
.ctop p { margin-top: 3px; font: 400 14px/1.45 var(--body); color: var(--s200); }
.ctop :focus-visible { outline-color: #fff; }
.cbody { padding: 14px; }
.call, :host([data-theme="dark"]) .call { gap: 12px; padding: 10px 14px 10px 10px; border: 1px solid var(--s200); border-radius: 12px; background: var(--s50); color: var(--navy); box-shadow: none; transition: border-color .2s, box-shadow .3s, transform .3s var(--ease); }
.call:hover, .call:focus-visible { transform: translateY(-1px); border-color: var(--s300); box-shadow: var(--lift-sh); }
.call .cc { width: 42px; height: 42px; border: 0; background: linear-gradient(160deg, var(--navy2), var(--navy)); color: #fff; box-shadow: 0 6px 14px -6px rgba(15, 23, 42, .7); }
.wrap:not(.still) .call .cc { animation: none; }
.call .cc .ic { width: 18px; height: 18px; }
.call small { font: 600 12px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--s600); }
.call b { margin-top: 3px; font: 650 20px/1.1 var(--body); letter-spacing: -.02em; color: var(--navy); font-variant-numeric: tabular-nums; }
.or { margin: 14px 2px 10px; font: 500 15px/1.45 var(--body); color: var(--s600); }
.fgrid { gap: 12px 10px; }
.f label { margin: 0 0 5px 1px; font: 600 14px/1.3 var(--body); letter-spacing: 0; text-transform: none; color: var(--navy3); }
.f label span { font: 400 13px/1.3 var(--body); color: var(--s600); }
.f input, .f textarea, :host([data-theme="dark"]) .f input, :host([data-theme="dark"]) .f textarea { min-height: 44px; padding: 10px 12px; border: 1px solid var(--s500); border-radius: 10px; background: #fff; color: var(--navy); font: 400 16px/1.4 var(--body); transition: border-color .15s, box-shadow .15s; }
.f input:focus, .f textarea:focus, :host([data-theme="dark"]) .f input:focus, :host([data-theme="dark"]) .f textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .35); }
.f [aria-invalid="true"] { border-color: #DC2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .2); }
.fe, :host([data-theme="dark"]) .fe, .ferr, :host([data-theme="dark"]) .ferr { font: 500 13.5px/1.4 var(--body); color: #B91C1C; }
.btn, :host([data-theme="dark"]) .btn { gap: 8px; min-height: 48px; padding: 13px 18px; border: 0; border-radius: 10px; background: linear-gradient(170deg, var(--navy2), var(--navy)); color: #fff; font: 600 15.5px/1 var(--body); letter-spacing: -.005em; text-transform: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 10px 20px -12px rgba(15, 23, 42, .8); transition: filter .2s, transform .2s var(--ease); }
.btn:hover, .btn:focus-visible { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 14px 24px -12px rgba(15, 23, 42, .8); filter: brightness(1.15); }
.btn:active { transform: scale(.98); box-shadow: none; }
.btn .ic { width: 17px; height: 17px; stroke-width: 2; transition: transform .3s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn.ghost { background: #fff; color: var(--navy); border: 1px solid var(--s300); box-shadow: none; }
.btn.ghost:hover { background: var(--s50); filter: none; }
.done { gap: 12px; margin-top: 14px; padding: 13px 14px; border: 1px solid var(--s200); border-radius: 12px; background: var(--s50); color: var(--navy); box-shadow: none; animation: oz-rise .4s var(--out) backwards; }
.done .ck { width: 34px; height: 34px; border: 0; background: var(--navy); color: #fff; }
.done .ck .ic { width: 17px; height: 17px; stroke-width: 2.4; }
.done p { font: 500 15px/1.5 var(--body); }
.done .sent, .done .sentt { display: none; }

.bubble.err { border-color: #FECACA; box-shadow: none; }
.row { gap: 8px; }
.row .btn { font-size: 15px; padding: 10px 14px; min-height: 44px; }

/* ================= offline note and composer ================= */
.offline { padding: 7px 16px 8px; font: 400 13px/1.45 var(--body); color: var(--s600); background: var(--s50); border-top: 1px solid var(--s200); }
.composer { gap: 8px; padding: 12px; border-top: 1px solid var(--s200); background: #fff; border-radius: 0; }
.composer textarea, :host([data-theme="dark"]) .composer textarea { min-height: 48px; padding: 12px 15px; border: 1px solid var(--s500); border-radius: 12px; background: var(--s50); color: var(--navy); font: 400 15px/1.4 var(--body); transition: border-color .15s, box-shadow .2s, background .15s; }
.composer textarea::placeholder { color: var(--s600); }
.composer textarea:focus, :host([data-theme="dark"]) .composer textarea:focus { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .35); }
.send, :host([data-theme="dark"]) .send { width: 48px; height: 48px; border: 0; border-radius: 12px; background: linear-gradient(170deg, var(--navy2), var(--navy)); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 18px -10px rgba(15, 23, 42, .9); transition: filter .2s, opacity .2s, transform .2s var(--ease), background .2s; }
.send .ic { width: 20px; height: 20px; stroke-width: 2.2; transition: transform .3s var(--ease); }
.send:not([disabled]):hover { transform: none; filter: brightness(1.18); }
.send:not([disabled]):hover .ic { transform: translateY(-3px); }
.send:not([disabled]):active { transform: scale(.94); box-shadow: none; }
.send[disabled] { opacity: 1; background: var(--s200); color: var(--s500); box-shadow: none; }

/* ================= touch screens: fingers, not cursors ================= */
@media (pointer: coarse) {
  .hbtn { width: 44px; height: 44px; }
  .strip a, .strip button { min-height: 44px; }
}

/* ================= phones: the chat fills the screen ================= */
@media (max-width: 480px) {
  :host, :host([data-theme="dark"]) { --ph: 210px; --acw: 108px; --acf: 40px; --dan: 220px; }
  .launch { width: 86px; height: 112px; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + var(--lift) + env(safe-area-inset-bottom, 0px)); border-radius: 43px 43px 16px 16px; }
  .launch::after { border-radius: 47px 47px 20px 20px; }
  .launch .wig { clip-path: inset(-60px 0 0 0 round 0 0 16px 16px); }
  .launch .wig::before { left: -9px; top: -38px; width: 104px; height: 223px; }
  .launch .tag { bottom: 7px; padding: 5px 10px 5px 8px; }
  .launch .tag::after { font-size: 13px; }
  .teaser { --tph: 112px; right: calc(16px + 86px + 12px + env(safe-area-inset-right, 0px)); bottom: calc(16px + var(--lift) + env(safe-area-inset-bottom, 0px)); width: min(268px, calc(100vw - 16px - 86px - 12px - 10px)); }
  .teaser b { margin: 10px 15px 0; font-size: 18px; }
  .teaser small { margin: 6px 15px 0; font-size: 14px; }
  .teaser small::after { margin-top: 12px; padding: 12px 24px 12px 38px; font-size: 14px; }
  .teaser .tb::after { left: 15px; bottom: 11px; width: 27px; height: 27px; }
  .panel { top: 0; bottom: 0; height: auto; border-radius: 0; box-shadow: none; }
  .head { padding: calc(8px + env(safe-area-inset-top, 0px)) calc(10px + env(safe-area-inset-right, 0px)) 8px calc(14px + env(safe-area-inset-left, 0px)); min-height: 60px; }
  .head::before { width: 78px; height: 36px; }
  .htext { margin-left: 4px; padding-left: 12px; }
  .hbtn { width: 44px; height: 44px; }
  .strip { padding-left: calc(14px + env(safe-area-inset-left, 0px)); padding-right: calc(12px + env(safe-area-inset-right, 0px)); }
  .scroller { padding-left: calc(14px + env(safe-area-inset-left, 0px)); padding-right: calc(14px + env(safe-area-inset-right, 0px)); }
  .composer { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); padding-left: calc(12px + env(safe-area-inset-left, 0px)); padding-right: calc(12px + env(safe-area-inset-right, 0px)); }
  .stage .fx.top i::before { font-size: 15px; }
  .say h3 { font-size: 20px; }
  /* reading size on a phone */
  .u, .bubble p, .sec p, .composer textarea, :host([data-theme="dark"]) .composer textarea { font-size: 16px; }
  .sec p { margin-left: 0; margin-top: 2px; }
  .tiles { gap: 8px; }
}
/* a short phone (SE and the like): a shorter featured photo */
@media (max-width: 480px) and (max-height: 700px) {
  :host, :host([data-theme="dark"]) { --ph: 184px; --dan: 200px; }
}
@media (max-width: 380px) {
  .say h3 { font-size: 19px; }
  .stage .fx.top i::before { font-size: 14px; }
  .stage .fx.top i::after { font-size: 12px; }
  .htext p::after { display: none; }
  .strip a span { display: none; }  /* the link still reads "Call (805) 701-3978" from its label */
  .tile:nth-child(-n+4) b { padding-right: 12px; }
}

/* ================= short desktop and tablet windows ================= */
@media (min-width: 481px) and (max-height: 760px) {
  :host, :host([data-theme="dark"]) { --ph: 200px; --dan: 190px; }
}

/* ================= short screens: phones held sideways ================= */
/* Under 500px tall a floating panel leaves almost nothing to read in, so the
   chat takes the screen, the header shrinks, and the welcome art shrinks */
@media (max-height: 500px) {
  :host, :host([data-theme="dark"]) { --ph: 180px; --dan: 180px; --tile-ph: 72px; }
  .launch { width: 86px; height: 112px; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(14px + var(--lift) + env(safe-area-inset-bottom, 0px)); border-radius: 43px 43px 16px 16px; }
  .launch::after { border-radius: 47px 47px 20px 20px; }
  .launch .wig { clip-path: inset(-60px 0 0 0 round 0 0 16px 16px); }
  .launch .wig::before { left: -9px; top: -38px; width: 104px; height: 223px; }
  .launch .tag { bottom: 7px; padding: 5px 10px 5px 8px; }
  .launch .tag::after { font-size: 13px; }
  .teaser { --tph: 84px; right: calc(16px + 86px + 14px + env(safe-area-inset-right, 0px)); bottom: calc(14px + var(--lift) + env(safe-area-inset-bottom, 0px)); width: 300px; }
  .teaser b { margin-top: 8px; font-size: 19px; }
  .teaser small { margin-top: 6px; font-size: 14px; line-height: 1.45; }
  .teaser small::after { margin-top: 10px; padding-top: 11px; padding-bottom: 12px; }
  .panel { top: 0; right: 0; bottom: 0; left: 0; width: auto; height: auto; border-radius: 0; box-shadow: none; transform-origin: 100% 100%; }
  .head { min-height: 52px; padding: 5px calc(10px + env(safe-area-inset-right, 0px)) 5px calc(14px + env(safe-area-inset-left, 0px)); }
  .head::before { width: 72px; height: 34px; }
  .htext { margin-left: 4px; padding-left: 12px; }
  .htext p::after { display: none; }
  .strip { padding: 2px calc(12px + env(safe-area-inset-right, 0px)) 2px calc(14px + env(safe-area-inset-left, 0px)); }
  .scroller { padding: 12px calc(16px + env(safe-area-inset-right, 0px)) 16px calc(16px + env(safe-area-inset-left, 0px)); }
  .offline { padding: 5px calc(16px + env(safe-area-inset-right, 0px)) 6px calc(16px + env(safe-area-inset-left, 0px)); }
  .composer { padding: 7px calc(12px + env(safe-area-inset-right, 0px)) calc(7px + env(safe-area-inset-bottom, 0px)) calc(12px + env(safe-area-inset-left, 0px)); }
  .composer textarea, :host([data-theme="dark"]) .composer textarea { min-height: 46px; max-height: 92px; padding-top: 11px; padding-bottom: 11px; font-size: 16px; }
  .send, :host([data-theme="dark"]) .send { width: 46px; height: 46px; }
  .u, .bubble p, .sec p { font-size: 16px; }
  .tilehead { margin: 18px 2px 10px; }
  .ownq { margin-top: 12px; }
}
/* wide enough to put the call bar in the header row, beside Dan's name, and
   to stand the featured listing beside its words as a short banner */
@media (max-height: 500px) and (min-width: 641px) {
  .panel { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto; }
  .head { grid-area: 1 / 1; }
  .strip, :host([data-theme="dark"]) .strip { grid-area: 1 / 1; z-index: 1; align-self: center; justify-self: end; gap: 10px; padding: 0;
    margin-right: calc(10px + env(safe-area-inset-right, 0px) + 44px + 10px); background: none; border: 0; }
  /* after the first answer the reset button joins the close button */
  .head:has(> .hbtn:not([hidden]) + .hbtn) + .strip { margin-right: calc(10px + env(safe-area-inset-right, 0px) + 44px + 6px + 44px + 10px); }
  .strip a span { display: none; }  /* the link still reads "Call (805) 701-3978" from its label */
  .scroller { grid-row: 2; }
  .offline { grid-row: 3; }
  .composer { grid-row: 4; }

  /* the featured listing as a short banner: the photo on the left half, the
     navy details panel beside it (Parkside's parcel is tall, so the photo
     cannot get much wider and still show all of it), the greeting in one line underneath.
     Dan sits this one out; there is no room for him without covering text */
  :host, :host([data-theme="dark"]) { --ph: 196px; --row: 0px; --strip: 56px; --acf: 38px; --pos1: 50% 88%; --pos2: 50% 78%; --pos3: 50% 95%; }
  .stage, :host([data-theme="dark"]) .stage { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 16px; row-gap: 2px; min-height: 0; padding: calc(var(--ph) + 14px) 20px 16px; }
  .say { flex: none; }
  .caption { flex: 1 1 240px; margin: 0; }
  .stage::after { display: none; }
  .stage .fx.back, .stage .fx.front { height: var(--ph); }
  .stage .fx.back i:nth-child(-n+3), .stage .fx.front i:nth-child(-n+3), .stage .fx.front i:nth-child(4), .stage .fx.front i:nth-child(12) { right: 50%; }
  .stage::before { top: 0; left: 50%; height: var(--ph); }
  .stage .fx.back i:nth-child(n+7):nth-child(-n+9) { width: calc((50% - 40px) / 3); }
  .stage .fx.back i:nth-child(8) { left: calc(20px + (50% - 40px) / 3); }
  .stage .fx.back i:nth-child(9) { left: calc(24px + (50% - 40px) * 2 / 3); }
  .stage .fx.back i:nth-child(n+4):nth-child(-n+6) { left: calc(50% + 20px); top: 18px; width: auto; }
  .stage .fx.front i:nth-child(n+9):nth-child(-n+11) { left: calc(50% + 20px); right: 18px; top: 64px; height: auto; justify-content: flex-start; padding-left: 0; border-left: 0; }
  .stage .fx.front i:nth-child(n+9):nth-child(-n+11)::after { font-size: 15px; }
  .stage .fx.top { left: 50%; top: calc(var(--ph) - var(--strip)); }
  .stage .fx.top i { gap: 3px; }
  .stage .fx.top i::before { font-size: 14.5px; }
  .stage .fx.top i::after { font-size: 12px; line-height: 1.15; white-space: normal; }
}
/* wide enough for the topics four across */
@media (max-height: 500px) and (min-width: 760px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* narrower and short: the bars stay stacked; the call link keeps its number */
@media (max-height: 500px) and (max-width: 640px) {
  .strip a span { display: none; }
}

/* reduced motion: the widget already stops every animation; Dan stands on
   his first frame, the first parcel stays up with its boundary drawn, the
   numbers show their real values, and the parcel sketch stops drawing */
@media (prefers-reduced-motion: reduce) {
  .stage .fx.back i:nth-child(n+7):nth-child(-n+9) { display: none; }
  .launch .wig::before, .stage::after, .stage .fx i { transition: none; }
  .launch::after { background: rgba(255, 255, 255, .5); }
  .teaser::before { opacity: 1; }
}
