/* safe.css: de muurkluis achter het doek. potlood: kluis zit scheef, net als de rest */

.vault {
  position: absolute;
  inset: var(--bar);
  z-index: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 40%, #7d7569, #4a443c 75%),
    #4a443c;
  box-shadow: inset 0 0 3cqw rgba(0, 0, 0, .7);
}

.safe {
  --safe-in: #24272b;
  --kbtn: max(30px, calc(var(--k) * 4.4cqw));
  position: relative;
  width: calc(var(--k) * 34cqw);
  max-width: 92%;
  aspect-ratio: 34 / 44;
  max-height: 94%;
  padding: calc(var(--k) * 1cqw);
  border-radius: 1cqw;
  background: linear-gradient(135deg, #8e959c, #5d646b);
  box-shadow: 0 0 0 .4cqw #3a3f44, 0 1cqw 2cqw rgba(0, 0, 0, .6);
  perspective: 900px;
}
.safe.nope { animation: nope .4s; }
@keyframes nope {
  20%, 60% { translate: -1.2cqw 0; }
  40%, 80% { translate: 1.2cqw 0; }
}

.safe-inside, .safe-door {
  position: absolute;
  inset: calc(var(--k) * 1cqw);
  border-radius: .6cqw;
}

/* ---------- binnenkant ---------- */

.safe-inside {
  display: flex;
  flex-direction: column;
  gap: 4%;
  padding: 6%;
  background: linear-gradient(160deg, #3a3e43, var(--safe-in));
  box-shadow: inset 0 0 2cqw rgba(0, 0, 0, .8);
}

.job {
  display: flex;
  flex-direction: column;
  gap: .35em;
  padding: .9em 1em;
  background: #fffdf6;
  color: var(--ink);
  font: 400 max(9px, calc(var(--k) * 1.1cqw)) / 1.3 var(--f-sans);
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .5);
  transform: rotate(-2deg);
  transition: transform .2s;
}
.job:hover, .job:focus-visible { transform: rotate(0) scale(1.04); }
.job:focus-visible { outline: 3px dashed #fff59a; }
.job-kicker {
  align-self: flex-start;
  padding: .1em .5em;
  background: #e0592a;
  color: #fff;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.job strong { font-size: 1.3em; line-height: 1.15; }
.job-role { font-weight: 700; color: #1a2a6c; }
.job-cta { font-weight: 700; text-decoration: underline; }

.shelf {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  border-bottom: .5cqw solid #4b5056;
}

.stroopwafel {
  --waffle:
    repeating-linear-gradient(45deg, rgba(120, 70, 20, .45) 0 1px, transparent 1px 9%),
    repeating-linear-gradient(-45deg, rgba(120, 70, 20, .45) 0 1px, transparent 1px 9%),
    radial-gradient(circle at 40% 35%, #e8b867, #c98d3a 70%);
  width: calc(var(--k) * 9cqw);
  aspect-ratio: 1 / .32;
  border: 0;
  border-radius: 50%;
  background-image: var(--waffle);
  box-shadow: 0 .5cqw 0 #8a5a22, 0 .9cqw .6cqw rgba(0, 0, 0, .5);
  cursor: pointer;
  transition: transform .15s;
}
.stroopwafel:hover { transform: translateY(-3px) rotate(-3deg); }
.stroopwafel[data-bites="1"] { background-image: radial-gradient(circle at 95% 30%, var(--safe-in) 0 22%, transparent 23%), var(--waffle); }
.stroopwafel[data-bites="2"] { background-image: radial-gradient(circle at 95% 30%, var(--safe-in) 0 22%, transparent 23%), radial-gradient(circle at 70% 0%, var(--safe-in) 0 26%, transparent 27%), var(--waffle); }
.stroopwafel[data-bites="3"] { opacity: 0; transform: scale(.3); transition: .4s; cursor: default; }

.floppy {
  position: relative;
  width: calc(var(--k) * 8cqw);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 3%;
  background: linear-gradient(160deg, #2b4fa8, #1a2f6b);
  clip-path: polygon(0 0, 92% 0, 100% 8%, 100% 100%, 0 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
  transform: rotate(6deg);
  cursor: pointer;
  transition: transform .15s;
}
.floppy:hover { transform: rotate(0) translateY(-3px); }
.floppy-shutter {
  position: absolute;
  left: 22%;
  top: 0;
  width: 52%;
  height: 32%;
  background:
    linear-gradient(90deg, transparent 58%, #2a2f35 58% 74%, transparent 74%) 0 30% / 100% 60% no-repeat,
    linear-gradient(#e6e9ec, #a7adb3);
}
.floppy-label {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 48%;
  display: grid;
  place-items: center;
  padding: 4%;
  background: repeating-linear-gradient(180deg, #fff 0 22%, #9bb7ec 22% 24%);
  color: #b3201b;
  font: 400 max(8px, calc(var(--k) * 1cqw)) / 1.05 var(--f-marker);
  text-align: center;
}

/* ---------- deur ---------- */

.safe-door {
  z-index: 2;
  transform-origin: 0 50%;
  transform-style: preserve-3d;
  transition: transform 1.4s cubic-bezier(.4, 0, .2, 1);
}
.safe.open .safe-door { transform: rotateY(-112deg); pointer-events: none; }

.door-front, .door-back {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.door-back {
  transform: rotateY(180deg);
  background: linear-gradient(90deg, #4d5359, #70777e);
}

.door-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6%;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .25), transparent 50%),
    linear-gradient(135deg, #b4bbc2, #7c848c);
  box-shadow: inset 0 0 0 .3cqw rgba(0, 0, 0, .25), .4cqw .4cqw 1cqw rgba(0, 0, 0, .4);
}

.safe-brand {
  margin: 0;
  font: 800 italic max(9px, calc(var(--k) * 1.2cqw)) / 1 var(--f-sans);
  letter-spacing: .08em;
  color: #3c4248;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}

.safe-display {
  display: block;
  min-width: calc(var(--kbtn) * 3.3);
  padding: .3em .5em;
  border-radius: 4px;
  background: #1c2b1c;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .7);
  color: #7dff7a;
  font: 700 max(14px, calc(var(--k) * 2cqw)) / 1 var(--f-type);
  letter-spacing: .15em;
  text-align: center;
  text-shadow: 0 0 6px rgba(125, 255, 122, .7);
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, var(--kbtn));
  gap: calc(var(--kbtn) * .16);
}
.keypad button {
  height: var(--kbtn);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #f3f5f7, #aab1b8);
  box-shadow: 0 2px 0 #59606a, 0 3px 4px rgba(0, 0, 0, .4);
  color: #2b3036;
  font: 700 max(12px, calc(var(--kbtn) * .38)) / 1 var(--f-sans);
  cursor: pointer;
}
.keypad button:active { transform: translateY(2px); box-shadow: 0 0 0 #59606a, 0 1px 2px rgba(0, 0, 0, .4); }
.keypad button:focus-visible { outline: 2px solid #fff59a; }
.keypad [data-key="OK"], .keypad [data-key="C"] { font-size: max(10px, calc(var(--kbtn) * .3)); }

.safe-dial {
  position: absolute;
  right: 5%;
  top: 50%;
  width: 9%;
  aspect-ratio: 1 / 2.6;
  border-radius: 999px;
  background: linear-gradient(90deg, #5d646b, #c9cfd5, #5d646b);
  box-shadow: 0 2px 3px rgba(0, 0, 0, .5);
  transform: translateY(-50%);
}
