* { box-sizing: border-box; }
html { background: #e7edf4; }
body {
  margin: 0;
  color: #faf8f4;
  font-family: "Helvetica Neue", Arial, sans-serif;
}
.entrance {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.entrance-header {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 2;
  pointer-events: none;
  display: grid;
  justify-items: start;
  gap: 9px;
  padding: clamp(24px, 5vh, 52px) clamp(20px, 5vw, 84px);
}
.entrance-header img {
  display: block;
  width: clamp(132px, 16vw, 226px);
  height: auto;
}
.entrance-header h1 {
  margin: 0;
  color: #26354a;
  font-size: clamp(13px, 1.2vw, 17px);
  font-weight: 600;
}
.entrance:has(.patient:is(:hover, :focus-visible, :active)) .entrance-header h1 {
  color: white;
  text-shadow: 0 1px 8px #101b2d, 0 1px 3px #101b2d;
}
.door {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 10rem clamp(14px, 5vw, 84px) clamp(36px, 10vh, 104px);
  color: inherit;
  text-decoration: none;
}
.patient {
  color: #262031;
  background:
    linear-gradient(145deg, #fff7e942, #f4c49838);
}
.doctor {
  border-left: 2px solid #f28648;
  background:
    linear-gradient(145deg, #182744bd, #111b31e6);
}
.door-photo, .door::after, .door::before { position: absolute; inset: 0; }
.door::before {
  content: "";
  z-index: -3;
  background: linear-gradient(132deg, transparent 34%, #ffffff33 50%, transparent 65%);
}
.door-photo {
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.065);
  transition: opacity .42s ease, transform .85s cubic-bezier(.2,.65,.3,1);
}
.patient .door-photo { object-position: 50% 34%; }
.doctor .door-photo { object-position: 50% 38%; }
.door::after {
  content: "";
  z-index: -1;
  opacity: 0;
  background: linear-gradient(180deg, #14203324 25%, #101b2d36 50%, #101b2de8 100%);
  transition: opacity .42s ease;
}
.door-label {
  width: 100%;
  border-top: 1px solid currentColor;
  padding-top: clamp(12px, 2.5vw, 25px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: clamp(23px, 4.65vw, 76px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.065em;
}
.door-arrow {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  width: clamp(28px, 4.7vw, 72px);
  aspect-ratio: 1;
  font-size: .58em;
  letter-spacing: 0;
}
.door:is(:hover, :focus-visible, :active) { color: #fff; }
.door:is(:hover, :focus-visible, :active) .door-photo { opacity: 1; transform: scale(1); }
.door:is(:hover, :focus-visible, :active)::after { opacity: 1; }
.door:is(:hover, :focus-visible, :active) .door-arrow { background: #fff; color: #182546; }
.door:focus-visible { outline: 3px solid #f28648; outline-offset: -6px; }
@media (max-width: 640px) and (orientation: portrait) {
  .entrance {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(210px, 1fr));
  }
  .entrance-header {
    gap: 7px;
    padding: max(25px, env(safe-area-inset-top)) 24px 0;
  }
  .entrance-header img { width: clamp(144px, 40vw, 176px); }
  .door { padding: 22px 24px clamp(23px, 5svh, 44px); }
  .patient { padding-top: 120px; }
  .doctor {
    border-left: 0;
    border-top: 2px solid #f28648;
    padding-bottom: max(clamp(23px, 5svh, 44px), env(safe-area-inset-bottom));
  }
  .patient .door-photo { object-position: 50% 25%; }
  .doctor .door-photo { object-position: 50% 30%; }
  .door-label { font-size: clamp(31px, 8vw, 44px); padding-top: 13px; }
  .door-arrow { width: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .door-photo, .door::after { transition: none; transform: none; }
}
