/* Agents page · closing ask. Bit (the earlier pixel design, unchanged) walks up to an office door and opens it;
   the booking button waits in the lit doorway. The door, frame and light are smooth vector/CSS. sx-bit-door.js */
.cta--door{background:transparent;border-top:0;text-align:left;padding-top:40px;overflow-x:clip}
.bd-wrap{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:64px;align-items:center}
.cta--door .tt{margin:0}
.cta--door p.sub{margin:18px 0 0;max-width:440px}

.bd-scene{position:relative;display:flex;align-items:flex-end;gap:14px;padding-top:44px}
.bd-scene::after{content:"";position:absolute;left:-20px;right:-20px;bottom:0;height:1px;background:var(--line)}
.bd-bit{display:block;width:112px;height:128px;shape-rendering:crispEdges;overflow:visible;position:relative;z-index:3}

/* the door: painted trim around the opening, a threshold, two hinges; the leaf opens inward into the lit room */
.bd-door{position:relative;width:300px;height:340px;padding:14px 14px 0;box-sizing:border-box;border-radius:3px 3px 0 0;
  background:linear-gradient(90deg,#E4DED4,#F2EEE8 18%,#F2EEE8 82%,#E0D9CE);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.7),0 0 0 1px rgba(10,22,40,.07),0 22px 34px -26px rgba(10,22,40,.4)}
.bd-door::after{content:"";position:absolute;left:8px;right:8px;bottom:0;height:5px;border-radius:2px 2px 0 0;background:linear-gradient(#DCD5CA,#CFC7BB)}
.bd-hinge{position:absolute;right:9px;width:6px;height:22px;border-radius:2px;background:linear-gradient(90deg,#9AA6B6,#D5DBE3 50%,#9AA6B6);z-index:3}
.bd-frame{position:relative;width:100%;height:100%;perspective:900px;perspective-origin:40% 50%}
.bd-room{position:absolute;inset:0;overflow:hidden;display:flex;align-items:flex-end;justify-content:flex-start;padding:0 0 74px 14px;
  background:linear-gradient(#F7FCFD,#E4F5F9 62%,#CBE8EF 62%,#DDF1F5);
  box-shadow:inset 10px 0 12px -10px rgba(10,22,40,.35),inset -10px 0 12px -10px rgba(10,22,40,.25),inset 0 10px 12px -10px rgba(10,22,40,.3)}
.bd-room::before{content:"";position:absolute;left:34%;top:14%;width:34%;height:34%;border-radius:3px;
  background:linear-gradient(90deg,transparent calc(50% - 1.5px),#E1E7EE calc(50% - 1.5px),#E1E7EE calc(50% + 1.5px),transparent calc(50% + 1.5px)),
    linear-gradient(transparent calc(50% - 1.5px),#E1E7EE calc(50% - 1.5px),#E1E7EE calc(50% + 1.5px),transparent calc(50% + 1.5px)),linear-gradient(160deg,#fff,#E6F6FA);
  box-shadow:inset 0 0 0 4px #E1E7EE}
.bd-room .btn{position:relative;z-index:3;white-space:nowrap;opacity:0;transform:translateY(10px);transition:opacity .5s ease .6s,transform .5s ease .6s}

.bd-leaf{position:absolute;inset:0;z-index:2;transform-origin:100% 50%;transform-style:preserve-3d;transition:transform 1.25s cubic-bezier(.6,.04,.3,1);
  background:linear-gradient(90deg,#16253E,#0E1B30);box-shadow:inset 0 0 0 1px rgba(255,255,255,.04)}
.bd-leaf::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.45),rgba(0,0,0,.1));opacity:0;transition:opacity 1.25s ease}
.bd-panel{position:absolute;left:22px;right:22px;border-radius:2px;
  box-shadow:inset 2px 2px 0 rgba(0,0,0,.35),inset -1px -1px 0 rgba(255,255,255,.09),0 0 0 4px rgba(255,255,255,.02)}
.bd-panel--t{top:24px;height:132px}
.bd-panel--b{bottom:22px;height:110px}
/* the firm's sign above the doorway, in the site's own logo (cyan bar over the serif wordmark) */
.bd-sign{position:absolute;left:50%;top:-36px;transform:translateX(-50%);z-index:3;padding:13px 26px 12px;background:#fff;border-radius:3px;
  box-shadow:0 0 0 1px rgba(10,22,40,.08),0 12px 26px -16px rgba(10,22,40,.35)}
.bd-sign .logo{align-items:center}
.bd-sign .word{color:var(--navy);font-size:20px}
.bd-sign::before,.bd-sign::after{content:"";position:absolute;top:50%;width:4px;height:4px;margin-top:-2px;border-radius:50%;background:#C9D2DE}
.bd-sign::before{left:9px}.bd-sign::after{right:9px}
.bd-knob{position:absolute;left:14px;top:178px;width:24px;height:6px;border-radius:3px;background:linear-gradient(#EEF1F4,#A3AFBF);box-shadow:0 2px 3px rgba(0,0,0,.35)}
.bd-knob::before{content:"";position:absolute;left:-3px;top:-4px;width:12px;height:14px;border-radius:3px;background:linear-gradient(#E3E8EE,#9AA6B6)}
.bd-edge{position:absolute;left:0;top:0;bottom:0;width:12px;background:linear-gradient(90deg,#0A1628,#22324D);transform-origin:0 50%;transform:rotateY(90deg)}

.bd-spill{position:absolute;left:14px;right:14px;bottom:-1px;height:0;transform:translateY(100%);pointer-events:none}
.bd-spill::before{content:"";position:absolute;left:0;right:0;top:0;height:28px;background:linear-gradient(rgba(127,227,245,.38),rgba(127,227,245,0));
  clip-path:polygon(0 0,100% 0,116% 100%,-16% 100%);opacity:0;transition:opacity .9s ease .5s}

.bd-scene.open .bd-leaf{transform:rotateY(-84deg);pointer-events:none}
.bd-scene.open .bd-leaf::after{opacity:1}
.bd-scene.open .bd-room .btn{opacity:1;transform:none}
.bd-scene.open .bd-spill::before{opacity:1}

.bd-say{position:absolute;left:-6px;bottom:150px;z-index:4;width:max-content;max-width:170px;background:var(--navy);color:#fff;font:500 13px/1.35 var(--sans);
  padding:10px 13px;border-radius:12px 12px 12px 3px;opacity:0;transform:translateY(6px) scale(.9);transform-origin:12px 100%;transition:opacity .3s ease,transform .35s cubic-bezier(.3,1.5,.5,1)}
.bd-say::after{content:"";position:absolute;left:14px;bottom:-7px;border:7px solid transparent;border-top-color:var(--navy);border-bottom:0;border-left-width:0}
.bd-scene.say .bd-say{opacity:1;transform:none}
.bd-scene.say .bd-say.swap{opacity:0;transform:translateY(4px) scale(.96)}
.bd-room .btn.nudge{animation:bdnudge .55s ease}
@keyframes bdnudge{0%,100%{transform:none}25%{transform:translateX(5px) rotate(1.5deg)}55%{transform:translateX(-3px) rotate(-1deg)}80%{transform:translateX(1px)}}

@media (max-width:900px){
  .bd-wrap{grid-template-columns:minmax(0,1fr);gap:40px}
  .bd-scene{justify-self:center}
}
@media (max-width:420px){.bd-door{width:250px;height:310px}.bd-bit{width:72px;height:82px}.bd-say{bottom:96px}}
@media (prefers-reduced-motion:reduce){.bd-leaf,.bd-room .btn,.bd-spill::before,.bd-say{transition:none}.bd-room .btn.nudge{animation:none}}
