/* Physical depth, an oblique camera and photographic material surfaces.
   Left and right hinges share the same 3D plane as their stone pillars. */
#ltsEntrance {
  --steel-light:.88;
  --stone-light:.77;
  --stone-side-light:.64;
  --leaf-depth:12px;
  --pillar-depth:80px;
  --frame-size:22px;
}
#ltsEntrance.is-lit { --steel-light:1.04; --stone-light:.98; --stone-side-light:.78; }
#ltsEntrance .entry76-stage { perspective:1800px; perspective-origin:50% 36%; }
#ltsEntrance .entry134-assembly {
  position:absolute; inset:0; transform-style:preserve-3d;
  transform:rotateY(-13deg); overflow:visible;
}
#ltsEntrance .entry134-solid { transform-style:preserve-3d; overflow:visible; }
#ltsEntrance .entry134-face {
  position:absolute; display:block; backface-visibility:hidden;
  -webkit-backface-visibility:hidden; pointer-events:none;
}
#ltsEntrance .entry134-face-front,
#ltsEntrance .entry134-face-back { inset:0; width:100%; height:100%; }
#ltsEntrance .entry134-face-front { transform:translateZ(calc(var(--solid-depth)/2)); }
#ltsEntrance .entry134-face-back { transform:rotateY(180deg) translateZ(calc(var(--solid-depth)/2)); }
#ltsEntrance .entry134-face-left,
#ltsEntrance .entry134-face-right { top:0; width:var(--solid-depth); height:100%; transform-origin:0 50%; }
#ltsEntrance .entry134-face-left { left:0; transform:translateZ(calc(var(--solid-depth)/-2)) rotateY(-90deg); }
#ltsEntrance .entry134-face-right { left:100%; transform:translateZ(calc(var(--solid-depth)/2)) rotateY(90deg); }
#ltsEntrance .entry134-face-top,
#ltsEntrance .entry134-face-bottom { left:0; width:100%; height:var(--solid-depth); transform-origin:50% 0; }
#ltsEntrance .entry134-face-top { top:0; transform:translateZ(calc(var(--solid-depth)/-2)) rotateX(90deg); }
#ltsEntrance .entry134-face-bottom { top:100%; transform:translateZ(calc(var(--solid-depth)/2)) rotateX(-90deg); }

