/* Before-and-after hero test. Only transform moves; --f is the share of the old site showing
   (1 = all old, 0 = all new) and --k is the knob's position, kept inside the screen by ba.js. */
.ba { --f: .35; --k: .35; --knob: 44px; width: 100%; display: flex; justify-content: center; }
html.motion .ba { --f: 1; --k: .9; }
.ba-phone { width: min(300px, 80vw); padding: 9px; background: #1E1915; border-radius: 42px; box-shadow: var(--shadow), inset 0 0 0 1.5px #3A332C; }
.ba-screen { position: relative; aspect-ratio: 280 / 580; border-radius: 33px; overflow: hidden; background: var(--paper); container-type: inline-size; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; cursor: ew-resize; transform: translateZ(0); isolation: isolate; }
.ba-after, .ba-clip, .ba-before { position: absolute; inset: 0; }
.ba-clip { overflow: hidden; z-index: 1; transform: translate3d(calc((var(--f) - 1) * 100%), 0, 0); }
.ba-before { transform: translate3d(calc((1 - var(--f)) * 100%), 0, 0); }
.ba.is-playing .ba-clip, .ba.is-playing .ba-before, .ba.is-drag .ba-clip, .ba.is-drag .ba-before { will-change: transform; }
.ba-linerail, .ba-knobrail { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.ba-linerail { transform: translate3d(calc(var(--f) * 100%), 0, 0); }
.ba-knobrail { transform: translate3d(calc(var(--k) * 100%), 0, 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: var(--card); box-shadow: 0 0 0 1px rgba(34, 28, 23, .4); }
.ba-knob { position: absolute; left: calc(var(--knob) / -2); top: calc(50% - var(--knob) / 2); width: var(--knob); height: var(--knob); box-sizing: border-box; border-radius: 50%; background: var(--ink); border: 2px solid var(--card); box-shadow: 0 4px 14px rgba(0, 0, 0, .32); display: grid; place-items: center; color: var(--card); pointer-events: auto; cursor: grab; touch-action: none; }
.ba-knob svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ba-knob:focus { outline: none; }
.ba-knob:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; }
.ba.is-drag .ba-screen, .ba.is-drag .ba-knob { cursor: grabbing; }
.ba-tag { position: absolute; top: 17cqw; z-index: 2; font: 700 12px/1 "Courier Prime", ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; padding: 6px 8px 5px; border: 1px solid var(--ink); }
.ba-tag-before { left: 4cqw; background: var(--ticket); color: var(--ink); }
.ba-tag-after { right: 4cqw; background: var(--brick); color: #fff; border-color: var(--brick-deep); }

/* The new site */
.ba-after { background: var(--paper); color: var(--ink); overflow: hidden; }
.na-head { height: 13cqw; display: flex; align-items: center; justify-content: space-between; padding: 0 4.5cqw; background: var(--card); border-bottom: 1px solid rgba(34, 28, 23, .15); }
.na-logo { width: 8.5cqw; height: 8.5cqw; border-radius: 50%; background: var(--green); box-shadow: inset 0 0 0 2px var(--mustard); }
.na-tel { width: 9cqw; height: 9cqw; box-sizing: border-box; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; }
.na-tel svg { width: 4.6cqw; height: 4.6cqw; fill: var(--ink); }
.na-hero { position: relative; }
.na-pic { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; }
.na-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 46%; background: linear-gradient(to bottom, rgba(243, 236, 221, 0), var(--paper)); }
.na-body { position: relative; padding: 0 5cqw; }
.na-h { margin: -8cqw 0 0; font: 400 11.5cqw/1 "Alfa Slab One", Georgia, serif; position: relative; }
.na-line { margin: 2.2cqw 0 0; font-size: max(12px, 4.8cqw); line-height: 1.3; color: var(--muted); }
.na-call { margin-top: 4cqw; height: 14cqw; display: flex; align-items: center; justify-content: center; gap: 2cqw; background: var(--brick); color: #fff; font: 700 max(12px, 6cqw)/1 "Big Shoulders Display", Impact, sans-serif; letter-spacing: .06em; text-transform: uppercase; border-radius: 1.6cqw; box-shadow: 0 2px 0 var(--brick-deep); }
.na-call svg { width: 5cqw; height: 5cqw; fill: currentColor; }
.na-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 2cqw; margin-top: 3.6cqw; }
.na-chips span { border: 1px solid rgba(34, 28, 23, .35); border-radius: 10px; padding: 1.6cqw 2.2cqw; font-size: max(12px, 4.3cqw); line-height: 1.2; white-space: nowrap; background: var(--card); }
.na-chips b { color: var(--brick-text); font-weight: 400; }
.na-k { margin: 6cqw 0 0; font: 700 12px/1 "Courier Prime", ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.na-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 2cqw; margin-top: 2.6cqw; }
.na-tiles span { height: 15cqw; box-sizing: border-box; display: flex; align-items: flex-end; padding: 2.4cqw; background: var(--card); border: 1px solid var(--ink); font: 700 max(12px, 5cqw)/1.05 "Big Shoulders Display", Impact, sans-serif; text-transform: uppercase; letter-spacing: .03em; }
.na-rev { margin-top: 5cqw; padding: 3.4cqw 4cqw; background: var(--card); border-left: 3px solid var(--brick); }
.na-rev b { color: var(--brick-text); font-weight: 400; letter-spacing: .1em; font-size: max(12px, 4.4cqw); }
.na-rev p { margin: 1.2cqw 0 0; font-style: italic; font-size: max(12px, 4.6cqw); line-height: 1.3; }

/* The old site */
.ba-before { background: #fff; color: #000; font-family: "Times New Roman", Times, serif; overflow: hidden; }
.ob-top { height: 16cqw; display: flex; align-items: center; padding-left: 4cqw; background: linear-gradient(#3563B5, #142F69); color: #FFE24A; font: italic 700 8cqw/1 "Times New Roman", Times, serif; white-space: nowrap; text-shadow: 1px 1px 0 #000; }
.ob-marq { height: 7cqw; display: flex; align-items: center; padding-left: 2cqw; white-space: nowrap; background: #FFFF99; border-top: 1px solid #999; border-bottom: 1px solid #999; font-size: 12px; }
.ob-img { margin: 3cqw 0 0 3cqw; width: 70cqw; height: 34cqw; box-sizing: border-box; border: 2px inset #BBB; background: linear-gradient(to top right, transparent calc(50% - 1px), #C33 calc(50% - 1px), #C33 calc(50% + 1px), transparent calc(50% + 1px)), linear-gradient(to bottom right, transparent calc(50% - 1px), #C33 calc(50% - 1px), #C33 calc(50% + 1px), transparent calc(50% + 1px)), #EEE; }
.ob-cols { display: flex; gap: 3cqw; padding: 3cqw; width: 130cqw; box-sizing: border-box; }
.ob-left { flex: 0 0 26cqw; display: flex; flex-direction: column; align-items: flex-start; gap: 3cqw; }
.ob-nav { align-self: stretch; display: flex; flex-direction: column; gap: 2.2cqw; padding: 2.4cqw; background: #E4E4E4; border: 1px solid #AAA; }
.ob-nav span { color: #00E; text-decoration: underline; font-size: 12px; white-space: nowrap; }
.ob-main { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 2.2cqw; }
.ob-bar { display: block; flex: none; height: 1.9cqw; background: #A2A2A2; border-radius: 1px; }
.ob-click { color: #C00; text-decoration: underline; font-weight: 700; font-size: 12px; }
.ob-uc { margin: 1cqw 0 0 3cqw; width: 110cqw; height: 5cqw; background: repeating-linear-gradient(45deg, #111 0 2.2cqw, #FFD400 2.2cqw 4.4cqw); border: 1px solid #111; }
.ob-count { font: 12px/1 ui-monospace, "Courier New", monospace; background: #000; color: #39FF14; padding: 1.4cqw 2cqw; white-space: nowrap; }
.ob-best { margin: 3cqw 0 0 3cqw; font-size: 12px; font-style: italic; color: #444; white-space: nowrap; }
.ob-foot { position: absolute; left: 0; right: 0; bottom: 7cqw; text-align: center; font-size: 12px; color: #555; }
.ob-scroll { position: absolute; left: 2cqw; right: 2cqw; bottom: 2cqw; height: 2.4cqw; background: #DCDCDC; border-radius: 2cqw; }
.ob-scroll i { display: block; width: 58%; height: 100%; background: #9A9A9A; border-radius: 2cqw; }

/* Desktop: top-aligned with the hero's first line, right edge on the header button's edge. */
@media (min-width: 861px) {
  .hero-pad .hero-grid > .end:has(.ba) { align-self: start; }
  .ba { justify-content: flex-end; }
  .ba-phone { width: 320px; }
}
