/* PopBySpace "opening soon" shop front, /coming-soon. */
:root {
  --plum: #1c2b47; --plum-deep: #131e33; --plum-2: #2f4f80; --coral: #ff6b5b;
  --cream: #fbf3e6; --gold: #d9b26a; --gold-2: #f3dca7; --brick: #6b3a35; --ink: #141c2e;
  --glass: rgba(255, 236, 200, 0.12);
  --serif: Georgia, "Times New Roman", serif; --sans: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; font-family: var(--sans); color: var(--cream); overflow-x: hidden;
  background:
    radial-gradient(900px 420px at 50% 4%, rgba(255, 170, 120, 0.35), transparent 70%),
    linear-gradient(180deg, #0b1220 0%, #1c2b47 45%, #6e4a4a 78%, #c4614f 100%);
}

/* The building: a brick wall the shop sits in. */
.street { position: relative; padding: 96px 16px 0; }
.building {
  position: relative; max-width: 1080px; margin: 0 auto; padding: 0 22px;
  background:
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(0, 0, 0, 0.22) 22px 24px),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(0, 0, 0, 0.16) 46px 48px),
    linear-gradient(180deg, #7a443d, var(--brick));
  border-radius: 0;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}
.cornice { height: 34px; margin: 0 -30px; border-radius: 3px; box-shadow: 0 8px 0 rgba(0, 0, 0, 0.18);
  background: linear-gradient(180deg, #f3e8d2 0 14px, #d8c8a8 14px 16px, transparent 16px), repeating-linear-gradient(90deg, #efe3cb 0 12px, #c9b493 12px 20px) 0 16px / 100% 18px no-repeat, #efe3cb; }

/* The fascia sign. */
.fascia {
  position: relative; margin: 0; padding: 22px 24px 18px; text-align: center;
  background: linear-gradient(180deg, var(--plum-deep), #0d1526);
  border: 3px solid var(--gold); outline: 6px solid #080e1a; border-radius: 6px;
  box-shadow: inset 0 0 0 2px rgba(243, 220, 167, 0.25), 0 10px 24px rgba(0, 0, 0, 0.4);
}
.fascia::before, .fascia::after { content: ""; position: absolute; top: -26px; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 50% 70%, #fff6dc, #f4c36a 45%, transparent 70%); filter: blur(0.5px); }
.fascia::before { left: 16%; } .fascia::after { right: 16%; }
.wordmark { display: inline-flex; align-items: center; gap: 16px; font-family: var(--serif); font-weight: 800; font-size: clamp(38px, 8vw, 84px); line-height: 1; letter-spacing: 0.01em; color: var(--gold-2); text-shadow: 0 0 18px rgba(243, 220, 167, 0.45), 0 2px 0 #7a5a20; }
.wordmark b { color: var(--coral); font-style: italic; font-weight: 600; text-shadow: 0 0 18px rgba(255, 107, 91, 0.55), 0 2px 0 #5a1c14; }
.wordmark svg { width: 0.8em; height: 0.8em; flex: none; color: var(--gold-2); filter: drop-shadow(0 0 10px rgba(243, 220, 167, 0.5)); }
.tagline { margin: 10px 0 0; font-size: clamp(11px, 1.6vw, 14px); letter-spacing: 0.32em; text-transform: uppercase; color: #e8d6b0; }
.tagline i { color: var(--gold); font-style: normal; padding: 0 0.6em; }

/* The striped awning with a scalloped edge. */
.awning { position: relative; z-index: 3; margin: 18px -34px 0; height: 74px; perspective: 600px; }
.awning-cloth {
  position: absolute; inset: 0; transform-origin: top; transform: rotateX(28deg);
  background: repeating-linear-gradient(90deg, var(--plum) 0 54px, var(--cream) 54px 108px);
  border-top: 6px solid #0d1526; box-shadow: 0 16px 20px rgba(0, 0, 0, 0.35);
}
.awning-edge {
  position: absolute; left: 0; right: 0; bottom: -20px; height: 28px;
  background:
    radial-gradient(circle at 27px 0, var(--plum) 26px, transparent 27px) 0 0 / 108px 28px repeat-x,
    radial-gradient(circle at 81px 0, var(--cream) 26px, transparent 27px) 0 0 / 108px 28px repeat-x;
  filter: drop-shadow(0 6px 4px rgba(0, 0, 0, 0.3));
}

/* The shopfront: two display windows and a door. */
.front { position: relative; display: grid; grid-template-columns: 1fr 240px 1fr; gap: 26px; padding: 44px 24px 0; margin: 0 -10px;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.07) 0 2px, transparent 2px 7px), linear-gradient(180deg, #efe4cd, #d9c9aa); }
.window, .door { position: relative; border: 10px solid #0d1526; border-bottom: 0; border-radius: 6px 6px 0 0; overflow: hidden; }
.window {
  background: radial-gradient(120% 90% at 50% 0%, rgba(255, 214, 150, 0.45), rgba(80, 40, 30, 0.85) 75%), #2b1720;
  padding: 18px 16px 0; min-height: 300px; display: flex; flex-direction: column;
}
.window::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, 0.16) 0 18%, transparent 18% 32%, rgba(255, 255, 255, 0.07) 32% 38%, transparent 38%); pointer-events: none; }
.window-label { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--gold-2); text-align: center; margin: 0 0 12px; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card:nth-child(1) { --r: -2deg; } .card:nth-child(2) { --r: 1.5deg; } .card:nth-child(3) { --r: 1deg; } .card:nth-child(4) { --r: -1.5deg; }
.right .card:nth-child(1) { --r: 1.5deg; } .right .card:nth-child(2) { --r: -1deg; } .right .card:nth-child(3) { --r: -2deg; } .right .card:nth-child(4) { --r: 2deg; }
.card { background: #fffdf8; color: var(--ink); border-radius: 4px; padding: 6px 6px 8px; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35); transform: rotate(var(--r, 0deg)); }
.card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; background: #e9dfd1; }
.card p { margin: 6px 2px 0; font-size: 11px; font-weight: 700; display: flex; justify-content: space-between; gap: 6px; }
.card span { font-weight: 600; color: var(--plum-2); }
.sill { position: relative; z-index: 2; margin: 16px -16px 0; height: 64px; background: linear-gradient(180deg, #e9dcc4 0 10px, #b8a283 10px 14px, #1c2b47 14px); box-shadow: inset 0 0 0 0 transparent; }
.sill::after { content: ""; position: absolute; left: 16px; right: 16px; top: 24px; bottom: 10px; border: 2px solid rgba(217, 178, 106, 0.7); border-radius: 2px; box-shadow: inset 0 0 0 4px #16223a, inset 0 0 0 5px rgba(217, 178, 106, 0.35); }
.window .cards { margin-top: auto; }

.card.empty { display: flex; flex-direction: column; background: rgba(255, 253, 248, 0.9); }
.card .frame-slot { aspect-ratio: 4 / 3; display: grid; place-items: center; border: 2px dashed var(--gold); border-radius: 2px; color: var(--gold); font-size: 34px; font-weight: 300; background: #f6efe2; }
.card.empty p { justify-content: center; color: var(--plum); }

/* The door column: a brass plaque, then the door. The door swings open every few seconds to show the agent's
   laptop inside, then closes again so "Opening soon" comes back. */
.door-col { display: flex; flex-direction: column; gap: 10px; }
.plaque { align-self: center; font-family: var(--serif); font-style: italic; font-size: 13px; color: #3a2a10; padding: 6px 14px; border-radius: 4px; background: linear-gradient(180deg, #f3dca7, #c99a4e); border: 1px solid #8a6a2c; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5); white-space: nowrap; }
.door { flex: 1; min-height: 340px; perspective: 900px; background: #0d1526; }
.door-inside { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 12px 8px 12px 40px;
  background: radial-gradient(90% 70% at 50% 35%, rgba(255, 220, 160, 0.55), transparent 70%), linear-gradient(180deg, #4a3326, #2a1c16 70%, #1d130f); }
.door-inside::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: linear-gradient(180deg, #6b4a32, #4a321f); box-shadow: 0 -2px 0 #8a6544; z-index: 0; }
.laptop { position: relative; z-index: 1; width: 100%; max-width: 200px; margin-top: 40px; }
.screen { background: #fff; border: 6px solid #111; border-bottom-width: 8px; border-radius: 8px 8px 0 0; padding: 5px; color: var(--ink); box-shadow: 0 0 30px rgba(255, 220, 160, 0.35); }
.base { height: 9px; margin: 0 -14px; background: linear-gradient(180deg, #c9ccd2, #8b9099); border-radius: 0 0 10px 10px; }
.scr-bar { display: flex; justify-content: space-between; align-items: baseline; font-size: 8px; color: #555; margin-bottom: 4px; }
.scr-bar b { font-family: var(--serif); font-size: 10px; color: var(--plum); } .scr-bar i { color: var(--coral); }
.scr-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 5px; align-items: center; padding: 3px; border-radius: 4px; margin-top: 3px; background: #f4f5f8; }
.scr-row.hot { background: #fff4dc; outline: 1px solid var(--gold); }
.scr-row img { width: 34px; height: 25px; object-fit: cover; border-radius: 2px; }
.scr-row p { margin: 0; font-size: 7.5px; line-height: 1.25; color: #555; } .scr-row strong { display: block; font-size: 8.5px; color: var(--ink); }
.scr-row em { font-style: normal; font-size: 7px; font-weight: 700; color: #3a2a10; background: linear-gradient(180deg, var(--gold-2), var(--gold)); border-radius: 999px; padding: 2px 5px; }
.scr-row em.new { background: #dcefe6; color: #14614c; }
.inside-note { position: relative; z-index: 1; margin: 0; font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--gold-2); text-align: center; }
.door-leaf { position: absolute; inset: 0; z-index: 2; display: grid; place-items: start center; background: linear-gradient(180deg, #1c2b47, #0d1526); transform-origin: left center; transition: transform 1.2s ease-in-out; backface-visibility: hidden; }
.door.open .door-leaf { transform: rotateY(84deg); }
.door-glass { position: absolute; inset: 16px 16px 120px; border: 6px solid #080e1a; background: radial-gradient(120% 90% at 50% 0%, rgba(255, 214, 150, 0.4), rgba(60, 30, 40, 0.9) 80%); }
.door-handle { position: absolute; right: 22px; top: 58%; width: 8px; height: 46px; border-radius: 4px; background: linear-gradient(90deg, #a8843f, var(--gold-2), #a8843f); }
.door-panel { position: absolute; left: 16px; right: 16px; bottom: 18px; height: 80px; border: 4px solid #080e1a; border-radius: 3px; }
.hang { position: relative; z-index: 2; margin-top: 40px; display: grid; justify-items: center; transform-origin: top center; animation: sway 4s ease-in-out infinite; }
.hang::before { content: ""; width: 70px; height: 34px; border: 2px solid var(--gold); border-bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; margin-bottom: -2px; }
.hang-sign { background: var(--cream); color: var(--plum); border: 3px solid var(--gold); border-radius: 8px; padding: 10px 16px; text-align: center; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); }
.hang-sign strong { display: block; font-family: var(--serif); font-size: 24px; line-height: 1.05; }
.hang-sign small { display: block; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--coral); font-weight: 700; margin-top: 4px; }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }

.step { height: 20px; margin: 0 -22px; background: linear-gradient(180deg, #d9cbb1, #9f8c6f); }
.pavement { max-width: 1200px; margin: 0 auto; height: 36px; background: repeating-linear-gradient(90deg, #3d4452 0 118px, #2e3441 118px 120px); border-radius: 0 0 14px 14px; opacity: 0.85; }

/* The message under the shop. */
.notice { max-width: 760px; margin: 0 auto; padding: 8px 16px 40px; text-align: center; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-2); border: 1px solid rgba(243, 220, 167, 0.5); border-radius: 999px; padding: 7px 16px; }
h1 { font-family: var(--serif); font-weight: 800; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.05; margin: 8px 0 6px; letter-spacing: -0.01em; }
h1 em { color: var(--gold-2); }
.lead { font-size: 16px; line-height: 1.5; color: #f1ece4; margin: 0 auto 14px; max-width: 600px; }
.points { list-style: none; padding: 0; margin: 0 auto 16px; display: grid; gap: 6px; justify-content: center; font-size: 15px; text-align: left; color: #f1ece4; }
.points li { position: relative; padding-left: 26px; }
.points li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23131e33' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.who { display: inline-flex; gap: 4px; padding: 4px; margin: 0 auto 14px; border-radius: 999px; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.18); }
.who button { border: 0; border-radius: 999px; padding: 9px 16px; font: inherit; font-size: 14px; font-weight: 600; color: #f1ece4; background: transparent; cursor: pointer; }
.who button[aria-checked="true"] { background: var(--cream); color: var(--plum-deep); }
form { max-width: 520px; margin: 0 auto; display: grid; gap: 10px; }
.agent-fields, .email-row { display: flex; gap: 10px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px; padding: 6px; backdrop-filter: blur(8px); }
.agent-fields input + input { border-left: 1px solid rgba(255, 255, 255, 0.22); }
.agent-fields[hidden] { display: none; }
form input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; font: inherit; font-size: 16px; padding: 12px 16px; outline: none; }
form input::placeholder { color: rgba(255, 255, 255, 0.65); }
form button { border: 0; border-radius: 999px; padding: 12px 22px; font: inherit; font-weight: 700; color: var(--plum-deep); background: linear-gradient(180deg, var(--gold-2), var(--gold)); cursor: pointer; white-space: nowrap; }
form button:hover { filter: brightness(1.06); }
.msg { min-height: 24px; margin: 12px 0 0; font-weight: 600; color: var(--gold-2); }
.msg.err { color: #ffc2b8; }
.share { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.share span { font-size: 13px; color: #e6ded2; margin-right: 4px; }
.share a, .share button { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 600; color: #fff; text-decoration: none; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px; padding: 9px 16px; cursor: pointer; }
.share a:hover, .share button:hover { background: rgba(255, 255, 255, 0.2); }
.share svg { width: 16px; height: 16px; }
.foot { text-align: center; font-size: 13px; color: rgba(255, 255, 255, 0.7); padding: 0 16px 28px; }
.foot a { color: inherit; }

@media (max-width: 760px) {
  .front { grid-template-columns: 1fr 210px; }
  .window.right { display: none; }
  .door { min-height: 300px; }
  .hang-sign strong { font-size: 18px; }
  .awning { margin: 14px -30px 0; height: 56px; }
}
@media (max-width: 480px) {
  .building { padding: 0 12px; }
  .cornice, .step { margin: 0 -12px; }
  .awning { margin: 14px -20px 0; }
  .front { grid-template-columns: 1fr; }
  .door { min-height: 320px; }
  .agent-fields, .email-row { flex-direction: column; border-radius: 22px; }
  .agent-fields input + input { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.22); }
}
@media (prefers-reduced-motion: reduce) { .hang { animation: none; } .door-leaf { transition: none; transform: rotateY(84deg); } }

/* ------------------------------------------------------------------ the laptop demo
   It comes out of the door to the front of the shop, tilted so it reads as a laptop: the agent's listings scroll, a
   viewing request arrives and is answered, the email goes to the viewer, then an invitation to join.
   js/coming-soon.js runs it. */
.demo-pos { position: absolute; inset: 0; z-index: 5; transform: translateY(-2cm); display: grid; place-items: center; pointer-events: none; }
.demo { opacity: 0; visibility: hidden; transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s; }
.demo.on { opacity: 1; visibility: visible; }
.demo-fit { width: 720px; transform: scale(var(--k, 1)); perspective: 4200px; perspective-origin: 50% 20%; filter: drop-shadow(0 34px 40px rgba(0, 0, 0, 0.55)); }
.d-screen { position: relative; height: 430px; overflow: hidden; background: #fff; border: 13px solid #0c0c0e; border-bottom-width: 20px; border-radius: 18px 18px 0 0; color: var(--ink); font-family: var(--sans); transform-origin: bottom center; }
.d-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(125deg, rgba(255, 255, 255, 0.18), transparent 35%); }

.d-bar { height: 40px; display: flex; justify-content: space-between; align-items: center; padding: 0 16px; border-bottom: 1px solid #eceef2; font-size: 13px; color: #667; }
.d-bar b { font-family: var(--serif); font-size: 17px; color: var(--plum); } .d-bar i { color: var(--coral); }
.d-view { position: absolute; inset: 40px 0 0; opacity: 0; visibility: hidden; transition: opacity 0.5s, visibility 0.5s; }
.d-screen[data-scene="list"] .d-list, .d-screen[data-scene="cal"] .d-cal, .d-screen[data-scene="cta"] .d-cta { opacity: 1; visibility: visible; }

.d-list { overflow: hidden; padding: 12px 16px; }
.d-track { transition: transform 3s ease-in-out; }
.d-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: center; padding: 8px; margin-bottom: 9px; border-radius: 10px; background: #f4f5f8; }
.d-row.hot { background: #fff6e2; box-shadow: inset 0 0 0 1.5px var(--gold); }
.d-row img { width: 96px; height: 64px; object-fit: cover; border-radius: 6px; }
.d-row p { margin: 0; font-size: 13px; color: #667; } .d-row strong { display: block; font-size: 17px; color: var(--ink); }
.d-row em { font-style: normal; font-size: 12px; font-weight: 700; color: #3a2a10; background: linear-gradient(180deg, var(--gold-2), var(--gold)); border-radius: 999px; padding: 5px 12px; }
.d-row em.new { background: #dcefe6; color: #14614c; }

.d-cal { display: grid; grid-template-columns: 1fr 200px; gap: 14px; padding: 12px 14px; }
.cal-grid { display: grid; grid-template-columns: 38px repeat(5, 1fr); grid-template-rows: 20px repeat(4, 1fr); gap: 4px; font-size: 10.5px; }
.cal-grid b { text-align: center; font-weight: 700; color: #556; } .cal-grid i { font-style: normal; color: #889; align-self: start; }
.cell { position: relative; border: 1px solid #eceef2; border-radius: 5px; }
.slot { position: absolute; inset: 3px; border-radius: 4px; padding: 4px 5px; font-weight: 700; font-size: 10px; opacity: 0; transform: scale(0.7); transition: opacity 0.4s, transform 0.4s, background 0.4s, color 0.4s; }
.slot.show { opacity: 1; transform: none; }
.slot.booked { background: #e3f4ec; color: #14614c; }
.slot.pending { background: #fff4dc; color: #7a5a20; box-shadow: inset 0 0 0 1px var(--gold); }
.slot.pending.ok { background: #1fa98a; color: #fff; box-shadow: none; }
.slot.proposed { background: #e8eefb; color: #2f4f80; box-shadow: inset 0 0 0 1px #2f4f80; }

/* The notification that arrives first. */
.toast { position: absolute; top: 10px; right: 14px; width: 270px; display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: var(--plum); color: #fff; border-radius: 12px; box-shadow: 0 12px 28px rgba(20, 28, 46, 0.35); font-size: 11.5px; opacity: 0; transform: translateY(-24px); transition: opacity 0.4s, transform 0.4s; z-index: 4; }
.toast.in { opacity: 1; transform: none; }
.toast p { margin: 0; line-height: 1.35; color: #d8e0ee; } .toast strong { display: block; color: #fff; font-size: 12.5px; }
.bell { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--coral); color: #fff; }
.bell svg { width: 17px; height: 17px; }
.toast.in .bell { animation: ring 0.5s ease-in-out 2; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-16deg); } 75% { transform: rotate(16deg); } }

/* The request card, then the email that goes out, in the same column. */
.side { position: relative; }
.req, .mailcard { position: absolute; left: 0; right: 0; top: 50%; background: #fff; border: 1px solid #eceef2; border-radius: 12px; padding: 13px; font-size: 11.5px; box-shadow: 0 10px 24px rgba(20, 28, 46, 0.14); opacity: 0; transform: translate(30px, -50%); transition: opacity 0.5s, transform 0.5s; }
.req.in, .mailcard.in { opacity: 1; transform: translate(0, -50%); }
.req.out { opacity: 0; transform: translate(-30px, -50%); }
.req-who { display: flex; align-items: center; gap: 8px; }
.req-who p { margin: 0; color: #667; } .req-who strong { display: block; color: var(--ink); font-size: 13px; }
.av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--plum); color: #fff; font-weight: 700; font-size: 11px; }
.req-what { margin: 10px 0; color: #556; line-height: 1.45; } .req-what b { color: var(--ink); }
.req-btns { display: flex; gap: 5px; }
.req-btns button, .chips button { border: 0; border-radius: 6px; padding: 7px 8px; font: inherit; font-size: 10.5px; font-weight: 700; cursor: default; transition: transform 0.15s, filter 0.15s; }
.acc { background: #1fa98a; color: #fff; } .res { background: #eef2fa; color: #2f4f80; } .dec { background: #fdeceb; color: #b3382b; }
.pressed { transform: scale(0.9); filter: brightness(0.9); }
.chips { display: none; flex-wrap: wrap; gap: 5px; margin-top: 8px; } .chips.in { display: flex; }
.chips span { width: 100%; color: #667; font-size: 10.5px; } .chips button { background: #eef2fa; color: #2f4f80; }

/* The email to the viewer, opened like a message window over the calendar, then sent. */
.email { position: absolute; left: 50%; top: 50%; width: 340px; z-index: 4; background: #fff; border-radius: 10px; overflow: hidden; font-size: 11px; color: #445; box-shadow: 0 18px 44px rgba(20, 28, 46, 0.32), 0 0 0 1px rgba(20, 28, 46, 0.08); opacity: 0; transform: translate(-50%, -44%) scale(0.96); transition: opacity 0.4s, transform 0.4s; }
.email.in { opacity: 1; transform: translate(-50%, -50%); }
.email.go { opacity: 0; transform: translate(-50%, -50%) scale(0.12); transition: opacity 0.6s ease-in, transform 0.6s ease-in; }
.em-head { display: flex; justify-content: space-between; align-items: center; padding: 7px 12px; background: var(--plum); color: #fff; font-weight: 700; font-size: 11.5px; }
.em-dots { display: flex; gap: 4px; } .em-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); }
.em-field { display: flex; gap: 8px; padding: 5px 12px; border-bottom: 1px solid #eceef2; color: var(--ink); }
.em-field b { width: 46px; flex: none; font-weight: 600; color: #889; }
.em-body { padding: 10px 12px 4px; display: grid; gap: 6px; }
.em-body p { margin: 0; color: #334; }
.m-tag { justify-self: start; font-size: 9.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: #1fa98a; border-radius: 999px; padding: 3px 9px; }
.m-tag.buy { background: var(--plum-2); }
.em-appt { display: flex; gap: 9px; align-items: center; padding: 8px 10px; border-radius: 8px; background: #f4f5f8; border-left: 3px solid var(--gold); }
.em-appt svg { width: 20px; height: 20px; flex: none; color: var(--plum-2); }
.em-appt strong { display: block; font-size: 12.5px; color: var(--ink); } .em-appt span { color: #556; }
.em-sign { color: #889 !important; font-style: italic; }
.em-foot { display: flex; justify-content: flex-end; padding: 6px 12px 10px; }
.em-send { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 6px; padding: 7px 14px; font: inherit; font-size: 11px; font-weight: 700; color: #fff; background: #2f6fd6; cursor: default; transition: transform 0.15s, filter 0.15s; }
.em-send svg { width: 13px; height: 13px; }
.sent { position: absolute; left: 0; right: 0; top: 50%; margin: 0; text-align: center; font-size: 13px; font-weight: 700; color: #14614c; opacity: 0; transform: translateY(-30%); transition: opacity 0.4s, transform 0.4s; }
.sent b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #1fa98a; color: #fff; font-size: 12px; }
.sent.in { opacity: 1; transform: translateY(-50%); }
.cursor { position: absolute; width: 22px; height: 22px; left: 92%; top: 92%; opacity: 0; transition: left 0.9s ease-in-out, top 0.9s ease-in-out, opacity 0.3s; z-index: 5; }
.cursor.in { opacity: 1; }

/* The invitation at the end. */
.d-cta { display: grid; place-content: center; justify-items: center; text-align: center; gap: 10px; padding: 20px 50px; background: radial-gradient(90% 80% at 50% 0%, #fff6e2, #fff 70%); }
.cta-kicker { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--coral); }
.d-cta h3 { margin: 0; font-family: var(--serif); font-size: 34px; line-height: 1.1; color: var(--ink); }
.cta-text { margin: 0; max-width: 440px; font-size: 14px; line-height: 1.5; color: #556; }
.cta-btn { pointer-events: auto; margin-top: 8px; display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; color: var(--plum-deep); background: linear-gradient(180deg, var(--gold-2), var(--gold)); box-shadow: 0 8px 18px rgba(217, 178, 106, 0.45); }
.d-screen[data-scene="cta"] .cta-btn { animation: nudge 1.6s ease-in-out 0.6s infinite; }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: scale(1.05); } }
.cta-btn:hover { filter: brightness(1.05); }

/* The viewings bell in the top bar: it rings and shows a count when a request arrives. */
.d-right { display: inline-flex; align-items: center; gap: 14px; }
.d-bell { position: relative; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--plum); background: #f1f3f7; }
.d-bell svg { width: 16px; height: 16px; }
.d-bell em { position: absolute; top: -4px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--coral); color: #fff; font-style: normal; font-size: 10px; font-weight: 800; line-height: 16px; text-align: center; border: 2px solid #fff; transform: scale(0); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.d-bell.has em { transform: scale(1); }
.d-bell.has svg { animation: ring 0.5s ease-in-out 3; }

/* The small email icon the message folds into: the flap closes, then it flies off. */
.mail-ico { position: absolute; left: 50%; top: 50%; width: 56px; height: 44px; margin: -22px 0 0 -28px; z-index: 4; fill: #fff; stroke: var(--plum); stroke-width: 2.4; stroke-linejoin: round; overflow: visible; opacity: 0; transition: opacity 0.3s, transform 0.9s cubic-bezier(0.5, 0, 0.7, 0.4); }
.mail-ico.in { opacity: 1; }
.mail-flap { fill: #fff; transform-box: view-box; transform-origin: 24px 12px; transform: scaleY(-1); transition: transform 0.5s ease-in-out; }
.mail-ico.closed .mail-flap { transform: none; }
.mail-ico.fly { transform: translate(230px, -200px) rotate(-14deg) scale(0.5); opacity: 0; transition: transform 0.9s cubic-bezier(0.5, 0, 0.7, 0.4), opacity 0.9s ease-in; }




/* The keyboard half, laid back in perspective like the reference: its back edge lines up with the screen, it widens
   slightly towards you, with a grid of keys and a trackpad. */
.d-deck { position: relative; height: 330px; margin: -2px 0 0; transform-origin: top center; transform: rotateX(57deg); background: linear-gradient(180deg, #e3e6eb, #b9bec7); border-radius: 6px 6px 28px 28px; box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.6); }
.kb { position: absolute; left: 33px; right: 33px; top: 24px; height: 179px; border-radius: 12px; background-color: #2c3038; background-image: repeating-linear-gradient(90deg, transparent 0 38px, #c9ced6 38px 44px), repeating-linear-gradient(180deg, transparent 0 31px, #c9ced6 31px 37px); }
.pad { position: absolute; left: 33%; right: 33%; bottom: 26px; height: 86px; border-radius: 10px; background: linear-gradient(180deg, #d9dce1, #c8ccd2); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.18); }

/* The "I am human" box under the form. */
.cs-captcha { display: flex; justify-content: center; }
.cs-captcha:empty { display: none; }

/* ------------------------------------------------------------------ Victorian building
   Chimney pots on the roof, a dentil cornice, an upper floor of sash windows (one lit, with a flower box), a string
   course, carved brackets either side of the sign, cream pilasters between the windows, panelled stall risers under
   them, glazing bars, and a fanlight over the door. The property ads hang in the windows on wires. */
.roof { position: absolute; left: 0; right: 0; top: -74px; height: 74px; pointer-events: none; }
.chimney { position: absolute; bottom: 0; height: 58px; display: flex; gap: 6px; align-items: flex-start; justify-content: center; padding: 0 8px;
  background: repeating-linear-gradient(0deg, transparent 0 12px, rgba(0, 0, 0, 0.25) 12px 14px), linear-gradient(180deg, #7a443d, #5c302b); }
.chimney::before { content: ""; position: absolute; left: -6px; right: -6px; top: 0; height: 9px; background: #d9c9aa; border-radius: 2px; }
.chimney i { position: relative; top: -18px; width: 16px; height: 22px; border-radius: 3px 3px 1px 1px; background: linear-gradient(90deg, #8c4a2f, #c06a45 45%, #8c4a2f); }
.chimney.c1 { left: 9%; width: 70px; } .chimney.c2 { right: 11%; width: 92px; }
.upper { display: flex; justify-content: space-around; align-items: flex-start; padding: 36px 30px 30px; }
.sash { position: relative; flex: 0 1 132px; display: flex; flex-direction: column; align-items: stretch; }
.lintel { height: 18px; margin: 0 -12px; background: linear-gradient(180deg, #f1e6d0, #cdbb98); clip-path: polygon(0 0, 100% 0, 92% 100%, 8% 100%); }
.panes { height: 158px; border: 8px solid #f3ead8; border-top-width: 6px;
  background: linear-gradient(#f3ead8, #f3ead8) center / 6px 100% no-repeat, linear-gradient(#f3ead8, #f3ead8) center / 100% 7px no-repeat,
    linear-gradient(160deg, rgba(255, 255, 255, 0.18) 0 22%, transparent 22%), linear-gradient(180deg, #2c3d5e, #121b2e); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.25); }
.sash.lit .panes { background: linear-gradient(#f3ead8, #f3ead8) center / 6px 100% no-repeat, linear-gradient(#f3ead8, #f3ead8) center / 100% 7px no-repeat,
    radial-gradient(90% 80% at 50% 60%, rgba(255, 210, 140, 0.95), rgba(190, 110, 60, 0.85) 70%), #6b3f2a; }
.stone-sill { height: 12px; margin: 0 -14px; background: linear-gradient(180deg, #f1e6d0, #bfae8c); box-shadow: 0 5px 0 rgba(0, 0, 0, 0.2); }
.flower-box { height: 26px; margin: -2px -6px 0; border-radius: 3px; background:
  radial-gradient(circle at 12% 30%, #ff6b5b 0 5px, transparent 6px), radial-gradient(circle at 30% 18%, #f3dca7 0 5px, transparent 6px),
  radial-gradient(circle at 52% 28%, #ff8a7a 0 5px, transparent 6px), radial-gradient(circle at 72% 16%, #f3dca7 0 5px, transparent 6px),
  radial-gradient(circle at 88% 30%, #ff6b5b 0 5px, transparent 6px),
  radial-gradient(ellipse at 50% 20%, #3f7a45 0 45%, transparent 46%) 0 -6px / 100% 30px no-repeat,
  linear-gradient(180deg, transparent 0 10px, #2c3d5e 10px); }
.string-course { height: 14px; margin: 0 -26px 26px; background: linear-gradient(180deg, #f1e6d0, #cdbb98); box-shadow: 0 5px 0 rgba(0, 0, 0, 0.18); }
.fascia-row { display: grid; grid-template-columns: 34px 1fr 34px; gap: 0; margin: 0 -4px; }
.corbel { align-self: stretch; margin-top: -6px; background: linear-gradient(90deg, #d9c9aa, #f3ead8 45%, #cdbb98);
  clip-path: polygon(10% 0, 90% 0, 90% 12%, 100% 18%, 100% 30%, 82% 36%, 82% 70%, 70% 82%, 66% 100%, 34% 100%, 30% 82%, 18% 70%, 18% 36%, 0 30%, 0 18%, 10% 12%); }
.window::before { content: ""; position: absolute; inset: 0 0 64px; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, transparent calc(50% - 4px), #0d1526 calc(50% - 4px) calc(50% + 4px), transparent calc(50% + 4px)) 0 46px / 100% 100% no-repeat,
    linear-gradient(180deg, transparent 38px, #0d1526 38px 46px, transparent 46px); }
.window-label { position: relative; z-index: 2; margin: -4px 0 26px; }
/* Ads hang on two fine wires each, like an estate agent's window. */
.window .card { position: relative; }
.window .card::before, .window .card::after { content: ""; position: absolute; top: -16px; width: 1px; height: 16px; background: rgba(230, 230, 230, 0.75); }
.window .card::before { left: 16%; } .window .card::after { right: 16%; }
.fanlight { height: 44px; margin: 0 6px -10px; border: 8px solid #0d1526; border-bottom: 0; border-radius: 120px 120px 0 0;
  background: repeating-conic-gradient(from 270deg at 50% 100%, rgba(13, 21, 38, 0.9) 0 2deg, transparent 2deg 22.5deg), radial-gradient(100% 120% at 50% 100%, rgba(255, 214, 150, 0.7), rgba(120, 70, 40, 0.8)); }
.door-col { gap: 0; } .door-col .plaque { margin-bottom: 10px; }
@media (max-width: 760px) {
  .front { gap: 18px; padding: 36px 16px 0; }
  .sash.third { display: none; }
  .upper { padding: 28px 10px 24px; }
}
@media (max-width: 480px) {
  .sash { flex-basis: 100px; } .panes { height: 120px; }
  .chimney.c1 { width: 54px; } .chimney.c2 { width: 70px; }
}

/* Window ads: a big FOR SALE or TO RENT tag across each photo and a larger price, readable when the house is small. */
.window .card { padding: 6px 6px 9px; }
.card .tag { position: absolute; left: 6px; right: 6px; top: 46%; padding: 5px 0; text-align: center; font-style: normal; font-weight: 800; font-size: 17px; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); }
.card .tag.sale { background: rgba(214, 69, 54, 0.94); }
.card .tag.rent { background: rgba(28, 43, 71, 0.94); }
.window .card p { justify-content: center; font-size: 17px; margin-top: 7px; }
.window .card p span { font-weight: 800; color: var(--ink); }