/* Each wing is a steel box; its front and back rotate around a fixed hinge axis. */
#ltsEntrance .entry76-leaf {
  --solid-depth:var(--leaf-depth);
  width:calc(40% - 1px); background:none!important; box-shadow:none!important;
  filter:none!important; border:0; transition:none;
  backface-visibility:visible;
}
#ltsEntrance .entry76-leaf::after { display:none; }
#ltsEntrance .entry134-tube {
  position:absolute; --solid-depth:var(--leaf-depth);
  filter:none; border-radius:.6px;
}
#ltsEntrance .entry134-tube-left,
#ltsEntrance .entry134-tube-right { top:0; bottom:0; width:var(--frame-size); }
#ltsEntrance .entry134-tube-left { left:0; }
#ltsEntrance .entry134-tube-right { right:0; }
#ltsEntrance .entry134-tube-top,
#ltsEntrance .entry134-tube-middle,
#ltsEntrance .entry134-tube-bottom { left:var(--frame-size); right:var(--frame-size); height:var(--frame-size); }
#ltsEntrance .entry134-tube-top { top:0; }
#ltsEntrance .entry134-tube-middle { top:calc(50% - var(--frame-size)/2); }
#ltsEntrance .entry134-tube-bottom { bottom:0; }
#ltsEntrance .entry134-frame-metal>.entry134-face-front,
#ltsEntrance .entry134-frame-metal>.entry134-face-back {
  background-image:linear-gradient(116deg,#dce6eb20,transparent 34%,#03090c38),url('assets/entrance-v134/acier-thermolaque.webp');
  background-size:100% 100%,300px 300px;
  filter:brightness(var(--steel-light)); transition:filter .9s ease;
  box-shadow:inset .8px .8px .7px #dce5e747,inset -.8px -.8px .8px #03090bd9,0 1px 2px #0006;
  border-radius:.7px;
}
#ltsEntrance .entry134-frame-metal>.entry134-face-left,
#ltsEntrance .entry134-frame-metal>.entry134-face-right {
  background:linear-gradient(90deg,#8a959b 0,#4c585f 8%,#2d373d 27%,#20292f 72%,#10191e 94%,#78878d);
  box-shadow:inset 0 0 0 .5px #10181dcc;
}
#ltsEntrance .entry134-frame-metal>.entry134-face-top {
  background:linear-gradient(180deg,#adb7ba,#48545b 13%,#303a40 78%,#121c20);
  border-block:.5px solid #9aa6aa66;
}
#ltsEntrance .entry134-frame-metal>.entry134-face-bottom { background:linear-gradient(#273139,#10171c); }
#ltsEntrance .entry134-sheet {
  position:absolute; left:var(--frame-size); right:var(--frame-size);
  height:calc(50% - var(--frame-size)*1.5);
  transform:translateZ(calc(var(--leaf-depth)*-.22));
  background:linear-gradient(116deg,#aab6c10a,transparent 40%,#0003),url('assets/entrance-v134/acier-thermolaque.webp') center/cover;
  box-shadow:inset 1px 2px 4px #000a,inset -1px -1px 1px #77838c40;
  filter:brightness(var(--steel-light)); transition:filter .9s ease;
}
#ltsEntrance .entry134-sheet-upper { top:var(--frame-size); }
#ltsEntrance .entry134-sheet-lower { bottom:var(--frame-size); }
#ltsEntrance .entry76-gate-mark {
  transform:translateZ(calc(var(--leaf-depth)*-.22 + .5px));
  color:#141e23; text-shadow:0 1px 1px #a8b7be6b,0 -1px 1px #000;
}

