/* One BeeK device, one live workspace. The camera is owned by studio.js. */
.entrance {
  --machine-width: min(860px, 58vw, 100dvh);
  --machine-depth: calc(var(--machine-width) / 1.72);
  --hinge-angle: 83deg;
  --entrance-ease: cubic-bezier(.22, .75, .18, 1);
  position: fixed;
  inset: 0;
  z-index: 100;
  min-height: 0;
  overflow: hidden;
  background: #151812;
  color: #f2f0e8;
  isolation: isolate;
  transform-origin: 0 0;
}

.entrance-heading {
  position: absolute;
  top: 34dvh;
  left: clamp(36px, 6vw, 116px);
  width: 35vw;
  z-index: 2;
  text-align: left;
  pointer-events: none;
  transition: opacity 300ms ease, transform 600ms var(--entrance-ease);
}

.entrance-heading h1 {
  margin: 0;
  color: #f2f0e8;
  font-size: clamp(54px, 5vw, 84px);
  font-weight: 450;
  line-height: 1.12;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.entrance-heading h1 strong { font-weight: 650; color: #e5be58; }
.entrance-heading p { margin: 26px 0 0; font-size: 15px; font-weight: 450; line-height: 1.65; color: #b8baad; }

.entrance .machine {
  position: absolute;
  top: 66dvh;
  left: 65%;
  width: var(--machine-width);
  height: var(--machine-depth);
  padding: 0;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  perspective: 2600px;
  perspective-origin: 50% -20%;
  transform: translateX(-50%);
  transform-origin: 50% -46%;
  transform-style: preserve-3d;
  -webkit-tap-highlight-color: transparent;
  transition: none;
}

.entrance .machine:disabled{opacity:1}

.entrance .machine:focus-visible { outline: 2px solid #e5be58; outline-offset: 20px; }
.entrance .machine span { box-sizing: border-box; }

.machine-lid,
.machine-deck {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 16px;
  transform-origin: 50% 0;
  transform-style: preserve-3d;
}

.machine-lid {
  transform: rotateX(var(--hinge-angle)) translateZ(7px);
  transition: transform 780ms cubic-bezier(.32, .02, .18, 1);
}

.lid-outside,
.lid-inside {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: inherit;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.lid-outside {
  overflow: hidden;
  border: 1px solid #70766a;
  background: linear-gradient(115deg, #343a32, #585e51 30%, #343b31 66%, #242c25);
  box-shadow: inset 0 1px 1px #d6d7bb78, inset 0 -2px 2px #0a130f, 0 2px 0 #152219, 0 7px 8px #00000059;
}

.lid-outside::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(12deg, #e5be5800 36%, #e5be5824 59%, #e5be5800 78%);
  pointer-events: none;
}

.lid-logo {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: Pretendard, sans-serif;
  font-size: calc(var(--machine-width) * .064);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -.04em;
  color: #d2cba8;
  text-shadow: 0 1px 0 #07120c;
}

.lid-inside {
  transform: rotateX(180deg) translateZ(1px);
  overflow: hidden;
  border: 2px solid #6b7462;
  background: #0c140f;
  box-shadow: inset 0 0 0 1px #374233, inset 0 0 0 5px #101b14, 0 1px 0 #c9ca9d52;
}

.screen-wallpaper {
  position: absolute;
  inset: 12px 10px 19px;
  border-radius: 8px 8px 3px 3px;
  background: #f8f8f6;
}

.screen-wallpaper::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(135deg, #f4dc9821, #f4dc9800 46%);
  opacity: 0;
  pointer-events: none;
}

.screen-hello,
.screen-beek {
  position: absolute;
  left: 0;
  right: 0;
  color: #fff;
  text-align: center;
  text-shadow: none;
}

.screen-hello {
  top: 32%;
  font-family: Pretendard, sans-serif;
  font-size: calc(var(--machine-width) * .126);
  font-weight: 350;
  font-style: italic;
  letter-spacing: -.04em;
  line-height: 1.2;
}

.screen-beek { top: 62%; font-size: max(10px, calc(var(--machine-width) * .018)); font-weight: 450; letter-spacing: -.01em; }
.webcam { position: absolute; top: 4px; left: calc(50% - 2px); width: 4px; height: 4px; border-radius: 50%; background: #0a0d12; box-shadow: inset 1px 0 1px #365573; }

.machine-deck {
  transform: rotateX(var(--hinge-angle)) translateZ(-2px);
  border: 1px solid #57634f;
  background: linear-gradient(105deg, #2b342b, #495140 43%, #343e30 78%, #242e24);
  box-shadow: inset 0 1px 1px #bdc5a469, inset 0 -1px 1px #101c14;
}

.machine-deck::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 6px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(#07100b, #263927 68%, #5a6b4a);
}

/* Light belongs to the display, and briefly catches the physical deck below it. */
.machine-deck::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 0%, #f4d68eb3 0%, #f4d68e40 34%, #f4d68e00 72%);
  opacity: 0;
  pointer-events: none;
}

.keyboard {
  position: absolute;
  top: 10%;
  left: 8%;
  width: 84%;
  height: 43%;
  border: 4px solid #253427;
  border-radius: 7px;
  background:
    repeating-linear-gradient(0deg, transparent 0 16%, #3e4e37 16% 20%),
    repeating-linear-gradient(90deg, #0e1b13 0 5.5%, #3e4e37 5.5% 6.66%);
  box-shadow: 0 1px 0 #a8b08a52, inset 0 2px 4px #020b05;
}

.keyboard::after {
  content: '';
  position: absolute;
  left: 25%;
  right: 25%;
  bottom: 1%;
  height: 15%;
  border-radius: 2px;
  background: #0e1b13;
  box-shadow: 0 0 0 2px #3e4e37;
}

.trackpad { position: absolute; left: 32%; top: 62%; width: 36%; height: 28%; border: 1px solid #536147; border-radius: 6px; background: linear-gradient(125deg, #2c3c2d, #394733); box-shadow: inset 0 1px 1px #09170e, 0 1px 0 #a8b08a36; }

.machine-edge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 12px;
  border-radius: 0 0 45% 45% / 0 0 70% 70%;
  transform-origin: 50% 0;
  transform: rotateX(var(--hinge-angle)) translateY(var(--machine-depth)) rotateX(calc(-1 * var(--hinge-angle)));
  background: linear-gradient(#7c8967 0%, #45573d 24%, #1b2e20 80%, #101f16 100%);
  box-shadow: 0 3px 4px #00000066;
}

.finger-notch { position: absolute; top: 0; left: 42%; width: 16%; height: 5px; border-radius: 0 0 10px 10px; background: #1e3424; box-shadow: inset 0 -1px 1px #8c9b716b; }
.machine-shadow { position: absolute; top: 14%; left: -8%; width: 116%; height: 48px; border-radius: 50%; background: #000; filter: blur(22px); opacity: .65; transform: translateZ(-60px); pointer-events: none; transition: opacity 780ms ease; }

.entrance-hint {
  pointer-events: none;
  position: absolute;
  top: calc(66dvh + var(--machine-width) * .14 + 40px);
  left: 47%;
  right: 9%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0;
  color: #c5c6b5;
  font-size: 13px;
  transition: opacity 240ms ease, transform 500ms ease;
}

.entrance-hint svg { width: 16px; height: 16px; }
.skip-entrance { position: absolute; bottom: 22px; right: 36px; min-height: 44px; padding: 8px 0 8px 16px; border: 0; background: transparent; color: #d8ccab; font: inherit; font-size: 13px; cursor: pointer; transition: opacity 240ms ease; }
.entrance-notes { position: absolute; bottom: 22px; left: clamp(36px, 6vw, 116px); display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; color: #b8baad; text-decoration: none; text-underline-offset: 4px; transition: opacity 240ms ease; }
.skip-entrance:hover, .entrance-notes:hover { color: #f2d57b; text-decoration: underline; }
.skip-entrance:focus-visible,.entrance-notes:focus-visible{outline:2px solid #e5be58;outline-offset:6px}

.entrance.is-opening .machine { cursor: default; }
.entrance.is-opening .machine-lid { transform: rotateX(180deg) translateZ(7px); }
.entrance.is-opening .machine-shadow { opacity: .42; }
.entrance.is-opening .entrance-heading { opacity: 0; transform: translateY(-15px); }
.entrance.is-opening .entrance-hint { opacity: 0; transform: translateY(10px); }
.entrance.is-opening .skip-entrance, .entrance.is-opening .entrance-notes { opacity: 0; pointer-events: none; }
.entrance.is-gone { display: none; }

@media (max-width: 700px) {
  .entrance { --machine-width: min(74vw, 340px, 32dvh); --machine-depth: calc(var(--machine-width) / .69); }
  .entrance-heading { top: 12dvh; left: 24px; width: calc(100% - 48px); }
  .entrance-heading h1 { font-size: clamp(34px, 9.5vw, 42px); font-weight: 450; line-height: 1.1; }
  .entrance-heading h1 strong { font-weight: 650; }
  .entrance-heading p { margin-top: 14px; font-size: 13px; line-height: 1.55; }
  .entrance .machine { top: 42dvh; left: 54%; perspective: 1800px; transform-origin: 50% 50%; border-radius: 16px; }
  .machine-lid { border-radius: 16px; transform-origin: 50% 50%; transform: rotateX(0deg) rotateY(-9deg) rotateZ(-5deg); }
  .lid-outside, .machine-deck, .machine-edge, .webcam { display: none; }
  .lid-inside { transform: none; border: 1px solid #778162; background: #182219; box-shadow: inset 0 0 0 2px #101b13, 5px 14px 28px #00000066; }
  .screen-wallpaper { inset: 9px; border-radius: 9px; }
  .machine-shadow { top: 99%; left: 9%; width: 82%; height: 24px; filter: blur(14px); opacity: .5; transform: translateZ(-30px); }
  .entrance-hint { top: calc(12dvh + 146px); left: 24px; right: 24px; justify-content: flex-start; font-size: 12px; }
  .skip-entrance { right: 24px; bottom: 14px; font-size: 12px; }
  .entrance-notes { left: 24px; bottom: 14px; font-size: 11px; }
  .entrance.is-opening .machine-lid { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
}

@media (min-width: 701px) and (max-width: 1000px) {
  .entrance-heading h1 { font-size: clamp(40px, 5vw, 50px); }
  .entrance-heading p { font-size: 13px; }
  .entrance-hint { right: 4%; font-size: 12px; }
}

@media (max-height: 650px) and (min-width: 701px) {
  .entrance-heading { top: 29dvh; }
  .entrance-heading h1 { font-size: clamp(40px, 4.2vw, 58px); }
  .entrance-heading p { margin-top: 18px; font-size: 13px; }
  .entrance-hint { top: calc(66dvh + var(--machine-width) * .14 + 24px); }
  .entrance-notes { bottom: 14px; }
  .skip-entrance { bottom: 14px; }
}

@media (max-width: 700px) and (max-height: 540px) and (orientation: landscape) {
  .entrance { --machine-width: min(32vw, 44dvh); }
  .entrance-heading { top: 27dvh; width: 45vw; }
  .entrance-heading h1 { font-size: 32px; }
  .entrance-heading p { margin-top: 12px; font-size: 12px; }
  .entrance .machine { top: 17dvh; left: 74%; }
  .entrance-hint { top: 68dvh; width: 45vw; }
}

.motion-reduced .entrance, .motion-reduced .entrance *, .motion-reduced .entrance *::before, .motion-reduced .entrance *::after { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .entrance, .entrance *, .entrance *::before, .entrance *::after { transition: none !important; animation: none !important; }
}

/* A small version of the same work surface lives inside the physical display. */
.entrance{color-scheme:dark}
.machine-lid{transition-duration:780ms;transition-timing-function:cubic-bezier(.32,.02,.18,1)}
.screen-wallpaper{background:#20221f;overflow:hidden}
.screen-wallpaper.has-live-screen>.screen-editor{display:none!important}
.screen-editor{display:grid!important;position:absolute;inset:0;grid-template-rows:12% minmax(0,1fr) 27%;padding:3% 5% 4%;color:#f2f0e8;text-align:left}
.screen-editor-bar{display:flex!important;align-items:center;border-bottom:1px solid #3a3d35;font-size:calc(var(--machine-width)*.018);font-weight:650;letter-spacing:-.035em}
.screen-editor-bar>span{color:#e5be58}
.screen-workspace-mark{display:flex!important;align-items:center;font-size:calc(var(--machine-width)*.14);font-weight:750;line-height:1;letter-spacing:-.04em;color:#f2f0e8}
.screen-apps{display:flex!important;align-items:center;gap:4.1%;border-top:1px solid #3a3d35;padding-top:2%;color:#f2f0e8}
.screen-apps>.dock-icon{position:relative;width:calc(var(--machine-width)*.048);height:calc(var(--machine-width)*.048);border-radius:calc(var(--machine-width)*.012);box-shadow:none}
.screen-apps svg{width:calc(var(--machine-width)*.032);height:calc(var(--machine-width)*.032);fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.screen-apps>svg{box-sizing:content-box;width:calc(var(--machine-width)*.032);height:calc(var(--machine-width)*.032);padding:calc(var(--machine-width)*.01);background:#35392f;border-radius:calc(var(--machine-width)*.012)}
.screen-apps>svg:nth-child(3n+2){color:#e5be58}
.screen-apps>svg:nth-child(3n){color:#b8c9b4}

/* The hinge settles before studio.js brings this same live screen into view. */
.entrance-brand{position:absolute;top:36px;left:clamp(36px,6vw,116px);font-size:28px;line-height:1;font-weight:760;letter-spacing:-.04em;color:#f2f0e8}
.entrance-brand>span{color:#e5be58}
.entrance-heading{transition:opacity 220ms ease,transform 500ms cubic-bezier(.16,1,.3,1)}
.entrance.is-opening .entrance-brand{opacity:0;transition:opacity 240ms ease}
.entrance.is-entering-screen{will-change:transform;pointer-events:none}
.entrance.is-opening .screen-wallpaper{animation:screen-light 780ms cubic-bezier(.22,.75,.18,1) both}
.entrance.is-opening .screen-wallpaper::after{animation:screen-reflection 780ms ease-out both}
.entrance.is-opening .machine-deck::after{animation:deck-light 780ms ease-out both}
@keyframes screen-light{0%,24%{filter:brightness(.12)}56%{filter:brightness(.72)}100%{filter:brightness(1)}}
@keyframes screen-reflection{0%,26%{opacity:0}64%{opacity:.9}100%{opacity:0}}
@keyframes deck-light{0%,26%{opacity:0}66%{opacity:.5}100%{opacity:.18}}
.skip-entrance{display:flex;align-items:center;gap:8px}.skip-entrance svg{width:14px;height:14px}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.entrance:not(.is-opening) .machine:hover .lid-outside::after{transform:translateY(-8%);transition:transform .6s ease}.entrance:not(.is-opening) .machine:hover .machine-shadow{opacity:.72}}
@media(max-width:700px){.entrance-brand{top:25px;left:24px;font-size:24px}}
/* The mobile display is already visible; wake it without a black flash. */
@media(max-width:700px){
 .screen-wallpaper{filter:brightness(.86);transition:filter 780ms ease}
 .entrance.is-opening .screen-wallpaper{animation:none;filter:brightness(1)}
}