/* Stone returns, caps and plinths are cubes rather than painted edge strips. */
#ltsEntrance .entry76-pillar {
  background:none!important; border:0!important; box-shadow:none!important;
  filter:none!important; transform-style:preserve-3d; overflow:visible;
}
#ltsEntrance .entry76-pillar::after { display:none; }
#ltsEntrance .entry76-pillar::before {
  content:''; position:absolute; left:-45%; width:195%; top:98%; height:11%;
  background:radial-gradient(ellipse,#000d,transparent 68%);
  filter:blur(3px); transform:rotateX(72deg); transform-origin:50% 10%;
}
#ltsEntrance .entry134-stone-body { position:absolute; inset:0; --solid-depth:var(--pillar-depth); }
#ltsEntrance .entry134-stone>.entry134-face {
  background-image:linear-gradient(90deg,#ede4cc15,#00000008 34%,#0000003b),url('assets/entrance-v76/limestone-hd.webp');
  background-size:100% 100%,auto 100%; background-position:0 0,22% 0;
  filter:brightness(var(--stone-light)) saturate(.76); transition:filter .9s ease;
  box-shadow:inset 0 0 0 .7px #d8ceb842;
}
#ltsEntrance .entry76-pillar-right .entry134-stone>.entry134-face-front { background-position:0 0,75% 0; }
#ltsEntrance .entry134-stone>.entry134-face-left,
#ltsEntrance .entry134-stone>.entry134-face-right,
#ltsEntrance .entry134-stone>.entry134-face-back {
  filter:brightness(var(--stone-side-light)) saturate(.72);
  background-position:0 0,67% 0;
}
#ltsEntrance .entry76-cap,
#ltsEntrance .entry76-base {
  --solid-depth:calc(var(--pillar-depth)*1.12);
  background:none!important; border:0!important; box-shadow:none!important;
  transform-style:preserve-3d;
}
#ltsEntrance .entry134-dressed-stone>.entry134-face {
  background-image:linear-gradient(180deg,#d9d6c59c,#7c81767a 72%,#252c29b3),url('assets/entrance-v76/limestone-hd.webp');
  background-size:100% 100%,300% 1300%; background-position:0 0,50% 3%;
  filter:brightness(var(--stone-light)) saturate(.62);
  box-shadow:inset 0 0 0 .8px #a5aa9b55;
}
#ltsEntrance .entry134-dressed-stone>.entry134-face-top {
  background-image:linear-gradient(110deg,#e4e0d496,#8a918278),url('assets/entrance-v76/limestone-hd.webp');
  box-shadow:inset 0 0 0 .7px #e0dccc66;
}
#ltsEntrance .entry134-dressed-stone>.entry134-face-left,
#ltsEntrance .entry134-dressed-stone>.entry134-face-right,
#ltsEntrance .entry134-dressed-stone>.entry134-face-bottom { filter:brightness(var(--stone-side-light)) saturate(.6); }
#ltsEntrance .entry76-lamp { transform:translateZ(calc(var(--pillar-depth)/2 + 4px)); }
#ltsEntrance .entry76-wash { transform:translateZ(calc(var(--pillar-depth)/2 + 1px)); }
#ltsEntrance .entry97-beacon { transform:translateX(-50%) translateZ(calc(var(--pillar-depth)/2)); }
#ltsEntrance .entry134-fixed-hinge {
  position:absolute; z-index:4; width:var(--hinge-width); height:var(--hinge-height);
  transform:translateY(-50%); border-radius:35%;
  background:linear-gradient(90deg,#10181c,#303d45 18%,#85949b 37%,#38464e 56%,#111b20 88%);
  box-shadow:inset 0 0 0 .5px #080f13,1px 1px 2px #0009;
}
#ltsEntrance .entry76-pillar-left .entry134-fixed-hinge { left:calc(100% - 1px); }
#ltsEntrance .entry76-pillar-right .entry134-fixed-hinge { right:calc(100% - 1px); }
#ltsEntrance .entry134-ground-contact {
  position:absolute; z-index:0; left:7%; width:86%; top:96%; height:11%;
  background:radial-gradient(ellipse,#000a,transparent 70%);
  filter:blur(7px); transform:translateZ(-8px); pointer-events:none;
  transition:opacity 2s ease;
}
#ltsEntrance.is-opening .entry134-ground-contact { opacity:.35; }
#ltsEntrance .entry76-ground {
  background:radial-gradient(ellipse at 50% 0,#8e969023,transparent 57%),repeating-linear-gradient(0deg,#727c8107 0 1px,transparent 1px 78px),repeating-linear-gradient(90deg,#727c8105 0 1px,transparent 1px 150px),#0b1014;
}
#ltsEntrance.is-opening .entry76-leaf-left { animation:entry134-left 2.65s .1s cubic-bezier(.42,0,.16,1) both; }
#ltsEntrance.is-opening .entry76-leaf-right { animation:entry134-right 2.65s .1s cubic-bezier(.42,0,.16,1) both; }
@keyframes entry134-left { from { transform:rotateY(0deg); } to { transform:rotateY(84deg); } }
@keyframes entry134-right { from { transform:rotateY(0deg); } to { transform:rotateY(-84deg); } }
@media(max-width:760px) {
  #ltsEntrance .entry76-stage { perspective:1000px; perspective-origin:50% 37%; }
  #ltsEntrance .entry76-leaf { width:calc(39% - 1px); }
  #ltsEntrance .entry134-assembly { transform:rotateY(-14deg); }
}
@media(prefers-reduced-motion:reduce) {
  #ltsEntrance.is-opening .entry76-leaf-left { transform:rotateY(84deg); }
  #ltsEntrance.is-opening .entry76-leaf-right { transform:rotateY(-84deg); }
}
